Loading
nixos/phosh: enable services.graphical-desktop
The `services.graphical-desktop` module (code in `nixos/modules/services/misc/graphical-desktop.nix`) is enabled automatically if `services.xserver.enable` or `services.displayManager.enable` is true but this does not cover `phosh`, so enable it manually. My main motivation for this change is that `fonts.enableDefaultPackages` was set to false, unlike with all (most?) other desktop managers, which causes many characters to not be displayed. Since enabling `services.graphical-desktop.enable` also enables `hardware.graphics.enable`, I removed the latter option from the `phosh` module. The `services.graphical-desktop` module also sets `systemd.defaultUnit` to `"graphical.target"` if `services.xserver.autorun` or `services.displayManager.enable` are enabled, with the former option being enabled by default, so I also removed this option from the `phosh` module. This also better aligns with the intent of the user when disabling `services.xserver.autorun`.