feat: add home-manager directly in NixOS-95

For users that already use home-manager, this shouldn't change anything (they just have to pin the home-manager input to their own version).
However for users that currently do not use home-manager this will allow them to not care about it.

This way, home-manager will become an 'implementation detail'
This commit is contained in:
gytic 2025-08-21 10:26:55 +02:00
parent 11686d0192
commit 8b2e87c159
4 changed files with 17 additions and 8 deletions

View file

@ -2,6 +2,9 @@
cfg = config.nixos95;
in lib.mkIf cfg.enable {
home-manager.users.${cfg.user}.home.stateVersion = lib.mkDefault "25.05";
services.xserver = {
enable = true;
desktopManager.xfce.enable = true;

View file

@ -1,4 +1,4 @@
{ config, lib, ...}: let
{ home-manager }: { config, lib, ...}: let
cfg = config.nixos95;
in {
@ -14,6 +14,8 @@ in {
};
imports = [
home-manager.nixosModules.home-manager
./core.nix
./desktop.nix
./keybinds.nix