mirror of
https://github.com/nix-community/home-manager
synced 2024-11-14 00:47:12 +00:00
31 lines
672 B
Nix
31 lines
672 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
meta.maintainers = [ maintainers.rycee ];
|
|
|
|
options = {
|
|
services.udiskie = {
|
|
enable = mkEnableOption "Udiskie mount daemon";
|
|
};
|
|
};
|
|
|
|
config = mkIf config.services.udiskie.enable {
|
|
systemd.user.services.udiskie = {
|
|
Unit = {
|
|
Description = "Udiskie mount daemon";
|
|
After = [ "graphical-session-pre.target" ];
|
|
PartOf = [ "graphical-session.target" ];
|
|
};
|
|
|
|
Service = {
|
|
ExecStart = "${pkgs.pythonPackages.udiskie}/bin/udiskie -2 -A -n -s";
|
|
};
|
|
|
|
Install = {
|
|
WantedBy = [ "graphical-session.target" ];
|
|
};
|
|
};
|
|
};
|
|
}
|