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