Enable nix-direnv integration to cache direnv builds
This commit is contained in:
parent
f2c490e3ca
commit
825c809fa0
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@
|
|||
.python-version
|
||||
.DS_Store
|
||||
__pycache__
|
||||
.direnv
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
.git*
|
||||
.pre-commit-config.yaml
|
||||
.stylua.toml
|
||||
.envrc
|
||||
./shell.nix
|
||||
Makefile
|
||||
|
|
2
Makefile
2
Makefile
|
@ -39,7 +39,7 @@ waybar: $(CONFIG_DIR)/waybar
|
|||
command -v nix > /dev/null || echo "Install nix package manager before continuing"; exit 1
|
||||
|
||||
/etc/nixos/config:
|
||||
sudo rsync -avz --exclude-from=.rsyncignore --delete-during --delete-excluded ./ $@
|
||||
sudo rsync -avz --exclude-from=.rsyncignore --filter=':- .gitignore' --delete-during --delete-excluded ./ $@
|
||||
|
||||
$(HOMEMANAGER_CONFIG_DIR)/home.nix: $(HOMEMANAGER_CONFIG_DIR) /nix
|
||||
[ -f $(HOMEMANAGER_CONFIG) ] || touch $(HOMEMANAGER_CONFIG)
|
||||
|
|
|
@ -45,4 +45,9 @@
|
|||
dates = "daily";
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
|
||||
nix.extraOptions = ''
|
||||
keep-outputs = true
|
||||
keep-derivations = true
|
||||
'';
|
||||
}
|
||||
|
|
5
home/env/direnv.nix
vendored
5
home/env/direnv.nix
vendored
|
@ -1,3 +1,6 @@
|
|||
{...}: {
|
||||
programs.direnv.enable = true;
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue