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 @@
{
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;
};