data-dir -> state-directory

This commit is contained in:
niten 2022-09-06 13:23:07 -07:00
parent 2b0809cf8c
commit 037c54cee4
1 changed files with 6 additions and 2 deletions

View File

@ -44,7 +44,11 @@ let
let world-name = name;
in {
options = with types; {
enable = mkEnableOption "Enable this world.";
enable = mkOption {
type = bool;
description = "Enable this world.";
default = true;
};
world-name = mkOption {
type = str;
@ -180,7 +184,7 @@ in {
users = {
users."${cfg.user}" = {
isSystemUser = true;
home = cfg.data-dir;
home = cfg.state-directory;
group = cfg.group;
createHome = true;
};