109 lines
3.5 KiB
Nix
109 lines
3.5 KiB
Nix
|
# 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 + "/profiles/qemu-guest.nix")
|
|||
|
];
|
|||
|
|
|||
|
boot.initrd.availableKernelModules = [ "ahci" "virtio_pci" "xhci_pci" "sd_mod" "sr_mod" ];
|
|||
|
boot.initrd.kernelModules = [ ];
|
|||
|
boot.kernelModules = [ "kvm-amd" ];
|
|||
|
boot.extraModulePackages = [ ];
|
|||
|
|
|||
|
fileSystems."/" =
|
|||
|
{ device = "rpool/nixos/root";
|
|||
|
fsType = "zfs"; options = [ "zfsutil" "X-mount.mkdir" ];
|
|||
|
};
|
|||
|
|
|||
|
fileSystems."/home" =
|
|||
|
{ device = "rpool/user/home";
|
|||
|
fsType = "zfs"; options = [ "zfsutil" "X-mount.mkdir" ];
|
|||
|
};
|
|||
|
|
|||
|
fileSystems."/persist" =
|
|||
|
{ device = "rpool/persistent/impermanence";
|
|||
|
fsType = "zfs"; options = [ "zfsutil" "X-mount.mkdir" ];
|
|||
|
};
|
|||
|
|
|||
|
fileSystems."/srv" =
|
|||
|
{ device = "rpool/persistent/servers";
|
|||
|
fsType = "zfs"; options = [ "zfsutil" "X-mount.mkdir" ];
|
|||
|
};
|
|||
|
|
|||
|
fileSystems."/etc/secrets" =
|
|||
|
{ device = "rpool/persistent/secrets";
|
|||
|
fsType = "zfs"; options = [ "zfsutil" "X-mount.mkdir" ];
|
|||
|
};
|
|||
|
|
|||
|
fileSystems."/nix" =
|
|||
|
{ device = "rpool/persistent/nix";
|
|||
|
fsType = "zfs"; options = [ "zfsutil" "X-mount.mkdir" ];
|
|||
|
};
|
|||
|
|
|||
|
fileSystems."/var/log" =
|
|||
|
{ device = "rpool/persistent/log";
|
|||
|
fsType = "zfs"; options = [ "zfsutil" "X-mount.mkdir" ];
|
|||
|
};
|
|||
|
|
|||
|
fileSystems."/var/lib/docker" =
|
|||
|
{ device = "rpool/persistent/docker";
|
|||
|
fsType = "zfs"; options = [ "zfsutil" "X-mount.mkdir" ];
|
|||
|
};
|
|||
|
|
|||
|
fileSystems."/var/lib/podman" =
|
|||
|
{ device = "rpool/persistent/podman";
|
|||
|
fsType = "zfs"; options = [ "zfsutil" "X-mount.mkdir" ];
|
|||
|
};
|
|||
|
|
|||
|
fileSystems."/var/lib/nixos-containers" =
|
|||
|
{ device = "rpool/persistent/nixos-containers";
|
|||
|
fsType = "zfs"; options = [ "zfsutil" "X-mount.mkdir" ];
|
|||
|
};
|
|||
|
|
|||
|
fileSystems."/media/bittorrent" =
|
|||
|
{ device = "rpool/persistent/bittorrent";
|
|||
|
fsType = "zfs"; options = [ "zfsutil" "X-mount.mkdir" ];
|
|||
|
};
|
|||
|
|
|||
|
fileSystems."/media/libvirt" =
|
|||
|
{ device = "rpool/persistent/libvirt";
|
|||
|
fsType = "zfs"; options = [ "zfsutil" "X-mount.mkdir" ];
|
|||
|
};
|
|||
|
|
|||
|
fileSystems."/boot" =
|
|||
|
{ device = "bpool/nixos/boot";
|
|||
|
fsType = "zfs"; options = [ "zfsutil" "X-mount.mkdir" ];
|
|||
|
};
|
|||
|
|
|||
|
fileSystems."/boot/efi" =
|
|||
|
{ device = "/dev/disk/by-uuid/A3BF-2C90";
|
|||
|
fsType = "vfat";
|
|||
|
};
|
|||
|
|
|||
|
swapDevices = [
|
|||
|
{
|
|||
|
device = "/dev/disk/by-partuuid/c40f4598-4250-4afd-9778-b79619bda1bc";
|
|||
|
# randomEncryption.enable = true;
|
|||
|
# randomEncryption.allowDiscards = true;
|
|||
|
}
|
|||
|
];
|
|||
|
|
|||
|
# 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.enp2s0.useDHCP = lib.mkDefault true;
|
|||
|
|
|||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|||
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|||
|
networking.hostId = "c63612aa";
|
|||
|
boot.zfs.devNodes = "/dev/disk/by-id";
|
|||
|
boot.supportedFilesystems = [ "zfs" ];
|
|||
|
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-partuuid/47af6a50-2995-42e8-a0f2-844297fe1dc5";
|
|||
|
boot.initrd.luks.devices."cryptboot".device = "/dev/disk/by-partuuid/1cdbdb3a-d01c-4f9d-adbb-3bb5e805aca1";
|
|||
|
}
|