From 4ebae290ddd83ef7f3059642a684f1650fe3299e Mon Sep 17 00:00:00 2001 From: willemml Date: Sun, 19 Nov 2023 14:11:06 -0800 Subject: [PATCH] Enables git-crypt --- .gitattributes | 1 + common/globals.nix | 2 ++ common/secrets.nix | Bin 0 -> 51 bytes home/default.nix | 1 + home/packages.nix | 1 + 5 files changed, 5 insertions(+) create mode 100644 .gitattributes create mode 100644 common/secrets.nix diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..2a56673 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +common/secrets.nix filter=git-crypt diff=git-crypt \ No newline at end of file diff --git a/common/globals.nix b/common/globals.nix index a02341b..5622750 100644 --- a/common/globals.nix +++ b/common/globals.nix @@ -16,4 +16,6 @@ wallpapers = import ./wallpapers.nix; sshAuthorizedKeyFiles = [./sshpubkeys/willem-nixbox ./sshpubkeys/willem-thinkpad ./sshpubkeys/willem-zeus]; + + secrets = import ./secrets.nix; } diff --git a/common/secrets.nix b/common/secrets.nix new file mode 100644 index 0000000000000000000000000000000000000000..c3a9c68a9a55c532389865f77c58492f81798eed GIT binary patch literal 51 zcmV-30L=dYM@dveQdv+`0MPtv>rDe+Ju2aPZ}yfh9c=8_qSYLDY;cFOE19KIECF8i Ja%iJ0;S4J_7IFXp literal 0 HcmV?d00001 diff --git a/home/default.nix b/home/default.nix index 2008017..cda0f14 100644 --- a/home/default.nix +++ b/home/default.nix @@ -33,6 +33,7 @@ in rec { }; sessionVariables = rec { + GCTESTSECRET = globals.secrets.test_secret; DOTDIR = "${config.home.homeDirectory}/.config/dotfiles.nix"; EDITOR = emacsCommand; VISUAL = emacsCommand; diff --git a/home/packages.nix b/home/packages.nix index d8a9fbf..fec7e08 100644 --- a/home/packages.nix +++ b/home/packages.nix @@ -42,6 +42,7 @@ in { fenix-rust findutils gawk + git-crypt gnuplot graphviz htop