diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2022-08-31 14:33:09 +0200 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2022-08-31 14:33:09 +0200 |
| commit | 035c9bd89a6f11be046ee2efe0c2edb400cad604 (patch) | |
| tree | 033ef90fef3de545c554553ac256eec5283117c6 /home | |
| parent | 142e09b930ff4ce2f3afeaa1cbb70674f27b0111 (diff) | |
home: config: nixos-update-config: debug
Diffstat (limited to 'home')
| -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/ +'' |
