hyprland monitor issue fix
This commit is contained in:
@@ -8,6 +8,11 @@
|
|||||||
./impermanence
|
./impermanence
|
||||||
];
|
];
|
||||||
|
|
||||||
|
options.homeconfig.host = lib.options.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = null;
|
||||||
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
home.stateVersion = "23.11";
|
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
|
exec-once=onSystemStart
|
||||||
|
|
||||||
# Some default env vars.
|
# Some default env vars.
|
||||||
|
|||||||
@@ -21,9 +21,15 @@
|
|||||||
|
|
||||||
systemd.variables = [ "--all" ];
|
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
|
source = /home/nathan/.config/hypr/main.conf
|
||||||
'';
|
'' + monitor;
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -208,6 +208,7 @@
|
|||||||
inputs.nathan-home-manager
|
inputs.nathan-home-manager
|
||||||
{
|
{
|
||||||
config.homeconfig = {
|
config.homeconfig = {
|
||||||
|
host = "homebox";
|
||||||
impermanence.enable = true;
|
impermanence.enable = true;
|
||||||
hyprland.enable = true;
|
hyprland.enable = true;
|
||||||
swaylock.enable = true;
|
swaylock.enable = true;
|
||||||
|
|||||||
@@ -75,6 +75,7 @@
|
|||||||
"nathan" = lib.mkMerge [
|
"nathan" = lib.mkMerge [
|
||||||
{
|
{
|
||||||
config.homeconfig = {
|
config.homeconfig = {
|
||||||
|
host = "laptop";
|
||||||
impermanence.enable = false;
|
impermanence.enable = false;
|
||||||
hyprland.enable = true;
|
hyprland.enable = true;
|
||||||
swaylock.enable = true;
|
swaylock.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user