2024-09-02 21:22:08 +02:00
|
|
|
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
|
|
|
# and may be overwritten by future invocations. Please make changes
|
|
|
|
|
# to /etc/nixos/configuration.nix instead.
|
|
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
|
|
|
|
modulesPath,
|
|
|
|
|
...
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
|
|
|
|
|
|
|
|
|
boot.initrd.luks.devices = {
|
|
|
|
|
"luks-rpool-nvme-Samsung_SSD_980_PRO_1TB_S5P2NL0W208007T-part2".device = "/dev/disk/by-id/nvme-Samsung_SSD_980_PRO_1TB_S5P2NL0W208007T-part2";
|
|
|
|
|
};
|
|
|
|
|
boot.initrd.availableKernelModules = [
|
|
|
|
|
"nvme"
|
|
|
|
|
"thunderbolt"
|
|
|
|
|
"xhci_pci"
|
|
|
|
|
"ahci"
|
|
|
|
|
"usb_storage"
|
|
|
|
|
"usbhid"
|
|
|
|
|
"sd_mod"
|
|
|
|
|
];
|
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
|
boot.kernelModules = [ "kvm-amd" ];
|
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
|
device = "rpool/root";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/home" = {
|
|
|
|
|
device = "rpool/home";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/8E5C-9F77";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
options = [
|
|
|
|
|
"fmask=0077"
|
|
|
|
|
"dmask=0077"
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
swapDevices = [ ];
|
|
|
|
|
|
|
|
|
|
# NFS client
|
|
|
|
|
fileSystems."/mnt/archivebox" = {
|
|
|
|
|
device = "10.0.0.81:/mnt/coffeeNAS/archivebox";
|
|
|
|
|
fsType = "nfs";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/mnt/internet_archive" = {
|
|
|
|
|
device = "10.0.0.81:/mnt/coffeeNAS/internet_archive";
|
|
|
|
|
fsType = "nfs";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/mnt/backup" = {
|
|
|
|
|
device = "10.0.0.81:/mnt/coffeeNAS/borgbackup/repositories";
|
|
|
|
|
fsType = "nfs";
|
|
|
|
|
};
|
|
|
|
|
|
2024-09-04 06:10:35 +02:00
|
|
|
|
# ZFS extpool
|
|
|
|
|
boot.zfs.extraPools = [ "extpool" ];
|
|
|
|
|
|
2024-09-02 21:22:08 +02:00
|
|
|
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
|
|
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
|
|
|
# still possible to use this option, but it's recommended to use it in conjunction
|
|
|
|
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
|
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
|
|
|
|
|
# networking.interfaces.eno2.useDHCP = lib.mkDefault true;
|
|
|
|
|
# networking.interfaces.wlp10s0.useDHCP = lib.mkDefault true;
|
|
|
|
|
networking.hostId = "abcd1234";
|
|
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
|
}
|