31 lines
675 B
Nix
31 lines
675 B
Nix
{ 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.stateVersion = "26.05";
|
|
|
|
home.sessionVariables = {
|
|
SCREENSHOT_TOOL = "flameshot";
|
|
USERNAME = username;
|
|
};
|
|
|
|
# Create ~/Pictures/Screenshots by touching a dummy file
|
|
home.file."Pictures/Screenshots/.keep" = {
|
|
text = ""; # empty file
|
|
};
|
|
};
|
|
}
|