Nix-Config/system/kernighan/kernighan.nix

44 lines
837 B
Nix
Raw Normal View History

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";
firewall = {
2023-09-27 08:26:55 +00:00
enable = false;
};
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
vim
2023-07-02 10:28:50 +00:00
];
}