mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-11 11:05:23 -05:00
Changes/Tweaks To WoWUp Config
This commit is contained in:
parent
b46a589d06
commit
b1ebad795d
3 changed files with 22 additions and 10 deletions
|
|
@ -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
|
||||
'')
|
||||
]
|
||||
}
|
||||
|
|
@ -2,5 +2,6 @@
|
|||
{
|
||||
imports = [
|
||||
./steam.nix
|
||||
./wowup.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
21
modules/common/gaming/wowup.nix
Normal file
21
modules/common/gaming/wowup.nix
Normal 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
|
||||
'')
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue