feat: init sops-nix config

This commit is contained in:
ooks-io 2024-02-13 19:17:48 +13:00
parent e0f46323bc
commit 397186558a
9 changed files with 139 additions and 1 deletions

24
home/secrets/default.nix Normal file
View 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 = { };
};
};
};
}