summaryrefslogtreecommitdiff
path: root/features/user/services/udiskie.nix
blob: 9b79d113bbd7b69a7a2c844ee3be2ac81199b5cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ config, lib, ... }: let
  cfg = config.features.services.udiskie;
in {
  options.features.services.udiskie.enable = lib.mkEnableOption "udiskie";
  config = lib.mkIf cfg.enable {
    services.udiskie = {
      enable = true;
      automount = true;
    };
    systemd.user.targets.tray = {
		  Unit = {
			  Description = "Home Manager System Tray";
			  Requires = [ "graphical-session-pre.target" ];
		  };
    };
  }; 
}