summaryrefslogtreecommitdiff
path: root/programs/sops
diff options
context:
space:
mode:
Diffstat (limited to 'programs/sops')
-rw-r--r--programs/sops/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/programs/sops/default.nix b/programs/sops/default.nix
new file mode 100644
index 0000000..5df5f22
--- /dev/null
+++ b/programs/sops/default.nix
@@ -0,0 +1,30 @@
+{ 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 = {
+ defaultSopsFile = ../../secrets.yaml;
+
+ gnupg.home = config.homePath + "/.gnupg";
+ gnupg.sshKeyPaths = [];
+
+ secrets = {
+ freyanetWg = {};
+ tinternetWg = {};
+ };
+ };
+}