summaryrefslogtreecommitdiffstats
path: root/lass/1systems/echelon/physical.nix
blob: fbacc39274eb15e43fdc0a2d4fc9e80b5cfbe874 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ config, lib, pkgs, modulesPath, ... }:
{
  imports = [
    ./config.nix
    (modulesPath + "/profiles/qemu-guest.nix")
  ];

  # Use the GRUB 2 boot loader.
  boot.loader.grub.enable = true;
  boot.loader.grub.version = 2;
  boot.loader.grub.efiSupport = true;
  boot.loader.grub.efiInstallAsRemovable = true;
  # Define on which hard drive you want to install Grub.
  boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only

  boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sd_mod" "sr_mod" ];
  boot.initrd.kernelModules = [ "dm-snapshot" ];
  boot.initrd.luks.devices.luksroot.device = "/dev/sda3";

  networking.useDHCP = false;
  networking.interfaces.ens18.useDHCP = true;

  fileSystems."/" = {
    device = "/dev/disk/by-uuid/5186edb1-9234-48ae-8679-61facb56b818";
    fsType = "xfs";
  };

  fileSystems."/boot" = {
    device = "/dev/disk/by-uuid/56D1-34A0";
    fsType = "vfat";
  };

}