stash
This commit is contained in:
parent
1172e2bd68
commit
a79dccf55a
6 changed files with 21 additions and 11 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
kaas = true;
|
kaas = false;
|
||||||
}
|
}
|
||||||
|
|
4
hosts/orome/users/chris/test.nix
Normal file
4
hosts/orome/users/chris/test.nix
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
kaas = true;
|
||||||
|
}
|
4
hosts/orome/users/kaas/test.nix
Normal file
4
hosts/orome/users/kaas/test.nix
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
kaas = true;
|
||||||
|
}
|
|
@ -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, ...}:
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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 = "";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue