feat(drawing-tablet): init module
This commit is contained in:
@@ -12,23 +12,20 @@
|
||||
|
||||
sydnix = {
|
||||
filesystemType = "btrfs";
|
||||
|
||||
wifi.enable = true;
|
||||
|
||||
drawing-tablet.enable = true;
|
||||
tailscale.enable = true;
|
||||
earlyoom.enable = true;
|
||||
|
||||
slippi.enable = true;
|
||||
niri.enable = true;
|
||||
stylix.enable = true;
|
||||
qemu.enable = true;
|
||||
|
||||
steam = {
|
||||
enable = true;
|
||||
impermanenceUsers = ["crumb"];
|
||||
};
|
||||
|
||||
niri.enable = true;
|
||||
stylix.enable = true;
|
||||
qemu.enable = true;
|
||||
|
||||
users.users = [
|
||||
"crumb"
|
||||
"msyds"
|
||||
|
||||
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" ];
|
||||
};
|
||||
}
|
||||
16
modules/nixos/drawing-tablet.nix
Normal file
16
modules/nixos/drawing-tablet.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let cfg = config.sydnix.drawing-tablet;
|
||||
in {
|
||||
options.sydnix.drawing-tablet = {
|
||||
enable = lib.mkEnableOption "drawing tablet support";
|
||||
};
|
||||
|
||||
# Also see the home-manager module!!
|
||||
config = lib.mkIf cfg.enable {
|
||||
hardware.opentabletdriver = {
|
||||
enable = true;
|
||||
daemon.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -38,6 +38,7 @@
|
||||
sydnix = {
|
||||
gpg.enable = true;
|
||||
zotero.enable = true;
|
||||
drawing-tablet.enable = true;
|
||||
xdg.enable = true;
|
||||
slippi.enable = true;
|
||||
openutau.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user