mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
configured sops-nix
This commit is contained in:
parent
a9843c9089
commit
beb00a5718
4 changed files with 62 additions and 4 deletions
|
|
@ -19,11 +19,13 @@
|
|||
};
|
||||
};
|
||||
|
||||
users.mutableUsers = false;
|
||||
users.users = {
|
||||
"${config.user.name}" = {
|
||||
isNormalUser = true;
|
||||
extraGroups = config.user.groups;
|
||||
openssh.authorizedKeys.keys = [ "${config.user.keys.ssh.primary}" ];
|
||||
password = "123";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -114,4 +116,17 @@
|
|||
PasswordAuthentication = false;
|
||||
};
|
||||
};
|
||||
|
||||
sops = {
|
||||
defaultSopsFile = ./secrets.yaml;
|
||||
defaultSopsFormat = "yaml";
|
||||
age = {
|
||||
keyFile = "/var/lib/sops-nix/key.txt";
|
||||
generateKey = true;
|
||||
};
|
||||
secrets = {
|
||||
camera_user = {};
|
||||
camera_pass = {};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue