syncthing plasma
This commit is contained in:
parent
ef7291893a
commit
00894bdf39
2 changed files with 34 additions and 0 deletions
22
homeManagerModules/desktop/plasma.nix
Normal file
22
homeManagerModules/desktop/plasma.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.krop.hm.desktop.plasma;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.krop.hm.desktop.plasma = {
|
||||||
|
enable = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
example = true;
|
||||||
|
description = "Enable my plasma configuration";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
|
@ -15,6 +15,12 @@ in
|
||||||
example = false;
|
example = false;
|
||||||
description = "Enable my misc applications";
|
description = "Enable my misc applications";
|
||||||
};
|
};
|
||||||
|
syncthing = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = true;
|
||||||
|
example = false;
|
||||||
|
description = "Enable syncthing";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
@ -27,5 +33,11 @@ in
|
||||||
joplin-desktop
|
joplin-desktop
|
||||||
wireshark
|
wireshark
|
||||||
];
|
];
|
||||||
|
services.syncthing = {
|
||||||
|
enable = true;
|
||||||
|
tray = lib.mkIf config.krop.hm.desktop.plasma.enable {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue