summaryrefslogtreecommitdiff
path: root/hel/hw.nix
blob: 16216fe6e519093513934fda5456d7ebe1c49aee (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
{ config, lib, pkgs, ... }:

{
  imports =
    [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
    ];

  fileSystems."/" =
    { device = "/dev/hel/btrfs";
      fsType = "btrfs";
      options = [ "compress=lzo" "discard" "defaults" ];
    };

  fileSystems."/boot" =
    { device = "/dev/disk/by-uuid/3ADC-E1CD";
      fsType = "vfat";
    };

  swapDevices =
    [ { device = "/dev/hel/swap"; }
    ];

  nix.maxJobs = lib.mkDefault 4;

  hardware.cpu.intel.updateMicrocode = true;
}