From 6726127aedad560d42b7f85d2745a1b52a796c65 Mon Sep 17 00:00:00 2001 From: transcaffeine Date: Sun, 7 Sep 2025 13:45:30 +0200 Subject: [PATCH] chore(users/transcaffeine): replace impure fetchgit with raw flake input --- users/transcaffeine/home-manager/gnupg.nix | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/users/transcaffeine/home-manager/gnupg.nix b/users/transcaffeine/home-manager/gnupg.nix index d44328f..e8ad113 100644 --- a/users/transcaffeine/home-manager/gnupg.nix +++ b/users/transcaffeine/home-manager/gnupg.nix @@ -1,11 +1,7 @@ -{ lib, config, ... }: +{ inputs, lib, config, ... }: let - repo = (builtins.fetchGit { - url = "https://git.finally.coffee/transcaffeine/dotfiles.git"; - ref = "main"; - shallow = true; - }); + dotfileRepo = inputs.dotfiles; utils = import ../../../utils { inherit lib; }; in { programs.gpg = let @@ -16,7 +12,7 @@ in { }) ( builtins.filter (value: value != "") ( lib.splitString "\n" ( - lib.readFile (repo.outPath + "/config/gnupg/gpg.conf") + lib.readFile (dotfileRepo + "/config/gnupg/gpg.conf") ) ) ) @@ -36,7 +32,7 @@ in { }) ( builtins.filter (v: v != "") ( lib.splitString "\n" ( - lib.readFile (repo.outPath + "/config/gnupg/gpg-agent.conf") + lib.readFile (dotfileRepo.outPath + "/config/gnupg/gpg-agent.conf") ) ) )