blob: 3af5b413204b095bd5cb72dd76dfb871cf03067a (
plain) (
tree)
|
|
{
description = "Nixos server config";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05-small";
systems.url = "github:nix-systems/x86_64-linux";
flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
simple-nixos-mailserver = {
url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-23.05";
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
};
outputs = {
self,
nixpkgs,
simple-nixos-mailserver,
...
} @ attrs: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
nixosConfigurations."server1" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = attrs;
modules = [
./hosts/server1/configuration.nix
simple-nixos-mailserver.nixosModule
{
mailserver = import ./system/mail {inherit (pkgs) lib;};
}
];
};
devShells."${system}" = {
default = pkgs.mkShell {
packages = with pkgs; [
nil
alejandra
statix
shellcheck
ltex-ls
cocogitto
git-crypt
];
};
};
};
}
# vim: ts=2
|