chore(users/transcaffeine): replace impure fetchgit with raw flake input
This commit is contained in:
@@ -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")
|
||||
)
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user