Added configuration for MX Master 3S
This commit is contained in:
parent
eaf45b3072
commit
7565716339
|
@ -45,7 +45,6 @@ in {
|
|||
|
||||
# TODO
|
||||
# light
|
||||
# pamixer
|
||||
};
|
||||
|
||||
aa.system.fonts.enable = true;
|
||||
|
|
|
@ -13,6 +13,7 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [pamixer];
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
|
|
32
modules/hardware/logitech/default.nix
Normal file
32
modules/hardware/logitech/default.nix
Normal file
|
@ -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"];
|
||||
};
|
||||
}
|
|
@ -33,6 +33,7 @@
|
|||
};
|
||||
|
||||
hardware.audio.enable = true;
|
||||
hardware.logitech.enable = true;
|
||||
|
||||
system.zfs.enable = true;
|
||||
system.monitoring.enable = true;
|
||||
|
|
Loading…
Reference in a new issue