mail.idimitrov.dev/flake.nix

41 lines
905 B
Nix
Raw Normal View History

2023-09-19 14:22:42 +02:00
{
inputs = {
nixpkgs.url = "nixpkgs";
simple-nixos-mailserver = {
url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-09-20 12:38:25 +02:00
vpsadminos.url = "github:vpsfreecz/vpsadminos";
2023-09-19 14:22:42 +02:00
};
outputs =
{ self
, nixpkgs
, simple-nixos-mailserver
2023-09-20 12:38:25 +02:00
, vpsadminos
2023-09-19 14:22:42 +02:00
, ...
2023-11-09 11:09:02 +01:00
}:
let
myOverlay = self: super: {
scripts = (super.buildEnv { name = "scripts"; paths = [ ./. ]; });
};
in
{
2023-09-19 14:22:42 +02:00
nixosConfigurations = {
2023-11-09 11:09:02 +01:00
mailserver = nixpkgs.lib.nixosSystem rec {
2023-09-19 14:22:42 +02:00
system = "x86_64-linux";
modules = [
simple-nixos-mailserver.nixosModule
2023-09-20 12:38:25 +02:00
vpsadminos.nixosConfigurations.container
2023-09-19 14:22:42 +02:00
./mailserver
];
2023-11-09 11:09:02 +01:00
pkgs = import nixpkgs {
inherit system;
overlays = [ myOverlay ];
};
2023-09-19 14:22:42 +02:00
};
};
};
}