Changes/Tweaks To WoWUp Config

This commit is contained in:
Annika Merris 2024-09-17 12:55:20 -04:00
parent b46a589d06
commit b1ebad795d
3 changed files with 22 additions and 10 deletions

View file

@ -1,10 +0,0 @@
{ config, lib, pkgs, ... }:
{
home.packages = [
(pkgs.writeShellScriptBin "WoWUp.sh" ''
#!/home/${home.username}/.nix-profile/bin/bash
appimage-run /home/${home.username}/win/bin/WowUp-CF-2.20.0.AppImage
'')
]
}

View file

@ -2,5 +2,6 @@
{
imports = [
./steam.nix
./wowup.nix
];
}

View file

@ -0,0 +1,21 @@
{ config, pkgs, lib, ... }: {
options = {
wowup = {
enable = lib.mkEnableOption {
description = "Enable WowUp";
default = false;
};
};
};
config = lib.mkIf (config.wowup.enable) {
home-manager.users.${config.user} = {
home.packages = [
(pkgs.writeShellScriptBin "WoWUp.sh" ''
#!/home/${home.username}/.nix-profile/bin/bash
appimage-run /home/${home.username}/win/bin/WowUp-CF-2.20.0.AppImage
'')
];
};
};
}