1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-03 07:31:03 +01:00
home-manager/modules/services/volnoti.nix
Austin Horstman 82ee14ff60
treewide: remove with lib (#6871)
Remove from services.
2025-04-21 11:00:59 -05:00

55 lines
995 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.mkOption {
type = lib.types.package;
default = pkgs.volnoti;
defaultText = lib.literalExpression "pkgs.volnoti";
description = ''
Package containing the {command}`volnoti` program.
'';
};
};
};
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";
};
};
};
}