aboutsummaryrefslogtreecommitdiff
path: root/snowfall/modules/home/apps
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-02-07 22:34:28 -0800
committerCaroline Larimore <caroline@larimo.re>2025-04-14 18:58:49 -0700
commit7488b6f44fab0c36142587f60092236aeda4fecb (patch)
tree31051cf925c3ff7f4a51db28801bc0444d1411dd /snowfall/modules/home/apps
parent5966c6bf05697f300e39e2abdd1631122efe3d87 (diff)
migration: flameshot
Diffstat (limited to 'snowfall/modules/home/apps')
-rw-r--r--snowfall/modules/home/apps/flameshot/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/snowfall/modules/home/apps/flameshot/default.nix b/snowfall/modules/home/apps/flameshot/default.nix
new file mode 100644
index 0000000..9a91604
--- /dev/null
+++ b/snowfall/modules/home/apps/flameshot/default.nix
@@ -0,0 +1,38 @@
+{ options, config, lib, namespace, ... }:
+
+with lib; with lib.${namespace}; let
+ cfg = config.${namespace}.apps.flameshot;
+ desktop = config.${namespace}.desktop;
+in {
+ options.${namespace}.apps.flameshot = with types; {
+ enable = mkEnableOption "flameshot";
+ };
+
+ config = mkIf cfg.enable {
+ services.flameshot = {
+ enable = true;
+
+ settings = let c = desktop.theme.colors; in {
+ General = {
+ savePath = "Pictures/Screenshots";
+ filenamePattern = "%F_%T";
+
+ saveAfterCopy = true;
+
+ uiColor = "#${c.bg}";
+ contrastUiColor = "#${c.accent}";
+
+ startupLaunch = false;
+ };
+ };
+ };
+
+ #TODO: relocate. target.tray required for flameshot
+ systemd.user.targets.tray = {
+ Unit = {
+ Description = "Home Manager System Tray";
+ Requires = [ "graphical-session-pre.target" ];
+ };
+ };
+ };
+}