flameshot: module get

main
Zynh Ludwig 2024-07-30 23:09:02 -07:00
parent 6e2ef44fd1
commit a7ce699734
2 changed files with 23 additions and 2 deletions

View File

@ -0,0 +1,22 @@
{ lib, config, pkgs, ... }:
let
cfg = config.snowhawk.flameshot;
in
{
options.snowhawk.flameshot = {
enable = lib.mkEnableOption "flameshot home-manager module";
config = lib.mkOption {
type = with lib.types; attrsOf inferred;
description = "the flameshot config as an attrs of attrs";
default = { };
};
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [ flameshot ];
xdg.configFile."flameshot/flameshot.ini" = lib.generators.toINI { } cfg.config;
};
}

View File

@ -23,6 +23,7 @@ in
playerctl.enable = true;
redshift.enable = true;
xivlauncher.enable = true;
flameshot.enable = true;
};
snowhawk.ssh = {
enable = true;
@ -59,8 +60,6 @@ in
obsidian
steam
flameshot
# Build Tools
rustup
gnumake