Unified home and system modules!
This commit is contained in:
15
modules/gaming/lutris.nix
Normal file
15
modules/gaming/lutris.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.samfelag.modules.gaming.lutris;
|
||||
in
|
||||
{
|
||||
options.samfelag.modules.gaming.lutris = {
|
||||
enable = lib.mkEnableOption "lutris";
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
hm.home.packages = with pkgs; [
|
||||
lutris
|
||||
];
|
||||
};
|
||||
}
|
||||
17
modules/gaming/steam.nix
Normal file
17
modules/gaming/steam.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.samfelag.modules.gaming.steam;
|
||||
in
|
||||
{
|
||||
options.samfelag.modules.gaming.steam = {
|
||||
enable = lib.mkEnableOption "steam";
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
||||
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user