~ruther/nixos-config

ref: 852a5059a5562a63a22325f83a19413eb051b71a nixos-config/modules/services/flameshot.nix -rw-r--r-- 716 bytes
852a5059 — František Boháček feat: ensure ~/screens created 1 year, 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#
# Screenshots
#

{ config, lib, pkgs, user, ... }:

let
  screensDir = "/home/${user}/screens";
in {
  services = {                                    # sxhkd shortcut = Printscreen button (Print)
    flameshot = {
      enable = true;
      settings = {
        General = {                               # Settings
          savePath = screensDir;
          saveAsFileExtension = ".png";
          uiColor = "#2d0096";
          showHelp = "false";
          disabledTrayIcon = "true";              # Hide from systray
        };
      };
    };
  };

  home.activations = {
    ensureScreensDirCreated = {
      after = [ "writeBoundary" ];
      data = ''
        mkdir -p ${screensDir}
      '';
    };
  };
}
Do not follow this link