41 lines
968 B
Nix
41 lines
968 B
Nix
{
|
|
description = "Nettika NixOS Configurations";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, nixpkgs-unstable } @inputs:
|
|
let
|
|
mkHost = { hostname, system, stateVersion }: nixpkgs.lib.nixosSystem {
|
|
system = system;
|
|
modules = [
|
|
{
|
|
networking = {
|
|
hostName = hostname;
|
|
networkmanager.enable = true;
|
|
};
|
|
system.stateVersion = stateVersion;
|
|
}
|
|
./modules/nixos
|
|
./hosts/${hostname}
|
|
];
|
|
specialArgs = { inherit inputs; };
|
|
};
|
|
in {
|
|
nixosConfigurations = {
|
|
marauder = mkHost {
|
|
hostname = "marauder";
|
|
system = "x86_64-linux";
|
|
stateVersion = "24.05";
|
|
};
|
|
monolith = mkHost {
|
|
hostname = "monolith";
|
|
system = "x86_64-linux";
|
|
stateVersion = "24.05";
|
|
};
|
|
};
|
|
};
|
|
}
|