diff --git a/flake.nix b/flake.nix index 58c57487..28628d2c 100644 --- a/flake.nix +++ b/flake.nix @@ -410,9 +410,13 @@ let nixosConfigurations = lib'.mapAttrs' (name: value: + let metadata = images.${name}; in lib'.nameValuePair "nixos-${name}" { - hostname = name; - fastConnection = true; + hostname = metadata.deploy.hostname or name; + autoRollback = metadata.deploy.auto-rollback or true; + magicRollback = metadata.deploy.magic-rollback or true; + fastConnection = metadata.deploy.fast-connection or true; + remoteBuild = metadata.deploy.remote-build or false; profiles.system = { sshUser = "admin"; user = "root"; diff --git a/images.toml b/images.toml index 5e54a71f..212f61f6 100644 --- a/images.toml +++ b/images.toml @@ -18,6 +18,11 @@ system = "x86_64-linux" format = "iso" domain = "foodogsquared.one" +[plover.deploy] +hostname = "plover.foodogsquared.one" +auto-rollback = true +magic-rollback = true + [void] system = "x86_64-linux" format = "vm"