28 lines
491 B
Nix
28 lines
491 B
Nix
{ lib, config, inputs, pkgs, ... }:
|
|
|
|
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 {
|
|
home.packages = [
|
|
pkgs.sops
|
|
];
|
|
|
|
sops = {
|
|
age.keyFile = "${home}/.config/sops/age/keys.txt";
|
|
|
|
defaultSopsFile = ../../secrets.yaml;
|
|
validateSopsFiles = false;
|
|
};
|
|
};
|
|
}
|