From 71c8ab1178c18ddd0653713272017082a468b564 Mon Sep 17 00:00:00 2001 From: insert Date: Sat, 13 Jul 2024 21:08:09 -0400 Subject: [PATCH] minor config changes --- configuration.nix | 15 +++++++++++++-- home-files.nix | 28 ---------------------------- special/insertpclinux.nix | 2 ++ 3 files changed, 15 insertions(+), 30 deletions(-) diff --git a/configuration.nix b/configuration.nix index 3ecc3e6..826c116 100644 --- a/configuration.nix +++ b/configuration.nix @@ -92,6 +92,8 @@ # Enable sound with pipewire. sound.enable = true; hardware.pulseaudio.enable = false; + #hardware.pulseaudio.support32Bit = true; + #hardware.pulseaudio.extraConfig = "load-module module-combine-sink"; security.rtkit.enable = true; services.pipewire = { enable = true; @@ -123,7 +125,7 @@ users.users.insert = { isNormalUser = true; description = "insert"; - extraGroups = [ "networkmanager" "wheel" "input" "docker" "libvirtd" ]; + extraGroups = [ "networkmanager" "wheel" "input" "docker" "audio" "libvirtd" ]; shell = pkgs.zsh; }; @@ -190,6 +192,8 @@ inputs.agenix.packages."${pkgs.system}".default pkgs.vlc #pkgs.hyprland + pkgs.pavucontrol + pkgs.pulseaudio pkgs.wl-clipboard # wl-copy and wl-paste for copy/paste from stdin / stdout pkgs.bemenu # wayland clone of dmenu pkgs.mako # notification system developed by swaywm maintainer @@ -297,7 +301,14 @@ }; systemd.user.services.waybar.enable = false; - + xdg.portal.wlr.settings = { + screencast = { + output_name = "HDMI-A-1"; + max_fps = 30; + chooser_type = "simple"; + chooser_cmd = "${pkgs.slurp}/bin/slurp -f %o -or"; + }; + }; xdg.portal.wlr.enable = true; xdg.portal = { enable = true; extraPortals = [ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-wlr ]; }; #xdg.portal = { enable = true; extraPortals = [ inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland ]; }; diff --git a/home-files.nix b/home-files.nix index a128f22..52c9b98 100644 --- a/home-files.nix +++ b/home-files.nix @@ -95,34 +95,6 @@ border-color=#ef9f76''; "clock": { "format":" {:%R  %d/%m}", "tooltip-format": "{:%Y %B}\n{calendar}" - }, - "pulseaudio": { - "format": "{icon} {volume}%", - "tooltip": false, - "format-muted": " Muted", - "on-click": "pamixer -t", - "on-scroll-up": "pamixer -i 5", - "on-scroll-down": "pamixer -d 5", - "scroll-step": 5, - "format-icons": { - "headphone": "", - "hands-free": "", - "headset": "", - "phone": "", - "portable": "", - "car": "", - "default": ["", "", ""] - } - }, - "pulseaudio#microphone": { - "format": "{format_source}", - "tooltip": false, - "format-source": " {volume}%", - "format-source-muted": " Muted", - "on-click": "pamixer --default-source -t", - "on-scroll-up": "pamixer --default-source -i 5", - "on-scroll-down": "pamixer --default-source -d 5", - "scroll-step": 5 } } ''; diff --git a/special/insertpclinux.nix b/special/insertpclinux.nix index 8b0fab6..a9422c4 100644 --- a/special/insertpclinux.nix +++ b/special/insertpclinux.nix @@ -13,6 +13,8 @@ # })) ]; #boot.kernelPackages = pkgs.linuxPackages; + boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ]; + services.sunshine = { enable = true; autoStart = true;