diff options
author | Adrian Kummerlaender | 2020-02-18 11:43:59 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2020-02-18 11:43:59 +0100 |
commit | 93f4e0377caa800cb6514083f13eec51a2822846 (patch) | |
tree | f55bccb27134d23fc949c14354f0b1f359bfe237 | |
parent | 223ef7dfcdefd61644267cc5d73d33e61da5e8a0 (diff) | |
download | nixos_home-93f4e0377caa800cb6514083f13eec51a2822846.tar nixos_home-93f4e0377caa800cb6514083f13eec51a2822846.tar.gz nixos_home-93f4e0377caa800cb6514083f13eec51a2822846.tar.bz2 nixos_home-93f4e0377caa800cb6514083f13eec51a2822846.tar.lz nixos_home-93f4e0377caa800cb6514083f13eec51a2822846.tar.xz nixos_home-93f4e0377caa800cb6514083f13eec51a2822846.tar.zst nixos_home-93f4e0377caa800cb6514083f13eec51a2822846.zip |
Replace lorri with custom persistent-nix-shell
Lorri has shown itself to be rather unstable for my particular use case:
* It is unclear when derivations are actually rebuilt
* Polling did not seem consistent, i.e. I had to issue manual `ping_` calls
* I do not want to issue manual `lorri watch` calls to fix this
* It sporadically started building GC roots without any clear reason for doing so
In the end all I really want is a way to prevent nix-shells from being
garbage-collected. In this scenario using lorri is overkill.
`persistent-nix-shell` is a simple wrapper around `nix-shell` that adds
GC roots prior to entering the environment.
-rw-r--r-- | home.nix | 22 |
1 files changed, 6 insertions, 16 deletions
@@ -1,7 +1,7 @@ { config, pkgs, ... }: { - custom.pkgs = import ~/projects/dev/pkgs/default.nix { }; + custom.pkgs = import <mypkgs> { }; custom.nixpkgs-unstable = import <nixpkgs-unstable> { }; imports = [ @@ -17,8 +17,9 @@ home = { keyboard.layout = "de"; - packages = with pkgs; [ - pass + packages = [ + pkgs.pass + config.custom.pkgs.persistent-nix-shell ]; }; @@ -61,18 +62,7 @@ }; programs.fish.shellAliases = { - ns = "nix-shell --command fish"; - cat = "bat"; + ns = "persistent-nix-shell --command fish"; + cat = "bat --plain"; }; - - services.lorri.enable = true; - - programs.direnv = { - enable = true; - enableFishIntegration = true; - }; - - programs.fish.interactiveShellInit = '' - set -x DIRENV_LOG_FORMAT "" - ''; } |