From bc362174a9c16f6af18fee178e9642edbc432219 Mon Sep 17 00:00:00 2001 From: 514fpv Date: Fri, 13 Sep 2024 12:32:12 +0800 Subject: [PATCH] fix(hakugyokurou): remove jovian mode --- spec/hakugyokurou/default.nix | 11 ---- spec/hakugyokurou/jovian.nix | 95 ----------------------------------- 2 files changed, 106 deletions(-) delete mode 100644 spec/hakugyokurou/jovian.nix diff --git a/spec/hakugyokurou/default.nix b/spec/hakugyokurou/default.nix index a2032d45..f1f9f285 100644 --- a/spec/hakugyokurou/default.nix +++ b/spec/hakugyokurou/default.nix @@ -44,19 +44,12 @@ DeviceScale=2 ''; - jovian.steamos.useSteamOSConfig = lib.mkDefault false; services.greetd.settings.default_session.command = let cfg = config.programs.regreet; in lib.mkOverride 999 "${pkgs.dbus}/bin/dbus-run-session ${lib.getExe pkgs.cage} ${lib.escapeShellArgs cfg.cageArgs} -- ${pkgs.writeShellScript "cageResolution" '' ${lib.getExe pkgs.wlr-randr} --output eDP-1 --scale 2 --transform 90 ${lib.getExe cfg.package} ''}"; - environment.systemPackages = with pkgs; [ - (writeShellScriptBin "sway-logout" '' - ${systemd}/bin/systemctl --user unset-environment WAYLAND_DISPLAY SWAYSOCK - ${sway}/bin/swaymsg exit - '') - ]; hardware.sensor.iio.enable = true; hardware.enableRedistributableFirmware = true; @@ -65,8 +58,4 @@ boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; hardware.cpu.intel.updateMicrocode = true; - - imports = [ - ./jovian.nix - ]; } diff --git a/spec/hakugyokurou/jovian.nix b/spec/hakugyokurou/jovian.nix deleted file mode 100644 index 68759ab7..00000000 --- a/spec/hakugyokurou/jovian.nix +++ /dev/null @@ -1,95 +0,0 @@ -{ pkgs, lib, config, jovian, ... }: with lib; { - specialisation.steamos.configuration = { - jovian = { - hardware.has.amd.gpu = true; - steamos.useSteamOSConfig = true; - steamos.enableDefaultCmdlineConfig = false; - - steam = { - enable = true; - autoStart = true; - desktopSession = "plasma"; - user = "app"; - }; - }; - - users.home.persistApp.directories = [ - ".steam" ".local/share/Steam" - ".config/gamescope" ".config/hhd" - ".kodi" - ]; - - users.users.app.extraGroups = [ "networkmanager" "gamemode" ]; - programs.gamemode.enable = true; - programs.regreet.enable = false; - home.gnome.enable = mkForce false; - home.steam.enable = mkForce false; - home.plasma.enable = true; - home.plasma.extraConfig = { - configFile = { - kwinrc.Xwayland.Scale = 2; - kscreenlockerrc.Daemon.Autolock = false; - }; - }; - - home-manager.users.app = { - home.packages = with pkgs; [ - (pkgs.kodi-wayland.passthru.withPackages (kodiPkgs: with kodiPkgs; [ - joystick # keymap steam-controller - #controller-topology-project - libretro libretro-2048 - libretro-fuse libretro-genplus libretro-mgba - libretro-nestopia libretro-snes9x - jellycon - ])) - ]; - - home.pointerCursor = { - package = pkgs.steamdeck-hw-theme; - name = "steam"; - }; - }; - - services.handheld-daemon = { - enable = true; - user = "app"; - }; - - jovian.decky-loader = { - # ~/.steam/steam/.cef-enable-remote-debugging - enable = true; - user = "app"; - extraPackages = with pkgs; [ - curl unzip util-linux gnugrep procps pciutils kmod ryzenadj - ]; - extraPythonPackages = pythonPackages: with pythonPackages; [ - hid pyyaml - ]; - stateDir = "/nix/persist/decky"; - }; - - boot.kernelParams = [ - "iomem=relaxed" - "amd_pstate=passive" - ]; - boot.plymouth.themePackages = [ pkgs.steamdeck-hw-theme ]; - boot.plymouth.theme = "steamos"; - - services.udev.extraRules = '' - SUBSYSTEM=="power_supply", ATTR{online}=="0", RUN+="${pkgs.ryzenadj}/bin/ryzenadj --max-performance" - ''; - - nixpkgs.overlays = [ (final: prev: { - gamescope = prev.gamescope.overrideAttrs (finalAttrs: previousAttrs: { - postInstall = previousAttrs.postInstall + "\n" + '' - wrapProgram "$out/bin/gamescope" \ - --append-flags "--force-orientation left" - ''; - }); - }) ]; - }; - - imports = [ - jovian.nixosModules.jovian - ]; -}