modularizing modules ig
This commit is contained in:
parent
9c0b46c7d3
commit
3d09e64139
6 changed files with 83 additions and 18 deletions
|
|
@ -5,10 +5,31 @@
|
|||
...
|
||||
}:
|
||||
|
||||
let
|
||||
modules =
|
||||
if config.networking.hostName == "marty-pc" then
|
||||
[
|
||||
./git.nix
|
||||
./vscodium.nix
|
||||
./window_manager/imports.nix
|
||||
|
||||
]
|
||||
else if config.networking.hostName == "marty-latitude" then
|
||||
[
|
||||
./git.nix
|
||||
./vscodium.nix
|
||||
./window_manager/imports.nix
|
||||
|
||||
]
|
||||
else if config.networking.hostName == "marty-server" then
|
||||
[
|
||||
./git.nix
|
||||
|
||||
]
|
||||
else
|
||||
[ ];
|
||||
in
|
||||
|
||||
{
|
||||
imports = [
|
||||
./window_manager/imports.nix
|
||||
./git.nix
|
||||
./vscodium.nix
|
||||
];
|
||||
imports = modules;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,9 +5,26 @@
|
|||
...
|
||||
}:
|
||||
|
||||
let
|
||||
modules =
|
||||
if config.networking.hostName == "marty-pc" then
|
||||
[
|
||||
./hyprland.nix
|
||||
./waybar.nix
|
||||
]
|
||||
else if config.networking.hostName == "marty-latitude" then
|
||||
[
|
||||
./hyprland.nix
|
||||
./waybar.nix
|
||||
]
|
||||
else if config.networking.hostName == "marty-server" then
|
||||
[
|
||||
|
||||
]
|
||||
else
|
||||
[ ];
|
||||
in
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hyprland.nix
|
||||
./waybar.nix
|
||||
];
|
||||
imports = modules;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue