Move to recursiveMod, nixdirfmt

This commit is contained in:
kat witch 2021-09-04 01:14:17 +01:00
parent 3a4458eae5
commit 76a479f14e
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
66 changed files with 313 additions and 335 deletions

View file

@ -1,26 +1,26 @@
rec {
common = ./common.nix;
ubuntu-base = ./ubuntu.nix;
oracle-base = ./oracle.nix;
ubuntu = {
deploy.profile.hardware.oracle = {
common = true;
ubuntu = true;
{ 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
];
};
imports = [
common
ubuntu-base
];
};
oracle = {
deploy.profile.hardware.oracle = {
common = true;
oracle = true;
oracle = { config, ... }: {
deploy.profile.hardware.oracle = {
oracle = true;
common = true;
};
imports = with import (sources.tf-nix + "/modules"); [
nixos.oracle-linux
common
];
};
imports = [
common
oracle-base
];
};
}
in
profiles // appendedProfiles