diff options
Diffstat (limited to 'common-workstation.nix')
-rw-r--r-- | common-workstation.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common-workstation.nix b/common-workstation.nix index 3fcff9d6..ff170399 100644 --- a/common-workstation.nix +++ b/common-workstation.nix @@ -115,7 +115,8 @@ in { src = pkgs.slimThemes.nixosSlim; phases = [ "unpackPhase" "patchPhase" "installPhase" ]; patchPhase = let - centerLeft = 100 / (lib.length randrHeads * 2); + headFactor = if randrHeads == [] then 1 else lib.length randrHeads; + centerLeft = 100 / (headFactor * 2); in '' ${pkgs.imagemagick}/bin/mogrify \ -fill '#080010' -draw 'color 0,0 reset' \ |