mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-12 19:37:57 -05:00
Adding Steam To kim Config
This commit is contained in:
parent
78e5c76c39
commit
6ce493a5f6
4 changed files with 29 additions and 0 deletions
20
modules/common/gaming/steam.nix
Normal file
20
modules/common/gaming/steam.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
options = {
|
||||
steam = {
|
||||
enable = lib.mkEnableOption {
|
||||
description = "Enable Steam";
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
config = lib.mkIf (config.gui.enable && config.steam.enable) {
|
||||
home-manager.users.${config.user} = {
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue