aboutsummaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
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