feat(nixos): add wlx-overlays and wivrn services, update gamemode settings

This commit is contained in:
uttarayan21
2025-11-11 16:53:47 +05:30
parent d301d3fd98
commit ca194088ae
8 changed files with 33 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ install:
[linux] [linux]
install: install:
NIX_BUILD_CORES=32 sudo nixos-rebuild switch --impure --flake . --builders '' sudo nixos-rebuild switch --flake . --builders ''
[macos] [macos]
build: build:

View File

@@ -194,7 +194,7 @@
# firewall.enable = false; # firewall.enable = false;
nftables.enable = true; nftables.enable = true;
firewall = { firewall = {
enable = true; enable = false;
trustedInterfaces = [ trustedInterfaces = [
"tailscale0" "tailscale0"
]; ];

View File

@@ -9,5 +9,6 @@
./gnome-disks.nix ./gnome-disks.nix
./nix-ld.nix ./nix-ld.nix
./gamemode.nix ./gamemode.nix
./wlx-overlays.nix
]; ];
} }

View File

@@ -1,5 +1,14 @@
{...}: { {pkgs, ...}: {
programs.gamemode = { programs.gamemode = {
enable = true; enable = true;
settings = {
general = {
renice = 10;
};
custom = {
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
};
};
}; };
} }

View File

@@ -0,0 +1,5 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
wlx-overlay-s
];
}

View File

@@ -136,6 +136,12 @@
options = ["nofail"]; options = ["nofail"];
}; };
fileSystems."/volumes/windows-games" = {
device = "/dev/disk/by-partuuid/56359fb7-7d33-44d2-bebd-b0c53daeeb73";
fsType = "ntfs";
options = ["nofail"];
};
swapDevices = []; swapDevices = [];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking

View File

@@ -16,5 +16,6 @@
./fwupd.nix ./fwupd.nix
./caddy.nix ./caddy.nix
./monitoring.nix ./monitoring.nix
./wivrn.nix
]; ];
} }

View File

@@ -0,0 +1,8 @@
{...}: {
services.wivrn = {
enable = true;
openFirewall = true;
defaultRuntime = true;
autoStart = true;
};
}