From 2dd7b02fdc62af280f4be2181fe76cd2a0f89697 Mon Sep 17 00:00:00 2001 From: emily Date: Thu, 14 Nov 2024 17:14:27 +0100 Subject: [PATCH] fix: nix check --- flake.nix | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/flake.nix b/flake.nix index a9ea2e1..51e423b 100644 --- a/flake.nix +++ b/flake.nix @@ -2,6 +2,7 @@ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; outputs = { self, nixpkgs, ... }: let inherit (nixpkgs) lib; + eachSystem = lib.genAttrs [ "x86_64-linux" "aarch64-linux" ]; in { nixosModules = { default = import ./module.nix; @@ -10,15 +11,23 @@ }; }; - checks = lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (system: { - default = (lib.nixosSystem { - inherit system; - modules = [ { - system.stateVersion = "24.11"; - fileSystems."/".device = "nodev"; - boot.loader.grub.enable = false; - } ] ++ (with self.nixosModules; [ default florp ]); - }).config.system.build.toplevel; + nixosConfigurations = eachSystem (system: lib.nixosSystem { + inherit system; + modules = [ { + system.stateVersion = "24.11"; + fileSystems."/".device = "nodev"; + 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 ]); + }); + + checks = eachSystem (system: { + default = self.nixosConfigurations.${system}.config.system.build.toplevel; }); }; }