From 1375fd4a030c27e6c6208b31b8189ca41da01fb0 Mon Sep 17 00:00:00 2001 From: bb010g Date: Mon, 28 Oct 2019 19:29:12 -0700 Subject: [PATCH] systemd: add `automounts` option --- modules/systemd.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/systemd.nix b/modules/systemd.nix index 3f5d64c1..a5a069c5 100644 --- a/modules/systemd.nix +++ b/modules/systemd.nix @@ -16,6 +16,7 @@ let || cfg.timers != {} || cfg.paths != {} || cfg.mounts != {} + || cfg.automounts != {} || cfg.sessionVariables != {}; toSystemdIni = lib.generators.toINI { @@ -170,6 +171,13 @@ in example = unitExample "Mount"; }; + automounts = mkOption { + default = {}; + type = unitType "automount"; + description = unitDescription "automount"; + example = unitExample "Automount"; + }; + startServices = mkOption { default = "suggest"; type = with types; either bool (enum ["suggest" "legacy" "sd-switch"]); @@ -275,6 +283,8 @@ in (buildServices "path" cfg.paths) ++ (buildServices "mount" cfg.mounts) + ++ + (buildServices "automount" cfg.automounts) )) sessionVariables