From fa6465e563f2513a868dee2beb5f5387fcdb71ee Mon Sep 17 00:00:00 2001 From: Katherina Walshe-Grey Date: Sun, 17 Nov 2024 21:43:05 +0000 Subject: [PATCH 1/3] qenya/xdg-mime-apps: file association for .pdf --- home/qenya/xdg-mime-apps.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/home/qenya/xdg-mime-apps.nix b/home/qenya/xdg-mime-apps.nix index 2fee46c..b16f234 100644 --- a/home/qenya/xdg-mime-apps.nix +++ b/home/qenya/xdg-mime-apps.nix @@ -7,6 +7,7 @@ in xdg.mimeApps = { enable = isGraphical; defaultApplications = { + "application/pdf" = [ "org.gnome.Evince.desktop" "org.kde.okular.desktop" ]; "application/zip" = [ "org.gnome.FileRoller.desktop" "org.kde.ark.desktop" ]; "image/gif" = [ "org.gnome.Loupe.desktop" "org.kde.gwenview.desktop" ]; "image/jpeg" = [ "org.gnome.Loupe.desktop" "org.kde.gwenview.desktop" ]; From c5472892d8f2cab95b0480ba7ab7de73ed5ad996 Mon Sep 17 00:00:00 2001 From: Katherina Walshe-Grey Date: Mon, 18 Nov 2024 07:13:54 +0000 Subject: [PATCH 2/3] tohru, kilgharrah: add HP printer drivers --- hosts/kilgharrah/hardware.nix | 2 ++ hosts/tohru/hardware.nix | 2 ++ 2 files changed, 4 insertions(+) diff --git a/hosts/kilgharrah/hardware.nix b/hosts/kilgharrah/hardware.nix index f00dfbd..10f0f48 100644 --- a/hosts/kilgharrah/hardware.nix +++ b/hosts/kilgharrah/hardware.nix @@ -25,5 +25,7 @@ # persistencedSha256 = "sha256-d0Q3Lk80JqkS1B54Mahu2yY/WocOqFFbZVBh+ToGhaE="; # patches = [ rcu_patch ]; # }; + + services.printing.drivers = [ pkgs.hplip ]; } diff --git a/hosts/tohru/hardware.nix b/hosts/tohru/hardware.nix index 715ed4f..a2515bd 100644 --- a/hosts/tohru/hardware.nix +++ b/hosts/tohru/hardware.nix @@ -4,5 +4,7 @@ hardware.enableAllFirmware = true; hardware.cpu.intel.updateMicrocode = true; services.fwupd.enable = true; + + services.printing.drivers = [ pkgs.hplip ]; } From c573da7c347f8d7c8c9083fc5740fd4e502e2233 Mon Sep 17 00:00:00 2001 From: Katherina Walshe-Grey Date: Sun, 24 Nov 2024 15:36:30 +0000 Subject: [PATCH 3/3] misc: tone down aggression on nix garbage collector --- common/misc.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/misc.nix b/common/misc.nix index e470d54..af95d1b 100644 --- a/common/misc.nix +++ b/common/misc.nix @@ -1,7 +1,11 @@ { config, lib, pkgs, ... }: { - nix.gc.automatic = true; + nix.gc = { + automatic = true; + dates = "weekly"; + randomizedDelaySec = "45min"; + }; nix.optimise.automatic = true; services.fstrim.enable = true; } \ No newline at end of file