2023-12-01 11:51:55 +00:00
|
|
|
{ nixpkgs }:
|
|
|
|
name :
|
|
|
|
{ dualBoot ? false } :
|
|
|
|
let
|
|
|
|
lib = nixpkgs.lib;
|
2023-12-01 14:18:19 +00:00
|
|
|
configPath = ./machines/${name}.nix;
|
2023-12-01 11:51:55 +00:00
|
|
|
in
|
|
|
|
lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
(
|
|
|
|
{ config, pkgs, ... }: {
|
2023-12-01 14:18:19 +00:00
|
|
|
imports = lib.concatLists [
|
|
|
|
(lib.optional (builtins.pathExists configPath) configPath)
|
|
|
|
[]
|
2023-12-01 11:51:55 +00:00
|
|
|
];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|