First attempt at bluetooth and autologin with Steam overlay.

Haven't tested it yet, may or may not work.
This commit is contained in:
Eli Ribble 2024-09-24 02:17:00 +00:00
parent 967812fe61
commit 34b92a6053
1 changed files with 25 additions and 5 deletions

View File

@ -10,10 +10,14 @@
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
boot.kernelPackages = pkgs.linuxPackages; # (this is the default) some amdgpu issues on 6.10
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
hardware.bluetooth.enable = true;
hardware.xone.enable = true; # support for the xbox controller USB dongle
networking.hostName = "eshu"; # Define your hostname. networking.hostName = "eshu"; # Define your hostname.
# Pick only one of the below networking options. # Pick only one of the below networking options.
networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
@ -34,6 +38,13 @@
# useXkbConfig = true; # use xkb.options in tty. # useXkbConfig = true; # use xkb.options in tty.
# }; # };
services.blueman.enable = true;
services.getty.autologinUser = "eliribble";
environment = {
loginShellInit = ''
[[ "$(tty)" = "/dev/tty1" ]] && ./gs.sh
'';
};
# Enable the X11 windowing system. # Enable the X11 windowing system.
services.xserver.enable = true; services.xserver.enable = true;
@ -74,6 +85,7 @@
chezmoi chezmoi
fish fish
git git
mangohud
neovim neovim
python3 python3
tmux tmux
@ -98,6 +110,7 @@
"steam" "steam"
"steam-original" "steam-original"
"steam-run" "steam-run"
"xow_dongle-firmware"
]; ];
# Open ports in the firewall. # Open ports in the firewall.
@ -107,11 +120,18 @@
networking.firewall.enable = false; networking.firewall.enable = false;
# Set up steam # Set up steam
programs.steam = { programs = {
gamescope = {
enable = true; enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play capSysNice = true;
};
steam = {
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
enable = true;
gamescopeSession.enable = true;
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
};
}; };
# Copy the NixOS configuration file and link it from the resulting system # Copy the NixOS configuration file and link it from the resulting system