sneeuwvlok/modules/home/desktop/default.nix
2025-03-18 16:43:07 +01:00

17 lines
408 B
Nix

{ config, options, lib, pkgs, user, ... }:
let
inherit (builtins) isAttrs;
inherit (lib.attrsets) attrValues;
inherit (lib.modules) mkIf mkMerge;
inherit (lib.my) anyAttrs countAttrs value;
cfg = config.modules.${user}.desktop;
in
{
options.modules.${user}.desktop = let
inherit (lib.types) either str;
inherit (lib.my) mkOpt;
in {
type = mkOpt (either str null) "wayland";
};
}