mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
26 lines
650 B
Nix
26 lines
650 B
Nix
{ lib, sources, tree, ... }: with lib; let
|
|
profiles = tree.dirs // tree.files;
|
|
appendedProfiles = with profiles; {
|
|
ubuntu = { config, ... }: {
|
|
deploy.profile.hardware.oracle = {
|
|
ubuntu = true;
|
|
common = true;
|
|
};
|
|
imports = with import (sources.tf-nix + "/modules"); [
|
|
nixos.ubuntu-linux
|
|
common
|
|
];
|
|
};
|
|
oracle = { config, ... }: {
|
|
deploy.profile.hardware.oracle = {
|
|
oracle = true;
|
|
common = true;
|
|
};
|
|
imports = with import (sources.tf-nix + "/modules"); [
|
|
nixos.oracle-linux
|
|
common
|
|
];
|
|
};
|
|
};
|
|
in
|
|
profiles // appendedProfiles
|