Compare commits

...

6 Commits

2 changed files with 25 additions and 21 deletions

View File

@ -31,6 +31,8 @@
interception-tools interception-tools
jq jq
lm_sensors lm_sensors
man-pages
man-pages-posix
meson meson
mosh mosh
msmtp msmtp

View File

@ -169,27 +169,23 @@
sway.enable = true; sway.enable = true;
}; };
documentation.dev.enable = true;
# List services that you want to enable: # List services that you want to enable:
systemd = { systemd = {
services = { services = {
"zremap" = { "zremap@" = {
description = "Intercepts keyboard udev events"; enable = true;
wants = ["systemd-udevd.service"]; restartIfChanged = true;
wantedBy = ["multi-user.target"];
serviceConfig.Nice = -20; serviceConfig.Nice = -20;
script = '' unitConfig = {
sleep 1 Description = "zremap on %I";
KBD1="/dev/input/by-path/platform-i8042-serio-0-event-kbd" ConditionPathExists = "%I";
KBD2="/dev/input/by-path/pci-0000:07:00.3-usbv2-0:1.1.3.2:1.1-event-kbd" };
if [ -L "$KBD1" ]; then serviceConfig = {
${zremap.defaultPackage.${system}}/bin/zremap "$KBD1" & Type = "simple";
fi ExecStart = "${zremap.defaultPackage.${system}}/bin/zremap %I";
if [ -L "$KBD2" ]; then };
${zremap.defaultPackage.${system}}/bin/zremap "$KBD2" &
fi
wait
'';
}; };
}; };
@ -217,21 +213,20 @@
pulse.enable = true; pulse.enable = true;
}; };
libinput.enable = true;
xserver = { xserver = {
enable = true; enable = true;
dpi = 144; dpi = 144;
libinput.enable = true;
desktopManager.xterm.enable = false; desktopManager.xterm.enable = false;
displayManager = { displayManager = {
lightdm.enable = false; lightdm.enable = false;
startx.enable = true; startx.enable = true;
defaultSession = "none+i3";
}; };
windowManager.i3.enable = false; windowManager.i3.enable = false;
}; };
udev = { udev = {
packages = [pkgs.rtl-sdr pkgs.openhantek6022 pkgs.openocd]; packages = [pkgs.openhantek6022 pkgs.openocd];
extraRules = '' extraRules = ''
#Xilinx FTDI #Xilinx FTDI
ACTION=="add", ATTR{idVendor}=="0403", ATTR{manufacturer}=="Xilinx", MODE:="666" ACTION=="add", ATTR{idVendor}=="0403", ATTR{manufacturer}=="Xilinx", MODE:="666"
@ -242,6 +237,9 @@
#Arduino UNO r4 #Arduino UNO r4
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", MODE:="0666" SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", MODE:="0666"
#zremap on new keyboard
ACTION=="add", SUBSYSTEM=="input", ATTRS{phys}!="", KERNEL=="event[0-9]*", ENV{ID_INPUT_KEY}=="1", ENV{ID_INPUT_KEYBOARD}=="1", TAG+="systemd", ENV{SYSTEMD_WANTS}+="zremap@$env{DEVNAME}.service"
''; '';
}; };
@ -295,13 +293,16 @@
settings = { settings = {
ipv6_servers = true; ipv6_servers = true;
require_dnssec = true; require_dnssec = true;
require_nolog = true;
require_nofilter = true;
http3 = true;
sources.public-resolvers = { sources.public-resolvers = {
urls = [ urls = [
"https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/public-resolvers.md" "https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/public-resolvers.md"
"https://download.dnscrypt.info/resolvers-list/v3/public-resolvers.md" "https://download.dnscrypt.info/resolvers-list/v3/public-resolvers.md"
]; ];
cache_file = "/var/lib/dnscrypt-proxy2/public-resolvers.md"; cache_file = "public-resolvers.md";
minisign_key = "RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3"; minisign_key = "RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3";
}; };
}; };
@ -414,6 +415,7 @@
driSupport32Bit = true; driSupport32Bit = true;
extraPackages = with pkgs; []; extraPackages = with pkgs; [];
}; };
rtl-sdr.enable = true;
}; };
zramSwap = { zramSwap = {