diff options
| -rw-r--r-- | home/config/environment.nix | 2 | ||||
| -rw-r--r-- | home/config/scripts/nixos-update-config | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/home/config/environment.nix b/home/config/environment.nix index 4a8878d..88120e9 100644 --- a/home/config/environment.nix +++ b/home/config/environment.nix @@ -37,7 +37,7 @@ venv-manager-path = "~/.config/venv-manager"; in { amimullvad = "curl -Ls https://am.i.mullvad.net/connected"; - nixos-update-config = builtins.readFile ./scripts/nixos-update-config; + nixos-update-config = import ./scripts/nixos-update-config nix-code-path; rm = "rm -f"; ssh = "TERM=xterm-256color ssh"; mkenv = '' diff --git a/home/config/scripts/nixos-update-config b/home/config/scripts/nixos-update-config index 69d6ea8..8bbbcb3 100644 --- a/home/config/scripts/nixos-update-config +++ b/home/config/scripts/nixos-update-config @@ -1,4 +1,6 @@ -# This script calls sudo, hence its content could be modified -# in the view of escalating privileges. It should thus be only -# writable by root. -sudo cp -rf ${nix-code-path}/latitude-7490/nixos/ /etc/ +nix-code-path: '' + # This script calls sudo, hence its content could be modified + # in the view of escalating privileges. It should thus be only + # writable by root. + sudo cp -rf ${nix-code-path}/latitude-7490/nixos/ /etc/ +'' |
