feat(drawing-tablet): init module
This commit is contained in:
19
modules/home/drawing-tablet.nix
Normal file
19
modules/home/drawing-tablet.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let cfg = config.sydnix.drawing-tablet;
|
||||
in {
|
||||
options.sydnix.drawing-tablet = {
|
||||
enable = lib.mkEnableOption "drawing tablet support";
|
||||
};
|
||||
|
||||
# Also see the NixOS module!!
|
||||
config = lib.mkIf cfg.enable {
|
||||
# Mutable config.
|
||||
sydnix.impermanence.directories =
|
||||
let xdg-config-home =
|
||||
lib.removePrefix "${config.home.homeDirectory}"
|
||||
(lib.removePrefix "~"
|
||||
(config.xdg.configHome));
|
||||
in [ "${xdg-config-home}/OpenTabletDriver" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user