mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
Some files don't need nesting and can be root level again to reduce conflicts with other PRs. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
48 lines
787 B
Nix
48 lines
787 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
let
|
|
|
|
cfg = config.services.volnoti;
|
|
|
|
in
|
|
{
|
|
meta.maintainers = with lib.maintainers; [
|
|
imalison
|
|
tomodachi94
|
|
];
|
|
|
|
options = {
|
|
services.volnoti = {
|
|
enable = lib.mkEnableOption "Volnoti volume HUD daemon";
|
|
|
|
package = lib.mkPackageOption pkgs "volnoti" { };
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
assertions = [
|
|
(lib.hm.assertions.assertPlatform "services.volnoti" pkgs lib.platforms.linux)
|
|
];
|
|
|
|
home.packages = [ cfg.package ];
|
|
|
|
systemd.user.services.volnoti = {
|
|
Unit = {
|
|
Description = "volnoti";
|
|
};
|
|
|
|
Install = {
|
|
WantedBy = [ "graphical-session.target" ];
|
|
};
|
|
|
|
Service = {
|
|
ExecStart = "${lib.getExe cfg.package} -v -n";
|
|
};
|
|
};
|
|
};
|
|
}
|