Make hyprland config system dependent
This commit is contained in:
@ -70,6 +70,28 @@ in {
|
||||
# Polkit
|
||||
home.file.".config/hypr/polkit.conf".text = ''exec-once = ${pkgs.libsForQt5.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1'';
|
||||
|
||||
# Monitors for different systems
|
||||
home.file.".config/hypr/monitors.conf".text = cfg.monitors;
|
||||
|
||||
# Keyboard layout
|
||||
home.file.".config/hypr/input.conf".text = ''
|
||||
input {
|
||||
kb_layout = ${cfg.kb-layout}
|
||||
kb_variant = ${cfg.kb-variant}
|
||||
kb_model = pc104
|
||||
kb_options =
|
||||
kb_rules =
|
||||
|
||||
follow_mouse = 1
|
||||
|
||||
touchpad {
|
||||
natural_scroll = no
|
||||
}
|
||||
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
}
|
||||
'';
|
||||
|
||||
home.file.".config/hypr/waybar-reload.conf".text = let
|
||||
waybar-reload = pkgs.writeScript "waybar-reload" ''
|
||||
#! ${pkgs.bash}/bin/bash
|
||||
|
@ -7,8 +7,23 @@ with lib;
|
||||
with mylib.modules; {
|
||||
enable = mkEnableOpt "Hyprland Window Manager + Compositor";
|
||||
|
||||
kb-layout = mkOption {
|
||||
type = types.str;
|
||||
description = "Keyboard layout to use";
|
||||
};
|
||||
|
||||
kb-variant = mkOption {
|
||||
type = types.str;
|
||||
description = "Keyboard layout variant";
|
||||
};
|
||||
|
||||
theme = mkOption {
|
||||
type = types.str;
|
||||
description = "Wallpaper and colorscheme to use";
|
||||
};
|
||||
|
||||
monitors = mkOption {
|
||||
type = types.str;
|
||||
description = "Hyprland monitor configuration";
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user