data-dir -> state-directory
This commit is contained in:
parent
2b0809cf8c
commit
037c54cee4
|
@ -44,7 +44,11 @@ let
|
||||||
let world-name = name;
|
let world-name = name;
|
||||||
in {
|
in {
|
||||||
options = with types; {
|
options = with types; {
|
||||||
enable = mkEnableOption "Enable this world.";
|
enable = mkOption {
|
||||||
|
type = bool;
|
||||||
|
description = "Enable this world.";
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
|
||||||
world-name = mkOption {
|
world-name = mkOption {
|
||||||
type = str;
|
type = str;
|
||||||
|
@ -180,7 +184,7 @@ in {
|
||||||
users = {
|
users = {
|
||||||
users."${cfg.user}" = {
|
users."${cfg.user}" = {
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
home = cfg.data-dir;
|
home = cfg.state-directory;
|
||||||
group = cfg.group;
|
group = cfg.group;
|
||||||
createHome = true;
|
createHome = true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue