home: setup flameshot

This commit is contained in:
Antoine Martin 2021-04-19 15:51:50 +02:00
parent cc34396e9e
commit 52290a8f8d
4 changed files with 17 additions and 3 deletions

View file

@ -6,7 +6,6 @@
emacsPgtkGcc emacsPgtkGcc
feh feh
firefox firefox
flameshot
pavucontrol pavucontrol
slack slack
spotify spotify

View file

@ -2,6 +2,7 @@
{ {
imports = [ imports = [
./emacs.nix ./emacs.nix
./flameshot.nix
./x ./x
]; ];

13
home/flameshot.nix Normal file
View file

@ -0,0 +1,13 @@
{ config, lib, ... }:
let
cfg = config.my.home.flameshot;
in
{
options.my.home.flameshot = with lib; {
enable = mkEnableOption "flameshot autolaunch";
};
config.services.flameshot = lib.mkIf cfg.enable {
enable = true;
};
}

View file

@ -27,8 +27,9 @@ let
in in
{ {
config = lib.mkIf isEnabled { config = lib.mkIf isEnabled {
# FIXME: enable flameshot when added my.home = {
# my.home = {}; flameshot.enable = true;
};
xsession.windowManager.i3 = { xsession.windowManager.i3 = {
enable = true; enable = true;