add steam
This commit is contained in:
parent
9024408339
commit
ebdbb2226c
5 changed files with 50 additions and 7 deletions
|
@ -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;
|
||||
|
|
|
@ -5,6 +5,7 @@ with lib;
|
|||
./containers
|
||||
./de
|
||||
./editor
|
||||
./games
|
||||
./hardware
|
||||
./lib.nix
|
||||
./programs
|
||||
|
|
5
nixos/modules/nixos/games/default.nix
Normal file
5
nixos/modules/nixos/games/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./steam
|
||||
];
|
||||
}
|
5
nixos/modules/nixos/games/steam/default.nix
Normal file
5
nixos/modules/nixos/games/steam/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./steam.nix
|
||||
];
|
||||
}
|
24
nixos/modules/nixos/games/steam/steam.nix
Normal file
24
nixos/modules/nixos/games/steam/steam.nix
Normal 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
|
||||
];
|
||||
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue