nixcfg/hosts/petalburg/home.nix

63 lines
1.5 KiB
Nix
Raw Normal View History

2024-03-28 19:52:15 -04:00
{
2024-04-07 22:16:33 -04:00
lib,
pkgs,
self,
2024-04-07 22:16:33 -04:00
...
}: {
home-manager = {
sharedModules = [
{
wayland.windowManager = {
hyprland.settings = {
bind = [
",xf86launch2,exec,${lib.getExe pkgs.playerctl} play-pause"
];
exec-once = [''${
lib.getExe self.inputs.iio-hyprland.packages.${pkgs.system}.default
} "desc:Samsung Display Corp. 0x4152"''];
input = {
tablet.output = "eDP-1";
touchdevice.output = "eDP-1";
};
};
sway.config = {
input = {
"1386:21186:Wacom_HID_52C2_Finger" = {
map_to_output = "'Samsung Display Corp. 0x4152 Unknown'";
};
"1386:21186:Wacom_HID_52C2_Pen" = {
map_to_output = "'Samsung Display Corp. 0x4152 Unknown'";
};
};
keybindings = {
"XF86Launch2" = "exec ${lib.getExe pkgs.playerctl} play-pause";
};
output = {"Samsung Display Corp. 0x4152 Unknown".scale = "2.0";};
};
};
2024-09-28 19:58:05 -04:00
ar.home = {
desktop.hyprland = {
laptopMonitors = ["desc:Samsung Display Corp. 0x4152,preferred,auto,2,transform,0"];
2024-09-28 19:58:05 -04:00
tabletMode = {
enable = true;
switches = ["Lenovo Yoga Tablet Mode Control switch"];
};
};
2024-09-28 19:58:05 -04:00
services.gammastep.enable = true;
};
}
];
users.aly = self.homeManagerModules.aly;
};
2024-03-28 19:52:15 -04:00
}