moderation/flake.nix

34 lines
964 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;
in {
nixosModules = {
default = import ./module.nix;
florp = args: {
services.akkoma.moderation = import ./florp.nix args;
};
};
2024-11-14 19:11:10 +01:00
nixosConfigurations.testEval = lib.nixosSystem {
system = "x86_64-linux";
2024-11-14 17:14:27 +01:00
modules = [ {
system.stateVersion = "24.11";
2024-11-14 19:11:10 +01:00
networking.hostName = "hostName";
networking.domain = "domain";
2024-11-14 17:14:27 +01:00
fileSystems."/".device = "nodev";
boot.loader.grub.enable = false;
services.akkoma.enable = true;
2024-11-14 19:11:10 +01:00
services.akkoma.config.":pleroma" = {
"Pleroma.Upload".base_url = "nonEmptyStr";
":instance" = {
name = "test";
description = "test";
email = "test@test.test";
};
2024-11-14 17:14:27 +01:00
};
} ] ++ (with self.nixosModules; [ default florp ]);
2024-11-14 19:11:10 +01:00
};
2024-11-14 15:53:38 +01:00
};
}