remove laptop module, sort out displays

This commit is contained in:
Tristan 2024-02-08 10:47:28 +00:00
parent 94968cf86a
commit f839796dc2
4 changed files with 30 additions and 65 deletions

View file

@ -1,38 +0,0 @@
{
lib,
config,
...
}:
with lib; let
cfg = config.roles.laptop;
user = config.user;
in {
options.roles = {
laptop = {
enable = mkEnableOption "is a laptop";
displays = mkEnableOption "laptop display defaults";
};
};
config = mkIf cfg.enable {
displays = mkIf cfg.displays {
enable = true;
displays.internal = {
name = "eDP-1";
scaling = 1.2;
};
};
home-manager.users.${user}.imports = [
{
wayland.windowManager.hyprland = {
settings = {
bind = [
"SUPER_SHIFT, Q, killactive,"
];
};
};
}
];
};
}