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 gpgconf --launch gpg-agent
"; ";
home-manager.users.swarsel.swarselsystems = { swarselsystems = {
isLaptop = true; isLaptop = true;
isNixos = false; isNixos = false;
wallpaper = ../../wallpaper/surfacewp.png; wallpaper = ../../wallpaper/surfacewp.png;
@ -5611,15 +5611,13 @@ This section sets up all the imports that are used in the home-manager section.
}; };
}; };
programs = { programs.home-manager.enable = lib.mkIf (!config.swarselsystems.isNixos) true;
git.enable = true;
};
home = { home = {
username = lib.mkDefault "swarsel"; username = lib.mkDefault "swarsel";
homeDirectory = lib.mkDefault "/home/${config.home.username}"; homeDirectory = lib.mkDefault "/home/${config.home.username}";
stateVersion = lib.mkDefault "23.05"; stateVersion = lib.mkDefault "23.05";
keyboard.layout = "us"; # TEMPLATE keyboard.layout = "us";
sessionVariables = { sessionVariables = {
FLAKE = "$HOME/.dotfiles"; FLAKE = "$HOME/.dotfiles";
}; };

View file

@ -41,15 +41,13 @@
}; };
}; };
programs = { programs.home-manager.enable = lib.mkIf (!config.swarselsystems.isNixos) true;
git.enable = true;
};
home = { home = {
username = lib.mkDefault "swarsel"; username = lib.mkDefault "swarsel";
homeDirectory = lib.mkDefault "/home/${config.home.username}"; homeDirectory = lib.mkDefault "/home/${config.home.username}";
stateVersion = lib.mkDefault "23.05"; stateVersion = lib.mkDefault "23.05";
keyboard.layout = "us"; # TEMPLATE keyboard.layout = "us";
sessionVariables = { sessionVariables = {
FLAKE = "$HOME/.dotfiles"; FLAKE = "$HOME/.dotfiles";
}; };

View file

@ -23,7 +23,7 @@ export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent gpgconf --launch gpg-agent
"; ";
home-manager.users.swarsel.swarselsystems = { swarselsystems = {
isLaptop = true; isLaptop = true;
isNixos = false; isNixos = false;
wallpaper = ../../wallpaper/surfacewp.png; wallpaper = ../../wallpaper/surfacewp.png;