# --- 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 = "#95c2e0"; contrastUiColor = "#cdd6f4"; showDesktopNotification = true; savePath = "${config.home.homeDirectory}/Pictures/Screenshots"; filenamePattern = "$Y-$m-$d_$H-$M-$S"; useGrimAdapter = true; }; }; }; }