Compare commits
No commits in common. "cc00b335a05f4020f4b9e711631efd995ea63bb6" and "ebab7db78a24450391cc1509558ee8800d907102" have entirely different histories.
cc00b335a0
...
ebab7db78a
5 changed files with 16 additions and 102 deletions
27
bin/gs.sh
27
bin/gs.sh
|
@ -1,27 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
set -xeuo pipefail
|
||||
|
||||
gamescopeArgs=(
|
||||
--adaptive-sync # VRR support
|
||||
--hdr-enabled
|
||||
--mangoapp # performance overlay
|
||||
--rt
|
||||
--steam
|
||||
)
|
||||
steamArgs=(
|
||||
-pipewire-dmabuf
|
||||
-tenfoot
|
||||
)
|
||||
mangoConfig=(
|
||||
cpu_temp
|
||||
gpu_temp
|
||||
ram
|
||||
vram
|
||||
)
|
||||
mangoVars=(
|
||||
MANGOHUD=1
|
||||
MANGOHUD_CONFIG="$(IFS=,; echo "${mangoConfig[*]}")"
|
||||
)
|
||||
|
||||
export "${mangoVars[@]}"
|
||||
exec gamescope "${gamescopeArgs[@]}" -- steam "${steamArgs[@]}"
|
30
flake.lock
30
flake.lock
|
@ -128,11 +128,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1730045523,
|
||||
"narHash": "sha256-W5Avk1THhZALXITHGazKfZbIZ5+Bc4nSYvAYHUn96EU=",
|
||||
"lastModified": 1729281548,
|
||||
"narHash": "sha256-MuojlSnwAJAwfhgmW8ZtZrwm2Sko4fqubCvReqbUzYw=",
|
||||
"owner": "nix-community",
|
||||
"repo": "disko",
|
||||
"rev": "89e458a3bb3693e769bfb2b2447c3fe72092d498",
|
||||
"rev": "a6a3179ddf396dfc28a078e2f169354d0c137125",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -205,11 +205,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1730016908,
|
||||
"narHash": "sha256-bFCxJco7d8IgmjfNExNz9knP8wvwbXU4s/d53KOK6U0=",
|
||||
"lastModified": 1729459288,
|
||||
"narHash": "sha256-gBOVJv+q6Mx8jGvwX7cE6J8+sZmi1uxpRVsO7WxvVuQ=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "e83414058edd339148dc142a8437edb9450574c8",
|
||||
"rev": "1e27f213d77fc842603628bcf2df6681d7d08f7e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -454,11 +454,11 @@
|
|||
},
|
||||
"nixpkgs-stable": {
|
||||
"locked": {
|
||||
"lastModified": 1729973466,
|
||||
"narHash": "sha256-knnVBGfTCZlQgxY1SgH0vn2OyehH9ykfF8geZgS95bk=",
|
||||
"lastModified": 1729357638,
|
||||
"narHash": "sha256-66RHecx+zohbZwJVEPF7uuwHeqf8rykZTMCTqIrOew4=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "cd3e8833d70618c4eea8df06f95b364b016d4950",
|
||||
"rev": "bb8c2cf7ea0dd2e18a52746b2c3a5b0c73b93c22",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -470,11 +470,11 @@
|
|||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1729880355,
|
||||
"narHash": "sha256-RP+OQ6koQQLX5nw0NmcDrzvGL8HDLnyXt/jHhL1jwjM=",
|
||||
"lastModified": 1729256560,
|
||||
"narHash": "sha256-/uilDXvCIEs3C9l73JTACm4quuHUsIHcns1c+cHUJwA=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "18536bf04cd71abd345f9579158841376fdd0c5a",
|
||||
"rev": "4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -510,11 +510,11 @@
|
|||
"nixpkgs-stable": "nixpkgs-stable"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1729999681,
|
||||
"narHash": "sha256-qm0uCtM9bg97LeJTKQ8dqV/FvqRN+ompyW4GIJruLuw=",
|
||||
"lastModified": 1729775275,
|
||||
"narHash": "sha256-J2vtHq9sw1wWm0aTMXpEEAzsVCUMZDTEe5kiBYccpLE=",
|
||||
"owner": "Mic92",
|
||||
"repo": "sops-nix",
|
||||
"rev": "1666d16426abe79af5c47b7c0efa82fd31bf4c56",
|
||||
"rev": "78a0e634fc8981d6b564f08b6715c69a755c4c7d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
time.timeZone = "Europe/Paris";
|
||||
|
||||
console.keyMap = "fr";
|
||||
services.xserver.xkb.layout = "fr";
|
||||
|
||||
security.pam.services.swaylock = {};
|
||||
|
||||
|
@ -27,9 +26,6 @@
|
|||
enable = true;
|
||||
acceleration = "cuda";
|
||||
};
|
||||
systemd.services.ollama = {
|
||||
wantedBy = pkgs.lib.mkForce [];
|
||||
};
|
||||
|
||||
# Programs
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
@ -41,7 +37,6 @@
|
|||
htop
|
||||
wg-netmanager
|
||||
podman-compose
|
||||
mangohud
|
||||
];
|
||||
|
||||
#Podman
|
||||
|
@ -60,9 +55,6 @@
|
|||
# Gaming
|
||||
programs.gamemode.enable = true;
|
||||
|
||||
# Other
|
||||
programs.nix-ld.enable = true;
|
||||
|
||||
# User config
|
||||
users.groups.gaspard = {
|
||||
name = "gaspard";
|
||||
|
@ -88,46 +80,5 @@
|
|||
};
|
||||
};
|
||||
|
||||
# Steam specialisation
|
||||
specialisation.steam.configuration = {
|
||||
system.nixos.tags = ["steam"];
|
||||
users.groups.steam.name = "steam";
|
||||
users.users.steam = {
|
||||
isNormalUser = true;
|
||||
createHome = true;
|
||||
extraGroups = [
|
||||
"video"
|
||||
"seat"
|
||||
"audio"
|
||||
"gamemode"
|
||||
"networkmanager"
|
||||
];
|
||||
group = "steam";
|
||||
};
|
||||
programs = {
|
||||
gamescope = {
|
||||
enable = true;
|
||||
capSysNice = true;
|
||||
env = {
|
||||
XKB_DEFAULT_LAYOUT = "fr";
|
||||
};
|
||||
};
|
||||
steam = {
|
||||
enable = true;
|
||||
gamescopeSession.enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
localNetworkGameTransfers.openFirewall = true;
|
||||
};
|
||||
};
|
||||
hardware.xone.enable = true; # support for the xbox controller USB dongle
|
||||
services.getty.autologinUser = "steam";
|
||||
environment = {
|
||||
loginShellInit = ''
|
||||
[[ "$(tty)" = "/dev/tty1" ]] && ${(pkgs.writeShellScript "gs.sh" "${builtins.readFile ../../bin/gs.sh}")}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
|
|
|
@ -16,16 +16,13 @@
|
|||
boot = {
|
||||
kernelPackages = lib.mkDefault pkgs.linuxPackages_zen;
|
||||
kernelModules = ["kvm-amd"];
|
||||
kernelParams = [
|
||||
"mem_sleep_default=deep" # Should fix/change suspend method
|
||||
];
|
||||
kernelParams = ["mem_sleep_default=deep"]; # Should fix/change suspend method
|
||||
extraModulePackages = [];
|
||||
initrd = {
|
||||
availableKernelModules = ["nvme" "xhci_pci" "usbhid" "sdhci_pci"];
|
||||
kernelModules = [];
|
||||
};
|
||||
loader = {
|
||||
timeout = 2;
|
||||
efi.canTouchEfiVariables = true;
|
||||
grub = {
|
||||
enable = true;
|
||||
|
@ -62,12 +59,6 @@
|
|||
"libcublas"
|
||||
"cuda_cccl"
|
||||
"cuda_nvcc"
|
||||
# Steam
|
||||
"xow_dongle-firmware"
|
||||
"steam"
|
||||
"steam-original"
|
||||
"steam-run"
|
||||
"steam-unwrapped"
|
||||
];
|
||||
|
||||
hardware.graphics = {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
[general]
|
||||
live_config_reload = true
|
||||
|
||||
[bell]
|
||||
|
|
Loading…
Reference in a new issue