nixos/kuro/configuration.nix

35 lines
990 B
Nix
Raw Normal View History

2023-01-15 18:56:16 +01:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
2023-06-12 19:32:36 +02:00
# and in the NixOS manual (accessible by running `nixos-help`).
2023-01-15 18:56:16 +01:00
{ config, pkgs, ... }:
{
imports =
[
# Include the results of the hardware scan.
./hardware-configuration.nix
# Shared config of all machines
2023-06-12 19:32:36 +02:00
/data/nixos/common.nix
2023-01-15 18:56:16 +01:00
];
2023-11-27 18:41:49 +01:00
# amd graphics
hardware.opengl.extraPackages = with pkgs; [ amdvlk rocm-opencl-icd rocm-opencl-runtime ];
2023-06-12 19:32:36 +02:00
2023-11-27 18:41:49 +01:00
# use systemd-networkd, fixed IPv4, dynamic IPv6
networking.hostName = "kuro";
2023-06-12 19:32:36 +02:00
networking.useDHCP = false;
2023-11-27 18:41:49 +01:00
networking.nameservers = [ "192.168.13.1" ];
systemd.network = {
enable = true;
networks."10-wan" = {
matchConfig.Name = "enp2s0";
address = [ "192.168.13.101/24" ];
routes = [ { routeConfig.Gateway = "192.168.13.1"; } ];
networkConfig.IPv6AcceptRA = true;
linkConfig.RequiredForOnline = "routable";
};
2023-06-12 19:32:36 +02:00
};
2023-01-15 18:56:16 +01:00
}