Add gamescope as desktop session, default to no autoUpgrade

Set autoUpgrade config for Legion as it's on all the time
Remove xrdp
This commit is contained in:
Evie Litherland-Smith 2023-06-06 08:00:37 +01:00
parent 3614eb1353
commit b388bdae94
6 changed files with 27 additions and 27 deletions

View file

@ -23,6 +23,11 @@
system.autoUpgrade = { system.autoUpgrade = {
enable = true; enable = true;
allowReboot = false; dates = "03:00";
allowReboot = true;
rebootWindow = {
lower = "01:00";
upper = "05:00";
};
}; };
} }

View file

@ -6,8 +6,16 @@
./hardware/bluetooth.nix ./hardware/bluetooth.nix
./locales/en_GB.nix ./locales/en_GB.nix
./desktop/hyprland.nix ./desktop/hyprland.nix
./desktop/steam.nix
./services/syncthing/Vanguard.nix ./services/syncthing/Vanguard.nix
]; ];
environment.systemPackages = with pkgs; [
mesa
lutris
wine-wayland
mono
winetricks
];
networking = { networking = {
hostName = "Vanguard"; # Define your hostname. hostName = "Vanguard"; # Define your hostname.
@ -20,31 +28,15 @@
description = "Evie Litherland-Smith"; description = "Evie Litherland-Smith";
extraGroups = ["networkmanager" "wheel"]; extraGroups = ["networkmanager" "wheel"];
shell = pkgs.fish; shell = pkgs.fish;
openssh.authorizedKeys.keys = import ./auth/authorized_keys.nix;
}; };
home-manager.users.xenia = import ./home/Vanguard/xenia.nix; home-manager.users.xenia = import ./home/Vanguard/xenia.nix;
# Enable steam with proper integrations
programs.gamescope.enable = true;
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
};
hardware.steam-hardware.enable = true;
hardware.opengl.driSupport32Bit = true;
# Requirements for Star Citizen # Requirements for Star Citizen
boot.kernel.sysctl."vm.max_map_count" = 16777216; boot.kernel.sysctl."vm.max_map_count" = 16777216;
environment.systemPackages = with pkgs; [mesa lutris wine-wayland mono winetricks];
# Extra hardware configuration # Extra hardware configuration
hardware.openrazer = { hardware.openrazer = {
enable = true; enable = true;
users = ["xenia"]; users = ["xenia"];
}; };
system.autoUpgrade = {
enable = true;
allowReboot = false;
};
} }

View file

@ -1,4 +1,4 @@
{...}: { {lib, ...}: {
nix = { nix = {
settings.experimental-features = ["nix-command" "flakes"]; settings.experimental-features = ["nix-command" "flakes"];
gc = { gc = {
@ -11,6 +11,7 @@
keep-derivations = true keep-derivations = true
''; '';
}; };
system.autoUpgrade.enable = lib.mkDefault false;
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
home-manager = { home-manager = {
useUserPackages = false; useUserPackages = false;

11
desktop/gamescope.nix Normal file
View file

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

View file

@ -1,7 +0,0 @@
{...}: {
imports = [./xserver.nix];
services.xrdp = {
enable = true;
openFirewall = true;
};
}

View file

@ -7,5 +7,3 @@ monitor=DP-2,highrr,auto,1
windowrule = workspace 4 silent, ^(discord)$ windowrule = workspace 4 silent, ^(discord)$
windowrule = workspace 5 silent, ^(Steam|steamwebhelper)$ windowrule = workspace 5 silent, ^(Steam|steamwebhelper)$
windowrule = monitor 1, ^(Steam|steamwebhelper)$ windowrule = monitor 1, ^(Steam|steamwebhelper)$
exec-once = steam