my over complex system configurations dotfiles.isabelroses.com/
nixos nix flake dotfiles linux

profiles/gaming: remove

-160
-6
home/isabel/gui/chromium.nix
··· 1 1 { 2 2 lib, 3 3 pkgs, 4 - osConfig, 5 4 ... 6 5 }: 7 6 let 8 7 inherit (lib) 9 - optionals 10 8 concatLists 11 9 concatMapStrings 12 10 enableFeature ··· 21 19 "aihndpeeoneojofmliffjknbegmipbim" # at://wormhole 22 20 "mnjggcdmjocbbbhaepdhchncahnbgone" # SponsorBlock 23 21 "jghecgabfgfdldnmbfkhmffcabddioke" # Volume Master 24 - ] 25 - ++ optionals osConfig.garden.profiles.gaming.enable [ 26 - "ngonfifpkpeefnhelnfdkficaiihklid" # ProtonDB 27 - "dnhpnfgdlenaccegplpojghhmaamnnfp" # Augmented Steam 28 22 ]; 29 23 30 24 package = pkgs.chromium.override {
-2
modules/generic/profiles.nix
··· 7 7 graphical.enable = mkEnableOption "Graphical interface"; 8 8 headless.enable = mkEnableOption "Headless"; 9 9 workstation.enable = mkEnableOption "Workstation"; 10 - gaming.enable = mkEnableOption "Gaming"; 11 - 12 10 laptop.enable = mkEnableOption "Laptop"; 13 11 14 12 server = {
-3
modules/home/profiles.nix
··· 11 11 laptop 12 12 ; 13 13 14 - # we don't inherit these as there is extra options here 15 - gaming = { inherit (cfg.gaming) enable; }; 16 - 17 14 server = { 18 15 inherit (cfg.server) enable; 19 16 oracle.enable = cfg.server.oracle.enable;
-1
modules/nixos/default.nix
··· 9 9 ./emulation.nix 10 10 ./environment 11 11 ./extras.nix 12 - ./gaming 13 12 ./hardware 14 13 ./headless.nix 15 14 ./kernel
-6
modules/nixos/gaming/default.nix
··· 1 - { 2 - imports = [ 3 - ./gamemode.nix # cool scripts, and programs to improve gaming performance 4 - ./steam.nix # steam, the gaming platform 5 - ]; 6 - }
-27
modules/nixos/gaming/gamemode.nix
··· 1 - { 2 - lib, 3 - config, 4 - ... 5 - }: 6 - let 7 - inherit (lib) mkIf mkEnableOption; 8 - 9 - cfg = config.garden.profiles.gaming.gamemode; 10 - in 11 - { 12 - options.garden.profiles.gaming.gamemode.enable = mkEnableOption "Gamemode" // { 13 - default = config.garden.profiles.gaming.enable; 14 - }; 15 - 16 - config.programs.gamemode = mkIf cfg.enable { 17 - enable = true; 18 - enableRenice = true; 19 - 20 - settings = { 21 - general = { 22 - softrealtime = "auto"; 23 - renice = 15; 24 - }; 25 - }; 26 - }; 27 - }
-115
modules/nixos/gaming/steam.nix
··· 1 - { 2 - lib, 3 - pkgs, 4 - config, 5 - ... 6 - }: 7 - let 8 - inherit (lib) mkIf mkOption mkEnableOption; 9 - 10 - cfg = config.garden.profiles.gaming.steam; 11 - in 12 - { 13 - options.garden.profiles.gaming.steam = { 14 - enable = mkEnableOption "Enable Steam" // { 15 - default = config.garden.profiles.gaming.enable; 16 - }; 17 - 18 - gamescopeSession = { 19 - enable = mkEnableOption "gamescope TTY session" // { 20 - default = cfg.enable; 21 - }; 22 - 23 - tty = mkOption { 24 - default = 4; 25 - type = lib.types.int; 26 - description = "tty to connect gamescope session on"; 27 - }; 28 - }; 29 - }; 30 - 31 - config = mkIf cfg.enable { 32 - programs.steam = { 33 - enable = true; 34 - # Open ports in the firewall for Steam Remote Play 35 - # remotePlay.openFirewall = true; 36 - # Open ports in the firewall for Source Dedicated Server 37 - # dedicatedServer.openFirewall = true; 38 - # Compatibility tools to install 39 - # this option used to be provided by modules/shared/nixos/steam 40 - extraCompatPackages = [ pkgs.proton-ge-bin.steamcompattool ]; 41 - gamescopeSession.enable = true; 42 - }; 43 - 44 - programs.gamescope = { 45 - enable = true; 46 - capSysNice = true; 47 - }; 48 - 49 - garden.packages = { 50 - exec-gamescope = pkgs.writeShellApplication { 51 - name = "exec-gamescope"; 52 - text = '' 53 - exec gamescope --adaptive-sync --rt --steam -- steam -pipewire-dmabuf -tenfoot 54 - ''; 55 - }; 56 - }; 57 - 58 - environment.loginShellInit = mkIf cfg.gamescopeSession.enable '' 59 - [[ "$(tty)" = "/dev/tty${toString cfg.gamescopeSession.tty}" ]] && exec-gamescope 60 - ''; 61 - 62 - nixpkgs.overlays = [ 63 - (_: prev: { 64 - steam = prev.steam.override ( 65 - { 66 - extraPkgs ? _: [ ], 67 - ... 68 - }: 69 - { 70 - extraPkgs = 71 - pkgs': 72 - builtins.attrValues { 73 - extras = extraPkgs pkgs'; 74 - 75 - inherit (pkgs') 76 - # keep-sorted start 77 - at-spi2-atk 78 - fmodex 79 - gtk3 80 - gtk3-x11 81 - harfbuzz 82 - icu 83 - inetutils 84 - keyutils 85 - libgdiplus 86 - libkrb5 87 - libpng 88 - libpulseaudio 89 - libthai 90 - libunwind # for titanfall 2 Northstar launcher 91 - libvorbis 92 - mono5 93 - pango 94 - strace 95 - zlib 96 - # keep-sorted end 97 - ; 98 - 99 - inherit (pkgs.stdenv.cc.cc) lib; 100 - 101 - inherit (pkgs.xorg) 102 - # keep-sorted start 103 - libXScrnSaver 104 - libXcursor 105 - libXi 106 - libXinerama 107 - # keep-sorted end 108 - ; 109 - }; 110 - } 111 - ); 112 - }) 113 - ]; 114 - }; 115 - }