This repository has no description
1.8 kB
76 lines
1{ self, modulesPath, config, lib, pkgs, ... }:
2{
3
4 imports = [
5 ./config.nix
6 (modulesPath + "/installer/scan/not-detected.nix")
7 self.inputs.disko.nixosModules.disko
8 ];
9
10 disko.devices = import ./disk.nix;
11 networking.hostId = "9c0a74ac";
12 boot.kernelPackages = pkgs.zfs.latestCompatibleLinuxPackages;
13
14 boot.loader.grub.enable = true;
15 boot.loader.grub.version = 2;
16 boot.loader.grub.efiSupport = true;
17 boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "sd_mod" ];
18 boot.kernelModules = [ "kvm-amd" ];
19 hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
20
21 # networking config
22 networking.useNetworkd = true;
23 systemd.network = {
24 enable = true;
25 config = {
26 networkConfig.SpeedMeter = true;
27 };
28 # netdevs.ext-br.netdevConfig = {
29 # Kind = "bridge";
30 # Name = "ext-br";
31 # MACAddress = "a8:a1:59:0f:2d:69";
32 # };
33 # networks.ext-br = {
34 # name = "ext-br";
35 # address = [
36 # "95.217.192.59/26"
37 # "2a01:4f9:4a:4f1a::1/64"
38 # ];
39 # gateway = [
40 # "95.217.192.1"
41 # "fe80::1"
42 # ];
43 # };
44 networks."01-enp" = {
45 #bridge = [ "ext-br" ];
46 matchConfig.Name = "enp35s0";
47 address = [
48 "95.217.192.59/26"
49 "2a01:4f9:4a:4f1a::2/64"
50 ];
51 gateway = [
52 "95.217.192.1"
53 "fe80::1"
54 ];
55 };
56 };
57
58 networking.useDHCP = false;
59 # boot.initrd.network = {
60 # enable = true;
61 # ssh = {
62 # enable = true;
63 # authorizedKeys = [ config.krebs.users.lass.pubkey ];
64 # port = 2222;
65 # hostKeys = [
66 # (<secrets/ssh.id_ed25519>)
67 # (<secrets/ssh.id_rsa>)
68 # ];
69 # };
70 # };
71 # boot.kernelParams = [
72 # "net.ifnames=0"
73 # "ip=dhcp"
74 # "boot.trace"
75 # ];
76}