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
];
boot.kernelPackages = pkgs.linuxPackages; # (this is the default) some amdgpu issues on 6.10
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = 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.
# Pick only one of the below networking options.
networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
@ -34,6 +38,13 @@
# 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.
services.xserver.enable = true;
@ -74,6 +85,7 @@
chezmoi
fish
git
mangohud
neovim
python3
tmux
@ -98,6 +110,7 @@
"steam"
"steam-original"
"steam-run"
"xow_dongle-firmware"
];
# Open ports in the firewall.
@ -107,11 +120,18 @@
networking.firewall.enable = false;
# Set up steam
programs.steam = {
enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
programs = {
gamescope = {
enable = true;
capSysNice = true;
};
steam = {
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
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
};
};
# Copy the NixOS configuration file and link it from the resulting system