fix(koumakyou): boot to gamescope

This commit is contained in:
514fpv 2024-05-11 00:03:05 +08:00
parent 0fe831c218
commit 2d2895949b
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
2 changed files with 17 additions and 9 deletions

View file

@ -35,12 +35,16 @@
${pkgs.kmod}/bin/modprobe bmi260_core
'';
specialisation.desktop.configuration = {
programs.regreet.enable = lib.mkForce true;
jovian.steam.autoStart = lib.mkForce false;
services.greetd.settings.default_session.command = let
cfg = config.programs.regreet;
in "${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
${lib.getExe cfg.package}
''}";
};
hardware.enableRedistributableFirmware = true;
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usbhid" "usb_storage" "sd_mod" ];

View file

@ -1,4 +1,8 @@
{ jovian, ... }: {
imports = [
jovian.nixosModules.jovian
];
jovian = {
hardware.has.amd.gpu = true;
steamos.useSteamOSConfig = true;
@ -6,6 +10,8 @@
steam = {
enable = true;
autoStart = true;
desktopSession = "sway";
user = "app";
};
};
@ -14,9 +20,7 @@
".steam" ".local/share/Steam" ".config/gamescope"
];
imports = [
jovian.nixosModules.jovian
];
programs.regreet.enable = false;
} // {
#users.users.decky.uid = 514;
#users.groups.decky.gid = 514;