flake: import home and system in functions

This commit is contained in:
NullBite 2024-02-09 09:17:06 +01:00
parent 6e6cd036d2
commit 7ec042f299
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -66,7 +66,9 @@
let
mapUserModules = lib.attrsets.mapAttrs (user: modules: {...}:
{
imports = modules;
imports = [
./home
] ++ modules;
config = {
home = { inherit stateVersion; };
};
@ -96,6 +98,7 @@
lib.nixosSystem {
inherit system;
modules = [
./system
({pkgs, config, lib, ...}@args:
{
# Values for every single system that would not conceivably need