mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
config: add deploy
subtable for declarative images
It accepts keys used as arguments for deployment settings with deploy-rs. This should make deployment a little bit easier for me instead of manually creating a deploy entry every time.
This commit is contained in:
parent
36e2a817ae
commit
9f2452ec6e
@ -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";
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user