mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-18 03:21:26 +02:00
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:
@@ -32,12 +32,12 @@
|
|||||||
python = pkgs.python39;
|
python = pkgs.python39;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
nixosModules = forAllSystems (system: pkgs: {
|
nixosModules = {
|
||||||
default = { pkgs, lib, config, ... }: {
|
default = { pkgs, lib, config, ... }: {
|
||||||
imports = [ "${./nix/modules/${projectName}-service.nix}" ];
|
imports = [ "${./nix/modules/${projectName}-service.nix}" ];
|
||||||
nixpkgs.overlays = [ self.overlays.default ];
|
nixpkgs.overlays = [ self.overlays.default ];
|
||||||
};
|
};
|
||||||
});
|
};
|
||||||
checks = forAllSystems (system: pkgs:
|
checks = forAllSystems (system: pkgs:
|
||||||
let
|
let
|
||||||
vmTests = import ./nix/tests {
|
vmTests = import ./nix/tests {
|
||||||
|
@@ -5,7 +5,7 @@ makeTest {
|
|||||||
environment.systemPackages = [ pkgs.curl ];
|
environment.systemPackages = [ pkgs.curl ];
|
||||||
};
|
};
|
||||||
lnbits = { ... }: {
|
lnbits = { ... }: {
|
||||||
imports = [ inputs.self.nixosModules.${pkgs.hostPlatform.system}.default ];
|
imports = [ inputs.self.nixosModules.default ];
|
||||||
services.lnbits = {
|
services.lnbits = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
Reference in New Issue
Block a user