63 lines
1.1 KiB
Nix
63 lines
1.1 KiB
Nix
{ ... } @ inputs:
|
|
|
|
let
|
|
hardware = inputs.hardware.nixosModules;
|
|
|
|
inherit (inputs.nixpkgs) lib;
|
|
inherit (builtins) head;
|
|
getTargetHost = file:
|
|
let
|
|
net = import file { inherit lib; };
|
|
ipv4addrs = net.networking.interfaces.eth0.ipv4.addresses;
|
|
in
|
|
(head ipv4addrs).address;
|
|
in
|
|
{
|
|
home = {
|
|
system = "x86_64-linux";
|
|
|
|
extraModules = [
|
|
hardware.common-gpu-amd
|
|
../users/jan
|
|
../users/nas
|
|
];
|
|
|
|
extraHomeModule = { ... }: {
|
|
local.polybar.wifiDevice = "wlp11s0f3u2";
|
|
local.alacritty.fontSize = 8.0;
|
|
};
|
|
};
|
|
|
|
asus-gl553vd = {
|
|
system = "x86_64-linux";
|
|
|
|
extraModules = [
|
|
hardware.common-cpu-intel
|
|
../users/jan
|
|
../users/nas
|
|
];
|
|
|
|
extraHomeModule = { ... }: {
|
|
local.polybar.wifiDevice = "wlp2s0";
|
|
local.alacritty.fontSize = 6.0;
|
|
};
|
|
};
|
|
|
|
magenta = {
|
|
system = "x86_64-linux";
|
|
|
|
targetHost =
|
|
getTargetHost ./magenta/networking.secret.nix;
|
|
|
|
extraModules = [
|
|
inputs.mailserver.nixosModule
|
|
];
|
|
};
|
|
|
|
canigou = {
|
|
system = "x86_64-linux";
|
|
|
|
targetHost =
|
|
getTargetHost ./canigou/networking.secret.nix;
|
|
};
|
|
}
|