From 0fce9564f5535ba5bf37f129fdfd0ff24f785a0e Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Wed, 3 Jan 2024 18:03:46 -0800 Subject: [PATCH] beatific: Add beatific.extraPrograms This is partly a way to keep notes on useful software that I might otherwise forget about --- machine/imperium/default.nix | 1 + modules/beatific.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/machine/imperium/default.nix b/machine/imperium/default.nix index f12f02a..aeb1df5 100644 --- a/machine/imperium/default.nix +++ b/machine/imperium/default.nix @@ -50,6 +50,7 @@ hardware.opengl.enable = true; hardware.opengl.driSupport32Bit = true; + beatific.extraPrograms = true; environment.systemPackages = with pkgs; [ firefox libreoffice diff --git a/modules/beatific.nix b/modules/beatific.nix index f2ee099..744307a 100644 --- a/modules/beatific.nix +++ b/modules/beatific.nix @@ -26,6 +26,12 @@ in { default = false; }; + extraPrograms = mkOption { + type = types.bool; + description = "Additional default programs"; + default = false; + }; + # Groups of related defaults can be disabled by flipping off the switches here: # beatific.defaults.${category} = false; # They default to true because the point is to do these things by default. @@ -107,6 +113,14 @@ in { environment.variables.EDITOR = mkOverride 999 "vim"; }) + (mkIf cfg.extraPrograms { + environment.systemPackages = with pkgs; [ + calibre # provides ebook-convert + imagemagick # image convertion cli + tesseract # OCR engine + ]; + }) + (mkIf cfg.defaults.ssh { services.openssh.enable = true; services.openssh.banner = let