diff options
author | David Morgan <djm_uk@protonmail.com> | 2022-11-24 16:37:10 +0000 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2022-11-24 16:37:10 +0000 |
commit | ae42d530201accc7bccbba892f200e21d8607de0 (patch) | |
tree | 09cd24b7a154b6b081f4e4fd96ea58b37cd46a26 /nix-conf/home/includes | |
parent | da3cff54f2be67d4ca64716959acf532a14e08a6 (diff) | |
download | dotfiles-sops.tar.gz |
Add experimental sops setup sops
Diffstat (limited to 'nix-conf/home/includes')
-rw-r--r-- | nix-conf/home/includes/common.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nix-conf/home/includes/common.nix b/nix-conf/home/includes/common.nix index 971aa7d..0adb529 100644 --- a/nix-conf/home/includes/common.nix +++ b/nix-conf/home/includes/common.nix @@ -2,9 +2,10 @@ let hcr = pkgs.callPackage ./scripts/hm-changes-report.nix { inherit config pkgs; }; scr = pkgs.callPackage ./scripts/system-changes-report.nix { inherit config pkgs; }; + secrets = "${config.home.homeDirectory}/dotfiles/nix-conf/secrets/home.json"; + email = builtins.exec [ "sops" "-d" "--extract" ''["email"]'' secrets ]; in { - imports = [ ./zsh.nix ]; @@ -172,6 +173,7 @@ in programs.git = { enable = true; userName = "David Morgan"; + userEmail = email; aliases = { # difftastic logt = "!sh -c 'GIT_EXTERNAL_DIFF=\"difft --background=dark\" git log -p --ext-diff'"; |