mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
Manage user level secrets with sops
This commit is contained in:
parent
b6e03035f6
commit
c170ec09db
6 changed files with 59 additions and 11 deletions
|
|
@ -8,5 +8,6 @@
|
|||
./neovim.nix
|
||||
./kitty.nix
|
||||
./equalizer
|
||||
./sops.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
17
modules/home/sops.nix
Normal file
17
modules/home/sops.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
inputs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [inputs.sops-nix.homeManagerModules.sops];
|
||||
|
||||
options.myConfig.sops.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.myConfig.sops.enable {
|
||||
sops = {
|
||||
age.sshKeyPaths = ["${config.home.homeDirectory}/.ssh/id_ed25519"];
|
||||
defaultSopsFile = "${inputs.self}/home/${config.home.username}/secrets.yaml";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue