main monitor config option

This commit is contained in:
2026-02-24 19:45:58 +01:00
parent f175a72fcf
commit 74b4c90007
3 changed files with 12 additions and 5 deletions

View File

@@ -39,9 +39,12 @@
# your public ssh key # your public ssh key
signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKxyiqawA95AlLjXGd99sQCVR2rDq2/D7PG/vz7sZv5G"; signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKxyiqawA95AlLjXGd99sQCVR2rDq2/D7PG/vz7sZv5G";
mainMonitor = "DP-1";
pathConfig = { pathConfig = {
wallpaper = "Obrazy/tapety/catppuccin"; wallpaper = "Obrazy/tapety/catppuccin";
}; };
}; };
in in
{ {

View File

@@ -1,4 +1,9 @@
{ lib, isNixOS, ... }: {
lib,
isNixOS,
userConfig,
...
}:
{ {
programs.ashell = { programs.ashell = {
@@ -6,7 +11,7 @@
package = lib.mkIf (!isNixOS) null; package = lib.mkIf (!isNixOS) null;
settings = { settings = {
outputs = { outputs = {
Targets = [ "DP-1" ]; Targets = [ userConfig.mainMonitor ];
}; };
position = "Bottom"; position = "Bottom";
modules = { modules = {

View File

@@ -1,6 +1,7 @@
{ {
pkgs, pkgs,
isNixOS, isNixOS,
userConfig,
... ...
}: }:
@@ -22,9 +23,7 @@
reload_style_on_change = true; reload_style_on_change = true;
width = 70; width = 70;
output = [ output = [
"DP-1" userConfig.mainMonitor
"eDP-1"
"LVDS-1"
]; ];
modules-left = [ modules-left = [