feat: adapt home-manager-only config for changes

This commit is contained in:
Swarsel 2024-07-25 18:23:47 +02:00
parent 2db79465da
commit 00983d787e
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
36 changed files with 165 additions and 364 deletions

View file

@ -1,16 +1,16 @@
{ config, pkgs, lib, ... }: with lib;
let
monitors = config.swarselsystems.monitors;
inherit (config.swarselsystems) monitors;
eachMonitor = _name: monitor: {
name = monitor.name;
inherit (monitor) name;
value = builtins.removeAttrs monitor [ "workspace" "name" "output" ];
};
eachOutput = _name: monitor: {
name = monitor.name;
inherit (monitor) name;
value = builtins.removeAttrs monitor [ "mode" "name" "scale" "position" ];
};
workplaceSets = (mapAttrs' eachOutput monitors);
workplaceOutputs = (map (key: getAttr key workplaceSets) (attrNames workplaceSets));
workplaceSets = mapAttrs' eachOutput monitors;
workplaceOutputs = map (key: getAttr key workplaceSets) (attrNames workplaceSets);
in
{
wayland.windowManager.sway = {
@ -113,7 +113,7 @@ in
};
};
defaultWorkspace = "workspace 1:";
output = (mapAttrs' eachMonitor monitors);
output = mapAttrs' eachMonitor monitors;
input = config.swarselsystems.standardinputs;
workspaceOutputAssign = workplaceOutputs;
startup = config.swarselsystems.startup ++ [