modules/users: remove unused `requiredBy` service option
This commit is contained in:
parent
4fd2db4e51
commit
787e6af646
|
@ -29,10 +29,6 @@ let
|
|||
type = types.listOf types.str;
|
||||
default = [];
|
||||
};
|
||||
requiredBy = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
};
|
||||
wantedBy = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
|
|
|
@ -4,7 +4,6 @@ let
|
|||
# see: <repo:nix-community/home-manager:modules/systemd.nix>
|
||||
mkUnit = serviceName: value: utils.systemdUtils.lib.serviceToUnit serviceName {
|
||||
inherit (value)
|
||||
requiredBy
|
||||
script
|
||||
wantedBy
|
||||
;
|
||||
|
@ -60,14 +59,8 @@ in
|
|||
wants = builtins.map (wantedBy: {
|
||||
".config/systemd/user/${wantedBy}.wants/${serviceName}.service".symlink = symlinkData;
|
||||
}) generatedUnit.wantedBy;
|
||||
requires = builtins.map (requiredBy: {
|
||||
".config/systemd/user/${requiredBy}.requires/${serviceName}.service".symlink = symlinkData;
|
||||
}) generatedUnit.requiredBy;
|
||||
in lib.mergeAttrsList
|
||||
([ serviceEntry ]
|
||||
++ wants
|
||||
++ requires
|
||||
)
|
||||
in
|
||||
lib.mergeAttrsList ([ serviceEntry ] ++ wants)
|
||||
)
|
||||
config.services
|
||||
;
|
||||
|
|
Loading…
Reference in New Issue