mirror of
https://github.com/tboerger/nixos-config
synced 2025-02-22 23:31:08 +01:00
29 lines
405 B
Nix
29 lines
405 B
Nix
{ pkgs, lib, config, options, ... }:
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.profile.services.udiskie;
|
|
|
|
in
|
|
{
|
|
options = {
|
|
profile = {
|
|
services = {
|
|
udiskie = {
|
|
enable = mkEnableOption "Udiskie";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services = {
|
|
udiskie = {
|
|
enable = true;
|
|
automount = true;
|
|
notify = true;
|
|
};
|
|
};
|
|
};
|
|
}
|