mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
28 lines
709 B
Nix
28 lines
709 B
Nix
{ lib, inputs, tree, ... }: with lib; let
|
|
profiles = tree.prev;
|
|
appendedProfiles = with profiles; {
|
|
ubuntu = { config, ... }: {
|
|
deploy.profile.hardware.oracle = {
|
|
ubuntu = true;
|
|
common = true;
|
|
};
|
|
kw.oci.base = "Canonical Ubuntu";
|
|
imports = with import (inputs.tf-nix + "/modules"); [
|
|
nixos.ubuntu-linux
|
|
common
|
|
];
|
|
};
|
|
oracle = { config, ... }: {
|
|
deploy.profile.hardware.oracle = {
|
|
oracle = true;
|
|
common = true;
|
|
};
|
|
kw.oci.base = "Oracle Linux";
|
|
imports = with import (inputs.tf-nix + "/modules"); [
|
|
nixos.oracle-linux
|
|
common
|
|
];
|
|
};
|
|
};
|
|
in
|
|
profiles // appendedProfiles
|