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
feh
firefox
flameshot
pavucontrol
slack
spotify

View file

@ -2,6 +2,7 @@
{
imports = [
./emacs.nix
./flameshot.nix
./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
{
config = lib.mkIf isEnabled {
# FIXME: enable flameshot when added
# my.home = {};
my.home = {
flameshot.enable = true;
};
xsession.windowManager.i3 = {
enable = true;