fork/home-manager
git clone https://git.julia.blue/fork/home-manager
75790441
master
1{ config , lib , pkgs , ...} : 2 3with lib ; 4 5let 6 7cfg = config . services . volnoti ; 8 9in { 10meta . maintainers = [ maintainers . imalison ]; 11 12options = { 13services . volnoti = { 14enable = mkEnableOption "Volnoti volume HUD daemon" ; 15 16package = mkOption { 17type = types . package ; 18default = pkgs . volnoti ; 19defaultText = literalExpression "pkgs.volnoti" ; 20description = '' 21Package containing the {command}`volnoti` program. 22'' ; 23}; 24}; 25}; 26 27config = mkIf cfg . enable { 28assertions = [ 29( lib . hm . assertions . assertPlatform "services.volnoti" pkgs 30lib . platforms . linux ) 31]; 32 33home . packages = [ cfg . package ]; 34 35systemd . user . services . volnoti = { 36Unit = { Description = "volnoti" ; }; 37 38Install = { WantedBy = [ "graphical-session.target" ]; }; 39 40Service = { ExecStart = " ${ pkgs . volnoti } /bin/volnoti -v -n" ; }; 41}; 42}; 43}