mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 05:03:09 +00:00
systemd: add automounts
option
This commit is contained in:
parent
b6613a8544
commit
1375fd4a03
1 changed files with 10 additions and 0 deletions
|
@ -16,6 +16,7 @@ let
|
||||||
|| cfg.timers != {}
|
|| cfg.timers != {}
|
||||||
|| cfg.paths != {}
|
|| cfg.paths != {}
|
||||||
|| cfg.mounts != {}
|
|| cfg.mounts != {}
|
||||||
|
|| cfg.automounts != {}
|
||||||
|| cfg.sessionVariables != {};
|
|| cfg.sessionVariables != {};
|
||||||
|
|
||||||
toSystemdIni = lib.generators.toINI {
|
toSystemdIni = lib.generators.toINI {
|
||||||
|
@ -170,6 +171,13 @@ in
|
||||||
example = unitExample "Mount";
|
example = unitExample "Mount";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
automounts = mkOption {
|
||||||
|
default = {};
|
||||||
|
type = unitType "automount";
|
||||||
|
description = unitDescription "automount";
|
||||||
|
example = unitExample "Automount";
|
||||||
|
};
|
||||||
|
|
||||||
startServices = mkOption {
|
startServices = mkOption {
|
||||||
default = "suggest";
|
default = "suggest";
|
||||||
type = with types; either bool (enum ["suggest" "legacy" "sd-switch"]);
|
type = with types; either bool (enum ["suggest" "legacy" "sd-switch"]);
|
||||||
|
@ -275,6 +283,8 @@ in
|
||||||
(buildServices "path" cfg.paths)
|
(buildServices "path" cfg.paths)
|
||||||
++
|
++
|
||||||
(buildServices "mount" cfg.mounts)
|
(buildServices "mount" cfg.mounts)
|
||||||
|
++
|
||||||
|
(buildServices "automount" cfg.automounts)
|
||||||
))
|
))
|
||||||
|
|
||||||
sessionVariables
|
sessionVariables
|
||||||
|
|
Loading…
Reference in a new issue