moderation/flake.nix

34 lines
992 B
Nix
Raw Normal View History

2024-11-14 15:53:38 +01:00
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs, ... }: let
inherit (nixpkgs) lib;
2024-11-14 17:14:27 +01:00
eachSystem = lib.genAttrs [ "x86_64-linux" "aarch64-linux" ];
2024-11-14 15:53:38 +01:00
in {
nixosModules = {
default = import ./module.nix;
florp = args: {
services.akkoma.moderation = import ./florp.nix args;
};
};
2024-11-14 17:14:27 +01:00
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;
2024-11-14 15:53:38 +01:00
});
};
}