summary refs log tree commit diff
path: root/doc/config-examples/x86_64-usbstick.nix
blob: 374d3ba3bc74f4982425d96a2e26dd47d6b30034 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Configuration file used to install NixOS-x86_64 on a USB stick.

{
  boot = {
    loader.grub.device = "/dev/sda";
    initrd = {
      kernelModules = ["usb_storage" "ehci_hcd" "ohci_hcd"];
    };
  };

  fileSystems = [
    { mountPoint = "/";
      label = "nixos-usb";
    }
  ];

  fonts = {
    enableFontConfig = false;
  };
}