dot_testing/flake.nix

66 lines
1.9 KiB
Nix
Raw Normal View History

2023-12-20 15:19:01 -06:00
{
description = "rndusr's nixos flake";
inputs = {
# regular nixos stuff
2024-06-12 12:14:31 -05:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
2024-01-18 05:07:53 -06:00
simple-nixos-mailserver = {
2024-06-12 12:14:31 -05:00
url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-24.05";
2024-01-18 05:07:53 -06:00
};
2023-12-20 15:19:01 -06:00
};
outputs = {
self,
nixpkgs,
simple-nixos-mailserver,
2024-03-15 18:51:36 -05:00
...
}@inputs: {
2023-12-20 15:45:45 -06:00
nixosConfigurations = {
2024-01-18 04:28:32 -06:00
netbox = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
2024-12-25 07:29:11 -06:00
specialArgs = { inherit inputs; } // { machines = import ./machines.nix; };
2024-01-18 04:28:32 -06:00
modules = [
./boxes/netbox
2024-01-18 05:07:53 -06:00
simple-nixos-mailserver.nixosModule
{
mailserver = {
enable = true;
2024-01-18 04:28:32 -06:00
fqdn = "mail.beepboop.systems";
domains = [ "beepboop.systems" ];
loginAccounts = {
"ryan@beepboop.systems" = {
# nix-shell -p mkpasswd --run 'mkpasswd -sm bcrypt' > /hashed/password/file/location
hashedPasswordFile = "/etc/ryan-beepboop-systemsuser-pass";
aliases = [
"info@beepboop.systems"
"postmaster@beepboop.systems"
];
};
2024-09-17 15:40:53 -05:00
"machines@beepboop.systems" = {
hashedPasswordFile = "/etc/ryan-beepboop-systemsuser-pass";
};
2024-01-18 05:07:53 -06:00
};
2024-01-18 04:28:32 -06:00
certificateScheme = "acme-nginx";
2024-01-18 05:07:53 -06:00
};
}
2024-01-18 04:28:32 -06:00
];
};
2024-07-22 01:22:27 -05:00
copernicus = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
2024-12-25 07:29:11 -06:00
specialArgs = { inherit inputs; } // { machines = import ./machines.nix; };
2024-07-22 01:22:27 -05:00
modules = [
./boxes/copernicus
];
};
2024-08-31 19:10:25 -05:00
aristotle = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
2024-12-25 07:29:11 -06:00
specialArgs = { inherit inputs; } // { machines = import ./machines.nix; };
2024-08-31 19:10:25 -05:00
modules = [
2024-12-25 07:29:11 -06:00
./lappy/configuration.nix
2024-08-31 19:10:25 -05:00
];
};
2023-12-20 15:19:01 -06:00
};
};
}