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:
parent
c7edde6ca4
commit
6a8e8e92a7
3 changed files with 36 additions and 0 deletions
|
@ -34,6 +34,7 @@ let
|
||||||
./programs/texlive.nix
|
./programs/texlive.nix
|
||||||
./programs/vim.nix
|
./programs/vim.nix
|
||||||
./programs/zsh.nix
|
./programs/zsh.nix
|
||||||
|
./services/blueman-applet.nix
|
||||||
./services/dunst.nix
|
./services/dunst.nix
|
||||||
./services/gnome-keyring.nix
|
./services/gnome-keyring.nix
|
||||||
./services/gpg-agent.nix
|
./services/gpg-agent.nix
|
||||||
|
|
|
@ -107,6 +107,12 @@ in
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
news.entries = [
|
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";
|
time = "2017-09-12T13:11:48+00:00";
|
||||||
condition = (
|
condition = (
|
||||||
|
|
29
modules/services/blueman-applet.nix
Normal file
29
modules/services/blueman-applet.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue