remove laptop module, sort out displays
This commit is contained in:
parent
94968cf86a
commit
f839796dc2
4 changed files with 30 additions and 65 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ in {
|
|||
(import ./swaylock.nix)
|
||||
(import ./swayidle.nix)
|
||||
(import ./waybar.nix)
|
||||
(import ./hycov.nix)
|
||||
];
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@
|
|||
in {
|
||||
imports = [
|
||||
./modules/display.nix
|
||||
./modules/laptop.nix
|
||||
../hardware/displays.nix
|
||||
];
|
||||
|
||||
nix = {
|
||||
|
|
|
|||
|
|
@ -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,"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue