1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00

blueman-applet: add module

This commit is contained in:
Nikita Uvarov 2017-09-12 16:26:52 +02:00 committed by Robert Helgesson
parent c7edde6ca4
commit 6a8e8e92a7
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86
3 changed files with 36 additions and 0 deletions

View file

@ -34,6 +34,7 @@ let
./programs/texlive.nix
./programs/vim.nix
./programs/zsh.nix
./services/blueman-applet.nix
./services/dunst.nix
./services/gnome-keyring.nix
./services/gpg-agent.nix

View file

@ -107,6 +107,12 @@ in
config = {
news.entries = [
{
time = "2017-09-12T14:22:18+00:00";
message = ''
A new service is available: 'services.blueman-applet'.
'';
}
{
time = "2017-09-12T13:11:48+00:00";
condition = (

View file

@ -0,0 +1,29 @@
{ config, lib, pkgs, ... }:
with lib;
{
options = {
services.blueman-applet = {
enable = mkEnableOption "Blueman applet";
};
};
config = mkIf config.services.blueman-applet.enable {
systemd.user.services.blueman-applet = {
Unit = {
Description = "Blueman applet";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.blueman}/bin/blueman-applet";
};
};
};
}