darwin modules

This commit is contained in:
2026-04-23 14:53:37 -05:00
parent 6dcd5201b5
commit 48cac1436a
5 changed files with 176 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
{
pkgs,
config,
lib,
inputs,
...
}: let
cfg = config.darwin.sops;
in {
imports = [inputs.sops-nix.nixosModules.sops];
options.darwin.sops = {
enable = lib.mkEnableOption "enables sops";
};
config = lib.mkIf cfg.enable {
# enable and configure sops for secrets
sops = {
defaultSopsFile = ../../../secrets/secrets.yaml;
defaultSopsFormat = "yaml";
age.keyFile = "/etc/sops/keys.txt";
};
};
}