Allow multiple desktops to be enabled

This commit is contained in:
Cameron Reed 2024-01-11 14:14:59 -07:00
parent 6d55a76dce
commit 28a6098f3d
4 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
{ config, pkgs, ... }:
{
desktop = "hyprland";
desktop = [ "hyprland" ];
programs.hyprland.enable = true;

View File

@ -1,7 +1,7 @@
{ config, pkgs, ... }:
{
desktop = "sway";
desktop = [ "sway" ];
programs.sway = {
enable = true;

View File

@ -8,8 +8,8 @@ with lib; {
};
desktop = mkOption {
default = "";
type = types.str;
default = [];
type = types.listOf types.str;
};
};
}

View File

@ -27,7 +27,7 @@ in {
packages = (with pkgs; [
direnv
nix-direnv
] ++ (lib.optionals (config.desktop != "") [
] ++ (lib.optionals ((builtins.length config.desktop) != 0) [
bibata-cursors
bibata-cursors-translucent
]));