Compare commits
2 Commits
533bf6fe02
...
5c0abba619
Author | SHA1 | Date | |
---|---|---|---|
5c0abba619 | |||
0e89a2be01 |
|
@ -7,5 +7,8 @@
|
|||
../modules/nasp.nix
|
||||
];
|
||||
nasp.serial = 2;
|
||||
boot.supportedFilesystems = [ "zfs" ];
|
||||
boot.zfs.forceImportRoot = false;
|
||||
networking.hostId = "b500d22c";
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,6 +23,12 @@
|
|||
fsType = "vfat";
|
||||
};
|
||||
|
||||
fileSystems."/home2" =
|
||||
{ device = "home2";
|
||||
fsType = "zfs";
|
||||
neededForBoot = false;
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/.swapfile";
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user