nix-git/modules/ghostwriter.nix

37 lines
819 B
Nix
Raw Permalink Normal View History

2023-10-18 13:31:02 +02:00
{ config, pkgs, lib, ... }:
2023-10-06 12:04:48 +02:00
{
users.users.yoda = {
packages = with pkgs; [
libsForQt5.ghostwriter # Markdown editor
];
};
2023-10-18 13:31:02 +02:00
# This fixes blurry fonts with fractional scaling on Wayland.
environment.sessionVariables.QT_QPA_PLATFORM = lib.mkIf (config.services.xserver.displayManager.gdm.wayland) "wayland";
2023-10-06 12:04:48 +02:00
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
'';
};
};
}