2023-02-03 05:37:18 +00:00
|
|
|
{
|
|
|
|
withSystem,
|
|
|
|
lib,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}: {
|
2023-02-11 14:14:51 +00:00
|
|
|
flake = {
|
|
|
|
nixosConfigurations = withSystem "x86_64-linux" ({
|
|
|
|
system,
|
|
|
|
self',
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
machines = builtins.attrNames (builtins.readDir ./machines);
|
|
|
|
makeSystem = name:
|
|
|
|
pkgs.nixos {
|
|
|
|
imports = [
|
2023-02-03 05:37:18 +00:00
|
|
|
(import (./. + "/machines/${name}/configuration.nix") inputs)
|
2023-02-04 00:43:09 +00:00
|
|
|
inputs.secrets.nixosModules.default
|
2023-02-27 23:26:21 +00:00
|
|
|
inputs.impermanence.nixosModules.impermanence
|
2023-02-11 14:14:51 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
lib.genAttrs machines makeSystem);
|
|
|
|
};
|
2023-02-03 05:37:18 +00:00
|
|
|
}
|