feat: init sops-nix config
This commit is contained in:
parent
e0f46323bc
commit
397186558a
9 changed files with 139 additions and 1 deletions
24
home/secrets/default.nix
Normal file
24
home/secrets/default.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ lib, config, inputs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.homeModules.sops;
|
||||
in
|
||||
|
||||
{
|
||||
|
||||
imports = [
|
||||
inputs.sops-nix.homeManagerModules.sops
|
||||
];
|
||||
options.homeModules.sops.enable = lib.mkEnableOption "Enable sops";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
sops = {
|
||||
age.keyFile = "/home/ooks/.config/sops/age/keys.txt";
|
||||
defaultSopsFile = ./secrets.yaml;
|
||||
|
||||
secrets = {
|
||||
spotifyClientId = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue