dotfiles-nix/nix/programs/sops/default.nix

30 lines
510 B
Nix
Raw Normal View History

2025-01-24 18:06:22 +00:00
{ config, pkgs, inputs, ... }:
let
isEd25519 = k: k.type == "ed25519";
getKeyPath = k: k.path;
keys = builtins.filter isEd25519 config.services.openssh.hostKeys;
in
{
imports = [
inputs.sops-nix.nixosModules.sops
];
environment.systemPackages = with pkgs; [
sops
];
sops = {
2025-01-24 18:10:41 +00:00
defaultSopsFile = ../../../secrets.yaml;
2025-01-24 18:06:22 +00:00
gnupg.home = config.homePath + "/.gnupg";
gnupg.sshKeyPaths = [];
secrets = {
freyanetWg = {};
};
};
}