45 lines
1.3 KiB
Nix
45 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
|
|
};
|
|
|
|
home.file.".config/flameshot/flameshot.ini".text = ''
|
|
[General]
|
|
; Border color: A solid blend of @blue and @green (approximates the gradient)
|
|
buttonColor=#95c2e0
|
|
; Sidebar and inactive elements: Use @surface2 for subtlety
|
|
sidebarColor=#585b70
|
|
; Active buttons: Use @peach for contrast
|
|
buttonActiveColor=#fab387
|
|
; Text/icons: Use @text for readability
|
|
contrastingUIColor=#cdd6f4
|
|
showDesktopNotification=true
|
|
savePath=${config.xdg.picturesDir}/Screenshots
|
|
filenamePattern=$Y-$m-$d_$H-$M-$S
|
|
copyPathAfterCapture=true
|
|
'';
|
|
};
|
|
}
|