hosts/solaire: avoid repeating paths

This commit is contained in:
Anthony Rodriguez 2024-11-06 16:25:57 +01:00
parent 1a61ae4ac4
commit a9b8cc60e0
Signed by: nezia
GPG key ID: EE3BE97C040A86CE

View file

@ -1,28 +1,25 @@
{ {specialArgs, ...}: let
self, system = ../../system;
specialArgs, home = ../../home;
...
}: let
mod = "${self}/system";
in { in {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
./modules ./modules
"${mod}" system
"${mod}/hardware/uni-sync.nix" "${system}/hardware/uni-sync.nix"
"${mod}/programs/gnome.nix" "${system}/programs/gnome.nix"
"${mod}/programs/games.nix" "${system}/programs/games.nix"
"${mod}/hardware/nvidia.nix" "${system}/hardware/nvidia.nix"
]; ];
home-manager = { home-manager = {
users.nezia.imports = [ users.nezia.imports = [
"${self}/home" home
"${self}/home/programs/games" "${home}/programs/games"
"${self}/home/terminal/emulators/foot.nix" "${home}/terminal/emulators/foot.nix"
]; ];
extraSpecialArgs = specialArgs; extraSpecialArgs = specialArgs;
}; };