Pass self to server.nix

This commit is contained in:
Jez Cope 2021-09-11 21:54:19 +01:00
parent a250b03255
commit f98bd316d4
2 changed files with 4 additions and 3 deletions

View File

@ -8,9 +8,9 @@
(flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
defaultPackage = pkgs.callPackage ./nix/build.nix { inherit self; };
defaultPackage = pkgs.callPackage ./nix/build.nix { };
devShell = pkgs.callPackage ./nix/shell.nix { };
})) // {
nixosModule = import ./nix/server.nix;
nixosModule = import ./nix/server.nix { inherit self; };
};
}

View File

@ -1,4 +1,5 @@
{ config, pkgs, self, ... }:
{ self }:
{ config, pkgs, ... }:
{
services.nginx = {