-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardware.nix
86 lines (74 loc) · 1.94 KB
/
hardware.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
85
86
{ config, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
];
boot.loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
grub = {
configurationLimit = 5;
efiSupport = true;
# efiInstallAsRemovable = true;
device = "nodev";
extraEntries = ''
menuentry "Windows" {
insmod part_gpt
insmod fat
insmod search_fs_uuid
search --fs-uuid --no-floppy --set=root 8C07-315B
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
menuentry "Reboot" {
reboot
}
menuentry "Poweroff" {
halt
}
'';
};
};
fileSystems."/run/media/Gaming" =
{ device = "/dev/disk/by-uuid/b909f5c5-311d-4750-ba60-ba1f165f2926";
fsType = "btrfs";
};
fileSystems."/run/media/Programmador" =
{ device = "/dev/disk/by-uuid/01D78420CB137970";
fsType = "ntfs";
};
fileSystems."/run/media/Programming" =
{ device = "/dev/disk/by-uuid/7BE462B403C20D04";
fsType = "ntfs";
};
fileSystems."/run/media/HiSpedGames" =
{ device = "/dev/disk/by-uuid/01DA6374569C2200";
fsType = "ntfs";
};
# Make some extra kernel modules available to NixOS
boot.extraModulePackages = with config.boot.kernelPackages;
[
v4l2loopback.out
];
boot.supportedFilesystems = [ "ntfs" ];
# hardware.xpadneo.enable = true;
# Activate kernel modules (choose from built-ins and extra ones)
boot.kernelModules = [
# Virtual Camera
"v4l2loopback"
# Virtual Microphone, built-in
"snd-aloop"
# Uinput
"uinput"
"hid_microsoft"
];
services.udev.extraRules = ''
SUBSYSTEM==usb, ATTR{idVendor}==045e, ATTR{idProduct}==02ea, MODE=0666
'';
# Set initial kernel module settings
# https://github.com/umlaeute/v4l2loopback
boot.extraModprobeConfig = ''
options v4l2loopback card_label="Virtual Camera"
'';
}