Files
nixos/flake.nix
2024-07-11 12:21:43 -07:00

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";
};
};
};
}