admin: add group www
This commit is contained in:
parent
1e5e9b9dfd
commit
d9f629f3a9
5 changed files with 100 additions and 0 deletions
31
modules/home/workstation/gaming/options.nix
Normal file
31
modules/home/workstation/gaming/options.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue