refactor: get rid of config folder

This commit is contained in:
Kat Inskip 2022-07-08 17:53:16 -07:00
parent 2606e1d874
commit cb3ae5f434
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
254 changed files with 79 additions and 101 deletions

View file

@ -0,0 +1,28 @@
{ 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