Compare commits

..

2 commits

Author SHA1 Message Date
923ca6cd9a
Add gitignore 2024-11-14 17:14:43 +01:00
2dd7b02fdc
fix: nix check 2024-11-14 17:14:27 +01:00
2 changed files with 20 additions and 9 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
result
result-*

View file

@ -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 {
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 ]);
}).config.system.build.toplevel;
});
checks = eachSystem (system: {
default = self.nixosConfigurations.${system}.config.system.build.toplevel;
});
};
}