fix(hakugyokurou): remove jovian mode

This commit is contained in:
514fpv 2024-09-13 12:32:12 +08:00
parent 992572be6b
commit bc362174a9
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
2 changed files with 0 additions and 106 deletions

View file

@ -44,19 +44,12 @@
DeviceScale=2 DeviceScale=2
''; '';
jovian.steamos.useSteamOSConfig = lib.mkDefault false;
services.greetd.settings.default_session.command = let services.greetd.settings.default_session.command = let
cfg = config.programs.regreet; 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" '' 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 pkgs.wlr-randr} --output eDP-1 --scale 2 --transform 90
${lib.getExe cfg.package} ${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.sensor.iio.enable = true;
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;
@ -65,8 +58,4 @@
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
hardware.cpu.intel.updateMicrocode = true; hardware.cpu.intel.updateMicrocode = true;
imports = [
./jovian.nix
];
} }

View file

@ -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
];
}