Compare commits
3 Commits
f21c7e15ba
...
aa819813ee
Author | SHA1 | Date | |
---|---|---|---|
aa819813ee | |||
77ea83fae3 | |||
6aa5ce4904 |
@ -26,7 +26,7 @@ in {
|
|||||||
xournalpp
|
xournalpp
|
||||||
prismlauncher
|
prismlauncher
|
||||||
steam
|
steam
|
||||||
blender
|
unstable.blender
|
||||||
unstable.betaflight-configurator
|
unstable.betaflight-configurator
|
||||||
loudgain
|
loudgain
|
||||||
yt-dlp
|
yt-dlp
|
||||||
|
@ -227,6 +227,12 @@ in {
|
|||||||
output = ["DP-3" "DP-4" "DP-6" "HDMI-A-1" "eDP-1"];
|
output = ["DP-3" "DP-4" "DP-6" "HDMI-A-1" "eDP-1"];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
floating.criteria = [
|
||||||
|
{
|
||||||
|
title = "KeePassXC - Access Request";
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = lib.mkIf cfg.laptop ''
|
extraConfig = lib.mkIf cfg.laptop ''
|
||||||
|
@ -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
18
modules/nixos/touch.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user