diff --git a/justfile b/justfile index bc9fcc63..7778a4b7 100644 --- a/justfile +++ b/justfile @@ -6,7 +6,7 @@ install: [linux] install: - NIX_BUILD_CORES=32 sudo nixos-rebuild switch --impure --flake . --builders '' + sudo nixos-rebuild switch --flake . --builders '' [macos] build: diff --git a/nixos/ryu/configuration.nix b/nixos/ryu/configuration.nix index 6dbefb3a..c677eb6f 100644 --- a/nixos/ryu/configuration.nix +++ b/nixos/ryu/configuration.nix @@ -194,7 +194,7 @@ # firewall.enable = false; nftables.enable = true; firewall = { - enable = true; + enable = false; trustedInterfaces = [ "tailscale0" ]; diff --git a/nixos/ryu/programs/default.nix b/nixos/ryu/programs/default.nix index bd0bc370..850b4a29 100644 --- a/nixos/ryu/programs/default.nix +++ b/nixos/ryu/programs/default.nix @@ -9,5 +9,6 @@ ./gnome-disks.nix ./nix-ld.nix ./gamemode.nix + ./wlx-overlays.nix ]; } diff --git a/nixos/ryu/programs/gamemode.nix b/nixos/ryu/programs/gamemode.nix index ebae3048..6731c913 100644 --- a/nixos/ryu/programs/gamemode.nix +++ b/nixos/ryu/programs/gamemode.nix @@ -1,5 +1,14 @@ -{...}: { +{pkgs, ...}: { programs.gamemode = { enable = true; + settings = { + general = { + renice = 10; + }; + custom = { + start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'"; + end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'"; + }; + }; }; } diff --git a/nixos/ryu/programs/wlx-overlays.nix b/nixos/ryu/programs/wlx-overlays.nix new file mode 100644 index 00000000..00f2b09f --- /dev/null +++ b/nixos/ryu/programs/wlx-overlays.nix @@ -0,0 +1,5 @@ +{pkgs, ...}: { + environment.systemPackages = with pkgs; [ + wlx-overlay-s + ]; +} diff --git a/nixos/ryu/ryu.nix b/nixos/ryu/ryu.nix index 07b3a1b3..cc3eecd7 100644 --- a/nixos/ryu/ryu.nix +++ b/nixos/ryu/ryu.nix @@ -136,6 +136,12 @@ options = ["nofail"]; }; + fileSystems."/volumes/windows-games" = { + device = "/dev/disk/by-partuuid/56359fb7-7d33-44d2-bebd-b0c53daeeb73"; + fsType = "ntfs"; + options = ["nofail"]; + }; + swapDevices = []; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking diff --git a/nixos/ryu/services/default.nix b/nixos/ryu/services/default.nix index cc58aed3..68192aec 100644 --- a/nixos/ryu/services/default.nix +++ b/nixos/ryu/services/default.nix @@ -16,5 +16,6 @@ ./fwupd.nix ./caddy.nix ./monitoring.nix + ./wivrn.nix ]; } diff --git a/nixos/ryu/services/wivrn.nix b/nixos/ryu/services/wivrn.nix new file mode 100644 index 00000000..1e86fc94 --- /dev/null +++ b/nixos/ryu/services/wivrn.nix @@ -0,0 +1,8 @@ +{...}: { + services.wivrn = { + enable = true; + openFirewall = true; + defaultRuntime = true; + autoStart = true; + }; +}