From fa30516736e994304e7d01493fe4f7f229cebe50 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Mon, 25 Sep 2023 00:54:48 +0000 Subject: [PATCH] Configure gpg in home-manager --- flake.lock | 6 +++--- home/default.nix | 3 ++- home/gpg.nix | 10 ++++++++++ sets/packages.nix | 1 - 4 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 home/gpg.nix diff --git a/flake.lock b/flake.lock index 1dbab8a..ff50c89 100644 --- a/flake.lock +++ b/flake.lock @@ -479,11 +479,11 @@ ] }, "locked": { - "lastModified": 1695347458, - "narHash": "sha256-eK5Jlzq5X2R4hSZEcY6oXX35yCyanSRB/EApBDULYjU=", + "lastModified": 1695603143, + "narHash": "sha256-7iR+IWQcKdRwazFQSM5RxfvXihN1jILVN7jx2QObG2g=", "owner": "mildlyfunctionalgays", "repo": "rustybar", - "rev": "33be10885773f1e33f77e95e551aab1a370410dd", + "rev": "ea274f26c9fc3a1adc88b9b80dd67f35330f65a3", "type": "github" }, "original": { diff --git a/home/default.nix b/home/default.nix index c223548..ea33e5d 100644 --- a/home/default.nix +++ b/home/default.nix @@ -6,7 +6,8 @@ useGlobalPkgs = true; }; home-manager.users.artemis = { - imports = [ ./fish.nix ./gtk.nix ./git.nix ./mpv.nix ./kitty.nix ./ssh ]; + imports = + [ ./fish.nix ./gtk.nix ./git.nix ./mpv.nix ./kitty.nix ./ssh ./gpg.nix ]; home.stateVersion = config.system.stateVersion; diff --git a/home/gpg.nix b/home/gpg.nix new file mode 100644 index 0000000..cd5a02a --- /dev/null +++ b/home/gpg.nix @@ -0,0 +1,10 @@ +{ ... }: + +{ + services.gpg-agent = { + enable = true; + enableExtraSocket = true; + }; + + programs.gpg.enable = true; +} diff --git a/sets/packages.nix b/sets/packages.nix index 92cd9af..a20dfa8 100644 --- a/sets/packages.nix +++ b/sets/packages.nix @@ -47,7 +47,6 @@ git-lfs gitAndTools.gitFull gitAndTools.pass-git-helper - gnupg htop hunspell jq