hyprland monitor issue fix
This commit is contained in:
@@ -8,6 +8,11 @@
|
||||
./impermanence
|
||||
];
|
||||
|
||||
options.homeconfig.host = lib.options.mkOption {
|
||||
type = lib.types.str;
|
||||
default = null;
|
||||
};
|
||||
|
||||
config = {
|
||||
|
||||
home.stateVersion = "23.11";
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
@@ -208,6 +208,7 @@
|
||||
inputs.nathan-home-manager
|
||||
{
|
||||
config.homeconfig = {
|
||||
host = "homebox";
|
||||
impermanence.enable = true;
|
||||
hyprland.enable = true;
|
||||
swaylock.enable = true;
|
||||
|
||||
@@ -75,6 +75,7 @@
|
||||
"nathan" = lib.mkMerge [
|
||||
{
|
||||
config.homeconfig = {
|
||||
host = "laptop";
|
||||
impermanence.enable = false;
|
||||
hyprland.enable = true;
|
||||
swaylock.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user