diff --git a/home-manager/hyprland/hyprland-settings.nix b/home-manager/hyprland/hyprland-settings.nix index 093e43b..d525963 100644 --- a/home-manager/hyprland/hyprland-settings.nix +++ b/home-manager/hyprland/hyprland-settings.nix @@ -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" diff --git a/systems/laptop/configuration.nix b/systems/laptop/configuration.nix index e4e2331..ac831d0 100644 --- a/systems/laptop/configuration.nix +++ b/systems/laptop/configuration.nix @@ -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 = { diff --git a/systems/laptop/modules/rpi-stuffidk.nix b/systems/laptop/modules/rpi-stuffidk.nix new file mode 100644 index 0000000..bff39e4 --- /dev/null +++ b/systems/laptop/modules/rpi-stuffidk.nix @@ -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"; + } + ]; + }; + }; + }; + + +}