pass entire config fragment to levitate, not just services

to make it useful we need to be able to set packages, passwords, ssh
keys etc
This commit is contained in:
Daniel Barlow
2024-04-29 19:58:25 +01:00
parent 9b3a3b9ff7
commit 8b69dcc209
3 changed files with 33 additions and 8 deletions

View File

@@ -141,9 +141,13 @@ in rec {
e2fsprogs
mtdutils
(levitate.override {
services = {
inherit (config.services) dhcpc sshd;
}; }
)
config = {
services = {
inherit (config.services) dhcpc sshd watchdog;
};
defaultProfile.packages = [ mtdutils ];
users.root.openssh.authorizedKeys.keys = secrets.root.keys;
};
})
];
}