Compare commits

..

No commits in common. "357546359ed654b5ed63e11adab35f0b132748d8" and "839188a231d6f3c67192470b524c562bc0249106" have entirely different histories.

2 changed files with 2 additions and 50 deletions

View file

@ -1,43 +0,0 @@
{
inputs,
config,
lib,
pkgs,
system,
...
}:
let
cfg = config.hardware.bosto-touchpad;
in
{
options.hardware.bosto-touchpad.enable = lib.mkOption {
type = with lib.types; uniq bool;
default = false;
description = "Enable Bosto Touchpad Support";
};
config = lib.mkIf (cfg.enable) {
# boot.kernelModules = [ "hid-magicmouse" ];
# Add Driver Options to extra ModprobeConfig, to support reloading hid-magicmouse
boot.extraModprobeConfig = ''
options hid-magicmouse emulate_scroll_wheel=Y emulate_3button=Y middle_click_3finger=Y scroll_acceleration=Y scroll_speed=10
'';
# Service to load Driver with options
systemd.services."bostoService" = {
description = "Bosto Touchpad Service";
path = [ pkgs.kmod ];
serviceConfig = {
Type = "oneshot";
ExecStart = ''
${pkgs.kmod.out}/bin/modprobe -r hid-magicmouse
${pkgs.kmod.out}/bin/modprobe hid-magicmouse emulate_scroll_wheel=Y emulate_3button=Y middle_click_3finger=Y scroll_acceleration=Y scroll_speed=10
'';
};
wantedBy = [ "multi-user.target" ];
};
};
}

View file

@ -9,10 +9,8 @@
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [];
boot.kernelModules = [
"kvm-amd"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
# Setup Nvidia Driver
@ -27,9 +25,6 @@
package = config.boot.kernelPackages.nvidiaPackages.beta;
};
# Enable Bosto Tochpad Support (See ../../../modules/nixos/hardware/bosto-touchpad/default.nix)
hardware.bosto-touchpad.enable = true;
fileSystems."/" =
{ device = "/dev/disk/by-uuid/b3344eaa-384e-4779-92b8-92f6e9a27d7d";
fsType = "ext4";