Move service to automatic since it has a separate purpose. Refactor the default.nix code to include service.nix files so it is easier to extend code.
15 lines
293 B
Nix
15 lines
293 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
options.tablet = {
|
|
enable = lib.mkEnableOption
|
|
"Enables tablet support";
|
|
};
|
|
|
|
config = lib.mkIf config.tablet.enable {
|
|
hardware.opentabletdriver.enable = true;
|
|
environment.systemPackages = with pkgs; [
|
|
opentabletdriver
|
|
];
|
|
};
|
|
}
|