Compare commits

...

2 commits

2 changed files with 6 additions and 3 deletions

View file

@ -21,8 +21,11 @@ let
}; };
mkDeployNode = hostname: { mkDeployNode = hostname: {
inherit hostname; hostname = "${hostname}.${
sshUser = "root"; self.nixosConfigurations.${hostname}.config.custom.services.nebula.network.domain
}";
user = "root";
interactiveSudo = true;
profiles.system.path = profiles.system.path =
inputs.deploy-rs.lib.x86_64-linux.activate.nixos inputs.deploy-rs.lib.x86_64-linux.activate.nixos
self.nixosConfigurations.${hostname}; self.nixosConfigurations.${hostname};

View file

@ -13,7 +13,7 @@ in
options.custom.persistence = { options.custom.persistence = {
enable = lib.mkEnableOption ""; enable = lib.mkEnableOption "";
directories = lib.mkOption { directories = lib.mkOption {
type = lib.types.listOf lib.types.path; type = lib.types.listOf (lib.types.coercedTo lib.types.str (d: { directory = d; }) lib.types.attrs);
default = [ ]; default = [ ];
}; };
}; };