This commit is contained in:
Chris Kruining 2025-03-18 22:18:46 +01:00
parent 1172e2bd68
commit a79dccf55a
6 changed files with 21 additions and 11 deletions

View file

@ -1,4 +1,4 @@
{ ... }: { ... }:
{ {
kaas = true; kaas = false;
} }

View file

@ -0,0 +1,4 @@
{ ... }:
{
kaas = true;
}

View file

@ -0,0 +1,4 @@
{ ... }:
{
kaas = true;
}

View file

@ -60,17 +60,17 @@ in rec
(filterAttrs (n: v: !elem n ["system"]) attrs) (filterAttrs (n: v: !elem n ["system"]) attrs)
../. # ../default.nix ../. # ../default.nix
(import path) (import path)
] ];
++ (map (user: { # ++ (map (user: {
_module.args.user = user; # _module.args.user = user;
imports = [ # imports = [
"${path}/users/${user}/test.nix" # "${path}/users/${user}/test.nix"
] # ]
++ (mapModulesRec' ../modules/home (file: file)); # ++ (mapModulesRec' ../modules/home (file: file));
modules.${user} = (import "${path}/users/${user}/default.nix" args); # modules.${user} = (import "${path}/users/${user}/default.nix" args);
}) users); # }) users);
}; };
mapHosts = dir: attrs @ {system ? system, ...}: mapHosts = dir: attrs @ {system ? system, ...}:

View file

@ -2,6 +2,7 @@
inherit (builtins) baseNameOf; inherit (builtins) baseNameOf;
inherit (lib.attrsets) filterAttrs; inherit (lib.attrsets) filterAttrs;
inherit (lib.strings) removeSuffix; inherit (lib.strings) removeSuffix;
inherit (lib.my) mapModulesRec';
in rec in rec
{ {
mkSysUser = path: let mkSysUser = path: let
@ -26,6 +27,7 @@ in rec
name = removeSuffix ".nix" (baseNameOf path); name = removeSuffix ".nix" (baseNameOf path);
in in
{ {
imports = (mapModulesRec' ../modules/home (file: file));
home = { home = {
inherit stateVersion; inherit stateVersion;
sessionPath = [ "$SNEEUWVLOK_BIN" "$XDG_BIN_HOME" "$PATH" ]; # Pretty sure I don't need this. sessionPath = [ "$SNEEUWVLOK_BIN" "$XDG_BIN_HOME" "$PATH" ]; # Pretty sure I don't need this.

View file

@ -6,7 +6,7 @@
{ {
kaas = mkOption { kaas = mkOption {
type = lib.types.bool; type = lib.types.bool;
default = false; default = true;
example = true; example = true;
description = ""; description = "";
}; };