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