mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2024-11-14 12:58:34 +05:00
31 lines
745 B
ReStructuredText
31 lines
745 B
ReStructuredText
|
Nix Flakes
|
||
|
==========
|
||
|
|
||
|
If you're using `flakes <https://nixos.wiki/wiki/Flakes>`__, you can use
|
||
|
the following minimal ``flake.nix`` as an example:
|
||
|
|
||
|
.. code:: nix
|
||
|
|
||
|
{
|
||
|
description = "NixOS configuration";
|
||
|
|
||
|
inputs.simple-nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-20.09";
|
||
|
|
||
|
outputs = { self, nixpkgs, simple-nixos-mailserver }: {
|
||
|
nixosConfigurations = {
|
||
|
hostname = nixpkgs.lib.nixosSystem {
|
||
|
system = "x86_64-linux";
|
||
|
modules = [
|
||
|
simple-nixos-mailserver.nixosModule
|
||
|
{
|
||
|
mailserver = {
|
||
|
enable = true;
|
||
|
# ...
|
||
|
};
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|