flameshot: module get
This commit is contained in:
parent
6e2ef44fd1
commit
a7ce699734
2 changed files with 23 additions and 2 deletions
22
home/modules/flameshot.nix
Normal file
22
home/modules/flameshot.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -23,6 +23,7 @@ in
|
||||||
playerctl.enable = true;
|
playerctl.enable = true;
|
||||||
redshift.enable = true;
|
redshift.enable = true;
|
||||||
xivlauncher.enable = true;
|
xivlauncher.enable = true;
|
||||||
|
flameshot.enable = true;
|
||||||
};
|
};
|
||||||
snowhawk.ssh = {
|
snowhawk.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -59,8 +60,6 @@ in
|
||||||
obsidian
|
obsidian
|
||||||
steam
|
steam
|
||||||
|
|
||||||
flameshot
|
|
||||||
|
|
||||||
# Build Tools
|
# Build Tools
|
||||||
rustup
|
rustup
|
||||||
gnumake
|
gnumake
|
||||||
|
|
Loading…
Reference in a new issue