From 3df7ee005cd9f62d4df73ad935f257a16d2100d7 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Mon, 16 Sep 2024 13:24:22 +0800 Subject: [PATCH] dust: add back games --- home/applications/sway/default.nix | 1 - home/default.nix | 11 +++++++++++ hosts/dust/anti-feature.nix | 5 +++++ hosts/dust/default.nix | 3 +++ hosts/dust/hardware-configuration.nix | 2 -- hosts/pek0/services/minecraft.nix | 1 + hosts/pek0/services/samba.nix | 2 +- 7 files changed, 21 insertions(+), 4 deletions(-) diff --git a/home/applications/sway/default.nix b/home/applications/sway/default.nix index e87ad00..2003c87 100644 --- a/home/applications/sway/default.nix +++ b/home/applications/sway/default.nix @@ -16,7 +16,6 @@ checkConfig = false; # wtf? wrapperFeatures.gtk = true; systemd.xdgAutostart = true; - xwayland = false; config = { ### Visuals output."*".bg = "${inputs.self.legacyPackages.${pkgs.stdenv.hostPlatform.system}.background} fill"; diff --git a/home/default.nix b/home/default.nix index 9dceb31..95df7aa 100644 --- a/home/default.nix +++ b/home/default.nix @@ -21,6 +21,7 @@ ripgrep.enable = true; skim.enable = true; zoxide.enable = true; + mangohud.enable = true; }; services = { @@ -41,5 +42,15 @@ pwvucontrol seahorse wl-clipboard + + mumble + osu-lazer-bin + prismlauncher ]; + + home.sessionVariables = { + # https://github.com/ppy/osu-framework/pull/6292 + "OSU_SDL3" = "1"; + "SDL_VIDEO_DRIVER" = "wayland"; + }; } diff --git a/hosts/dust/anti-feature.nix b/hosts/dust/anti-feature.nix index 52744d5..7eddc6a 100644 --- a/hosts/dust/anti-feature.nix +++ b/hosts/dust/anti-feature.nix @@ -11,6 +11,7 @@ "cef-binary" "dart" "go" + "osu-lazer-bin" "rustc-bootstrap" "rustc-bootstrap-wrapper" "sof-firmware" @@ -23,6 +24,10 @@ lib.elem (lib.getName pkg) [ "fcitx5-pinyin-minecraft" "fcitx5-pinyin-moegirl" + "osu-lazer-bin" + "steam" + "steam-original" + "steam-run" ]; }; } diff --git a/hosts/dust/default.nix b/hosts/dust/default.nix index b7c1610..bc8c1df 100644 --- a/hosts/dust/default.nix +++ b/hosts/dust/default.nix @@ -71,6 +71,9 @@ networking.firewall.allowedTCPPorts = [ 53317 ]; networking.firewall.allowedUDPPorts = [ 53317 ]; + programs.gamemode.enable = true; + programs.steam.enable = true; + programs.adb.enable = true; programs.dconf.enable = true; programs.fish.enable = true; diff --git a/hosts/dust/hardware-configuration.nix b/hosts/dust/hardware-configuration.nix index acc9bcf..7cbbcc3 100644 --- a/hosts/dust/hardware-configuration.nix +++ b/hosts/dust/hardware-configuration.nix @@ -23,8 +23,6 @@ boot.loader.timeout = 0; boot.loader.efi.canTouchEfiVariables = true; - boot.kernelParams = [ "ia32_emulation=0" ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" diff --git a/hosts/pek0/services/minecraft.nix b/hosts/pek0/services/minecraft.nix index 9e4f2a0..373bf61 100644 --- a/hosts/pek0/services/minecraft.nix +++ b/hosts/pek0/services/minecraft.nix @@ -50,6 +50,7 @@ whitelist = { "Guanran928" = "86dbb6c5-8d8b-4c45-b8eb-b3fdf03bfb27"; "i_love_ravens" = "2788dd4b-b010-4a2f-9b5c-aad0c0e0cba5"; + "e32ftedg" = "a54db5a0-67c2-476d-8457-a654dfbafd84"; }; }; } diff --git a/hosts/pek0/services/samba.nix b/hosts/pek0/services/samba.nix index e7a53ad..fa7f0d3 100644 --- a/hosts/pek0/services/samba.nix +++ b/hosts/pek0/services/samba.nix @@ -3,7 +3,7 @@ services.samba = { enable = true; openFirewall = true; - shares."external" = { + settings."external" = { "path" = "/mnt"; "read only" = "no"; };