add steam

This commit is contained in:
Joseph Hanson 2024-10-09 12:06:31 -05:00
parent 9024408339
commit ebdbb2226c
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
5 changed files with 50 additions and 7 deletions

View file

@ -26,23 +26,31 @@
# Enable Flatpak support
services.flatpak.enable = true;
# Enablet Wireshark
programs.wireshark.enable = true;
## Base config programs.
programs = {
# Enable Wireshark
wireshark = {
enable = true;
};
};
# KDE Wallet PAM integration for unlocking the default wallet on login
security.pam.services."sddm".kwallet.enable = true;
# System settings and services.
## System settings and services.
mySystem = {
purpose = "Development";
# Desktop Environment
# Gnome
## Desktop Environment
## Gnome
# de.gnome.enable = true;
# KDE
## KDE
de.kde.enable = true;
# System config
## Games
games.steam.enable = true;
## System config
system = {
motd.networkInterfaces = [ "wlp1s0" ];
fingerprint-reader-on-laptop-lid.enable = true;

View file

@ -5,6 +5,7 @@ with lib;
./containers
./de
./editor
./games
./hardware
./lib.nix
./programs

View file

@ -0,0 +1,5 @@
{
imports = [
./steam
];
}

View file

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

View file

@ -0,0 +1,24 @@
{ config, lib, pkgs, ... }:
let
cfg = config.mySystem.games.steam;
in
{
options.mySystem.games.steam = {
enable = lib.mkEnableOption "Steam";
};
config = lib.mkIf cfg.enable {
# Steam Games
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
};
# Need that glorious eggroll
environment.systemPackages = with pkgs; [
protonup-qt
];
};
}