feat(nixos): add user password secrets to sops
This commit adds the user password secrets to sops. It leverages the `userListToAttrs` lib function.
This commit is contained in:
parent
782a4324a8
commit
4ff7b8e18f
5 changed files with 42 additions and 15 deletions
|
@ -16,12 +16,9 @@ in
|
|||
{ config, ... }:
|
||||
{
|
||||
imports = [ inputs.sops-nix.nixosModules.sops ];
|
||||
config.sops = {
|
||||
defaultSopsFile = "${cfg.root}/secrets/secrets.yaml";
|
||||
age.sshKeyPaths = [
|
||||
"/persist${config.users.defaultUserHome}/${username}/.ssh/id_ed25519"
|
||||
];
|
||||
};
|
||||
config.sops.age.sshKeyPaths = [
|
||||
"/persist${config.users.defaultUserHome}/${username}/.ssh/id_ed25519"
|
||||
];
|
||||
};
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue