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
|
2023-09-27 08:26:55 +00:00
|
|
|
#./services/git.nix
|
|
|
|
#./services/nginx.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 = {
|
2023-09-27 08:26:55 +00:00
|
|
|
enable = false;
|
2023-07-07 15:42:17 +00:00
|
|
|
};
|
2023-07-06 13:09:04 +00:00
|
|
|
};
|
2023-07-02 10:28:50 +00:00
|
|
|
|
2023-09-27 08:26:55 +00:00
|
|
|
systemd.network.enable = true;
|
|
|
|
systemd.network.networks."10-wan" = {
|
|
|
|
matchConfig.Name = "ens3"; # either ens3 (amd64) or enp1s0 (arm64)
|
|
|
|
networkConfig.DHCP = "ipv4";
|
|
|
|
address = [
|
|
|
|
"2a01:4f9:c012:72e3::/64"
|
|
|
|
];
|
|
|
|
routes = [
|
|
|
|
{ routeConfig.Gateway = "fe80::1"; }
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
loader.systemd-boot.enable = true;
|
|
|
|
loader.efi.canTouchEfiVariables = true;
|
|
|
|
initrd.kernelModules = [ "virtio_gpu" ];
|
|
|
|
kernelParams = [ "console=tty" ];
|
|
|
|
};
|
2023-07-02 10:28:50 +00:00
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
git
|
2023-07-05 08:23:31 +00:00
|
|
|
vim
|
2023-07-02 10:28:50 +00:00
|
|
|
];
|
|
|
|
}
|