From eb2dbf6c7b2362644d0c3adfd8bda0370e3d47b1 Mon Sep 17 00:00:00 2001 From: Trevor Vallender Date: Mon, 25 Sep 2023 14:54:55 +0100 Subject: [PATCH] Add git-crypt setup for Mopidy credentials --- .gitattributes | 2 ++ system/shared/desktop-configuration.nix | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..d09ab1b --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Encrypt Mopidy config as it contains Spotify credentials +system/shared/services/mopidy.nix filter=git-crypt diff=git-crypt diff --git a/system/shared/desktop-configuration.nix b/system/shared/desktop-configuration.nix index 06e797f..e2104c4 100644 --- a/system/shared/desktop-configuration.nix +++ b/system/shared/desktop-configuration.nix @@ -21,6 +21,12 @@ openFirewall = true; }; + services.pcscd.enable = true; + programs.gnupg.agent = { + enable = true; + pinentryFlavor = "curses"; + }; + # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true;