Files
nixos-config/flake.nix
2026-04-01 14:46:40 +02:00

28 lines
640 B
Nix

{
description = "multi-machine nixos config";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
zen-browser = {
url = "github:youwen5/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, ... }@inputs:
let
mkHost = hostname: nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [ ./hosts/${hostname} ];
};
in {
nixosConfigurations = {
minipc = mkHost "minipc";
laptop = mkHost "laptop";
# gaming = mkHost "gaming";
};
};
}