feat(nixos): add wlx-overlays and wivrn services, update gamemode settings
This commit is contained in:
2
justfile
2
justfile
@@ -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:
|
||||||
|
|||||||
@@ -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"
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -9,5 +9,6 @@
|
|||||||
./gnome-disks.nix
|
./gnome-disks.nix
|
||||||
./nix-ld.nix
|
./nix-ld.nix
|
||||||
./gamemode.nix
|
./gamemode.nix
|
||||||
|
./wlx-overlays.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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'";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
5
nixos/ryu/programs/wlx-overlays.nix
Normal file
5
nixos/ryu/programs/wlx-overlays.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
wlx-overlay-s
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -16,5 +16,6 @@
|
|||||||
./fwupd.nix
|
./fwupd.nix
|
||||||
./caddy.nix
|
./caddy.nix
|
||||||
./monitoring.nix
|
./monitoring.nix
|
||||||
|
./wivrn.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
8
nixos/ryu/services/wivrn.nix
Normal file
8
nixos/ryu/services/wivrn.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{...}: {
|
||||||
|
services.wivrn = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
defaultRuntime = true;
|
||||||
|
autoStart = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user