2023-12-20 15:19:01 -06:00
|
|
|
{
|
|
|
|
description = "rndusr's nixos flake";
|
|
|
|
|
|
|
|
inputs = {
|
2024-02-10 18:42:50 -06:00
|
|
|
# regular nixos stuff
|
2024-06-12 12:14:31 -05:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
2023-12-20 15:19:01 -06:00
|
|
|
home-manager = {
|
2024-06-12 12:14:31 -05:00
|
|
|
url = "github:nix-community/home-manager/release-24.05";
|
2023-12-20 15:19:01 -06:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
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
|
|
|
};
|
|
|
|
|
2024-02-10 18:42:50 -06:00
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
home-manager,
|
|
|
|
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";
|
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
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-01-24 19:06:57 -06:00
|
|
|
mlg = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
modules = [
|
|
|
|
./boxes/mlg
|
|
|
|
|
|
|
|
home-manager.nixosModules.home-manager {
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.extraSpecialArgs = { inherit inputs; };
|
|
|
|
home-manager.users.usr = import ./boxes/mlg/home.nix;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-07-22 01:22:27 -05:00
|
|
|
copernicus = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
modules = [
|
|
|
|
./boxes/copernicus
|
|
|
|
|
|
|
|
home-manager.nixosModules.home-manager {
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.extraSpecialArgs = { inherit inputs; };
|
|
|
|
home-manager.users.usr = import ./boxes/copernicus/home.nix;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-08-31 19:10:25 -05:00
|
|
|
aristotle = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
2024-12-10 17:06:51 -06:00
|
|
|
./lappy/configuration.nix
|
2024-08-31 19:10:25 -05:00
|
|
|
];
|
|
|
|
};
|
2023-12-20 15:19:01 -06:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|