mirror of
https://github.com/nix-community/home-manager
synced 2024-11-05 10:49:44 +01:00
30 lines
596 B
Nix
30 lines
596 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
options = {
|
||
|
services.udiskie = {
|
||
|
enable = mkEnableOption "Udiskie mount daemon";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = mkIf config.services.udiskie.enable {
|
||
|
systemd.user.services.udiskie = {
|
||
|
Unit = {
|
||
|
Description = "Udiskie mount daemon";
|
||
|
Requires = [ "taffybar.service" ];
|
||
|
After = [ "taffybar.service" ];
|
||
|
};
|
||
|
|
||
|
Service = {
|
||
|
ExecStart = "${pkgs.pythonPackages.udiskie}/bin/udiskie -2 -A -n -s";
|
||
|
};
|
||
|
|
||
|
Install = {
|
||
|
WantedBy = [ "xorg.target" ];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|