Personal Nix setup

Add input options for hyprland

Changed files
+35 -8
home
desktop
machines
pepper
+28 -4
home/desktop/hyprland.nix
···
type = types.bool;
};
monitor = mkOption {
description = "Monitor configuration";
default = [ ];
···
};
input = {
-
kb_model = "apple";
-
kb_layout = "gb";
-
kb_variant = "mac";
kb_options = "ctrl:nocaps,lv3:ralt_switch";
-
sensitivity = -0.5;
touchpad = {
clickfinger_behavior = true;
tap-to-click = false;
···
type = types.bool;
};
+
input = mkOption {
+
default = { };
+
type = types.submodule {
+
options = {
+
sensitivity = mkOption {
+
default = 0.0;
+
type = types.float;
+
};
+
kb_model = mkOption {
+
default = "apple";
+
type = types.str;
+
};
+
kb_variant = mkOption {
+
default = "mac";
+
type = types.str;
+
};
+
kb_layout = mkOption {
+
default = "gb";
+
type = types.str;
+
};
+
};
+
};
+
};
+
monitor = mkOption {
description = "Monitor configuration";
default = [ ];
···
};
input = {
kb_options = "ctrl:nocaps,lv3:ralt_switch";
+
kb_model = cfg.hyprland.input.kb_model;
+
kb_layout = cfg.hyprland.input.kb_layout;
+
kb_variant = cfg.hyprland.input.kb_variant;
+
sensitivity = cfg.hyprland.input.sensitivity;
touchpad = {
clickfinger_behavior = true;
tap-to-click = false;
+7 -4
machines/pepper/home.nix
···
modules = {
desktop = {
enable = true;
-
hyprland.monitor = [
-
"desc:Samsung Electric Company Odyssey G60SD HNAX300205, 2560x1440@360, 0x0, 1, vrr, 1"
-
"desc:LG Electronics 27GL850 005NTPC4Q200, preferred, auto, 1, transform, 1, vrr, 1"
-
];
};
development.enable = false;
apps = {
···
modules = {
desktop = {
enable = true;
+
hyprland = {
+
sensitivity = -0.5;
+
monitor = [
+
"desc:Samsung Electric Company Odyssey G60SD HNAX300205, 2560x1440@360, 0x0, 1, vrr, 1"
+
"desc:LG Electronics 27GL850 005NTPC4Q200, preferred, auto, 1, transform, 1, vrr, 1"
+
];
+
};
};
development.enable = false;
apps = {