-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnuc.nix
61 lines (48 loc) · 999 Bytes
/
nuc.nix
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{ config, lib, pkgs, ... }:
let
name = "nuc";
in
{
nix.settings.max-jobs = lib.mkDefault 4;
boot = {
initrd = {
availableKernelModules = [
"ahci"
"rtsx_pci_sdmmc"
"sd_mod"
"usb_storage"
"xhci_pci"
];
kernelModules = [ ];
};
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
# Use the systemd-boot EFI boot loader.
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
binfmt.emulatedSystems = [ "aarch64-linux" ];
};
fileSystems = {
"/boot" =
{
device = "/dev/disk/by-label/boot";
fsType = "vfat";
};
"/" =
{
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
};
swapDevices = [{ device = "/dev/disk/by-label/swap"; }];
networking = {
hostName = name;
useDHCP = false;
interfaces = {
eno1.useDHCP = true;
wlp58s0.useDHCP = true;
};
};
}