Reference defaultPackage in nixos module
This commit is contained in:
parent
ef956d52fb
commit
63aea46079
|
@ -42,7 +42,7 @@
|
||||||
systemd.services.rail = {
|
systemd.services.rail = {
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
serviceConfig = let pkg = self.packages.${pkgs.system}.default;
|
serviceConfig = let pkg = self.defaultPackage.${pkgs.system};
|
||||||
in {
|
in {
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
ExecStart = "${pkg}/bin/tmpmail";
|
ExecStart = "${pkg}/bin/tmpmail";
|
||||||
|
|
Loading…
Reference in New Issue