Add steam gamescope compositor as desktop option, set default for Vanguard

This commit is contained in:
Evie Litherland-Smith 2023-04-30 10:37:19 +01:00
parent ee2971579d
commit a0608acde3
3 changed files with 30 additions and 5 deletions

View file

@ -10,9 +10,17 @@ in
./hardware/bluetooth.nix ./hardware/bluetooth.nix
./locales/en_GB.nix ./locales/en_GB.nix
./desktop/hyprland.nix ./desktop/hyprland.nix
./desktop/steam.nix
]; ];
networking.hostName = "Vanguard"; # Define your hostname. networking.hostName = "Vanguard"; # Define your hostname.
#networking.wireless.networks."LAN LAN Ranch".pskRaw = "d4c31e976456783b61d573ee49c94f93914a81bf1048c2f2e1e166c36bdfcd4a";
networking.extraHosts = ''
192.168.1.230 Legion
'';
networking.nameservers = [ "192.168.1.230" ];
services.xserver.displayManager.defaultSession = "steam";
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
users.users.xenia = { users.users.xenia = {
@ -31,10 +39,6 @@ in
}; };
# Extra hardware configuration # Extra hardware configuration
# For Steam support
programs.steam.enable = true;
hardware.steam-hardware.enable = true;
hardware.opengl.driSupport32Bit = true;
hardware.openrazer = { hardware.openrazer = {
enable = true; enable = true;
users = [ "xenia" ]; users = [ "xenia" ];

View file

@ -8,7 +8,13 @@
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
# Enable networking # Enable networking
networking.networkmanager.enable = true; networking = {
networkmanager.enable = true;
#wireless = {
# enable = true;
# userControlled.enable = true;
#};
};
# Enable power-profiles # Enable power-profiles
services.power-profiles-daemon.enable = true; services.power-profiles-daemon.enable = true;

15
nixos/desktop/steam.nix Normal file
View file

@ -0,0 +1,15 @@
{ pkgs, ... }:
{
imports = [ ./sddm.nix ];
environment.systemPackages = [
pkgs.mesa
];
programs.gamescope.enable = true;
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
gamescopeSession.enable = true;
};
hardware.steam-hardware.enable = true;
hardware.opengl.driSupport32Bit = true;
}