{ config, lib, ... }: let cfg = config.pim.cinnamon; in { options.pim.cinnamon.enable = lib.mkEnableOption "cinnamon"; config = lib.mkIf cfg.enable { services = { displayManager.defaultSession = "cinnamon"; libinput.enable = true; xserver = { desktopManager.cinnamon.enable = true; displayManager.lightdm.enable = true; }; }; }; }