diff options
author | Alex Auvolat <alex@adnab.me> | 2022-04-20 13:01:51 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-04-20 13:03:29 +0200 |
commit | 9c9c776213478023d4cab6290efcb6adfdbbbe86 (patch) | |
tree | 85ae8d2c3dac9c01daf5a1524b8a4ff83b84df70 /deploy_nixos | |
parent | 50e9f0b589b6387d193fcb420ddc045c0bc6d632 (diff) | |
download | nixcfg-9c9c776213478023d4cab6290efcb6adfdbbbe86.tar.gz nixcfg-9c9c776213478023d4cab6290efcb6adfdbbbe86.zip |
Refactor deployment scripts
Diffstat (limited to 'deploy_nixos')
-rwxr-xr-x | deploy_nixos | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/deploy_nixos b/deploy_nixos new file mode 100755 index 0000000..484bead --- /dev/null +++ b/deploy_nixos @@ -0,0 +1,12 @@ +#!/usr/bin/env ./sshtool + +copy nix/configuration.nix /etc/nixos/configuration.nix +copy nix/deuxfleurs.nix /etc/nixos/deuxfleurs.nix +copy nix/remote-unlock.nix /etc/nixos/remote-unlock.nix +copy nix/wesher.nix /etc/nixos/wesher.nix +copy nix/wesher_service.nix /etc/nixos/wesher_service.nix +copy cluster/$CLUSTER/cluster.nix /etc/nixos/cluster.nix +copy cluster/$CLUSTER/node/$NIXHOST.nix /etc/nixos/node.nix +copy cluster/$CLUSTER/node/$NIXHOST.site.nix /etc/nixos/site.nix + +cmd nixos-rebuild switch |