diff --git a/dad/configuration.nix b/dad/configuration.nix index bf32959..89552fd 100644 --- a/dad/configuration.nix +++ b/dad/configuration.nix @@ -11,6 +11,8 @@ ]; # Bootloader. + #boot.loader.systemd-boot.enable = true; + #boot.loader.efi.canTouchEfiVariables = true; boot.loader.grub.enable = true; boot.loader.grub.device = "/dev/vda"; boot.loader.grub.useOSProber = true; @@ -81,9 +83,15 @@ wlr-randr kmsxx libinput + pciutils + pulseaudio + pwvucontrol + (pkgs.wrapFirefox (pkgs.firefox-unwrapped.override { pipewireSupport = true; }) { }) ]; + programs.firefox = { enable = true; + package = (pkgs.wrapFirefox (pkgs.firefox-unwrapped.override { pipewireSupport = true; }) { }); }; systemd.services.cage-tty1 = { @@ -102,11 +110,39 @@ enable = true; user = "kemp"; program = "${pkgs.writeScriptBin "start-cage-app" '' - exec ${pkgs.firefox}/bin/firefox + #!/usr/bin/env bash + exec pwvucontrol + exec firefox ''}/bin/start-cage-app"; }; services.getty.loginProgram = "${pkgs.coreutils}/bin/true"; + + services.actkbd.enable = true; + services.actkbd.bindings = [ + # Mute + { keys = [ 113 ]; events = [ "key" ]; + command = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; + } + # Volume down + { keys = [ 114 ]; events = [ "key" "rep" ]; + command = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"; + } + # Volume up + { keys = [ 115 ]; events = [ "key" "rep" ]; + command = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"; + } + ]; + security.rtkit.enable = true; + services.pipewire = { + enable = true; # if not already enabled + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + # If you want to use JACK applications, uncomment the following + jack.enable = true; + }; + services.openssh = { enable = true; settings = { @@ -120,7 +156,7 @@ "nix-command" "flakes" ]; - + networking.firewall.enable = false; # This value determines the NixOS release from which the default