From 02e76e3443901e6c96aa17023f86d3cf4250e781 Mon Sep 17 00:00:00 2001 From: Foo the Frog Date: Fri, 21 Jun 2024 08:24:20 +0600 Subject: [PATCH] Refactor file organization under `/modules/foundations/` dir --- hosts/foobar/systemwide.nix | 9 ++++----- modules/foundations/bootloader/default.nix | 5 +++++ .../{systemd-boot/default.nix => systemd-boot.nix} | 0 modules/foundations/graphics/api/default.nix | 5 +++++ .../graphics/api/{opengl/default.nix => opengl.nix} | 0 .../processing-units/{amd/default.nix => amd.nix} | 0 .../foundations/graphics/processing-units/default.nix | 6 ++++++ .../processing-units/{nvidia/default.nix => nvidia.nix} | 0 8 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 modules/foundations/bootloader/default.nix rename modules/foundations/bootloader/{systemd-boot/default.nix => systemd-boot.nix} (100%) create mode 100644 modules/foundations/graphics/api/default.nix rename modules/foundations/graphics/api/{opengl/default.nix => opengl.nix} (100%) rename modules/foundations/graphics/processing-units/{amd/default.nix => amd.nix} (100%) create mode 100644 modules/foundations/graphics/processing-units/default.nix rename modules/foundations/graphics/processing-units/{nvidia/default.nix => nvidia.nix} (100%) diff --git a/hosts/foobar/systemwide.nix b/hosts/foobar/systemwide.nix index 5161d2e..3bae7e6 100644 --- a/hosts/foobar/systemwide.nix +++ b/hosts/foobar/systemwide.nix @@ -9,12 +9,11 @@ ../../modules/environment/users/foo - ../../modules/foundations/bootloader/systemd-boot - - ../../modules/foundations/graphics/api/opengl - ../../modules/foundations/graphics/processing-units/amd - ../../modules/foundations/graphics/processing-units/nvidia + ../../modules/foundations/bootloader + ../../modules/foundations/graphics/api + ../../modules/foundations/graphics/processing-units + ../../modules/foundations/i18n/fonts ../../modules/foundations/i18n/l10n diff --git a/modules/foundations/bootloader/default.nix b/modules/foundations/bootloader/default.nix new file mode 100644 index 0000000..e31abb7 --- /dev/null +++ b/modules/foundations/bootloader/default.nix @@ -0,0 +1,5 @@ +{...}: { + imports = [ + ./systemd-boot.nix + ]; +} diff --git a/modules/foundations/bootloader/systemd-boot/default.nix b/modules/foundations/bootloader/systemd-boot.nix similarity index 100% rename from modules/foundations/bootloader/systemd-boot/default.nix rename to modules/foundations/bootloader/systemd-boot.nix diff --git a/modules/foundations/graphics/api/default.nix b/modules/foundations/graphics/api/default.nix new file mode 100644 index 0000000..f893cdb --- /dev/null +++ b/modules/foundations/graphics/api/default.nix @@ -0,0 +1,5 @@ +{...}: { + imports = [ + ./opengl.nix + ]; +} diff --git a/modules/foundations/graphics/api/opengl/default.nix b/modules/foundations/graphics/api/opengl.nix similarity index 100% rename from modules/foundations/graphics/api/opengl/default.nix rename to modules/foundations/graphics/api/opengl.nix diff --git a/modules/foundations/graphics/processing-units/amd/default.nix b/modules/foundations/graphics/processing-units/amd.nix similarity index 100% rename from modules/foundations/graphics/processing-units/amd/default.nix rename to modules/foundations/graphics/processing-units/amd.nix diff --git a/modules/foundations/graphics/processing-units/default.nix b/modules/foundations/graphics/processing-units/default.nix new file mode 100644 index 0000000..80384ff --- /dev/null +++ b/modules/foundations/graphics/processing-units/default.nix @@ -0,0 +1,6 @@ +{...}: { + imports = [ + ./amd.nix + ./nvidia.nix + ]; +} diff --git a/modules/foundations/graphics/processing-units/nvidia/default.nix b/modules/foundations/graphics/processing-units/nvidia.nix similarity index 100% rename from modules/foundations/graphics/processing-units/nvidia/default.nix rename to modules/foundations/graphics/processing-units/nvidia.nix