2023-07-02 10:28:50 +00:00
|
|
|
|
|
|
|
{ config, pkgs, inputs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
2023-07-07 07:22:46 +00:00
|
|
|
../shared/shared-configuration.nix
|
|
|
|
./kernighan-hardware.nix
|
|
|
|
./services/nginx.nix
|
2023-09-03 15:27:54 +00:00
|
|
|
./services/home_assistant.nix
|
2023-07-02 10:28:50 +00:00
|
|
|
];
|
|
|
|
|
2023-07-06 13:09:04 +00:00
|
|
|
networking = {
|
|
|
|
hostName = "kernighan";
|
2023-07-07 15:42:17 +00:00
|
|
|
firewall = {
|
|
|
|
enable = true;
|
2023-08-26 12:36:57 +00:00
|
|
|
allowedTCPPorts = [ 8123 2223 80 443 ];
|
2023-07-07 15:42:17 +00:00
|
|
|
};
|
2023-07-06 13:09:04 +00:00
|
|
|
interfaces = {
|
|
|
|
end0.ipv4.addresses = [{
|
|
|
|
address = "192.168.40.25";
|
|
|
|
prefixLength = 24;
|
|
|
|
}];
|
|
|
|
end0.ipv6.addresses = [{
|
|
|
|
address = "fe80::dea6:32ff:fe04:c6f3";
|
|
|
|
prefixLength = 64;
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
defaultGateway = "192.168.40.1";
|
2023-07-07 15:42:17 +00:00
|
|
|
defaultGateway6.address = "fe80::00:b8:c2:db:b8:57";
|
|
|
|
defaultGateway6.interface = "end0";
|
2023-07-06 13:09:04 +00:00
|
|
|
nameservers = [ "208.67.222.222" "208.67.220.220" ];
|
|
|
|
};
|
2023-07-02 10:28:50 +00:00
|
|
|
|
|
|
|
boot.loader.grub.enable = false;
|
|
|
|
boot.loader.generic-extlinux-compatible.enable = true;
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
git
|
2023-07-05 08:23:31 +00:00
|
|
|
vim
|
2023-07-02 10:28:50 +00:00
|
|
|
];
|
2023-09-03 14:43:50 +00:00
|
|
|
|
|
|
|
nix.buildMachines = [ {
|
|
|
|
hostName = "kernighan";
|
2023-09-03 15:46:17 +00:00
|
|
|
systems = ["x86_64-linux" "aarch64-linux"];
|
2023-09-03 14:43:50 +00:00
|
|
|
protocol = "ssh-ng";
|
|
|
|
maxJobs = 1;
|
|
|
|
speedFactor = 2;
|
|
|
|
supportedFeatures = [ "nixos-test" ];
|
|
|
|
} ];
|
|
|
|
nix.distributedBuilds = true;
|
|
|
|
nix.extraOptions = ''
|
|
|
|
builders-use-substitutes = true
|
|
|
|
'';
|
2023-07-02 10:28:50 +00:00
|
|
|
}
|