mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 10:49:48 +01:00
systemd: support mount units
This commit is contained in:
parent
6739d8bb50
commit
b6ed605d4a
1 changed files with 11 additions and 1 deletions
|
@ -12,6 +12,7 @@ let
|
||||||
|| cfg.targets != {}
|
|| cfg.targets != {}
|
||||||
|| cfg.timers != {}
|
|| cfg.timers != {}
|
||||||
|| cfg.paths != {}
|
|| cfg.paths != {}
|
||||||
|
|| cfg.mounts != {}
|
||||||
|| cfg.sessionVariables != {};
|
|| cfg.sessionVariables != {};
|
||||||
|
|
||||||
toSystemdIni = generators.toINI {
|
toSystemdIni = generators.toINI {
|
||||||
|
@ -161,6 +162,13 @@ in
|
||||||
example = unitExample "Path";
|
example = unitExample "Path";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mounts = mkOption {
|
||||||
|
default = {};
|
||||||
|
type = unitType "mount";
|
||||||
|
description = unitDescription "mount";
|
||||||
|
example = unitExample "Mount";
|
||||||
|
};
|
||||||
|
|
||||||
startServices = mkOption {
|
startServices = mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
|
@ -206,7 +214,7 @@ in
|
||||||
names = concatStringsSep ", " (
|
names = concatStringsSep ", " (
|
||||||
attrNames (
|
attrNames (
|
||||||
cfg.services // cfg.slices // cfg.sockets // cfg.targets
|
cfg.services // cfg.slices // cfg.sockets // cfg.targets
|
||||||
// cfg.timers // cfg.paths // cfg.sessionVariables
|
// cfg.timers // cfg.paths // cfg.mounts // cfg.sessionVariables
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
in
|
in
|
||||||
|
@ -231,6 +239,8 @@ in
|
||||||
(buildServices "timer" cfg.timers)
|
(buildServices "timer" cfg.timers)
|
||||||
++
|
++
|
||||||
(buildServices "path" cfg.paths)
|
(buildServices "path" cfg.paths)
|
||||||
|
++
|
||||||
|
(buildServices "mount" cfg.mounts)
|
||||||
))
|
))
|
||||||
|
|
||||||
sessionVariables
|
sessionVariables
|
||||||
|
|
Loading…
Reference in a new issue