From 5712d80ebe5f10908ad082bb902289e53e114012 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 28 Aug 2023 09:37:15 +0100 Subject: [PATCH] Add steam --- hosts/Vanguard/configuration.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/hosts/Vanguard/configuration.nix b/hosts/Vanguard/configuration.nix index 323fb9c8..618ed381 100644 --- a/hosts/Vanguard/configuration.nix +++ b/hosts/Vanguard/configuration.nix @@ -1,15 +1,11 @@ # Edit this configuration file to define what should be installed on # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). -{ pkgs -, userConfig -, ... -}: +{ pkgs, userConfig, ... }: let user = "xenia"; hostName = "Vanguard"; -in -{ +in { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix @@ -24,12 +20,17 @@ in hostName = hostName; # Define your hostname. nameservers = [ "192.168.1.230" "9.9.9.9" ]; }; + environment.systemPackages = with pkgs; [ mesa ]; hardware = { bluetooth.enable = true; opengl.driSupport32Bit = true; steam-hardware.enable = true; }; - environment.systemPackages = with pkgs; [ mesa ]; + programs.steam = { + enable = true; + remotePlay.openFirewall = true; + dedicatedServer.openFirewall = true; + }; users.users.${user} = userConfig; services.greetd = {