fork/home-manager
git clone https://git.julia.blue/fork/home-manager
7e81e7ae
master
1{ lib , pkgs , ...} : 2 3let 4fishRegex = '' 5function __fish_command_not_found_handler --on-event fish_command_not_found 6/nix/store/.*command-not-found $argv 7end 8'' ; 9in { 10config = { 11programs . bash . enable = true ; 12programs . fish . enable = true ; 13programs . zsh . enable = true ; 14 15# Needed to avoid error with dummy fish package. 16xdg . dataFile . "fish/home-manager_generated_completions" . source = 17lib . mkForce ( builtins . toFile "empty" "" ); 18 19test . stubs . zsh = { }; 20 21programs . nix-index . enable = true ; 22 23nmt . script = '' 24# Bash integration 25assertFileExists home-files/.bashrc 26assertFileRegex \ 27home-files/.bashrc \ 28'source /nix/store/.*nix-index.*/etc/profile.d/command-not-found.sh' 29 30# Zsh integration 31assertFileExists home-files/.zshrc 32assertFileRegex \ 33home-files/.zshrc \ 34'source /nix/store/.*nix-index.*/etc/profile.d/command-not-found.sh' 35 36# Fish integration 37assertFileExists home-files/.config/fish/config.fish 38assertFileRegex \ 39home-files/.config/fish/config.fish ' ${ fishRegex } ' 40'' ; 41}; 42}