From b9f83b1dbe2c1c6266495bf64da12cfd81d23965 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Fri, 10 Jan 2025 21:49:06 -0800 Subject: maybe working sops-nix with age --- desktop/home.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'desktop/home.nix') diff --git a/desktop/home.nix b/desktop/home.nix index f649145..ddaf573 100644 --- a/desktop/home.nix +++ b/desktop/home.nix @@ -3,6 +3,19 @@ let vars = import ./vars.nix; in { + sops = { + defaultSopsFile = ../secrets/secrets.yaml; + age = { + keyFile = "${config.home.homeDirectory}/.ssh/keys.txt"; + }; + secrets.mail = { + format = "yaml"; + path = "${config.sops.defaultSymlinkPath}/mail"; + }; + defaultSymlinkPath = "/run/user/1000/secrets"; + defaultSecretsMountPoint = "/run/user/1000/secrets.d"; + }; + home = { activation.startup-files = lib.hm.dag.entryAfter [ "installPackages" ] '' if [ ! -d "${config.home.homeDirectory}/org/website/" ]; then @@ -45,6 +58,7 @@ in packages = with pkgs; [ # kicad + age acpilight alsa-utils autobuild -- cgit