From 58bc0734ba90ce03365ce0167a158e08a035d043 Mon Sep 17 00:00:00 2001 From: 514fpv Date: Wed, 6 Mar 2024 10:26:31 +0800 Subject: [PATCH] fix(shinkirou): scale login screen --- spec/shinkirou/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/spec/shinkirou/default.nix b/spec/shinkirou/default.nix index faf06ae7..d93f5920 100644 --- a/spec/shinkirou/default.nix +++ b/spec/shinkirou/default.nix @@ -1,4 +1,6 @@ -{ pkgs +{ lib +, pkgs +, config , ... }: { global = { id = "23c46cfc573f4f889af9ba5d4678c2ab"; @@ -43,6 +45,13 @@ nvidiaBusId = "PCI:1:0:0"; }; + 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 DP-3 --scale 2.25 + ${lib.getExe cfg.package} + ''}"; + hardware.enableRedistributableFirmware = true; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ];