Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
arichtman committed Jun 17, 2024
1 parent 369cf98 commit 3db6bfc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions modules/home/default-home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@
flushdns = lib.mkIf pkgs.stdenv.hostPlatform.isDarwin "sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder";
};
gitIgnores = lib.concatStringsSep "," ["hugo" "rust" "linux" "macos" "direnv" "python" "windows" "terraform" "terragrunt" "rust-analyzer" "dotnetcore"];
rawGitignore = builtins.fetchurl {
rawGitignorePath = builtins.fetchurl {
url = "https://www.toptal.com/developers/gitignore/api/${gitIgnores}";
sha256 = lib.fakeSha256;
sha256 = "sha256:0srykrnpp8j2x70vrizr1cfny28y7bap39c9nxs93qmz0svyvqv1";
# Required to avoid issues with the URL characters in filenames, namely , and %
name = "gitignores.txt";
};
processedGitignore = builtins.split "(^\w+\n$)" rawGitignore;
processedGitignore = lib.splitString "\n" (builtins.readFile rawGitignorePath);
in
with lib; {
options.default-home = with types; {
Expand Down Expand Up @@ -196,7 +198,7 @@ in
signByDefault = true;
key = "~/.ssh/id_ed25519.pub";
};
ignores = processedGitignore;
ignores = builtins.trace processedGitignore processedGitignore;
extraConfig = {
gpg.format = "ssh";
maintenance = {
Expand Down

0 comments on commit 3db6bfc

Please sign in to comment.