From 74b4c900076ab3d8973ff2e8e013859da2863372 Mon Sep 17 00:00:00 2001 From: Szymon P Date: Tue, 24 Feb 2026 19:45:58 +0100 Subject: [PATCH] main monitor config option --- flake.nix | 3 +++ modules/bars/ashell.nix | 9 +++++++-- modules/bars/waybar.nix | 5 ++--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 2f76910..28dd758 100644 --- a/flake.nix +++ b/flake.nix @@ -39,9 +39,12 @@ # your public ssh key signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKxyiqawA95AlLjXGd99sQCVR2rDq2/D7PG/vz7sZv5G"; + mainMonitor = "DP-1"; + pathConfig = { wallpaper = "Obrazy/tapety/catppuccin"; }; + }; in { diff --git a/modules/bars/ashell.nix b/modules/bars/ashell.nix index 260bca5..33c594d 100644 --- a/modules/bars/ashell.nix +++ b/modules/bars/ashell.nix @@ -1,4 +1,9 @@ -{ lib, isNixOS, ... }: +{ + lib, + isNixOS, + userConfig, + ... +}: { programs.ashell = { @@ -6,7 +11,7 @@ package = lib.mkIf (!isNixOS) null; settings = { outputs = { - Targets = [ "DP-1" ]; + Targets = [ userConfig.mainMonitor ]; }; position = "Bottom"; modules = { diff --git a/modules/bars/waybar.nix b/modules/bars/waybar.nix index 61d8e44..a5ed65f 100644 --- a/modules/bars/waybar.nix +++ b/modules/bars/waybar.nix @@ -1,6 +1,7 @@ { pkgs, isNixOS, + userConfig, ... }: @@ -22,9 +23,7 @@ reload_style_on_change = true; width = 70; output = [ - "DP-1" - "eDP-1" - "LVDS-1" + userConfig.mainMonitor ]; modules-left = [