fix: nix check

This commit is contained in:
emily 2024-11-14 17:14:27 +01:00
parent 2e288c94f9
commit 2dd7b02fdc
Signed by: emily
GPG key ID: F6F4C66207FCF995

View file

@ -2,6 +2,7 @@
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs, ... }: let outputs = { self, nixpkgs, ... }: let
inherit (nixpkgs) lib; inherit (nixpkgs) lib;
eachSystem = lib.genAttrs [ "x86_64-linux" "aarch64-linux" ];
in { in {
nixosModules = { nixosModules = {
default = import ./module.nix; default = import ./module.nix;
@ -10,15 +11,23 @@
}; };
}; };
checks = lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (system: { nixosConfigurations = eachSystem (system: lib.nixosSystem {
default = (lib.nixosSystem {
inherit system; inherit system;
modules = [ { modules = [ {
system.stateVersion = "24.11"; system.stateVersion = "24.11";
fileSystems."/".device = "nodev"; fileSystems."/".device = "nodev";
boot.loader.grub.enable = false; boot.loader.grub.enable = false;
services.akkoma.enable = true;
services.akkoma.config.":pleroma".":instance" = {
name = "test";
description = "test";
email = "test@test.test";
};
} ] ++ (with self.nixosModules; [ default florp ]); } ] ++ (with self.nixosModules; [ default florp ]);
}).config.system.build.toplevel; });
checks = eachSystem (system: {
default = self.nixosConfigurations.${system}.config.system.build.toplevel;
}); });
}; };
} }