From 037c54cee4ba087107037390cbf86346d8873b2c Mon Sep 17 00:00:00 2001 From: niten Date: Tue, 6 Sep 2022 13:23:07 -0700 Subject: [PATCH] data-dir -> state-directory --- lib/fudo/minecraft-clj.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/fudo/minecraft-clj.nix b/lib/fudo/minecraft-clj.nix index 7184065..085adc0 100644 --- a/lib/fudo/minecraft-clj.nix +++ b/lib/fudo/minecraft-clj.nix @@ -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; };