feat(g2): enable zfs

This commit is contained in:
Dict Xiong 2024-05-27 23:53:06 +08:00
parent 533bf6fe02
commit 0e89a2be01
2 changed files with 17 additions and 2 deletions

View File

@ -7,5 +7,8 @@
../modules/nasp.nix
];
nasp.serial = 2;
boot.supportedFilesystems = [ "zfs" ];
boot.zfs.forceImportRoot = false;
networking.hostId = "b500d22c";
system.stateVersion = "23.11";
}
}

View File

@ -37,9 +37,12 @@ in
};
time.timeZone = lib.mkDefault "Asia/Shanghai";
## networking
networking.nameservers = [ "192.168.16.118" ];
services.resolved.enable = true;
networking.networkmanager.enable = true;
networking.interfaces = {
eno1.wakeOnLan.enable = true;
eno1.useDHCP = true;
eno1.ipv4 = {
addresses = [
{
@ -52,9 +55,18 @@ in
address = "0.0.0.0";
prefixLength = 0;
via = "192.168.16.118";
options = { metric = "90"; };
}
];
};
eno1.ipv6.routes = [
{
address = "::";
prefixLength = 0;
via = "fe80::2eea:7fff:feec:4689";
options = { metric = "90"; };
}
];
enp2s0np0.ipv4.addresses = [
{
address = "12.12.12.${ipSuffix}";
@ -98,7 +110,7 @@ in
## packages and services
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
bash cmake curl file fzf gcc git gnumake htop inetutils iproute2 iputils less man nettools
bash cmake curl file fzf gcc git gnumake htop nettools inetutils iproute2 iputils less man
openssh openssl python3 rdma-core sops sudo tmux util-linux vim wget zsh
# extended
acpi atop btop dialog dig dmidecode dos2unix ethtool fish iftop iotop killall lshw lsof