diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2022-08-30 22:52:57 +0200 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2022-08-30 22:52:57 +0200 |
| commit | 60ab12a2f8625567f9231f6f57abb75552bbd6cf (patch) | |
| tree | 6b813b752ea787be79af89a86dc4f872e39da077 /home | |
| parent | 899751b32ee15c8d92896ca94acdccb47f0afe11 (diff) | |
home: write-protect nixos-update-config alias
Diffstat (limited to 'home')
| -rw-r--r-- | home/config/environment.nix | 3 | ||||
| -rw-r--r-- | home/config/scripts/nixos-update-config | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/home/config/environment.nix b/home/config/environment.nix index 30585f0..4a8878d 100644 --- a/home/config/environment.nix +++ b/home/config/environment.nix @@ -37,8 +37,7 @@ venv-manager-path = "~/.config/venv-manager"; in { amimullvad = "curl -Ls https://am.i.mullvad.net/connected"; - nixos-update-config = - "sudo cp -rf ${nix-code-path}/latitude-7490/nixos/ /etc/"; + nixos-update-config = builtins.readFile ./scripts/nixos-update-config; 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 new file mode 100644 index 0000000..c291a55 --- /dev/null +++ b/home/config/scripts/nixos-update-config @@ -0,0 +1 @@ +sudo cp -rf ${nix-code-path}/latitude-7490/nixos/ /etc/
\ No newline at end of file |
