add new kuro config
This commit is contained in:
parent
2c9c6c1652
commit
db0035dc20
|
@ -14,19 +14,21 @@
|
||||||
/data/nixos/common.nix
|
/data/nixos/common.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# host name
|
|
||||||
networking.hostName = "kuro";
|
|
||||||
|
|
||||||
# main network interface via systemd-networkd
|
|
||||||
networking.useDHCP = false;
|
|
||||||
systemd.network.enable = true;
|
|
||||||
systemd.network.networks."10-lan" = {
|
|
||||||
matchConfig.Name = "enp2s0";
|
|
||||||
networkConfig.DHCP = "yes";
|
|
||||||
linkConfig.RequiredForOnline = "routable";
|
|
||||||
};
|
|
||||||
|
|
||||||
# amd graphics
|
# amd graphics
|
||||||
hardware.opengl.extraPackages = with pkgs; [ amdvlk rocm-opencl-icd rocm-opencl-runtime ];
|
hardware.opengl.extraPackages = with pkgs; [ amdvlk rocm-opencl-icd rocm-opencl-runtime ];
|
||||||
hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ amdvlk ];
|
|
||||||
|
# use systemd-networkd, fixed IPv4, dynamic IPv6
|
||||||
|
networking.hostName = "kuro";
|
||||||
|
networking.useDHCP = false;
|
||||||
|
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";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,24 +20,23 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/03B1-533D";
|
{ device = "/dev/disk/by-uuid/263D-A89E";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.initrd.luks.devices."crypt-disk1".device = "/dev/disk/by-uuid/3009a0b5-3d8a-48e3-88a7-2a27a928b648";
|
# system
|
||||||
boot.initrd.luks.devices."crypt-disk1".allowDiscards = true;
|
boot.initrd.luks.devices."crypt-system".device = "/dev/disk/by-uuid/f4af1379-93d2-4903-9fb5-5b767d733c66";
|
||||||
boot.initrd.luks.devices."crypt-disk1".bypassWorkqueues = true;
|
|
||||||
|
|
||||||
fileSystems."/nix" =
|
fileSystems."/nix" =
|
||||||
{ device = "/dev/mapper/crypt-disk1";
|
{ device = "/dev/mapper/crypt-system";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=nix" "noatime" "compress=zstd" ];
|
options = [ "subvol=nix" "noatime" "nodiratime" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/data" =
|
fileSystems."/data" =
|
||||||
{ device = "/dev/mapper/crypt-disk1";
|
{ device = "/dev/mapper/crypt-system";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=data" "noatime" "compress=zstd" ];
|
options = [ "subvol=data" "noatime" "nodiratime" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/home" =
|
fileSystems."/home" =
|
||||||
|
@ -58,8 +57,6 @@
|
||||||
options = [ "bind" ];
|
options = [ "bind" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue