From bbe1dcb23de4c7554beaccfb12b9faa9fa1df273 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Fri, 6 Oct 2023 12:04:48 +0200 Subject: [PATCH] ghostwriter config --- hosts/yodaNas/configuration.nix | 1 + hosts/yodaTab/configuration.nix | 1 + hosts/yodaTux/configuration.nix | 1 + hosts/yodaYoga/configuration.nix | 1 + modules/ghostwriter.nix | 34 ++++++++++++++++++++++++++++++++ modules/programs.nix | 1 - 6 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 modules/ghostwriter.nix diff --git a/hosts/yodaNas/configuration.nix b/hosts/yodaNas/configuration.nix index 97fa3cf..75385a0 100644 --- a/hosts/yodaNas/configuration.nix +++ b/hosts/yodaNas/configuration.nix @@ -46,6 +46,7 @@ in #../../modules/firefox.nix #../../modules/thunderbird.nix #../../modules/digikam-rawtherapee.nix + #../../modules/ghostwriter.nix #../../modules/android.nix #../../modules/podman.nix ../../modules/docker.nix diff --git a/hosts/yodaTab/configuration.nix b/hosts/yodaTab/configuration.nix index aedb557..287d40b 100644 --- a/hosts/yodaTab/configuration.nix +++ b/hosts/yodaTab/configuration.nix @@ -45,6 +45,7 @@ in ../../modules/firefox.nix ../../modules/thunderbird.nix #../../modules/digikam-rawtherapee.nix + ../../modules/ghostwriter.nix #../../modules/android.nix #../../modules/podman.nix #../../modules/docker.nix diff --git a/hosts/yodaTux/configuration.nix b/hosts/yodaTux/configuration.nix index 4f586ad..f3d9cc1 100644 --- a/hosts/yodaTux/configuration.nix +++ b/hosts/yodaTux/configuration.nix @@ -45,6 +45,7 @@ in ../../modules/firefox.nix ../../modules/thunderbird.nix ../../modules/digikam-rawtherapee.nix + ../../modules/ghostwriter.nix ../../modules/android.nix #../../modules/podman.nix ../../modules/docker.nix diff --git a/hosts/yodaYoga/configuration.nix b/hosts/yodaYoga/configuration.nix index 23df028..b579a53 100644 --- a/hosts/yodaYoga/configuration.nix +++ b/hosts/yodaYoga/configuration.nix @@ -46,6 +46,7 @@ in #../../modules/firefox.nix #../../modules/thunderbird.nix #../../modules/digikam-rawtherapee.nix + #../../modules/ghostwriter.nix #../../modules/android.nix #../../modules/podman.nix ../../modules/docker.nix diff --git a/modules/ghostwriter.nix b/modules/ghostwriter.nix new file mode 100644 index 0000000..0ac5d4a --- /dev/null +++ b/modules/ghostwriter.nix @@ -0,0 +1,34 @@ +{ config, pkgs, ... }: + +{ + users.users.yoda = { + packages = with pkgs; [ + libsForQt5.ghostwriter # Markdown editor + ]; + }; + + home-manager.users.yoda = { osConfig, config, pkgs, ... }: { + home.file.".config/kde.org/ghostwriter.conf" = { + text = '' + [Application] + locale=en_US + + [Preview] + htmlPreviewOpen=false + lastUsedExporter=cmark-gfm + lastUsedExporterParams= + + [Save] + autoSave=false + backupFile=false + + [Style] + largeHeadings=true + + [Tabs] + insertSpacesForTabs=true + tabWidth=2 + ''; + }; + }; +} diff --git a/modules/programs.nix b/modules/programs.nix index 305e92d..1c37d0b 100644 --- a/modules/programs.nix +++ b/modules/programs.nix @@ -57,7 +57,6 @@ then jetbrains.idea-ultimate else jetbrains.idea-community ) - libsForQt5.ghostwriter # Markdown editor transmission-gtk # BitTorrent client meld # Diff and merge tool handbrake # Rip DVD and Blu-ray; rotate and export videos