41 lines
1.1 KiB
Nix
41 lines
1.1 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]
|
|
buttonColor=#95c2e0
|
|
sidebarColor=#585b70
|
|
buttonActiveColor=#fab387
|
|
contrastingUIColor=#cdd6f4
|
|
showDesktopNotification=true
|
|
savePath=~/Pictures/Screenshots
|
|
filenamePattern=$Y-$m-$d_$H-$M-$S
|
|
copyPathAfterCapture=true
|
|
'';
|
|
};
|
|
}
|