2020-04-24 23:36:52 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
xcfg = config.services.xserver;
|
|
|
|
cfg = xcfg.desktopManager.lumina;
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
2022-04-27 09:35:20 +00:00
|
|
|
meta = {
|
|
|
|
maintainers = teams.lumina.members;
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
options = {
|
|
|
|
|
|
|
|
services.xserver.desktopManager.lumina.enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
2024-04-21 15:54:59 +00:00
|
|
|
description = "Enable the Lumina desktop manager";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
services.displayManager.sessionPackages = [
|
2020-05-29 06:06:01 +00:00
|
|
|
pkgs.lumina.lumina
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
environment.systemPackages =
|
|
|
|
pkgs.lumina.preRequisitePackages ++
|
|
|
|
pkgs.lumina.corePackages;
|
|
|
|
|
|
|
|
# Link some extra directories in /run/current-system/software/share
|
|
|
|
environment.pathsToLink = [
|
|
|
|
"/share/lumina"
|
|
|
|
# FIXME: modules should link subdirs of `/share` rather than relying on this
|
|
|
|
"/share"
|
|
|
|
];
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|