summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home-manager/zsh.nix
diff options
context:
space:
mode:
Diffstat (limited to 'makefu/2configs/home-manager/zsh.nix')
-rw-r--r--makefu/2configs/home-manager/zsh.nix30
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;