diff --git a/modules/desktop/sway/default.nix b/modules/desktop/sway/default.nix index d965654..d1e4ba0 100644 --- a/modules/desktop/sway/default.nix +++ b/modules/desktop/sway/default.nix @@ -45,7 +45,6 @@ in { # TODO # light - # pamixer }; aa.system.fonts.enable = true; diff --git a/modules/hardware/audio/default.nix b/modules/hardware/audio/default.nix index 78ab14f..bc8a8a4 100644 --- a/modules/hardware/audio/default.nix +++ b/modules/hardware/audio/default.nix @@ -13,6 +13,7 @@ in { }; config = mkIf cfg.enable { + environment.systemPackages = with pkgs; [pamixer]; security.rtkit.enable = true; services.pipewire = { enable = true; diff --git a/modules/hardware/logitech/default.nix b/modules/hardware/logitech/default.nix new file mode 100644 index 0000000..4400c47 --- /dev/null +++ b/modules/hardware/logitech/default.nix @@ -0,0 +1,32 @@ +{ + options, + config, + lib, + pkgs, + ... +}: +with lib; let + cfg = config.aa.hardware.logitech; +in { + options.aa.hardware.logitech = with types; { + enable = mkEnableOption "logitech devices"; + }; + + config = mkIf cfg.enable { + hardware.logitech.wireless = { + enable = true; + enableGraphical = true; + }; + + systemd.user.services.solaar = { + description = "Linux device manager for Logitech devices"; + documentation = ["https://pwr-solaar.github.io/Solaar/"]; + partOf = ["graphical-session.target"]; + serviceConfig = { + Type = "simple"; + ExecStart = "${pkgs.solaar}/bin/solaar -w hide"; + }; + }; + systemd.user.services.solaar.wantedBy = mkIf config.aa.desktop.sway.enable ["sway-session.target"]; + }; +} diff --git a/systems/x86_64-linux/gospel/default.nix b/systems/x86_64-linux/gospel/default.nix index 262ccda..6d8d825 100644 --- a/systems/x86_64-linux/gospel/default.nix +++ b/systems/x86_64-linux/gospel/default.nix @@ -33,6 +33,7 @@ }; hardware.audio.enable = true; + hardware.logitech.enable = true; system.zfs.enable = true; system.monitoring.enable = true;