admin: add group www
This commit is contained in:
parent
1e5e9b9dfd
commit
d9f629f3a9
5 changed files with 100 additions and 0 deletions
55
modules/home/workstation/gaming/world-of-warcraft.nix
Normal file
55
modules/home/workstation/gaming/world-of-warcraft.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption mkOption;
|
||||
inherit (lib.types) str package;
|
||||
inherit (config.ooknet) gaming;
|
||||
gamesDir = config.xdg.userDirs.extraConfig.XDG_GAMES_DIR;
|
||||
cfg = config.ooknet.gaming.world-of-warcraft;
|
||||
in {
|
||||
options.ooknet.gaming.world-of-warcraft = {
|
||||
enable = mkEnableOption "Enable the World of Warcraft module";
|
||||
|
||||
proton = {
|
||||
package = mkOption {
|
||||
type = package;
|
||||
default = pkgs.proton-ge-custom;
|
||||
};
|
||||
prefix = {
|
||||
path = mkOption {
|
||||
type = str;
|
||||
default = "${gaming.prefixPath}/WoW";
|
||||
};
|
||||
};
|
||||
compatDataPath = mkOption {
|
||||
type = str;
|
||||
default = "${gaming.compatDataPath}/";
|
||||
};
|
||||
};
|
||||
|
||||
gamePrefixPath = mkOption {
|
||||
type = str;
|
||||
default = "${cfg.winePrefixesPath}/WoW";
|
||||
description = "Location where the World of Warcraft prefix will be stored.";
|
||||
};
|
||||
|
||||
gamePath = mkOption {
|
||||
type = str;
|
||||
default = "${cfg.world-of-warcraft.gamePrefixPath}/drive_c/Program Files (x86)/World of Warcraft";
|
||||
description = "Location where the World of Warcraft installation will be symlinked.";
|
||||
};
|
||||
|
||||
gameSharedPath = mkOption {
|
||||
type = str;
|
||||
default = "${cfg.wineProgramsPath}/World Of Warcraft";
|
||||
description = "Location where World of Warcraft game files are stored.";
|
||||
};
|
||||
};
|
||||
config =
|
||||
mkIf cfg.enable {
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue