mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-12 03:07: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
|
|
@ -85,6 +85,8 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||||
netbird.enable = true;
|
netbird.enable = true;
|
||||||
prusa-slicer.enable = true;
|
prusa-slicer.enable = true;
|
||||||
spotifyd.enable = true;
|
spotifyd.enable = true;
|
||||||
|
# Gaming
|
||||||
|
steam.enable = true;
|
||||||
# Programming Stuff
|
# Programming Stuff
|
||||||
nixpkgs-fmt.enable = true;
|
nixpkgs-fmt.enable = true;
|
||||||
python3.enable = true;
|
python3.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./applications
|
./applications
|
||||||
|
./gaming
|
||||||
./programming
|
./programming
|
||||||
./utilities
|
./utilities
|
||||||
];
|
];
|
||||||
|
|
|
||||||
6
modules/common/gaming/default.nix
Normal file
6
modules/common/gaming/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./steam.nix
|
||||||
|
]
|
||||||
|
}
|
||||||
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