mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +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
|
let
|
||||||
nixosConfigurations = lib'.mapAttrs'
|
nixosConfigurations = lib'.mapAttrs'
|
||||||
(name: value:
|
(name: value:
|
||||||
|
let metadata = images.${name}; in
|
||||||
lib'.nameValuePair "nixos-${name}" {
|
lib'.nameValuePair "nixos-${name}" {
|
||||||
hostname = name;
|
hostname = metadata.deploy.hostname or name;
|
||||||
fastConnection = true;
|
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 = {
|
profiles.system = {
|
||||||
sshUser = "admin";
|
sshUser = "admin";
|
||||||
user = "root";
|
user = "root";
|
||||||
|
@ -18,6 +18,11 @@ system = "x86_64-linux"
|
|||||||
format = "iso"
|
format = "iso"
|
||||||
domain = "foodogsquared.one"
|
domain = "foodogsquared.one"
|
||||||
|
|
||||||
|
[plover.deploy]
|
||||||
|
hostname = "plover.foodogsquared.one"
|
||||||
|
auto-rollback = true
|
||||||
|
magic-rollback = true
|
||||||
|
|
||||||
[void]
|
[void]
|
||||||
system = "x86_64-linux"
|
system = "x86_64-linux"
|
||||||
format = "vm"
|
format = "vm"
|
||||||
|
Loading…
Reference in New Issue
Block a user