ignore patterns in home-manager

This commit is contained in:
Noah Masur 2022-04-25 20:34:33 -04:00
parent 703b2673ba
commit 55577615e2

View File

@ -9,6 +9,18 @@ let
nixos_config = builtins.toString ./.; nixos_config = builtins.toString ./.;
notes_path = "$HOME/dev/personal/notes"; notes_path = "$HOME/dev/personal/notes";
ignore_patterns = ''
!.env*
!.github/
!.gitignore
!*.tfvars
.terraform/
.target/
/Library/
keybase/
kbfs/
'';
in { in {
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
@ -283,10 +295,13 @@ in {
"direnvrc".text = "source $HOME/.nix-profile/share/nix-direnv/direnvrc"; "direnvrc".text = "source $HOME/.nix-profile/share/nix-direnv/direnvrc";
"spectrwm/spectrwm.conf".source = ./spectrwm.conf; "spectrwm/spectrwm.conf".source = ./spectrwm.conf;
}; };
home.file = {
".rgignore".text = ignore_patterns;
".fdignore".text = ignore_patterns;
};
programs.direnv = { programs.direnv = {
enable = true; enable = true;
enableFishIntegration = true;
nix-direnv.enable = true; nix-direnv.enable = true;
config = { whitelist = { prefix = [ "${dotfiles}/" ]; }; }; config = { whitelist = { prefix = [ "${dotfiles}/" ]; }; };
}; };