Files
nixos/Droidnix/generated/modules/traveldroid/apps/flameshot.nix
T
2026-04-23 20:48:00 +02:00

53 lines
1.3 KiB
Nix

# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
{ pkgs, config, lib, ... }:
let
username = config.defaultUser or "henrov";
in
{
############################
# System-level packages
############################
environment.systemPackages = with pkgs; [
flameshot
];
############################
# Home Manager user-level configuration
############################
home-manager.users."${username}" = {
home.sessionVariables = {
SCREENSHOT_TOOL = "flameshot";
USERNAME = username;
};
# Create ~/Pictures/Screenshots by touching a dummy file
home.file."Pictures/Screenshots/.keep" = {
text = ""; # empty file
};
services.flameshot = {
enable = true;
settings = {
General = {
uiColor = "#97cbbe";
contrastUiColor = "#1e1e2e";
showDesktopNotification = true;
savePath = "/home/${username}/Pictures/Screenshots";
filenamePattern = "$Y-$m-$d_$H-$M-$S";
useGrimAdapter = true;
};
};
};
systemd.user.services.flameshot = {
Service = {
Environment = [
"WAYLAND_DISPLAY=wayland-1"
"XDG_CURRENT_DESKTOP=hyprland"
"XDG_SESSION_TYPE=wayland"
];
};
};
};
}