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)
|
||||
../. # ../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 = [
|
||||
# "${path}/users/${user}/test.nix"
|
||||
# ]
|
||||
# ++ (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, ...}:
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
inherit (builtins) baseNameOf;
|
||||
inherit (lib.attrsets) filterAttrs;
|
||||
inherit (lib.strings) removeSuffix;
|
||||
inherit (lib.my) mapModulesRec';
|
||||
in rec
|
||||
{
|
||||
mkSysUser = path: let
|
||||
|
@ -26,6 +27,7 @@ in rec
|
|||
name = removeSuffix ".nix" (baseNameOf path);
|
||||
in
|
||||
{
|
||||
imports = (mapModulesRec' ../modules/home (file: file));
|
||||
home = {
|
||||
inherit stateVersion;
|
||||
sessionPath = [ "$SNEEUWVLOK_BIN" "$XDG_BIN_HOME" "$PATH" ]; # Pretty sure I don't need this.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{
|
||||
kaas = mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
default = true;
|
||||
example = true;
|
||||
description = "";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue