Files
nixos-config/flake.nix
Fredrik Robertsen c91daf270f gaming: new machine
also move a lot of dev stuff into dev module from base
2026-04-06 12:29:22 +02:00

28 lines
638 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";
};
};
}