fix(gnome): add monitors persist

This commit is contained in:
514fpv 2024-09-02 22:14:26 +08:00
parent 5db8ac7db9
commit 156fcf69be
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
3 changed files with 3 additions and 17 deletions

View file

@ -223,7 +223,7 @@ in mkIf cfg.enable {
#"${pse}/user-theme".name = "catppuccin-mocha-pink-compact"; #"${pse}/user-theme".name = "catppuccin-mocha-pink-compact";
"${pse}/caffeine" = { "${pse}/caffeine" = {
screen-blank = "always"; screen-blank = "never";
}; };
"${pse}/dash-to-dock" = { "${pse}/dash-to-dock" = {

View file

@ -46,5 +46,6 @@ in mkIf cfg.enable {
]); ]);
users.home.persist.directories = [ ".config/dconf" ]; users.home.persist.directories = [ ".config/dconf" ];
users.home.persist.files = [ ".config/monitors.xml" ];
environment.persistence."/nix/persist/fhs".directories = [ ]; environment.persistence."/nix/persist/fhs".directories = [ ];
} }

View file

@ -14,7 +14,7 @@
}; };
home = { home = {
plasma.enable = true; gnome.enable = true;
gyroflow.enable = true; gyroflow.enable = true;
jetbrains.enable = true; jetbrains.enable = true;
vscode.enable = true; vscode.enable = true;
@ -23,27 +23,12 @@
steam.enable = true; steam.enable = true;
}; };
home.plasma.extraConfig = {
configFile = {
kscreenlockerrc.Daemon.Autolock = false;
kcminputrc."Libinput/16700/9486/Dell Computer Corp Dell Laser Mouse MS3220".NaturalScroll = true;
};
};
imports = lib.pipe ./. [ imports = lib.pipe ./. [
builtins.readDir builtins.readDir
(lib.filterAttrs (n: ty: ty == "regular" && n != "default.nix")) (lib.filterAttrs (n: ty: ty == "regular" && n != "default.nix"))
(lib.mapAttrsToList (n: _: ./${n})) (lib.mapAttrsToList (n: _: ./${n}))
] ++ [ (modulesPath + "/profiles/qemu-guest.nix") ]; ] ++ [ (modulesPath + "/profiles/qemu-guest.nix") ];
# work around low cage resolution on pure nvidia
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-2 --mode 1920x1080@60.000000Hz
${lib.getExe cfg.package}
''}";
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "usbhid" "sr_mod" "virtio_blk" ]; boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "usbhid" "sr_mod" "virtio_blk" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" ];