Skip to content

Commit

Permalink
feat(gaming): add heroic game launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
zakuciael committed Oct 6, 2024
1 parent 6babe72 commit 85aab81
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 9 deletions.
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions hosts/pc/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ in {
steam.enable = true;
mihoyo.enable = true;
minecraft.enable = true;
heroic.enable = true;
disks = {
linux.device = "/dev/disk/by-partlabel/linux-games";
windows.device = "/dev/disk/by-partlabel/windows-games";
Expand Down
22 changes: 22 additions & 0 deletions modules/desktop/gaming/heroic.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
config,
lib,
pkgs,
username,
...
}:
with lib;
with lib.my;
with lib.my.utils; let
cfg = config.modules.desktop.gaming.heroic;
in {
options.modules.desktop.gaming.heroic = {
enable = mkEnableOption "Heroic Game Launcher";
};

config = mkIf (cfg.enable) {
home-manager.users.${username} = {
home.packages = with pkgs; [heroic];
};
};
}

0 comments on commit 85aab81

Please sign in to comment.