diff --git a/home/modules/flameshot.nix b/home/modules/flameshot.nix new file mode 100644 index 0000000..07508ca --- /dev/null +++ b/home/modules/flameshot.nix @@ -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; + }; +} diff --git a/hosts/snowhawk/home.nix b/hosts/snowhawk/home.nix index 4c880bc..1609681 100644 --- a/hosts/snowhawk/home.nix +++ b/hosts/snowhawk/home.nix @@ -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