73 lines
2 KiB
Nix
73 lines
2 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,
|
||
modulesPath,
|
||
...
|
||
}: {
|
||
imports = [
|
||
(modulesPath + "/installer/scan/not-detected.nix")
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod"];
|
||
boot.initrd.kernelModules = [];
|
||
boot.kernelModules = ["kvm-amd"];
|
||
boot.extraModulePackages = [];
|
||
|
||
fileSystems."/" = {
|
||
device = "zpool/root";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/nix" = {
|
||
device = "zpool/nix";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var" = {
|
||
device = "zpool/var";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/home" = {
|
||
device = "zpool/home";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/boot" = {
|
||
device = "/dev/disk/by-uuid/257B-AB7E";
|
||
fsType = "vfat";
|
||
};
|
||
fileSystems."/home/geir/games" = {
|
||
device = "stuffpool/games";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/home/geir/virtual" = {
|
||
device = "stuffpool/virtual";
|
||
fsType = "zfs";
|
||
};
|
||
fileSystems."/mnt/storage/media" = {
|
||
device = "sleeper-service:/mnt/storage";
|
||
fsType = "nfs";
|
||
options = ["x-systemd.automount" "noauto" "x-systemd.idle-timeout=600"];
|
||
};
|
||
|
||
swapDevices = [];
|
||
# ZRAM swap configuration
|
||
zramSwap = {
|
||
enable = true;
|
||
algorithm = "zstd";
|
||
};
|
||
|
||
# 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.enp4s0.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.enp6s0.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.wlp5s0.useDHCP = lib.mkDefault true;
|
||
}
|