From cb6d57536b416633afb640fa192a40d55b416ba8 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 10 Jul 2023 20:36:16 -0400 Subject: [PATCH] specializations: Configure inside default.nix This makes it possible to define specializations that are technically modules without having them placed in the modules directory. This is mainly useful to separate core Hyprland logic from desktop environment logic. --- specializations/default.nix | 13 +++++++++---- specializations/gnome.nix | 7 ------- specializations/plasma.nix | 7 ------- 3 files changed, 9 insertions(+), 18 deletions(-) delete mode 100644 specializations/gnome.nix delete mode 100644 specializations/plasma.nix diff --git a/specializations/default.nix b/specializations/default.nix index 35612ae7..6ef354f8 100644 --- a/specializations/default.nix +++ b/specializations/default.nix @@ -1,6 +1,11 @@ { - imports = [ - ./gnome.nix - ./plasma.nix - ]; + specialisation = { + gnome.configuration.imports = [ + ./gnome.nix + ]; + + plasma.configuration.imports = [ + ./plasma.nix + ]; + }; } diff --git a/specializations/gnome.nix b/specializations/gnome.nix deleted file mode 100644 index 1883cc20..00000000 --- a/specializations/gnome.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ - specialisation.gnome.configuration = { - imports = [ - ../modules/gnome.nix - ]; - }; -} diff --git a/specializations/plasma.nix b/specializations/plasma.nix deleted file mode 100644 index 73cc8c39..00000000 --- a/specializations/plasma.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ - specialisation.plasma.configuration = { - imports = [ - ../modules/plasma.nix - ]; - }; -}