restoring to latest 'valid' state
This commit is contained in:
parent
a79dccf55a
commit
34874dd592
6 changed files with 9 additions and 43 deletions
|
@ -1,4 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
kaas = false;
|
|
||||||
}
|
|
|
@ -1,4 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
kaas = true;
|
|
||||||
}
|
|
|
@ -1,4 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
kaas = true;
|
|
||||||
}
|
|
|
@ -20,10 +20,8 @@ in rec
|
||||||
|
|
||||||
specialArgs = {inherit lib inputs system; };
|
specialArgs = {inherit lib inputs system; };
|
||||||
|
|
||||||
modules =
|
modules = let
|
||||||
let
|
|
||||||
stateVersion = "23.11";
|
stateVersion = "23.11";
|
||||||
|
|
||||||
users = attrNames (mapModules "${path}/users" (p: p));
|
users = attrNames (mapModules "${path}/users" (p: p));
|
||||||
in [
|
in [
|
||||||
inputs.nixos-boot.nixosModules.default
|
inputs.nixos-boot.nixosModules.default
|
||||||
|
@ -60,17 +58,15 @@ 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"
|
++ (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, ...}:
|
||||||
|
|
|
@ -27,7 +27,7 @@ in rec
|
||||||
name = removeSuffix ".nix" (baseNameOf path);
|
name = removeSuffix ".nix" (baseNameOf path);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = (mapModulesRec' ../modules/home (file: file));
|
# 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.
|
||||||
|
|
|
@ -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;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue