Use greetd to start gamescope session, enable sshd server for remote

operation
This commit is contained in:
Evie Litherland-Smith 2023-06-18 10:17:39 +01:00
parent 977c3861b6
commit da92441380

View file

@ -4,14 +4,13 @@
../../hardware/audio.nix
../../hardware/bluetooth.nix
../../locales/en_GB.nix
../../desktop/sddm.nix
../../services/sshd
];
networking = {
hostName = "Vanguard"; # Define your hostname.
nameservers = ["192.168.1.230" "9.9.9.9"];
firewall = {enable = true;};
};
services.xserver.displayManager.defaultSession = "steam";
environment.systemPackages = with pkgs; [mesa];
# Steam
@ -27,9 +26,6 @@
hardware.steam-hardware.enable = true;
hardware.opengl.driSupport32Bit = true;
# Requirements for Star Citizen
boot.kernel.sysctl."vm.max_map_count" = 16777216;
users.users.xenia = {
isNormalUser = true;
description = "Evie Litherland-Smith";
@ -38,4 +34,15 @@
openssh.authorizedKeys.keys = import ../../auth/authorized_keys.nix;
};
home-manager.users.xenia = import ./xenia.nix;
services.greetd = {
enable = true;
settings = rec {
initial_session = {
command = "${pkgs.gamescope}/bin/gamescope --steam -- steam -tenfoot -pipewire-dmabuf";
user = "xenia";
};
default_session = initial_session;
};
};
}