move all zsh options to the module

This commit is contained in:
jacekpoz 2024-02-14 15:38:28 +01:00
parent 01a5b312b9
commit 06c4893c05
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C
2 changed files with 9 additions and 5 deletions

View file

@ -138,14 +138,9 @@
users.users.${config'.username} = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "libvirtd" ];
shell = pkgs.zsh;
};
programs.zsh.enable = true;
environment = {
shells = [ pkgs.zsh ];
pathsToLink = [ "/share/zsh" ];
sessionVariables = {
TERM = "foot";
EDITOR = "${pkgs.neovim}/bin/nvim";

View file

@ -22,6 +22,15 @@ in {
};
config = mkIf cfg.enable {
programs.zsh.enable = true;
users.users.${config'.username}.shell = pkgs.zsh;
environment = {
shells = [ pkgs.zsh ];
pathsToLink = [ "/share/zsh" ];
};
home-manager.users.${config'.username} = {
programs.zsh = {
enable = true;