1{
2 config,
3 lib,
4 ...
5}:
6let
7 cfg = config.py.profiles.desktop.caelestia;
8in
9{
10 config = lib.mkIf cfg {
11 programs.caelestia = {
12 enable = true;
13 settings = builtins.fromJSON (builtins.readFile ./caelestia-shell.json);
14 systemd = {
15 enable = true;
16 target = "graphical-session.target";
17 };
18 cli.enable = true;
19 cli.settings = builtins.fromJSON (builtins.readFile ./caelestia-cli.json);
20 };
21 };
22}