no flake error

This commit is contained in:
Osman Faruk Bayram 2025-10-19 21:01:08 +03:00
parent c48f9a1fd5
commit 95c05ba9e4
11 changed files with 133 additions and 158 deletions

View file

@ -1,7 +1,7 @@
{ lib, config, inputs, ... }:
{
imports = [
imports = lib.optionals (inputs ? home-manager) [
inputs.home-manager.nixosModules.home-manager
];
@ -13,8 +13,8 @@
# Pass inputs and outputs to home-manager modules
extraSpecialArgs = { inherit inputs; };
# Configure home-manager for each user
users = lib.genAttrs config.osbmModules.users (username: {
# Configure home-manager for each user (excluding root)
users = lib.genAttrs (builtins.filter (u: u != "root") config.osbmModules.users) (username: {
home.stateVersion = lib.mkDefault "24.05";
imports = [ ../../home-manager ];
});