From a9b8cc60e0cb5b2ce037aa2563ab455c9b645e14 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Wed, 6 Nov 2024 16:25:57 +0100 Subject: [PATCH] hosts/solaire: avoid repeating paths --- hosts/solaire/default.nix | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/hosts/solaire/default.nix b/hosts/solaire/default.nix index 11817b8..3f489c5 100644 --- a/hosts/solaire/default.nix +++ b/hosts/solaire/default.nix @@ -1,28 +1,25 @@ -{ - self, - specialArgs, - ... -}: let - mod = "${self}/system"; +{specialArgs, ...}: let + system = ../../system; + home = ../../home; in { imports = [ ./hardware-configuration.nix ./modules - "${mod}" - "${mod}/hardware/uni-sync.nix" + system + "${system}/hardware/uni-sync.nix" - "${mod}/programs/gnome.nix" - "${mod}/programs/games.nix" - "${mod}/hardware/nvidia.nix" + "${system}/programs/gnome.nix" + "${system}/programs/games.nix" + "${system}/hardware/nvidia.nix" ]; home-manager = { users.nezia.imports = [ - "${self}/home" - "${self}/home/programs/games" + home + "${home}/programs/games" - "${self}/home/terminal/emulators/foot.nix" + "${home}/terminal/emulators/foot.nix" ]; extraSpecialArgs = specialArgs; };