Fix zsh
This commit is contained in:
parent
03f76257e3
commit
6bd49cd960
@ -132,5 +132,11 @@ in {
|
||||
startAt = cfg.cache.clean.dates;
|
||||
};
|
||||
|
||||
system.activationScripts = {
|
||||
homedir.text = builtins.concatStringsSep "\n" (map (dir: ''
|
||||
mkdir -p ${cfg.persistRoot}${dir}
|
||||
chown balsoft:users ${cfg.persistRoot}${dir}
|
||||
'') (builtins.filter (lib.hasPrefix "/home/balsoft") allDirectories));
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -1,10 +1,10 @@
|
||||
{ pkgs, config, ... }: {
|
||||
{ pkgs, config, lib, ... }: {
|
||||
|
||||
environment.pathsToLink = [ "/share/zsh" ];
|
||||
environment.sessionVariables.SHELL = "zsh";
|
||||
|
||||
# A history file is screwed up otherwise :(
|
||||
persist.state.directories = [ "/home/balsoft/.config/zsh/history" ];
|
||||
persist.state.directories = [ "/home/balsoft/.local/share/zsh" ];
|
||||
|
||||
home-manager.users.balsoft.programs.zsh = {
|
||||
enable = true;
|
||||
@ -21,7 +21,7 @@
|
||||
history = rec {
|
||||
size = 1000000;
|
||||
save = size;
|
||||
path = "$HOME/.config/zsh/history/file";
|
||||
path = "$HOME/.local/share/zsh/history";
|
||||
};
|
||||
plugins = [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user