From e8ed1c91b77b22a3eb6505c46fa542b53382eece Mon Sep 17 00:00:00 2001 From: Lander Van den Bulcke Date: Mon, 16 Dec 2024 02:18:44 +0100 Subject: [PATCH] feat: add steam Signed-off-by: Lander Van den Bulcke --- hosts/common/optional/steam.nix | 8 ++++++++ hosts/wodan/default.nix | 19 ++----------------- 2 files changed, 10 insertions(+), 17 deletions(-) create mode 100644 hosts/common/optional/steam.nix diff --git a/hosts/common/optional/steam.nix b/hosts/common/optional/steam.nix new file mode 100644 index 0000000..3cf0e4a --- /dev/null +++ b/hosts/common/optional/steam.nix @@ -0,0 +1,8 @@ +{...}: { + 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 + localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers + }; +} diff --git a/hosts/wodan/default.nix b/hosts/wodan/default.nix index f5e9b55..23f5411 100644 --- a/hosts/wodan/default.nix +++ b/hosts/wodan/default.nix @@ -1,7 +1,4 @@ -{pkgs, ...}: let - #vuescan = pkgs.callPackage ../common/optional/vuescan.nix {}; - #epsonscan2 = pkgs.epsonscan2.override {withNonFreePlugins = true;}; -in { +{pkgs, ...}: { imports = [ ./hardware-configuration.nix @@ -11,6 +8,7 @@ in { ../common/optional/fonts.nix ../common/optional/yubikey-gpg.nix ../common/optional/virt.nix + ../common/optional/steam.nix ]; networking = { @@ -58,8 +56,6 @@ in { awscli2 libreoffice x32edit - #epsonscan2 - #vuescan ]; nix.settings.experimental-features = ["nix-command" "flakes"]; @@ -69,16 +65,5 @@ in { services.printing.enable = true; services.printing.drivers = [pkgs.brlaser]; - #hardware.sane.enable = true; - #hardware.sane.extraBackends = [ - # pkgs.epkowa - # pkgs.utsushi - # pkgs.epsonscan2 - #]; - #services.udev.packages = [ - # pkgs.utsushi - # vuescan - #]; - system.stateVersion = "24.05"; }