use docker instead of podman on laptop, enable volume keys

This commit is contained in:
Kopatz
2025-05-19 08:55:21 +02:00
parent a0473286cd
commit 6e2e24b0a0
3 changed files with 74 additions and 3 deletions

View File

@@ -264,10 +264,16 @@ in
# e = repeat when held
binde =
let brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
let
brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
in [
" , XF86MonBrightnessUp, exec, ${brightnessctl} s +5%"
" , XF86MonBrightnessDown, exec, ${brightnessctl} s 5%-"
# Example volume button that allows press and hold, volume limited to 150%
" , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"
# Example volume button that will activate even while an input inhibitor is active
" , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
"$mainMod SHIFT, left, resizeactive, -30 0"
"$mainMod SHIFT, right, resizeactive, 30 0"
"$mainMod SHIFT, up, resizeactive, 0 -30"

View File

@@ -31,7 +31,7 @@
settings.enable = true;
};
misc = {
podman.enable = true;
docker.enable = true;
firejail.enable = true;
};
hardware = {
@@ -89,7 +89,6 @@
[ "/home/kopatz/.ssh/id_ed25519" "/etc/ssh/ssh_host_ed25519_key" ];
mainUser.layout = "de_us_swapped";
mainUser.variant = "";
console.useXkbConfig = true;
services.xserver.exportConfiguration = lib.mkForce true;
services.xserver.extraLayouts = {

View File

@@ -0,0 +1,66 @@
{ pkgs, ... }:
let
pi_interface = "enp193s0f3u2";
in
{
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
networking.interfaces."${pi_interface}" = {
ipv4.addresses = [{
address = "192.168.1.1";
prefixLength = 24;
}];
};
networking.firewall.allowedUDPPorts = [ 67 68 ];
services = {
kea.dhcp4 = {
enable = true;
settings = {
interfaces-config = {
interfaces = [ pi_interface ];
};
lease-database = {
name = "/var/lib/kea/dhcp4.leases";
persist = true;
type = "memfile";
};
authoritative = true;
valid-lifetime = 8000;
rebind-timer = 4000;
renew-timer = 2000;
subnet4 = [
{
id = 1;
pools = [
{
pool = "192.168.1.32 - 192.168.1.254";
}
];
subnet = "192.168.1.0/24";
}
];
option-data = [
{
name = "domain-name-servers";
csv-format = true;
data = "1.1.1.1";
}
# {
# name = "ntp-servers";
# data ="${config.localIP}";
# }
{
name = "routers";
data = "192.168.1.1";
}
];
};
};
};
}