flake/modules/nixos/sops/default.nix
2025-01-17 22:12:23 +00:00

14 lines
397 B
Nix

{ pkgs, lib, config, inputs, system, ... }:
let cfg = config.mods;
in with lib; {
imports = [ inputs.sops-nix.nixosModules.sops ];
sops = {
age.keyFile = "/home/muon/.config/sops/age/keys.txt";
defaultSopsFile = ./secrets.yaml;
secrets.muon-password = { };
secrets.zipline-secret = mkIf cfg.server.share.enable {
owner = "zipline";
group = "zipline";
};
};
}