mirror of
https://github.com/nix-community/home-manager
synced 2024-12-25 03:09:47 +01:00
volnoti: add module (#2183)
This commit is contained in:
parent
fa483b82ab
commit
41101d0e62
4 changed files with 47 additions and 1 deletions
4
.github/CODEOWNERS
vendored
4
.github/CODEOWNERS
vendored
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
/modules/home-environment.nix @rycee
|
/modules/home-environment.nix @rycee
|
||||||
|
|
||||||
/modules/i18n/input-method @Kranzes
|
/modules/i18n/input-method @Kranzes
|
||||||
/tests/modules/i18n/input-method @Kranzes
|
/tests/modules/i18n/input-method @Kranzes
|
||||||
|
|
||||||
/modules/misc/dconf.nix @gnidorah @rycee
|
/modules/misc/dconf.nix @gnidorah @rycee
|
||||||
|
@ -339,3 +339,5 @@
|
||||||
/modules/xresources.nix @rycee
|
/modules/xresources.nix @rycee
|
||||||
|
|
||||||
/modules/xsession.nix @rycee
|
/modules/xsession.nix @rycee
|
||||||
|
|
||||||
|
/modules/services/volnoti.nix @IvanMalison
|
||||||
|
|
|
@ -2133,6 +2133,14 @@ in
|
||||||
A new module is available: 'services.xsettingsd'.
|
A new module is available: 'services.xsettingsd'.
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
time = "2021-07-14T20:06:18+00:00";
|
||||||
|
message = ''
|
||||||
|
A new module is available: 'services.volnoti'.
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -211,6 +211,7 @@ let
|
||||||
./services/udiskie.nix
|
./services/udiskie.nix
|
||||||
./services/unclutter.nix
|
./services/unclutter.nix
|
||||||
./services/unison.nix
|
./services/unison.nix
|
||||||
|
./services/volnoti.nix
|
||||||
./services/window-managers/awesome.nix
|
./services/window-managers/awesome.nix
|
||||||
./services/window-managers/bspwm/default.nix
|
./services/window-managers/bspwm/default.nix
|
||||||
./services/window-managers/i3-sway/i3.nix
|
./services/window-managers/i3-sway/i3.nix
|
||||||
|
|
35
modules/services/volnoti.nix
Normal file
35
modules/services/volnoti.nix
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
cfg = config.services.volnoti;
|
||||||
|
|
||||||
|
in {
|
||||||
|
meta.maintainers = [ maintainers.imalison ];
|
||||||
|
|
||||||
|
options = {
|
||||||
|
services.volnoti = { enable = mkEnableOption "Volnoti volume HUD daemon"; };
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.volnoti;
|
||||||
|
defaultText = literalExample "pkgs.volnoti";
|
||||||
|
description = ''
|
||||||
|
Package containing the <command>volnoti</command> program.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
home.packages = [ cfg.package ];
|
||||||
|
systemd.user.services.volnoti = {
|
||||||
|
Unit = { Description = "volnoti"; };
|
||||||
|
|
||||||
|
Install = { WantedBy = [ "graphical-session.target" ]; };
|
||||||
|
|
||||||
|
Service = { ExecStart = "${pkgs.volnoti}/bin/volnoti -v -n"; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue