odds and ends

- switch to swaync
- skanpage only on gui setups
- relatime mounting
- firefox hardware accelforce enabled in config
This commit is contained in:
LordGrimmauld 2024-04-22 11:04:46 +02:00
parent 570e6e658a
commit 984fe942d3
6 changed files with 14 additions and 7 deletions

View file

@ -50,7 +50,11 @@ in
DontCheckDefaultBrowser = true; DontCheckDefaultBrowser = true;
Preferences = lib.mkMerge ([{ Preferences = lib.mkMerge ([{
"pdfjs.enableScripting" = false; "pdfjs.enableScripting" = false;
"media.hardware-video-decoding.enabled" = true; "media.hardware-video-decoding.enabled" = true;
"media.ffmpeg.vaapi.enabled" = true;
"media.rdd-ffmpeg.enabled" = true;
"media.navigator.mediadatadecoder_vpx_enabled" = true;
}] }]
++ lib.optional cfg.sway.enable { "browser.tabs.inTitlebar" = 0; } ++ lib.optional cfg.sway.enable { "browser.tabs.inTitlebar" = 0; }
); );

View file

@ -21,6 +21,7 @@ in
qt6ct qt6ct
libsForQt5.dolphin libsForQt5.dolphin
papirus-icon-theme papirus-icon-theme
kdePackages.kirigami
]; ];
# environment.etc."kvantum".source = "${pkgs.catppuccin-kvantum}/share/Kvantum"; # environment.etc."kvantum".source = "${pkgs.catppuccin-kvantum}/share/Kvantum";

View file

@ -15,9 +15,9 @@ in
services.printing.cups-pdf.enable = true; services.printing.cups-pdf.enable = true;
hardware.sane.brscan4.enable = true; # enables support for SANE scanners hardware.sane.brscan4.enable = true; # enables support for SANE scanners
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; (lib.optionals cfg.graphical [
skanpage kdePackages.skanpage
]; ]);
}; };
options.grimmShared.printing = with lib; mkOption { options.grimmShared.printing = with lib; mkOption {

View file

@ -42,7 +42,7 @@
}; };
}; };
cloudSync = { cloudSync = {
enable = true; # enable = true;
username = "Grimmauld"; username = "Grimmauld";
server = "cloud.grimmauld.de"; server = "cloud.grimmauld.de";
passwordFile = config.age.secrets.nextcloud_pass.path; passwordFile = config.age.secrets.nextcloud_pass.path;

View file

@ -18,13 +18,14 @@
{ {
device = "/dev/disk/by-uuid/3a4a7076-98e7-4ecd-bb07-7e182a04ceac"; device = "/dev/disk/by-uuid/3a4a7076-98e7-4ecd-bb07-7e182a04ceac";
fsType = "ext4"; fsType = "ext4";
options = [ "relatime" ];
}; };
fileSystems."/boot" = fileSystems."/boot" =
{ {
device = "/dev/disk/by-uuid/D20D-B5B0"; device = "/dev/disk/by-uuid/D20D-B5B0";
fsType = "vfat"; fsType = "vfat";
options = [ "umask=077" ]; options = [ "umask=077" "relatime" ];
}; };
swapDevices = [{ swapDevices = [{

View file

@ -7,8 +7,8 @@
brightnessctl brightnessctl
wl-clipboard wl-clipboard
swaymux swaymux
dunst
qt6ct qt6ct
swaynotificationcenter
]; ];
grimmShared.sway = { grimmShared.sway = {
@ -145,7 +145,7 @@
"blueman-applet" "blueman-applet"
"lxqt-policykit-agent" "lxqt-policykit-agent"
"otd-daemon" "otd-daemon"
dunst swaynotificationcenter
(pkgs.writeShellScriptBin "rmenu-cache-clear" "rm -r $HOME/.cache/rmenu") # invalidate rmenu cache on sway restart (pkgs.writeShellScriptBin "rmenu-cache-clear" "rm -r $HOME/.cache/rmenu") # invalidate rmenu cache on sway restart
"dbus-update-activation-environment" "dbus-update-activation-environment"
]; ];
@ -175,6 +175,7 @@
for_window [app_id="swaymux"] floating enable for_window [app_id="swaymux"] floating enable
for_window [app_id="rmenu"] floating enable for_window [app_id="rmenu"] floating enable
for_window [app_id="firefox.*" title="Picture-in-Picture"] floating enable
for_window [app_id="lxqt-policykit-agent"] floating enable; for_window [app_id="lxqt-policykit-agent"] floating enable;
''; '';