# Breaking Changes - sops location movod to "system/dev/<dev-name>/sops/sops-conf.nix" - flake devices declaration changes - whole flake update
23 lines
612 B
Nix
23 lines
612 B
Nix
{ osConfig, ... }:
|
|
let
|
|
inherit (osConfig.systemConf.hyprland) monitors;
|
|
inherit (builtins)
|
|
length
|
|
genList
|
|
toString
|
|
elemAt
|
|
;
|
|
monitorNum = length monitors;
|
|
workspaceNum = 10;
|
|
workspaceList = genList (
|
|
index:
|
|
let
|
|
currentNum = index - (monitorNum * (index / monitorNum));
|
|
default = if index < monitorNum then "true" else "false";
|
|
in
|
|
"${toString (index + 1)}, monitor:desc:${(elemAt monitors currentNum).desc}, default:${default}"
|
|
) workspaceNum;
|
|
in
|
|
{
|
|
wayland.windowManager.hyprland.settings.workspace = if (monitorNum > 0) then workspaceList else [ ];
|
|
}
|