Compare commits

...

9 commits

Author SHA1 Message Date
GaspardCulis
cc00b335a0 fix(Zephyrus): Enabled back steam user for steam specialization
Previous issue was somehow fixed
2024-10-27 19:26:40 +01:00
GaspardCulis
fcab610270 fix(alacritty): Updated config to fix deprecation warn 2024-10-27 18:37:16 +01:00
GaspardCulis
d78e759a12 chore(flake): Update flake 2024-10-27 18:36:11 +01:00
GaspardCulis
60d72f7a44 fix(Zephyrus): ff steam user for steam specialization 2024-10-27 11:01:51 +01:00
GaspardCulis
10b8d4d327 feat(Zephyrus): Added new steam user for steam specialization 2024-10-27 10:24:45 +01:00
GaspardCulis
447782e60f feat(Zephyrus): Setup steam specialisation 2024-10-26 17:32:11 +02:00
GaspardCulis
b18767d95a chore(Zephyrus): Tweak bootloader timeout 2024-10-26 10:35:53 +02:00
GaspardCulis
a571084a89 feat(Zephyrus): Enable nix-ld 2024-10-26 10:04:04 +02:00
GaspardCulis
2519b46873 fix(Zephyrus): Do not autostart ollama service 2024-10-25 10:12:06 +02:00
5 changed files with 102 additions and 16 deletions

27
bin/gs.sh Executable file
View file

@ -0,0 +1,27 @@
#!/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[@]}"

View file

@ -128,11 +128,11 @@
]
},
"locked": {
"lastModified": 1729281548,
"narHash": "sha256-MuojlSnwAJAwfhgmW8ZtZrwm2Sko4fqubCvReqbUzYw=",
"lastModified": 1730045523,
"narHash": "sha256-W5Avk1THhZALXITHGazKfZbIZ5+Bc4nSYvAYHUn96EU=",
"owner": "nix-community",
"repo": "disko",
"rev": "a6a3179ddf396dfc28a078e2f169354d0c137125",
"rev": "89e458a3bb3693e769bfb2b2447c3fe72092d498",
"type": "github"
},
"original": {
@ -205,11 +205,11 @@
]
},
"locked": {
"lastModified": 1729459288,
"narHash": "sha256-gBOVJv+q6Mx8jGvwX7cE6J8+sZmi1uxpRVsO7WxvVuQ=",
"lastModified": 1730016908,
"narHash": "sha256-bFCxJco7d8IgmjfNExNz9knP8wvwbXU4s/d53KOK6U0=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "1e27f213d77fc842603628bcf2df6681d7d08f7e",
"rev": "e83414058edd339148dc142a8437edb9450574c8",
"type": "github"
},
"original": {
@ -454,11 +454,11 @@
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1729357638,
"narHash": "sha256-66RHecx+zohbZwJVEPF7uuwHeqf8rykZTMCTqIrOew4=",
"lastModified": 1729973466,
"narHash": "sha256-knnVBGfTCZlQgxY1SgH0vn2OyehH9ykfF8geZgS95bk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "bb8c2cf7ea0dd2e18a52746b2c3a5b0c73b93c22",
"rev": "cd3e8833d70618c4eea8df06f95b364b016d4950",
"type": "github"
},
"original": {
@ -470,11 +470,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1729256560,
"narHash": "sha256-/uilDXvCIEs3C9l73JTACm4quuHUsIHcns1c+cHUJwA=",
"lastModified": 1729880355,
"narHash": "sha256-RP+OQ6koQQLX5nw0NmcDrzvGL8HDLnyXt/jHhL1jwjM=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0",
"rev": "18536bf04cd71abd345f9579158841376fdd0c5a",
"type": "github"
},
"original": {
@ -510,11 +510,11 @@
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1729775275,
"narHash": "sha256-J2vtHq9sw1wWm0aTMXpEEAzsVCUMZDTEe5kiBYccpLE=",
"lastModified": 1729999681,
"narHash": "sha256-qm0uCtM9bg97LeJTKQ8dqV/FvqRN+ompyW4GIJruLuw=",
"owner": "Mic92",
"repo": "sops-nix",
"rev": "78a0e634fc8981d6b564f08b6715c69a755c4c7d",
"rev": "1666d16426abe79af5c47b7c0efa82fd31bf4c56",
"type": "github"
},
"original": {

View file

@ -14,6 +14,7 @@
time.timeZone = "Europe/Paris";
console.keyMap = "fr";
services.xserver.xkb.layout = "fr";
security.pam.services.swaylock = {};
@ -26,6 +27,9 @@
enable = true;
acceleration = "cuda";
};
systemd.services.ollama = {
wantedBy = pkgs.lib.mkForce [];
};
# Programs
environment.systemPackages = with pkgs; [
@ -37,6 +41,7 @@
htop
wg-netmanager
podman-compose
mangohud
];
#Podman
@ -55,6 +60,9 @@
# Gaming
programs.gamemode.enable = true;
# Other
programs.nix-ld.enable = true;
# User config
users.groups.gaspard = {
name = "gaspard";
@ -80,5 +88,46 @@
};
};
# 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";
}

View file

@ -16,13 +16,16 @@
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;
@ -59,6 +62,12 @@
"libcublas"
"cuda_cccl"
"cuda_nvcc"
# Steam
"xow_dongle-firmware"
"steam"
"steam-original"
"steam-run"
"steam-unwrapped"
];
hardware.graphics = {

View file

@ -1,3 +1,4 @@
[general]
live_config_reload = true
[bell]