If machine role is personal set de.enable = true; automatically

This commit is contained in:
2025-03-28 20:16:13 -07:00
parent adc9b9f2b7
commit 567d755850
6 changed files with 7 additions and 13 deletions

View File

@@ -98,4 +98,9 @@
security.acme.acceptTerms = true;
security.acme.defaults.email = "zuckerberg@neet.dev";
# Enable Desktop Environment if this is a PC (machine role is "personal")
de.enable = (
builtins.elem config.networking.hostName config.machines.roles.personal
);
}

View File

@@ -1,13 +1,9 @@
{ lib, config, pkgs, ... }:
let
cfg = config.de.touchpad;
cfg = config.de;
in
{
options.de.touchpad = {
enable = lib.mkEnableOption "enable touchpad";
};
config = lib.mkIf cfg.enable {
services.libinput.enable = true;
services.libinput.touchpad.naturalScrolling = true;