-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjasper.nix
84 lines (68 loc) · 1.74 KB
/
jasper.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
config,
pkgs,
lib,
...
}:
{
dev-machine = true;
nix = {
settings = {
substituters = [ "http://punky.meow:5000" ];
trusted-public-keys = [ (builtins.readFile ./public/binary-cache/cache-pub-key.pem) ];
};
};
networking = {
hostName = "jasper";
# nameservers = [ "8.8.8.8" "1.1.1.1" ];
};
systemd.network.networks = {
"40-wlan0" = {
matchConfig = {
Name = "wlan0";
};
networkConfig = {
DHCP = "yes";
MulticastDNS = "yes";
};
};
};
services.resolved.extraConfig = ''
DNSStubListener=no
'';
services.logind = {
extraConfig = "HandlePowerKey=suspend";
};
programs.adb.enable = true;
hardware.cpu.intel.updateMicrocode = true;
boot = {
initrd.availableKernelModules = [
"xhci_pci"
"thunderbolt"
"ahci"
"nvme"
"usbhid"
"usb_storage"
"sd_mod"
];
initrd.kernelModules = [ ];
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/3e74cb7c-1f46-4a90-af40-04ac22c54d2e";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/A65D-C287";
fsType = "vfat";
};
swapDevices = [ ];
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.11"; # Did you read the comment?
}