446 current 1970-01-01 01:00:00 24.05.20241106.dba4149 6.6.52-rt43 *

This commit is contained in:
Max Känner 2024-11-08 23:29:19 +01:00
parent 6aa5ce4904
commit 77ea83fae3
2 changed files with 20 additions and 1 deletions

View File

@ -5,7 +5,7 @@
}: let }: let
cfg = config.myConfig; cfg = config.myConfig;
in { in {
imports = [./bootloader.nix ./locale.nix ./greetd.nix ./rebuild.nix ./sops.nix ./sway.nix ./wifi.nix ./music.nix ./cups.nix ./gpu/amd.nix]; imports = [./bootloader.nix ./locale.nix ./greetd.nix ./rebuild.nix ./sops.nix ./sway.nix ./wifi.nix ./music.nix ./cups.nix ./gpu/amd.nix ./touch.nix];
options.myConfig = { options.myConfig = {
enable = lib.mkEnableOption "my custom config"; enable = lib.mkEnableOption "my custom config";
@ -26,5 +26,6 @@ in {
sway.laptop = lib.mkIf cfg.laptop true; sway.laptop = lib.mkIf cfg.laptop true;
wifi.enable = lib.mkIf cfg.laptop true; wifi.enable = lib.mkIf cfg.laptop true;
touch.enable = lib.mkIf cfg.laptop true;
}; };
} }

18
modules/nixos/touch.nix Normal file
View File

@ -0,0 +1,18 @@
{
lib,
config,
...
}: let
cfg = config.myConfig.touch;
in {
options.myConfig.touch = {
enable = lib.mkEnableOption "touch screen";
};
config = lib.mkIf cfg.enable {
services = {
xserver.wacom.enable = true;
libinput.enable = true;
};
};
}