gaming improvements

- switched to cachyos-bore kernel from mainline lts kernel
- pinned mesa version at 25 to fix issues with minecraft shaders
- switched steam to use the flatpak, since native steam wouldn't launch with the downgraded mesa version
This commit is contained in:
greyweather committed 2026-07-15 02:38:58 +01:00
1 parent 5fbdbec35f
commit e8f1f83930
23 files changed
+545 -407

No files matched your search

+19 -8
View File
@@ -2,27 +2,38 @@
config,
pkgs,
inputs,
pkgs-mesa-overlay,
...
}: let
modules-dir = ../../modules;
in {
imports = [
inputs.nixos-millennium.nixosModules.default
# inputs.nixos-millennium.nixosModules.default
../../global-default.nix
./hardware-configuration.nix
"${modules-dir}/display-managers/sddm.nix"
"${modules-dir}/desktop-environments/plasma6.nix"
"${modules-dir}/zsh.nix"
./modules/openssh.nix
./modules/sudo.nix
];
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
extraCompatPackages = [ pkgs.proton-ge-bin ];
extraPackages = [ pkgs.hidapi ];
};
nixpkgs.overlays = [
inputs.nix-cachyos-kernel.overlays.pinned
(final: prev: {
mesa = pkgs-mesa-overlay.mesa;
})
];
boot.kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-bore-zen4;
environment.systemPackages = with pkgs; [
efibootmgr
];
hardware.steam-hardware.enable = true;
environment.localBinInPath = true;
programs.dconf.enable = true; # apparently necessary for easyeffects to work in home.nix
+15 -3
View File
@@ -8,7 +8,7 @@
global-configs = ../../global-configs;
in {
imports = [
inputs.nixos-millennium.homeManagerModules.default
# inputs.nixos-millennium.homeManagerModules.default
../../global-home.nix
"${global-configs}/plasma.nix"
"${global-configs}/zen-browser.nix"
@@ -39,6 +39,9 @@ in {
dconf-editor
mangohud
mangojuice
python3
android-tools
protonplus
];
home.pointerCursor = {
@@ -50,8 +53,6 @@ in {
x11.enable = true;
};
programs.steam.theme = pkgs.millenniumThemes.nevko-ui;
gtk = {
enable = true;
colorScheme = "dark";
@@ -69,4 +70,15 @@ in {
ln -s /home/grey/nixos/assets/dotfiles/takamaki/autostart-config /home/grey/.config/autostart
'';
};
home.file.".local/bin/switch-os" = {
enable = true;
force = true;
executable = true;
text = ''
#!/usr/bin/env bash
sudo efibootmgr --bootnext 0000
sudo reboot
'';
};
}
+43
View File
@@ -0,0 +1,43 @@
{
pkgs,
config,
...
}: {
security.sudo = {
enable = true;
extraRules = [{
commands = [
{
command = "${pkgs.systemd}/bin/systemctl poweroff";
options = [ "NOPASSWD" ];
}
{
command = "${pkgs.systemd}/bin/shutdown";
options = [ "NOPASSWD" ];
}
{
command = "${pkgs.systemd}/bin/systemctl reboot";
options = [ "NOPASSWD" ];
}
{
command = "${pkgs.systemd}/bin/reboot";
options = [ "NOPASSWD" ];
}
{
command = "${pkgs.efibootmgr}/bin/efibootmgr";
options = [ "NOPASSWD" ];
}
{
command = "${pkgs.efibootmgr}/bin/efibootdump";
options = [ "NOPASSWD" ];
}
];
users = [ "grey" ];
}];
extraConfig = with pkgs; ''
Defaults:grey secure_path="${lib.makeBinPath [
systemd
]}:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin"
'';
};
}