@@ -894,6 +894,13 @@ in
894894 "sysctl.d/50-coredump.conf".source = "${systemd}/example/sysctl.d/50-coredump.conf";
895895 "sysctl.d/50-default.conf".source = "${systemd}/example/sysctl.d/50-default.conf";
896896
897+ "tmpfiles.d/00-nixos.conf".text = ''
898+ # This file is created automatically and should not be modified.
899+ # Please change the option ‘systemd.tmpfiles.rules’ instead.
900+
901+ ${concatStringsSep "\n" cfg.tmpfiles.rules}
902+ '';
903+
897904 "tmpfiles.d/home.conf".source = "${systemd}/example/tmpfiles.d/home.conf";
898905 "tmpfiles.d/journal-nocow.conf".source = "${systemd}/example/tmpfiles.d/journal-nocow.conf";
899906 "tmpfiles.d/portables.conf".source = "${systemd}/example/tmpfiles.d/portables.conf";
@@ -906,13 +913,6 @@ in
906913 "tmpfiles.d/var.conf".source = "${systemd}/example/tmpfiles.d/var.conf";
907914 "tmpfiles.d/x11.conf".source = "${systemd}/example/tmpfiles.d/x11.conf";
908915
909− "tmpfiles.d/nixos.conf".text = ''
910− # This file is created automatically and should not be modified.
911− # Please change the option ‘systemd.tmpfiles.rules’ instead.
912−
913− ${concatStringsSep "\n" cfg.tmpfiles.rules}
914− '';
915−
916916 "systemd/system-generators" = { source = hooks "generators" cfg.generators; };
917917 "systemd/system-shutdown" = { source = hooks "shutdown" cfg.shutdown; };
918918 });