mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Remove syncthingtray
This commit is contained in:
parent
8730e3a2ee
commit
79e7f10534
3 changed files with 0 additions and 32 deletions
|
|
@ -3,7 +3,6 @@
|
|||
./hyprland
|
||||
./theme.nix
|
||||
./rofi
|
||||
./tray.nix
|
||||
./waybar.nix
|
||||
./hypridlelock.nix
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,30 +0,0 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.myConfig.de;
|
||||
in {
|
||||
options.myConfig.de.tray.syncthing.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf cfg.tray.syncthing.enable {
|
||||
home.packages = [pkgs.syncthingtray-minimal];
|
||||
|
||||
systemd.user.services = {
|
||||
syncthingtray = {
|
||||
Unit = {
|
||||
Description = "Syncthingtray";
|
||||
Requires = ["tray.target"];
|
||||
After = [
|
||||
"graphical-session-pre.target"
|
||||
"tray.target"
|
||||
];
|
||||
PartOf = ["graphical-session.target"];
|
||||
};
|
||||
Service.ExecStart = "${lib.getExe' pkgs.syncthingtray-minimal "syncthingtray"} --wait";
|
||||
Install.WantedBy = ["graphical-session.target"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -10,7 +10,6 @@
|
|||
de = {
|
||||
hyprland.enable = osConfig.myConfig.de.hyprland.enable;
|
||||
wallpaper = ./wallpaper;
|
||||
tray.syncthing.enable = osConfig.myConfig.syncthing.enable;
|
||||
};
|
||||
|
||||
shell = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue