Restructure home-manager config

This commit is contained in:
ItsDrike 2024-03-24 13:18:51 +01:00
parent 019372838b
commit b4acb6e15f
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
6 changed files with 138 additions and 151 deletions

View file

@ -1,9 +1,12 @@
{ config, lib, ... }: with lib; let
{ config, lib, pkgs, ... }: with lib; let
cfg = config.myOptions.system;
in
{
networking.hostName = cfg.hostname;
# Default shell for the user
programs.zsh.enable = true;
users = {
# Prevent mutating users outside of our configurations.
# TODO: Solve this, currentry it fails with no password
@ -15,6 +18,7 @@ in
users.${cfg.username} = {
isNormalUser = true;
extraGroups = [ "wheel" ];
shell = pkgs.zsh;
};
};
}