-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbufflehead.nix
152 lines (133 loc) · 3.6 KB
/
bufflehead.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{ config, pkgs, lib, ... }:
{
imports = [
./bh-hardware-configuration.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.hostName = "bufflehead";
networking.wireless = {
enable = true;
userControlled.enable = true;
iwd.enable = false;
scanOnLowSignal = false;
networks = {
"FIXME" = {
psk = "thisGetsSavedToNixStore";
};
};
};
networking.useDHCP = false;
networking.interfaces.eno1.useDHCP = false;
networking.interfaces.wlp0s20f3.useDHCP = true;
networking.nameservers = [ "192.168.0.149" ];
networking.enableIPv6 = true;
networking.firewall.allowedTCPPorts = [ ];
networking.firewall.enable = true;
services.gpm.enable = true;
i18n.defaultLocale = "en_US.UTF-8";
console = {
earlySetup = true;
font = "${pkgs.terminus_font}/share/consolefonts/ter-v18n.psf.gz";
packages = with pkgs; [ terminus_font ];
keyMap = "us";
};
fonts.packages = with pkgs; [
noto-fonts
];
time.timeZone = "America/Los_Angeles";
nixpkgs.hostPlatform = "x86_64-linux";
nixpkgs.overlays = [
(self: super: {
mpv-unwrapped = super.mpv-unwrapped.override {
libbluray = super.libbluray.override {
withAACS = true;
withBDplus = true;
};
};
})
];
nixpkgs.config.packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
};
nixpkgs.config.allowUnfree = true;
nix = {
settings = {
auto-optimise-store = true;
trusted-users = [ "@wheel" ];
};
extraOptions = ''
experimental-features = nix-command flakes
'';
};
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD
vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
vaapiVdpau
libvdpau-va-gl
];
};
hardware.bluetooth = {
enable = false;
powerOnBoot = true;
settings = {
General = {
Name = "Bufflehead";
ControllerMode = "dual";
FastConnectable = "true";
Experimental = "true";
};
Policy = { AutoEnable = "true"; };
LE = { EnableAdvMonInterleaveScan = "true"; };
};
};
hardware.enableAllFirmware = true;
hardware.enableRedistributableFirmware = true;
services.xserver = {
enable = true;
layout = "us";
autorun = false;
exportConfiguration = true;
displayManager.startx.enable = true;
windowManager.cwm.enable = true;
videoDrivers = [ "modesetting" ];
};
## MINIDLNA
services.minidlna = {
enable = true;
openFirewall = true;
settings.media_dir = [ "/mnt/sdb1" "/mnt/sdc1" "/mnt/sdd1" ];
settings.inotify = "yes";
};
##
services.openssh.enable = true;
users.users.rjpc = {
isNormalUser = true;
extraGroups = [
"adbusers"
"audio"
"cdrom"
"lp"
"lxd"
"sound"
"wheel"
];
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJNo24kFmOht87GEejqv4uWquucROWu4Fw8v8JaElomJ rjpc@zits" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDRD43YeRHIv/H4S8Hj9bw0uoGRo0W9mCMMOZvtHPBLi rjpc@air" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMM2gabh4hExixOKrLfrG029dA5TiKyr4SZB5BsJB65o rjpc@YF21" ];
packages = with pkgs; [ ];
};
security.sudo = {
enable = true;
wheelNeedsPassword = false;
};
environment.systemPackages = with pkgs; [
vim
wget
mpv-unwrapped
nixpkgs-fmt
neofetch
];
system.stateVersion = "22.11"; # Did you read the comment? Yes.
}