Mail setup for <<> for testing purposes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mailtngbert/flake.nix

38 lines
1.2 KiB

{
inputs = {
nixpkgs.url = github:NixOS/nixpkgs/nixos-21.11;
sops-nix.url = github:Mic92/sops-nix;
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
simple-nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-21.11";
};
outputs = { self, nixpkgs, sops-nix, simple-nixos-mailserver, ... }@inputs: {
#packages."x86_64-linux" = nixpkgs.lib.filterAttrs (_: nixpkgs.lib.isDerivation) (
# import nixpkgs {
# system = "x86_64-linux";
# #overlays = [self.overlay];
#});
defaultPackage."x86_64-linux" = (nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
simple-nixos-mailserver.nixosModule
./mailbert/configuration.nix
(_: { _module.args.buildVM = true; })
"${nixpkgs}/nixos/modules/virtualisation/qemu-vm.nix"
./modules/vm.nix
];
}).config.system.build.vm;
nixosConfigurations.mailbert = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
simple-nixos-mailserver.nixosModule
./mailbert/configuration.nix
];
};
};
}