Allow multiple desktops to be enabled
This commit is contained in:
parent
6d55a76dce
commit
28a6098f3d
@ -1,7 +1,7 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
desktop = "hyprland";
|
desktop = [ "hyprland" ];
|
||||||
|
|
||||||
programs.hyprland.enable = true;
|
programs.hyprland.enable = true;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
desktop = "sway";
|
desktop = [ "sway" ];
|
||||||
|
|
||||||
programs.sway = {
|
programs.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -8,8 +8,8 @@ with lib; {
|
|||||||
};
|
};
|
||||||
|
|
||||||
desktop = mkOption {
|
desktop = mkOption {
|
||||||
default = "";
|
default = [];
|
||||||
type = types.str;
|
type = types.listOf types.str;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ in {
|
|||||||
packages = (with pkgs; [
|
packages = (with pkgs; [
|
||||||
direnv
|
direnv
|
||||||
nix-direnv
|
nix-direnv
|
||||||
] ++ (lib.optionals (config.desktop != "") [
|
] ++ (lib.optionals ((builtins.length config.desktop) != 0) [
|
||||||
bibata-cursors
|
bibata-cursors
|
||||||
bibata-cursors-translucent
|
bibata-cursors-translucent
|
||||||
]));
|
]));
|
||||||
|
Loading…
Reference in New Issue
Block a user