fix: only enable matched user homes
This commit is contained in:
parent
cfaa78937e
commit
880d907905
3 changed files with 10 additions and 3 deletions
|
|
@ -16,7 +16,6 @@ let
|
||||||
mapAttrsToList
|
mapAttrsToList
|
||||||
optionals
|
optionals
|
||||||
mkDefault
|
mkDefault
|
||||||
traceSeqN
|
|
||||||
mkAliasDefinitions
|
mkAliasDefinitions
|
||||||
mkAliasAndWrapDefinitions
|
mkAliasAndWrapDefinitions
|
||||||
mkOption
|
mkOption
|
||||||
|
|
@ -279,7 +278,10 @@ in
|
||||||
config = mkIf host-matches {
|
config = mkIf host-matches {
|
||||||
# Initialize user information.
|
# Initialize user information.
|
||||||
snowfallorg.user.${user-name}.home.config = {
|
snowfallorg.user.${user-name}.home.config = {
|
||||||
snowfallorg.user.name = mkDefault user-name;
|
snowfallorg.user = {
|
||||||
|
enable = true;
|
||||||
|
name = mkDefault user-name;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ in
|
||||||
user = {
|
user = {
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = true;
|
default = false;
|
||||||
description = "Whether to configure the user.";
|
description = "Whether to configure the user.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,11 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
|
enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
|
||||||
path = mkOption {
|
path = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "/home/${name}";
|
default = "/home/${name}";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue