nixos/home/modules/flameshot.nix

23 lines
514 B
Nix
Raw Normal View History

2024-07-31 06:09:02 +00:00
{ lib, config, pkgs, ... }:
let
cfg = config.snowhawk.flameshot;
in
{
options.snowhawk.flameshot = {
enable = lib.mkEnableOption "flameshot home-manager module";
config = lib.mkOption {
2024-07-31 06:14:28 +00:00
type = with lib.types; attrsOf attrs;
2024-07-31 06:09:02 +00:00
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;
};
}