{ config, lib, ... }: let cfg = config.py.profiles.desktop.caelestia; en = config.py.profiles.desktop.enable; in { config = lib.mkIf (cfg && en) { programs.caelestia = { enable = true; settings = builtins.fromJSON (builtins.readFile ./caelestia-shell.json); systemd = { enable = true; target = "graphical-session.target"; }; cli.enable = true; cli.settings = builtins.fromJSON (builtins.readFile ./caelestia-cli.json); }; }; }