43 lines
1.0 KiB
Nix
43 lines
1.0 KiB
Nix
# {{{autogen}}}
|
|
{ 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;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|