restoring to latest 'valid' state

This commit is contained in:
Chris Kruining 2025-03-18 22:30:48 +01:00
parent a79dccf55a
commit 34874dd592
6 changed files with 9 additions and 43 deletions

View file

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

View file

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

View file

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

View file

@ -20,10 +20,8 @@ in rec
specialArgs = {inherit lib inputs system; };
modules =
let
modules = let
stateVersion = "23.11";
users = attrNames (mapModules "${path}/users" (p: p));
in [
inputs.nixos-boot.nixosModules.default
@ -60,17 +58,15 @@ in rec
(filterAttrs (n: v: !elem n ["system"]) attrs)
../. # ../default.nix
(import path)
];
# ++ (map (user: {
# _module.args.user = user;
]
++ (map (user: {
_module.args.user = user;
# imports = [
# "${path}/users/${user}/test.nix"
# ]
# ++ (mapModulesRec' ../modules/home (file: file));
imports = []
++ (mapModulesRec' ../modules/home (file: file));
# modules.${user} = (import "${path}/users/${user}/default.nix" args);
# }) users);
modules.${user} = (import "${path}/users/${user}/default.nix" args);
}) users);
};
mapHosts = dir: attrs @ {system ? system, ...}:

View file

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

View file

@ -1,18 +0,0 @@
{ lib, user, config, ... }:
{
options = let
inherit (lib) mkOption;
in
{
kaas = mkOption {
type = lib.types.bool;
default = true;
example = true;
description = "";
};
};
config = {
modules.${user}.themes.enable = config.kaas;
};
}