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

View file

@ -5,6 +5,7 @@ with lib;
./containers ./containers
./de ./de
./editor ./editor
./games
./hardware ./hardware
./lib.nix ./lib.nix
./programs ./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
];
};
}