Adding Steam To kim Config

This commit is contained in:
Annika Merris 2024-05-21 11:50:54 -04:00
parent 78e5c76c39
commit 6ce493a5f6
4 changed files with 29 additions and 0 deletions

View file

@ -85,6 +85,8 @@ inputs.nixpkgs.lib.nixosSystem {
netbird.enable = true;
prusa-slicer.enable = true;
spotifyd.enable = true;
# Gaming
steam.enable = true;
# Programming Stuff
nixpkgs-fmt.enable = true;
python3.enable = true;

View file

@ -2,6 +2,7 @@
{
imports = [
./applications
./gaming
./programming
./utilities
];

View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
./steam.nix
]
}

View 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;
};
};
};
}