fix home manager config

This commit is contained in:
Osman Faruk Bayram 2025-10-21 16:21:07 +03:00
parent 926314380b
commit bc3f697cff
3 changed files with 12 additions and 12 deletions

View file

@ -25,16 +25,17 @@
extraSpecialArgs = { inherit inputs; };
# Configure home-manager for each user (excluding root)
users =
users =
let
# Capture the NixOS system config before entering the home-manager scope
systemConfig = config;
in
lib.genAttrs (builtins.filter (u: u != "root") config.osbmModules.users) (username: {
home.stateVersion = lib.mkDefault "24.05";
imports = [
../../home-manager
]
# Use the system's stateVersion for home-manager
home.stateVersion = lib.mkDefault systemConfig.system.stateVersion;
imports = [
../../home-manager
]
++ lib.optionals systemConfig.osbmModules.hardware.disko.zfs.root.impermanenceRoot [
# Import impermanence home-manager module when impermanence is enabled
inputs.impermanence.homeManagerModules.impermanence