feat(WIP): add modules for home-manager options

This commit is contained in:
Swarsel 2024-07-24 18:36:22 +02:00
parent 5acbfe0edd
commit ec82754ae1
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
23 changed files with 1378 additions and 887 deletions

View file

@ -1,4 +1,17 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }: with lib;
let
monitors = config.swarselsystems.monitors;
eachMonitor = _name: monitor: {
name = monitor.name;
value = builtins.removeAttrs monitor [ "workspace" "name" "output" ];
};
eachOutput = _name: monitor: {
name = monitor.name;
value = builtins.removeAttrs monitor [ "mode" "name" "scale" "position" ];
};
workplaceSets = (mapAttrs' eachOutput monitors);
workplaceOutputs = (map (key: getAttr key workplaceSets) (attrNames workplaceSets));
in
{
wayland.windowManager.sway = {
enable = true;
@ -98,6 +111,9 @@
};
};
defaultWorkspace = "workspace 1:";
output = (mapAttrs' eachMonitor monitors);
input = config.swarselsystems.standardinputs;
workspaceOutputAssign = workplaceOutputs;
startup = [
{ command = "kitty -T kittyterm"; }
{ command = "sleep 60; kitty -T spotifytui -o confirm_os_window_close=0 spotify_player"; }