update systems by ip in update script
This commit is contained in:
parent
fc39a4c73f
commit
dbc53eee65
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@
|
|||
# run nixos-rebuild switch on the target system
|
||||
# the config will be built locally and copied over
|
||||
"${name}-update" = nixpkgs.legacyPackages.x86_64-linux.writeShellScriptBin "update" ''
|
||||
nixos-rebuild switch --flake .#${name} --target-host root@${name}.test.htw.stura-dresden.de
|
||||
nixos-rebuild switch --flake .#${name} --target-host root@${(builtins.head (nixosConfigurations.${name}.config.networking.interfaces.${builtins.head (builtins.attrNames nixosConfigurations.${name}.config.networking.interfaces)}.ipv4.addresses)).address}
|
||||
'';
|
||||
|
||||
# copy install image to testserver and deploy the specified configuration to it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue