systemd: name slice unit correctly

This commit is contained in:
ralismark 2022-10-07 15:49:39 +11:00
parent be2cade373
commit 9fcae11ff2
3 changed files with 36 additions and 4 deletions

View file

@ -125,9 +125,9 @@ in {
slices = mkOption {
default = { };
type = unitType "slices";
description = unitDescription "slices";
example = unitExample "Slices";
type = unitType "slice";
description = unitDescription "slice";
example = unitExample "Slice";
};
sockets = mkOption {
@ -263,7 +263,7 @@ in {
(mkIf (pkgs.stdenv.isLinux && config.home.username != "root") {
xdg.configFile = mkMerge [
(lib.listToAttrs ((buildServices "service" cfg.services)
++ (buildServices "slices" cfg.slices)
++ (buildServices "slice" cfg.slices)
++ (buildServices "socket" cfg.sockets)
++ (buildServices "target" cfg.targets)
++ (buildServices "timer" cfg.timers)