-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
36 lines (32 loc) · 1.08 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
nixos-mailserver.url = "gitlab:RyanGibb/nixos-mailserver/fork-24.05";
eon.url = "github:RyanGibb/eon";
eon.inputs.nixpkgs.follows = "nixpkgs";
nixos-mailserver.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { nixpkgs, nixos-mailserver, eon, ... }: {
packages = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (system:
let pkgs = nixpkgs.legacyPackages.${system};
in { manpage = import ./man { inherit pkgs system nixos-mailserver; }; });
nixosModules.default = {
imports = [
./modules/default.nix
nixos-mailserver.nixosModule
eon.nixosModules.default
eon.nixosModules.acme
{
nixpkgs.overlays = [
(final: prev: {
mautrix-meta = (prev.callPackage ./pkgs/mautrix-meta.nix { });
})
];
}
];
};
defaultTemplate.path = ./template;
formatter = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed
(system: nixpkgs.legacyPackages.${system}.nixfmt);
};
}