mail.idimitrov.dev/flake.nix

48 lines
1.1 KiB
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-11-26 12:47:58 +01:00
webshite = {
2023-12-28 10:27:38 +01:00
url = "git+https://src.idimitrov.dev/ivan/idimitrov.dev";
2023-11-26 12:47:58 +01:00
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-11-26 12:47:58 +01:00
, webshite
2023-09-19 14:22:42 +02:00
, ...
2023-11-09 11:09:02 +01:00
}:
let
2023-11-26 12:47:58 +01:00
system = "x86_64-linux";
myOverlay = final: prev: {
scripts = (final.buildEnv { name = "scripts"; paths = [ ./. ]; });
webshite = webshite.packages.${system}.default;
2023-11-09 11:09:02 +01:00
};
in
{
2023-09-19 14:22:42 +02:00
nixosConfigurations = {
2023-11-26 12:47:58 +01:00
inherit system;
2023-11-09 11:09:02 +01:00
mailserver = nixpkgs.lib.nixosSystem rec {
2023-09-19 14:22:42 +02:00
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
};
};
};
}