home: install direnv
This commit is contained in:
parent
e4ed36a7e6
commit
9fe637af17
5 changed files with 16 additions and 1 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
use nix
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,4 @@
|
|||
.direnv/
|
||||
|
||||
/wallpapers/*.jpg
|
||||
|
||||
|
|
|
@ -93,6 +93,11 @@ in
|
|||
zoxide.enable = true;
|
||||
};
|
||||
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
|
||||
accounts = {
|
||||
email = {
|
||||
accounts = secrets.emailAccounts;
|
||||
|
|
|
@ -120,6 +120,13 @@ in
|
|||
options = "--delete-older-than 7d";
|
||||
};
|
||||
|
||||
# To protect nix-shell against garbage collection
|
||||
# Source: https://github.com/nix-community/nix-direnv#installation
|
||||
extraOptions = ''
|
||||
keep-outputs = true
|
||||
keep-derivations = true
|
||||
'';
|
||||
|
||||
settings = {
|
||||
auto-optimise-store = true;
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ in
|
|||
|
||||
services.xserver = {
|
||||
# All monitors in the right order
|
||||
# See: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/x11/xserver.nix#L83
|
||||
# Source: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/x11/xserver.nix#L83
|
||||
xrandrHeads = [
|
||||
{
|
||||
output = "HDMI-A-0";
|
||||
|
|
Loading…
Reference in a new issue