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;
|
2022-08-12 12:06:08 +00:00
|
|
|
description = lib.mdDoc "Enable the Lumina desktop manager";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
services.xserver.displayManager.sessionPackages = [
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|