38 lines
1 KiB
Nix
38 lines
1 KiB
Nix
{
|
|
description = "A very basic flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-25.05";
|
|
cccb-www-staging.url = "git+https://git.berlin.ccc.de/cccb-website-team/www.git?ref=staging&submodules=1";
|
|
# TODO: change to staging
|
|
cccb-www-production.url = "git+https://git.berlin.ccc.de/cccb-website-team/www.git?ref=staging&submodules=1";
|
|
};
|
|
|
|
outputs =
|
|
{
|
|
self,
|
|
nixpkgs,
|
|
cccb-www-staging,
|
|
cccb-www-production,
|
|
}:
|
|
{
|
|
nixosConfigurations.nix-www = nixpkgs.lib.nixosSystem {
|
|
system = "aarch64-linux";
|
|
specialArgs = {
|
|
mkWwwContentStaging = cccb-www-staging.lib.mkWwwContent;
|
|
mkWwwContentProduction = cccb-www-production.lib.mkWwwContent;
|
|
};
|
|
modules = [
|
|
./configuration.nix
|
|
./hardware.nix
|
|
./nginx.nix
|
|
];
|
|
};
|
|
|
|
formatter = {
|
|
x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
|
|
aarch64-linux = nixpkgs.legacyPackages.aarch64-linux.nixfmt-rfc-style;
|
|
};
|
|
};
|
|
}
|