hyprland monitor issue fix

This commit is contained in:
2025-01-12 13:13:36 -06:00
parent 058bea064d
commit 8234b1bce0
5 changed files with 15 additions and 6 deletions

View File

@@ -8,6 +8,11 @@
./impermanence
];
options.homeconfig.host = lib.options.mkOption {
type = lib.types.str;
default = null;
};
config = {
home.stateVersion = "23.11";

View File

@@ -10,10 +10,6 @@
# #
#------------------------------------------------#
#monitor=HEADLESS-2,1920x1080@60,0x0,1
monitor=eDP-1,1920x1080@60,0x0,1
exec-once=onSystemStart
# Some default env vars.

View File

@@ -21,9 +21,15 @@
systemd.variables = [ "--all" ];
extraConfig = ''
extraConfig = let
monitor = if config.homeconfig.host == "laptop" then ''
monitor=eDP-1,1920x1080@60,0x0,1
'' else if config.homeconfig.host == "homebox" then ''
monitor=HEADLESS-2,1920x1080@60,0x0,1
'' else '''';
in ''
source = /home/nathan/.config/hypr/main.conf
'';
'' + monitor;
};
};

View File

@@ -208,6 +208,7 @@
inputs.nathan-home-manager
{
config.homeconfig = {
host = "homebox";
impermanence.enable = true;
hyprland.enable = true;
swaylock.enable = true;

View File

@@ -75,6 +75,7 @@
"nathan" = lib.mkMerge [
{
config.homeconfig = {
host = "laptop";
impermanence.enable = false;
hyprland.enable = true;
swaylock.enable = true;