{ config, lib, pkgs, ... }: { imports = [ # boot loader # ----------- { # Use the systemd-boot EFI boot loader, not grub boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; #boot.loader.grub = { # device = "/dev/sda"; # enable = true; # version = 2; #}; } # kernel # ------ { boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ]; boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; } # automount # --------- (let mediaUUID = "3d106f56-89e5-400d-9d6b-1dd957919548"; in { fileSystems."/media" = { device = "/dev/disk/by-uuid/${mediaUUID}"; fsType = "ext4"; options = [ "nofail" "noauto" #"x-systemd.device-timeout=1ms" ]; }; systemd.mounts = [{ enable = true; options = "nofail,noauto"; type = "ext4"; wantedBy = [ "multi-user.target" ]; what = "/dev/disk/by-uuid/${mediaUUID}"; where = "/media"; }]; }) ]; # NTFS support # ------------ environment.systemPackages = [ pkgs.ntfs3g ]; # partitions # ---------- fileSystems."/" = { device = "/dev/disk/by-uuid/77a3e839-5a80-4777-93c3-31be7f0cb99d"; fsType = "ext4"; }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/FBFB-8DA5"; fsType = "vfat"; }; fileSystems."/home" = { device = "/dev/disk/by-uuid/192a8bd6-e5f7-4e66-b69e-f3da701da343"; fsType = "ext4"; }; fileSystems."/backup" = { device = "/dev/disk/by-uuid/ca895f0e-f932-4a9e-b2ff-a1a488b0953d"; fsType = "ext4"; }; swapDevices = [ ]; nix.maxJobs = lib.mkDefault 4; }