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
|
let
|
||||||
repo = (builtins.fetchGit {
|
dotfileRepo = inputs.dotfiles;
|
||||||
url = "https://git.finally.coffee/transcaffeine/dotfiles.git";
|
|
||||||
ref = "main";
|
|
||||||
shallow = true;
|
|
||||||
});
|
|
||||||
utils = import ../../../utils { inherit lib; };
|
utils = import ../../../utils { inherit lib; };
|
||||||
in {
|
in {
|
||||||
programs.gpg = let
|
programs.gpg = let
|
||||||
@@ -16,7 +12,7 @@ in {
|
|||||||
}) (
|
}) (
|
||||||
builtins.filter (value: value != "") (
|
builtins.filter (value: value != "") (
|
||||||
lib.splitString "\n" (
|
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 != "") (
|
builtins.filter (v: v != "") (
|
||||||
lib.splitString "\n" (
|
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