2022-11-22 02:33:47 +00:00
|
|
|
# trampoline from flake.nix into the specific host definition, while doing a tiny bit of common setup
|
2022-10-24 13:06:11 +00:00
|
|
|
|
2023-01-19 23:23:41 +00:00
|
|
|
# args from flake-level `import`
|
2023-01-11 08:56:06 +00:00
|
|
|
{ hostName, localSystem }:
|
2023-01-19 23:23:41 +00:00
|
|
|
|
|
|
|
# module args
|
2023-05-11 22:39:08 +00:00
|
|
|
{ lib, ... }:
|
2023-01-11 08:56:06 +00:00
|
|
|
|
|
|
|
{
|
2022-10-24 13:06:11 +00:00
|
|
|
imports = [
|
2023-01-19 23:23:41 +00:00
|
|
|
./by-name/${hostName}
|
2022-11-22 02:52:07 +00:00
|
|
|
./common
|
2023-01-19 23:23:41 +00:00
|
|
|
./modules
|
2022-10-24 13:06:11 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
networking.hostName = hostName;
|
2023-03-01 23:33:32 +00:00
|
|
|
nixpkgs.buildPlatform = lib.mkIf (localSystem != null) localSystem;
|
2023-03-02 00:06:22 +00:00
|
|
|
sane.cross.enablePatches = localSystem != null;
|
2022-10-24 13:06:11 +00:00
|
|
|
}
|