From 2c8a4dd99efd61298bc18393e7fcbf6063db8671 Mon Sep 17 00:00:00 2001 From: adikro Date: Sun, 8 Feb 2026 18:03:39 +0100 Subject: ... --- os/srv/sops.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 os/srv/sops.nix (limited to 'os/srv/sops.nix') diff --git a/os/srv/sops.nix b/os/srv/sops.nix new file mode 100644 index 0000000..85a5123 --- /dev/null +++ b/os/srv/sops.nix @@ -0,0 +1,28 @@ +{ + config, + lib, + username, + ... +}: +let + cfg = config.os.srv.sops; +in +{ + options.os.srv.sops.enable = lib.mkEnableOption "enables sops-nix secret storing"; + config = lib.mkIf cfg.enable { + sops = { + defaultSopsFile = ../../secrets.yaml; + defaultSopsFormat = "yaml"; + age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; + + secrets = { + "syncthing/gui_password" = { + owner = config.services.syncthing.user; + }; + "obs/websocket_password" = { + owner = username; + }; + }; + }; + }; +} -- cgit v1.3