nix: remove forAllSystems from nixosModule

This causes lnbits.nixosModules.default to exist, rather than
lnbits.nixosModules.aarch64-linux.default. The latter was a mistake.
This commit is contained in:
matthewcroughan 2022-07-14 05:27:38 +01:00
parent 6aa8330dc3
commit 984f06239f
2 changed files with 3 additions and 3 deletions

View File

@ -32,12 +32,12 @@
python = pkgs.python39;
};
});
nixosModules = forAllSystems (system: pkgs: {
nixosModules = {
default = { pkgs, lib, config, ... }: {
imports = [ "${./nix/modules/${projectName}-service.nix}" ];
nixpkgs.overlays = [ self.overlays.default ];
};
});
};
checks = forAllSystems (system: pkgs:
let
vmTests = import ./nix/tests {

View File

@ -5,7 +5,7 @@ makeTest {
environment.systemPackages = [ pkgs.curl ];
};
lnbits = { ... }: {
imports = [ inputs.self.nixosModules.${pkgs.hostPlatform.system}.default ];
imports = [ inputs.self.nixosModules.default ];
services.lnbits = {
enable = true;
openFirewall = true;