ctucx.git: nixfiles

ctucx' nixfiles

commit c3fc3b77500280d48ec326ba2d6530bdaf855498
parent b6fea09ddec41ab75b949cbf7013d9be4c60a758
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 12 Jan 2022 17:08:29 +0100

programs/libreoffice: add program
1 file changed, 72 insertions(+), 0 deletions(-)
A
configurations/programs/libreoffice.nix
|
72
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
diff --git a/configurations/programs/libreoffice.nix b/configurations/programs/libreoffice.nix
@@ -0,0 +1,72 @@
+{ pkgs, ... }:
+
+{
+  home-manager.users.leah = {
+    home = {
+      packages = [ pkgs.libreoffice-fresh ];
+    };
+
+    xdg = {
+      desktopEntries = {
+        impress = {
+          name        = "LibreOffice Impress";
+          genericName = "Presentation";
+          icon        = "impress";
+          exec        = "libreoffice --impress %U";
+          terminal    = false;
+          mimeType    = [ "application/vnd.oasis.opendocument.presentation" "application/vnd.oasis.opendocument.presentation-template" "application/vnd.sun.xml.impress"
+                          "application/vnd.sun.xml.impress.template" "application/mspowerpoint" "application/vnd.ms-powerpoint" "application/vnd.openxmlformats-officedocument.presentationml.presentation"
+                          "application/vnd.ms-powerpoint.presentation.macroEnabled.12" "application/vnd.openxmlformats-officedocument.presentationml.template"
+                          "application/vnd.ms-powerpoint.template.macroEnabled.12" "application/vnd.openxmlformats-officedocument.presentationml.slide"
+                          "application/vnd.openxmlformats-officedocument.presentationml.slideshow" "application/vnd.ms-powerpoint.slideshow.macroEnabled.12"
+                          "application/vnd.oasis.opendocument.presentation-flat-xml" "application/x-iwork-keynote-sffkey" ];
+          categories  = [ "Office" "Presentation" "X-Red-Hat-Base" "X-MandrivaLinux-Office-Presentations" ];
+          settings    = {
+            NoDisplay = "true";
+          };
+        };
+
+        math = {
+          name        = "LibreOffice Math";
+          genericName = "Formular Editor";
+          icon        = "math";
+          exec        = "libreoffice --math %U";
+          terminal    = false;
+          mimeType    = [ "application/vnd.oasis.opendocument.formula" "application/vnd.sun.xml.math" "application/vnd.oasis.opendocument.formula-template" "text/mathml" "application/mathml+xml" ];
+          categories  = [ "Office" "Education" "Science" "Math" "X-Red-Hat-Base" "X-MandrivaLinux-Office-Other" ];
+          settings    = {
+            NoDisplay = "true";
+          };
+        };
+
+        base = {
+          name        = "LibreOffice Base";
+          genericName = "Database Development";
+          icon        = "base";
+          exec        = "libreoffice --base %U";
+          terminal    = false;
+          mimeType    = [ "application/vnd.oasis.opendocument.database" "application/vnd.sun.xml.base" ];
+          categories  = [ "Office" "Database" "X-Red-Hat-Base" "X-MandrivaLinux-MoreApplications-Databases" ];
+          settings    = {
+            NoDisplay = "true";
+          };
+        };
+
+        draw = {
+          name        = "LibreOffice Draw";
+          genericName = "Drawing Program";
+          icon        = "draw";
+          exec        = "libreoffice --draw %U";
+          terminal    = false;
+          mimeType    = [ "application/vnd.oasis.opendocument.graphics" "application/vnd.oasis.opendocument.graphics-flat-xml" "application/vnd.oasis.opendocument.graphics-template"
+                          "application/vnd.sun.xml.draw" "application/vnd.sun.xml.draw.template" "application/vnd.visio" "application/x-wpg" "application/vnd.corel-draw"
+                          "application/vnd.ms-publisher" "image/x-freehand" "application/clarisworks" "application/x-pagemaker" "application/pdf" "application/x-stardraw" "image/x-emf;image/x-wmf" ];
+          categories  = [ "Office" "FlowChart" "Graphics" "2DGraphics" "VectorGraphics" "X-Red-Hat-Base" "X-MandrivaLinux-Office-Drawing" ];
+          settings    = {
+            NoDisplay = "true";
+          };
+        };
+      };
+    };
+  };
+}