1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-21 01:09:47 +01:00

systemd: add automounts option

This commit is contained in:
bb010g 2019-10-28 19:29:12 -07:00 committed by Robert Helgesson
parent b6613a8544
commit 1375fd4a03
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -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