mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
Fix various issues
This commit is contained in:
parent
0793eaa1c3
commit
2a01d89740
@ -44,7 +44,7 @@ with lib; {
|
|||||||
|
|
||||||
elss = {
|
elss = {
|
||||||
locale.enable = mkDefault true;
|
locale.enable = mkDefault true;
|
||||||
zsh.enable = mkdDefault true;
|
zsh.enable = mkDefault true;
|
||||||
};
|
};
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
|
|||||||
@ -37,8 +37,7 @@ with lib; {
|
|||||||
description = "Email address of the user";
|
description = "Email address of the user";
|
||||||
};
|
};
|
||||||
git = mkOption {
|
git = mkOption {
|
||||||
type = types.attrsOf
|
type = types.submodule {
|
||||||
(types.submodule {
|
|
||||||
options = {
|
options = {
|
||||||
key = mkOption {
|
key = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
@ -57,7 +56,7 @@ with lib; {
|
|||||||
description = "Whether to force signing commits or not";
|
description = "Whether to force signing commits or not";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
@ -163,11 +162,20 @@ with lib; {
|
|||||||
(mapUsers mkUser)
|
(mapUsers mkUser)
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
home-manager.users = mapAllUsersAndRoot (login:
|
home-manager = {
|
||||||
|
useUserPackages = true;
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
users =
|
||||||
|
mkMerge [
|
||||||
|
(mapAllUsers mkX11User)
|
||||||
|
(mapAllUsers mkGitUser)
|
||||||
|
(mapAllUsersAndRoot (login:
|
||||||
mkMerge [
|
mkMerge [
|
||||||
{ config.home.stateVersion = mkDefault "21.11"; }
|
{ config.home.stateVersion = mkDefault "21.11"; }
|
||||||
(if homeConfigurations ? "${login}" then homeConfigurations."${login}" else { })
|
(if homeConfigurations ? "${login}" then homeConfigurations."${login}" else { })
|
||||||
]
|
]))
|
||||||
);
|
];
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,11 @@
|
|||||||
{ config, pkgs, lib, ...}:
|
{ config, pkgs, lib, ... }:
|
||||||
with lib; {
|
with lib; {
|
||||||
options.elss.zsh.enable = mkEnableOption "Setup systemwide zsh";
|
options.elss.zsh.enable = mkEnableOption "Setup systemwide zsh";
|
||||||
config = {
|
config =
|
||||||
|
let
|
||||||
|
inherit (elss.withConfig config) mapAllUsers;
|
||||||
|
in
|
||||||
|
mkIf config.elss.zsh.enable {
|
||||||
environment = {
|
environment = {
|
||||||
shells = [ pkgs.zsh ];
|
shells = [ pkgs.zsh ];
|
||||||
pathsToLink = [ "/share/zsh/" ];
|
pathsToLink = [ "/share/zsh/" ];
|
||||||
@ -30,5 +34,9 @@ with lib; {
|
|||||||
setOptions = [ "auto_pushd" "correct" "nocaseglob" "rcexpandparam" "numericglobsort" "nobeep" "appendhistory" ];
|
setOptions = [ "auto_pushd" "correct" "nocaseglob" "rcexpandparam" "numericglobsort" "nobeep" "appendhistory" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
users.users = mapAllUsers (_: { shell = pkgs.zsh; }
|
||||||
|
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user