admin: add group www

This commit is contained in:
ooks-io 2024-11-01 12:47:49 +11:00
parent 1e5e9b9dfd
commit d9f629f3a9
5 changed files with 100 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{
lib,
config,
...
}: let
inherit (lib) mkIf mkEnableOption mkOption;
inherit (lib.types) str;
cfg = config.ooknet.gaming;
in {
options.ooknet.gaming = {
enable = mkEnableOption;
gamesPath = mkOption {
type = str;
default = "${config.home.homeDirectory}/Games";
description = "Location where games will be stored.";
};
prefixPath = mkOption {
type = str;
default = "${cfg.gamesPath}/prefixes";
};
compatDataPath = mkOption {
type = str;
default = "${cfg.prefixPath}/compatdata";
};
};
config = mkIf cfg.enable {
xdg.userDirs.XDG_GAMES_DIR = cfg.gamesPath;
};
}