This commit is contained in:
commit
95a533c876
451 changed files with 18255 additions and 0 deletions
22
modules/home/sops/default.nix
Normal file
22
modules/home/sops/default.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
inputs,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
secrets = "${toString inputs.self}/users/${config.home.username}/home/secrets/secrets.yaml";
|
||||
in
|
||||
{
|
||||
imports = [ inputs.sops-nix.homeManagerModules.sops ];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
age
|
||||
sops
|
||||
];
|
||||
|
||||
sops.defaultSopsFile = lib.mkIf (builtins.pathExists secrets) (lib.mkDefault secrets);
|
||||
sops.age.keyFile = lib.mkDefault "${config.home.homeDirectory}/.config/sops/age/keys.txt";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue