Use defaultPackage as ngnix document root

This commit is contained in:
Jez Cope 2021-09-10 21:51:08 +01:00
parent 434e9c84c9
commit 4bbf073ae5
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@
];
};
})) // {
nixosModule = { config, ... }: {
nixosModule = { config, pkgs, ... }: {
services.nginx = {
enable = true;
@ -36,7 +36,7 @@
enableACME = true;
forceSSL = true;
root = "/srv/www/erambler.co.uk";
root = self.defaultPackage.${pkgs.system};
};
};