Extract a flameshot mixin

This commit is contained in:
Oliver Davies 2025-04-05 09:00:56 +01:00
parent 3379924c0e
commit 490aa3eb99
7 changed files with 20 additions and 32 deletions

View file

@ -2,7 +2,6 @@
{
homeManagerModules = {
flameshot.enable = true;
gimp.enable = true;
gtk.enable = true;
handbrake.enable = true;

View file

@ -2,7 +2,6 @@
{
homeManagerModules = {
flameshot.enable = true;
gimp.enable = true;
gtk.enable = true;
handbrake.enable = true;

View file

@ -2,7 +2,6 @@
{
homeManagerModules = {
flameshot.enable = true;
gimp.enable = true;
gtk.enable = true;
handbrake.enable = true;

View file

@ -11,6 +11,7 @@
../../modules/mixins/bluetooth.nix
../../modules/mixins/direnv.nix
../../modules/mixins/docker.nix
../../modules/mixins/flameshot.nix
../../modules/mixins/fonts.nix
../../modules/mixins/fzf.nix
../../modules/mixins/phpactor

View file

@ -1,6 +1,5 @@
{
imports = [
./flameshot.nix
./gtk.nix
./media
];

View file

@ -1,28 +0,0 @@
{
config,
lib,
username,
...
}:
with lib;
{
options.homeManagerModules.flameshot.enable = mkEnableOption "Enable flameshot";
config = mkIf config.homeManagerModules.flameshot.enable {
services.flameshot = {
enable = true;
settings = {
General = {
disabledTrayIcon = false;
saveAfterCopy = true;
savePath = "/home/${username}/Pictures/Screenshots";
showHelp = false;
uiColor = "#60a5fa";
};
};
};
};
}

View file

@ -0,0 +1,19 @@
{
home-manager.users.opdavies =
{ config, ... }:
{
services.flameshot = {
enable = true;
settings = {
General = {
disabledTrayIcon = false;
saveAfterCopy = true;
savePath = "${config.xdg.userDirs.pictures}/Screenshots";
showHelp = false;
uiColor = "#60a5fa";
};
};
};
};
}