~ruther/nixos-config

fbabddad002402770bde3de876f85c357debbe93 — Frantisek Bohacek 10 months ago ba86488
feat: function to make managed file real file
1 files changed, 5 insertions(+), 4 deletions(-)

M home/modules/profiles/base.nix
M home/modules/profiles/base.nix => home/modules/profiles/base.nix +5 -4
@@ 68,14 68,15 @@ in {
        };

        initExtra = ''
            function loc {
            nix-locate --top-level -w /bin/$1
            }
            function exa-nixpkgs-derivation {
            nix run nixpkgs#eza -- --tree $(nix build nixpkgs#$1 --print-out-paths --out-link /tmp/$1)
            }

            # source /etc/set-environment
            mkreal() {
              cp $1 $1.bcp
              chmod +w $1.bcp
              mv $1.bcp $1
            }
        '';
      };


Do not follow this link