Configuration for my NixOS based systems and Home Manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Boot to steam bigpicture

+64 -1
+27
gs.sh
··· 1 + #!/usr/bin/env bash 2 + set -xeuo pipefail 3 + 4 + gamescopeArgs=( 5 + --adaptive-sync # VRR support 6 + --hdr-enabled 7 + --mangoapp # performance overlay 8 + --rt 9 + --steam 10 + ) 11 + steamArgs=( 12 + -pipewire-dmabuf 13 + -tenfoot 14 + ) 15 + mangoConfig=( 16 + cpu_temp 17 + gpu_temp 18 + ram 19 + vram 20 + ) 21 + mangoVars=( 22 + MANGOHUD=1 23 + MANGOHUD_CONFIG="$(IFS=,; echo "${mangoConfig[*]}")" 24 + ) 25 + 26 + export "${mangoVars[@]}" 27 + exec gamescope "${gamescopeArgs[@]}" -- steam "${steamArgs[@]}"
+4 -1
gui.nix
··· 68 68 }; 69 69 # Use greetd as the displaymanager 70 70 #services.xserver.displayManager.greetd.enable = true; 71 - services.xserver.displayManager.lightdm.enable = true; 71 + 72 + 73 + services.xserver.displayManager.lightdm.enable = false; 74 + 72 75 #services.displayManager.sddm.enable = true; 73 76 #services.displayManager.defaultSession = "sway"; 74 77 #services.displayManager.autoLogin = {
+24
hardware-configuration.nix
··· 15 15 boot.kernelModules = [ "kvm-amd" ]; 16 16 boot.extraModulePackages = [ ]; 17 17 18 + # Bluetooth / wireless configuration 19 + hardware.bluetooth = { 20 + enable = true; 21 + powerOnBoot = true; 22 + settings = { 23 + General = { 24 + # Shows battery charge of connected devices on supported 25 + # Bluetooth adapters. Defaults to 'false'. 26 + Experimental = true; 27 + # When enabled other devices can connect faster to us, however 28 + # the tradeoff is increased power consumption. Defaults to 29 + # 'false'. 30 + FastConnectable = true; 31 + }; 32 + Policy = { 33 + # Enable all controllers when they are found. This includes 34 + # adapters present on start as well as adapters that are plugged 35 + # in later on. Defaults to 'true'. 36 + AutoEnable = true; 37 + }; 38 + }; 39 + }; 40 + 41 + 18 42 fileSystems."/" = 19 43 { 20 44 device = "/dev/disk/by-uuid/9a7cbffe-6c10-4220-bb99-4dcea8181dcc";
+9
packages.nix
··· 44 44 # List packages installed in system profile. To search, run: 45 45 # $ nix search wget 46 46 environment.systemPackages = with pkgs; [ 47 + mangohud 47 48 neovim 48 49 appimage-run 49 50 tzdata ··· 92 93 man-pages-posix 93 94 linuxPackages_latest.perf 94 95 ]; 96 + 97 + environment.loginShellInit = '' 98 + [[ "$(tty)" = "/dev/tty1" ]] && /home/noah/repos/nixos/gs.sh 99 + ''; 100 + 95 101 documentation.dev.enable = true; 96 102 97 103 # Fix dynamically linked libraries for unpackaged binaries ··· 127 133 enable = true; 128 134 capSysNice = true; 129 135 }; 136 + # Boot to bigpicture 137 + services.getty.autologinUser = "noah"; 138 + 130 139 programs.appimage = { 131 140 enable = true; 132 141 binfmt = true;