diff options
author | makefu <github@syntax-fehler.de> | 2021-01-27 23:04:50 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2021-01-27 23:04:54 +0100 |
commit | 4c9a1d5666de6eede96cba1c10d6815f09730441 (patch) | |
tree | 284f45698f2c7ed8aac61e7e87085e98e52a74ee /makefu/2configs/home-manager/zsh.nix | |
parent | 426e0b0c6de8a16228811bf81c467b209b0b3ad7 (diff) |
ma home-manager: use old nixify script again
Diffstat (limited to 'makefu/2configs/home-manager/zsh.nix')
-rw-r--r-- | makefu/2configs/home-manager/zsh.nix | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/makefu/2configs/home-manager/zsh.nix b/makefu/2configs/home-manager/zsh.nix index 74ac12e7f..cf6f1d334 100644 --- a/makefu/2configs/home-manager/zsh.nix +++ b/makefu/2configs/home-manager/zsh.nix @@ -8,7 +8,7 @@ }; }; imports = [ - { #direnv + { home-manager.users.makefu.home.packages = [ (pkgs.writers.writeDashBin "privatefox" "exec firefox -P Privatefox") ]; @@ -23,12 +23,34 @@ }; } ]; - environment.pathsToLink = [ "/share/zsh" ]; + environment.pathsToLink = [ + "/share/zsh" + ]; - programs.direnv.enable = true; - programs.direnv.enableNixDirenvIntegration = true; + nix.extraOptions = '' + keep-outputs = true + keep-derivations = true + ''; home-manager.users.makefu = { + + programs.direnv.enable = true; + programs.direnv.enableNixDirenvIntegration = true; + programs.direnv.enableZshIntegration = true; + home.packages = [ (pkgs.writeDashBin "nixify" '' +test ! -e shell.nix && cat > shell.nix <<EOF +{ pkgs ? import <nixpkgs> {}}: + +pkgs.mkShell { + nativeBuildInputs = [ pkgs.hello ]; +} +EOF +echo "use nix" >> .envrc +direnv allow +'') + ]; + #home.packages = [ pkgs.direnv pkgs.nix-direnv ]; + programs.fzf.enable = false; # alt-c programs.zsh = { enable = true; |