From cc2cd688efe44fb94b18ad634f221e0cc03f9ff7 Mon Sep 17 00:00:00 2001 From: Jens Nolte <jens@nightmarestudio.de> Date: Tue, 22 Oct 2019 14:09:30 +0200 Subject: [PATCH] Add steam layer --- nixos/layers/steam.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 nixos/layers/steam.nix diff --git a/nixos/layers/steam.nix b/nixos/layers/steam.nix new file mode 100644 index 0000000..cd49569 --- /dev/null +++ b/nixos/layers/steam.nix @@ -0,0 +1,25 @@ +{ lib, pkgs, ... }: + +with lib; + +let + customSteam = pkgs.steam.override { + withPrimus = true; + extraPkgs = pkgs: with pkgs; [ glxinfo ]; + }; + +in +{ + hardware.opengl.driSupport32Bit = true; + hardware.pulseaudio.support32Bit = true; + + users.users.steam = { + isNormalUser = true; + uid = 1100; + passwordFile = "/q/passwords/steam"; + extraGroups = [ "audio" "input" ]; + packages = [ + customSteam + ]; + }; +} -- GitLab