hosts/solaire: avoid repeating paths
This commit is contained in:
parent
1a61ae4ac4
commit
a9b8cc60e0
1 changed files with 11 additions and 14 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue