2024-07-11 21:49:11 +00:00
|
|
|
{ lib, config, inputs, pkgs, ... }:
|
2024-07-09 03:35:25 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.snowhawk.sops;
|
|
|
|
home = config.home.homeDirectory;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
inputs.sops-nix.homeManagerModules.sops
|
|
|
|
];
|
|
|
|
|
|
|
|
options.snowhawk.sops = {
|
|
|
|
enable = lib.mkEnableOption "sops";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
2024-07-11 21:49:11 +00:00
|
|
|
home.packages = [
|
|
|
|
pkgs.sops
|
|
|
|
];
|
|
|
|
|
2024-07-09 03:35:25 +00:00
|
|
|
sops = {
|
|
|
|
age.keyFile = "${home}/.config/sops/age/keys.txt";
|
|
|
|
|
|
|
|
defaultSopsFile = ../../secrets.yaml;
|
|
|
|
validateSopsFiles = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|