diff --git a/.config/zed/settings.json b/.config/zed/settings.json index 7c213e8..0d0f0cb 100644 --- a/.config/zed/settings.json +++ b/.config/zed/settings.json @@ -41,6 +41,7 @@ ], "semantic_tokens": "combined", "cli_default_open_behavior": "existing_window", + "file_scan_exclusions": ["**/node_modules", "..."], "languages": { "JavaScript": { "formatter": { "language_server": { "name": "biome" } }, diff --git a/servers/fern/configuration.nix b/servers/fern/configuration.nix index be4a1e3..0b4a6d7 100644 --- a/servers/fern/configuration.nix +++ b/servers/fern/configuration.nix @@ -118,6 +118,19 @@ in ]; services.hardware.openrgb.enable = true; + + # OpenRGB's GUI shutdown action runs too late during session teardown. Blank + # the controllers while udev and the Nix store are still available instead. + systemd.services.openrgb-shutdown = { + description = "Turn off RGB lighting before shutdown"; + wantedBy = [ "shutdown.target" ]; + before = [ "shutdown.target" ]; + unitConfig.DefaultDependencies = false; + serviceConfig = { + Type = "oneshot"; + ExecStart = "${lib.getExe pkgs.openrgb-with-all-plugins} --device B850 --mode static --color 000000 --device Wooting --color 000000"; + }; + }; # The split RemoteDesktop/ScreenCast portal session emits malformed D-Bus # traffic with XDPH 1.4.1. Override capture without replacing Sunshine's # mutable web-UI configuration.