mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
27 lines
647 B
Nix
27 lines
647 B
Nix
{ lib, config, pkgs, ... }:
|
|
{
|
|
options.swarselmodules.obsidian-tray = lib.mkEnableOption "enable obsidian applet for tray";
|
|
config = lib.mkIf config.swarselmodules.obsidian-tray {
|
|
|
|
systemd.user.services.obsidian-applet = {
|
|
Unit = {
|
|
Description = "Obsidian applet";
|
|
Requires = [ "tray.target" ];
|
|
After = [
|
|
"graphical-session.target"
|
|
"tray.target"
|
|
];
|
|
PartOf = [ "graphical-session.target" ];
|
|
};
|
|
|
|
Install = {
|
|
WantedBy = [ "graphical-session.target" ];
|
|
};
|
|
|
|
Service = {
|
|
ExecStart = "${pkgs.obsidian}/bin/obsidian";
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|