mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: finish new container backend
This commit is contained in:
parent
9833fd50ce
commit
32ce7fe25d
4 changed files with 15 additions and 7 deletions
|
@ -56,6 +56,6 @@
|
|||
# TODO See https://github.com/ryantm/agenix/pull/187.
|
||||
system.activationScripts = lib.mkIf (config.age.secrets != {}) {
|
||||
removeAgenixLink.text = "[[ ! -L /run/agenix ]] && [[ -d /run/agenix ]] && rm -rf /run/agenix";
|
||||
activationScripts.agenixNewGeneration.deps = ["removeAgenixLink"];
|
||||
agenixNewGeneration.deps = ["removeAgenixLink"];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
_guestName: guestCfg: {lib, ...}: let
|
||||
guestName: guestCfg: {lib, ...}: let
|
||||
inherit (lib) mkForce;
|
||||
in {
|
||||
node.guestName = guestName;
|
||||
node.name = guestCfg.nodeName;
|
||||
node.type = guestCfg.backend;
|
||||
|
||||
|
|
|
@ -97,10 +97,17 @@ in {
|
|||
}
|
||||
];
|
||||
|
||||
options.node.type = mkOption {
|
||||
type = types.enum ["host" "microvm" "container"];
|
||||
description = "The type of this machine.";
|
||||
default = "host";
|
||||
options.node = {
|
||||
type = mkOption {
|
||||
type = types.enum ["host" "microvm" "container"];
|
||||
description = "The type of this machine.";
|
||||
default = "host";
|
||||
};
|
||||
|
||||
guestName = mkOption {
|
||||
type = types.str;
|
||||
description = "The base name of this machine without the parent's name. Only defined if this is a guest.";
|
||||
};
|
||||
};
|
||||
|
||||
options.containers = mkOption {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue