Set default root module to ./home/root.nix

This commit is contained in:
NullBite 2024-01-23 22:35:26 +01:00
parent 49e9fad614
commit 3ebd030fec
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -53,7 +53,7 @@
# This function produces a module that adds the home-manager module to the # This function produces a module that adds the home-manager module to the
# system and configures the given module to the user's Home Manager # system and configures the given module to the user's Home Manager
# configuration # configuration
homeManagerInit = {system, username ? _username , module ? _ : {}, rootModule ? _:{}, userModules ? { ${username} = [ module ] ; root = [ rootModule ]; }, stateVersion }: homeManagerInit = {system, username ? _username , module ? _ : {}, rootModule ? (import ./home/root.nix), userModules ? { ${username} = [ module ] ; root = [ rootModule ]; }, stateVersion }:
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let let
mapUserModules = lib.attrsets.mapAttrs (user: modules: {...}: mapUserModules = lib.attrsets.mapAttrs (user: modules: {...}: