feat: enable home-manager command on non-NixOS

This commit is contained in:
Swarsel 2024-07-26 13:11:04 +02:00
parent 57426b9bf3
commit e66390bd1f
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
3 changed files with 6 additions and 10 deletions

View file

@ -1825,7 +1825,7 @@ My old laptop, replaced by a new one, since most basic functions have stopped to
gpgconf --launch gpg-agent
";
home-manager.users.swarsel.swarselsystems = {
swarselsystems = {
isLaptop = true;
isNixos = false;
wallpaper = ../../wallpaper/surfacewp.png;
@ -5611,15 +5611,13 @@ This section sets up all the imports that are used in the home-manager section.
};
};
programs = {
git.enable = true;
};
programs.home-manager.enable = lib.mkIf (!config.swarselsystems.isNixos) true;
home = {
username = lib.mkDefault "swarsel";
homeDirectory = lib.mkDefault "/home/${config.home.username}";
stateVersion = lib.mkDefault "23.05";
keyboard.layout = "us"; # TEMPLATE
keyboard.layout = "us";
sessionVariables = {
FLAKE = "$HOME/.dotfiles";
};