sj-srv1: init with restic backup
This commit is contained in:
parent
26f0bde4b3
commit
2c84e79f4a
12 changed files with 380 additions and 34 deletions
29
nix/os/devices/sj-srv1/configuration.nix
Normal file
29
nix/os/devices/sj-srv1/configuration.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ nodeName
|
||||
, config
|
||||
, pkgs
|
||||
, ...
|
||||
}: {
|
||||
disabledModules = [ ];
|
||||
imports = [
|
||||
../../profiles/common/configuration.nix
|
||||
{
|
||||
users.commonUsers = {
|
||||
enable = true;
|
||||
enableNonRoot = true;
|
||||
rootPasswordFile = config.sops.secrets.passwords-root.path;
|
||||
};
|
||||
|
||||
sops.secrets.passwords-root = {
|
||||
sopsFile = ../../../../secrets/${nodeName}/secrets.yaml;
|
||||
neededForUsers = true;
|
||||
format = "yaml";
|
||||
};
|
||||
}
|
||||
|
||||
../../modules/opinionatedDisk.nix
|
||||
|
||||
./system.nix
|
||||
./hw.nix
|
||||
./boot.nix
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue