2022-04-23 03:01:58 +02:00
|
|
|
{
|
2022-04-23 13:41:36 +02:00
|
|
|
inputs = {
|
2022-04-23 03:01:58 +02:00
|
|
|
nixpkgs.url = github:NixOS/nixpkgs/nixos-21.11;
|
|
|
|
|
|
|
|
sops-nix.url = github:Mic92/sops-nix;
|
|
|
|
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
|
|
|
naersk = {
|
|
|
|
url = github:nix-community/naersk;
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2022-04-23 13:41:36 +02:00
|
|
|
|
|
|
|
radio-conf.url = github:dump-dvb/radio-conf;
|
2022-04-24 22:22:59 +02:00
|
|
|
data-accumulator.url = github:dump-dvb/data-accumulator;
|
2022-04-23 03:01:58 +02:00
|
|
|
};
|
|
|
|
|
2022-04-24 22:22:59 +02:00
|
|
|
outputs = { self, nixpkgs, sops-nix, naersk, radio-conf, data-accumulator, ... }@inputs:
|
2022-04-23 13:41:36 +02:00
|
|
|
{
|
|
|
|
defaultPackage."x86_64-linux" = self.nixosConfigurations.traffic-stop-box.config.system.build.vm;
|
2022-04-23 23:49:00 +02:00
|
|
|
packages."x86_64-linux".traffic-stop-box = self.nixosConfigurations.traffic-stop-box.config.system.build.vm;
|
|
|
|
packages."x86_64-linux".data-hoarder = self.nixosConfigurations.data-hoarder.config.system.build.vm;
|
2022-04-23 13:41:36 +02:00
|
|
|
|
|
|
|
nixosConfigurations = {
|
|
|
|
traffic-stop-box = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
modules = [
|
|
|
|
./hosts/traffic-stop-box/configuration.nix
|
2022-04-23 18:19:36 +02:00
|
|
|
./modules/gnuradio.nix
|
2022-04-25 16:16:57 +02:00
|
|
|
./modules/radio_wireguard_client.nix
|
2022-04-23 13:41:36 +02:00
|
|
|
{
|
2022-04-23 13:52:45 +02:00
|
|
|
nixpkgs.overlays = [ radio-conf.overlay."x86_64-linux" ];
|
2022-04-23 13:41:36 +02:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2022-04-23 23:49:00 +02:00
|
|
|
data-hoarder = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
modules = [
|
|
|
|
./hosts/data-hoarder/configuration.nix
|
2022-04-24 22:22:59 +02:00
|
|
|
./modules/data-accumulator.nix
|
2022-04-24 22:33:03 +02:00
|
|
|
./modules/nginx.nix
|
2022-04-25 16:27:57 +02:00
|
|
|
./modules/wireguard_server.nix
|
2022-04-24 22:22:59 +02:00
|
|
|
{
|
|
|
|
nixpkgs.overlays = [ data-accumulator.overlay."x86_64-linux" ];
|
|
|
|
}
|
2022-04-23 23:49:00 +02:00
|
|
|
];
|
|
|
|
};
|
2022-04-23 03:01:58 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|