blob: fc12e1721e0c99ff3bbe7825d9c2f4c12eed9a3d (
plain)
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
|
{ config, lib, pkgs, ... }: {
imports = [
../../configs/hw/tiny5.nix
../../configs/bluetooth.nix
../../configs/initrd/sshd.nix
../../configs/retiolum.nix
../../configs/wiregrill.nix
../../configs/earlyoom.nix
../../configs/networkd.nix
{
# EIZO FlexScan EV2740X
services.udev.extraRules = /* sh */ ''
SUBSYSTEM=="hidraw", KERNEL=="hidraw*", ATTRS{idVendor}=="056d", ATTRS{idProduct}=="4080", \
GROUP="plugdev", MODE="0660"
'';
users.groups.plugdev = {}; # https://github.com/NixOS/nixpkgs/pull/272506
}
{
# for rigol-dho804
services.ntpd-rs.enable = true;
services.ntpd-rs.settings = {
observability = {
log-level = "warn";
};
server = [
{
listen = "0.0.0.0:123";
}
];
};
services.timesyncd.enable = lib.mkForce false;
hrm.nftables.tables.filter.chains.input.rules.ntp = {
iifname = "eth0";
udp.dport = [ "ntp" ];
verdict = "accept";
};
}
];
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.initrd.luks.devices.main.device = "/dev/sda2";
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.systemd-boot.enable = true;
fileSystems."/" = {
device = "/dev/mapper/wuvga-root";
fsType = "ext4";
options = ["defaults" "noatime"];
};
fileSystems."/boot" = {
device = "/dev/sda1";
fsType = "vfat";
};
fileSystems."/home" = {
device = "/dev/mapper/wuvga-home";
fsType = "ext4";
options = ["defaults" "noatime"];
};
fileSystems."/bku" = {
device = "/dev/mapper/wuvga-bku";
fsType = "ext4";
options = ["defaults" "noatime"];
};
hrm.nftables.enable = true;
krebs.build.host = config.krebs.hosts.dule;
system.stateVersion = "23.05";
zramSwap.enable = true;
zramSwap.swapDevices = 1;
}
|