migrate to nixos modules

This commit is contained in:
zuckerberg
2021-04-11 21:43:27 -04:00
parent 7b70b48de4
commit a9c6b46ff5
25 changed files with 544 additions and 459 deletions

View File

@@ -1,6 +1,14 @@
{ config, pkgs, ... }:
{ lib, config, pkgs, ... }:
{
services.xserver.libinput.enable = true;
services.xserver.libinput.touchpad.naturalScrolling = true;
let
cfg = config.de.touchpad;
in {
options.de.touchpad = {
enable = lib.mkEnableOption "enable touchpad";
};
config = lib.mkIf cfg.enable {
services.xserver.libinput.enable = true;
services.xserver.libinput.touchpad.naturalScrolling = true;
};
}