-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfarting-unicorn.nix
74 lines (64 loc) · 1.58 KB
/
farting-unicorn.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
{
config,
pkgs,
lib,
...
}:
{
networking.hostName = "farting-unicorn";
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"thunderbolt"
"usb_storage"
"sd_mod"
];
kernelModules = [ "kvm-amd" ];
kernelParams = [
"resume_offset=5697536" # offset by filefrag -v /swapfile
];
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/e50a21f8-efda-4c70-94b1-aee61f724832";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-47e2e76d-6ca1-4580-a646-4276cbbebd2b".device =
"/dev/disk/by-uuid/47e2e76d-6ca1-4580-a646-4276cbbebd2b";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/621A-C573";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices = [
{ device = "/dev/disk/by-uuid/f550894c-6b6c-4353-b3a3-c79fd06123b1"; }
];
hardware.cpu.amd.updateMicrocode = true;
hardware.enableRedistributableFirmware = true;
services.xserver.synaptics.palmDetect = true;
#wg genkey > /home/bag/src/nixos/src/wireguard-blueboot.key
#wg pubkey < /home/bag/src/nixos/src/wireguard-blueboot.key
networking.wireguard.interfaces = {
wg0 = {
ips = [ "10.42.42.6/32" ];
privateKeyFile = "/home/bag/src/nixos/src/wireguard-blueboot.key";
};
};
services.pipewire.extraConfig.pipewire-pulse = {
"90-pacmd" = {
"pulse.cmd" = [
{
cmd = "load-module";
args = "module-zeroconf-discover";
}
];
};
};
}