minor fixes
This commit is contained in:
@@ -1,12 +1,11 @@
|
|||||||
{ lib
|
{
|
||||||
, config
|
lib,
|
||||||
, ...
|
config,
|
||||||
}:
|
...
|
||||||
let
|
}: let
|
||||||
inherit (lib) mkIf mkEnableOption;
|
inherit (lib) mkIf mkEnableOption;
|
||||||
cfg = config.modules.wm.hyprland.toothpick.inputs;
|
cfg = config.modules.wm.hyprland.toothpick.inputs;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
modules.wm.hyprland.toothpick.inputs.enable = mkEnableOption "Enables input settings in Hyprland";
|
modules.wm.hyprland.toothpick.inputs.enable = mkEnableOption "Enables input settings in Hyprland";
|
||||||
};
|
};
|
||||||
@@ -20,6 +19,9 @@ in
|
|||||||
];
|
];
|
||||||
|
|
||||||
input = {
|
input = {
|
||||||
|
kb_layout = "se";
|
||||||
|
kb_variant = "nodeadkeys";
|
||||||
|
|
||||||
follow_mouse = 1;
|
follow_mouse = 1;
|
||||||
accel_profile = "flat";
|
accel_profile = "flat";
|
||||||
sensitivity = 0; # -1.0 - 1.0, 0 means no modification.
|
sensitivity = 0; # -1.0 - 1.0, 0 means no modification.
|
||||||
@@ -31,13 +33,6 @@ in
|
|||||||
scroll_factor = 0.5;
|
scroll_factor = 0.5;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# Desktop keyboard
|
|
||||||
device = [
|
|
||||||
{
|
|
||||||
name = "usb-hid-keyboard";
|
|
||||||
kb_layout = "se";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
gestures = {
|
gestures = {
|
||||||
workspace_swipe = true;
|
workspace_swipe = true;
|
||||||
workspace_swipe_distance = 400;
|
workspace_swipe_distance = 400;
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ in {
|
|||||||
modules.hardware.graphics.amd.enable = mkEnableOption "Enables AMD graphics";
|
modules.hardware.graphics.amd.enable = mkEnableOption "Enables AMD graphics";
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
services.xserver.videoDrivers = ["amdgpu"];
|
||||||
hardware = {
|
hardware = {
|
||||||
graphics = {
|
graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
services.xserver.videoDrivers = ["nvidia"];
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
egl-wayland
|
egl-wayland
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user