aboutsummaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2025-01-10 21:49:06 -0800
committerPreston Pan <ret2pop@gmail.com>2025-01-10 21:49:06 -0800
commitb9f83b1dbe2c1c6266495bf64da12cfd81d23965 (patch)
tree30552d5846c89d9f9013fcb49d04ec3296b45ff2 /desktop
parent7ca5c1c30306c6d80ae08b22300277fbed36c98f (diff)
maybe working sops-nix with ageHEADmain
Diffstat (limited to 'desktop')
-rw-r--r--desktop/configuration.nix12
-rw-r--r--desktop/home.nix14
2 files changed, 14 insertions, 12 deletions
diff --git a/desktop/configuration.nix b/desktop/configuration.nix
index 445ad90..aa5290e 100644
--- a/desktop/configuration.nix
+++ b/desktop/configuration.nix
@@ -5,18 +5,6 @@ in
{
imports = [];
- sops = {
- defaultSopsFile = ../secrets/secrets.yaml;
- defaultSopsFormat = "yaml";
- gnupg = {
- home = "/home/${vars.userName}/.gnupg";
- sshKeyPaths = [];
- };
- secrets.mail = {
- format = "yaml";
- };
- };
-
hardware.enableAllFirmware = true;
documentation = {
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