blob: 03a67f47cf6684d3a78fbb3da4ccb3b99269fe7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{ sources ? import ./npins
, pkgs ? import sources.nixpkgs {}
}:
with (import ./lib {});
eval {
machines.bob.imports = [
({ self, config, ... }: {
imports = [
"${sources.nixpkgs}/nixos/modules/testing/hardcodedSecret.nix"
./modules/userSecret.nix
];
networking.hostName = "bob";
testing.hardcodedSecret.rootPassword = {
secret.consumer = config.users.users.root.passwordSecret;
content = "nixos";
};
users.users.root.passwordSecret.provider =
config.testing.hardcodedSecret.rootPassword.secret;
})
];
machines.alice = {
networking.hostName = "alice";
};
}
|