mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 03:34:35 +00:00
Allow specifying monitors from os config
This commit is contained in:
parent
6da71787f1
commit
6180f89b72
|
@ -1,4 +1,9 @@
|
|||
{
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
cfg = osConfig.myOptions.home-manager.wms.hyprland;
|
||||
in {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
input = {
|
||||
# Keyboard layout settings
|
||||
|
@ -20,6 +25,8 @@
|
|||
natural_scroll = false;
|
||||
};
|
||||
};
|
||||
|
||||
monitor = cfg.monitor;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -85,7 +85,12 @@
|
|||
key = "FA2745890B7048C0";
|
||||
};
|
||||
};
|
||||
wms.hyprland.enable = true;
|
||||
wms.hyprland = {
|
||||
enable = true;
|
||||
monitor = [
|
||||
"eDP-1, 1920x1080@60, 0x0, 1"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -6,9 +6,18 @@
|
|||
inherit (lib) mkEnableOption mkOption types;
|
||||
in {
|
||||
options.myOptions.home-manager.wms = {
|
||||
hyprland.enable = mkEnableOption ''
|
||||
Hyprland wayland compositor.
|
||||
'';
|
||||
hyprland = {
|
||||
enable = mkEnableOption ''
|
||||
Hyprland wayland compositor.
|
||||
'';
|
||||
|
||||
|
||||
monitor = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
description = "Monitor configuration.";
|
||||
};
|
||||
};
|
||||
|
||||
isWayland = mkOption {
|
||||
type = types.bool;
|
||||
|
|
Loading…
Reference in a new issue