5e43dafc96
and add a small example how to deploy with nixos-rebuild.
36 lines
822 B
Nix
36 lines
822 B
Nix
{
|
|
description = "NixOS configuration";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11-small";
|
|
|
|
simple-nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-25.11";
|
|
simple-nixos-mailserver.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs =
|
|
{
|
|
nixpkgs,
|
|
simple-nixos-mailserver,
|
|
...
|
|
}:
|
|
{
|
|
nixosConfigurations = {
|
|
hostname = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux"; # or aarch64-linux
|
|
modules = [
|
|
simple-nixos-mailserver.nixosModule
|
|
{
|
|
mailserver = {
|
|
enable = true;
|
|
|
|
# Check the setup guide if you have no idea how to continue
|
|
# from here!
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|