Allow multiple desktops to be enabled
This commit is contained in:
parent
6d55a76dce
commit
28a6098f3d
@ -1,7 +1,7 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
desktop = "hyprland";
|
||||
desktop = [ "hyprland" ];
|
||||
|
||||
programs.hyprland.enable = true;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
desktop = "sway";
|
||||
desktop = [ "sway" ];
|
||||
|
||||
programs.sway = {
|
||||
enable = true;
|
||||
|
@ -8,8 +8,8 @@ with lib; {
|
||||
};
|
||||
|
||||
desktop = mkOption {
|
||||
default = "";
|
||||
type = types.str;
|
||||
default = [];
|
||||
type = types.listOf types.str;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -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
|
||||
]));
|
||||
|
Loading…
Reference in New Issue
Block a user