This commit is contained in:
parent
821767765f
commit
73929e0cf9
3 changed files with 44 additions and 8 deletions
|
|
@ -1,18 +1,22 @@
|
|||
{ lib, config, namespace, inputs, ... }:
|
||||
let
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
namespace,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkOption mkEnableOption mkMerge;
|
||||
inherit (lib.types) nullOr enum;
|
||||
|
||||
cfg = config.${namespace}.desktop;
|
||||
in
|
||||
{
|
||||
in {
|
||||
imports = [
|
||||
inputs.grub2-themes.nixosModules.default
|
||||
];
|
||||
|
||||
options.${namespace}.desktop = {
|
||||
use = mkOption {
|
||||
type = nullOr (enum [ "plasma" "gamescope" "gnome" ]);
|
||||
type = nullOr (enum ["plasma" "gamescope" "gnome" "cosmic"]);
|
||||
default = null;
|
||||
example = "plasma";
|
||||
description = "Which desktop to enable";
|
||||
|
|
@ -20,11 +24,11 @@ in
|
|||
};
|
||||
|
||||
config = mkMerge [
|
||||
({
|
||||
{
|
||||
services.displayManager = {
|
||||
enable = true;
|
||||
};
|
||||
})
|
||||
}
|
||||
|
||||
# (mkIf (cfg.use != null) {
|
||||
# ${namespace}.desktop.${cfg.use}.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue