mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-25 17:04:54 +00:00
ignore patterns in home-manager
This commit is contained in:
parent
703b2673ba
commit
55577615e2
@ -9,6 +9,18 @@ let
|
||||
nixos_config = builtins.toString ./.;
|
||||
notes_path = "$HOME/dev/personal/notes";
|
||||
|
||||
ignore_patterns = ''
|
||||
!.env*
|
||||
!.github/
|
||||
!.gitignore
|
||||
!*.tfvars
|
||||
.terraform/
|
||||
.target/
|
||||
/Library/
|
||||
keybase/
|
||||
kbfs/
|
||||
'';
|
||||
|
||||
in {
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
@ -283,10 +295,13 @@ in {
|
||||
"direnvrc".text = "source $HOME/.nix-profile/share/nix-direnv/direnvrc";
|
||||
"spectrwm/spectrwm.conf".source = ./spectrwm.conf;
|
||||
};
|
||||
home.file = {
|
||||
".rgignore".text = ignore_patterns;
|
||||
".fdignore".text = ignore_patterns;
|
||||
};
|
||||
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
nix-direnv.enable = true;
|
||||
config = { whitelist = { prefix = [ "${dotfiles}/" ]; }; };
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user