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

@ -76,7 +76,7 @@ in {
];
};
roles.laptop.enable = true;
hardware.keyboard.zsa.enable = true;
networking.hostName = "FCS-Tristan-Nixbook";
@ -86,6 +86,9 @@ in {
home.stateVersion = "22.05";
wayland.windowManager.hyprland.settings = {
bind = [
"SUPER_SHIFT, Q, killactive,"
];
"device:at-translated-set-2-keyboard" = {
kb_variant = "dvorak,";
kb_layout = "gb,gb";
@ -95,11 +98,10 @@ in {
}
];
displays.displays = {
"asus" = {
enable = false;
};
"hp" = {
displays = {
enable = true;
displays = {
"hdmi" = {
enable = true;
name = "HDMI-A-1";
wallpaper = ../images/nier2.jpg;
@ -107,19 +109,23 @@ in {
start = 6;
end = 10;
};
position = {
x = 0;
y = 0;
};
};
"internal" = {
enable = true;
name = "eDP-1";
description = "BOE 0x07D8";
workspaces = {
start = 1;
};
position = {
x = 0;
y = 1420;
y = 1080;
};
wallpaper = ../images/nix-soft.png;
};
};
};
}

View file

@ -10,7 +10,6 @@ in {
(import ./swaylock.nix)
(import ./swayidle.nix)
(import ./waybar.nix)
(import ./hycov.nix)
];
xdg.portal = {
enable = true;

View file

@ -10,8 +10,6 @@
in {
imports = [
./modules/display.nix
./modules/laptop.nix
../hardware/displays.nix
];
nix = {

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,"
];
};
};
}
];
};
}