mirror of
https://github.com/youwen5/nixos.git
synced 2025-01-18 05:02:10 -08:00
refactor: modularize gaming module and fold in hamachi
This commit is contained in:
parent
ee6f29eb57
commit
ddfcbd78c8
3 changed files with 64 additions and 49 deletions
|
@ -1,10 +1,26 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.liminalOS.extras.gaming;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.liminalOS.extras.gaming = {
|
||||||
|
enable = lib.mkEnableOption "gaming";
|
||||||
|
withHamachi = lib.mkEnableOption "hamachi";
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
ryujinx
|
ryujinx
|
||||||
|
lutris
|
||||||
|
heroic
|
||||||
mangohud
|
mangohud
|
||||||
mangojuice
|
mangojuice
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
|
@ -29,7 +45,10 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.youwen.extraGroups = [ "gamemode" ];
|
users.users.${config.liminalOS.username}.extraGroups = [ "gamemode" ];
|
||||||
|
|
||||||
|
services.logmein-hamachi.enable = cfg.withHamachi;
|
||||||
|
programs.haguichi.enable = cfg.withHamachi;
|
||||||
|
|
||||||
nixpkgs.config.packageOverrides = pkgs: {
|
nixpkgs.config.packageOverrides = pkgs: {
|
||||||
steam = pkgs.steam.override {
|
steam = pkgs.steam.override {
|
||||||
|
@ -52,4 +71,5 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
{
|
|
||||||
services.logmein-hamachi.enable = true;
|
|
||||||
programs.haguichi.enable = true;
|
|
||||||
}
|
|
|
@ -12,7 +12,6 @@ in
|
||||||
++ (with pkgs; [
|
++ (with pkgs; [
|
||||||
bitwarden-desktop
|
bitwarden-desktop
|
||||||
modrinth-app
|
modrinth-app
|
||||||
lutris
|
|
||||||
sbctl
|
sbctl
|
||||||
r2modman
|
r2modman
|
||||||
zoom-us
|
zoom-us
|
||||||
|
|
Loading…
Reference in a new issue