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";
|
networking.hostName = "FCS-Tristan-Nixbook";
|
||||||
|
|
||||||
|
|
@ -86,6 +86,9 @@ in {
|
||||||
home.stateVersion = "22.05";
|
home.stateVersion = "22.05";
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
bind = [
|
||||||
|
"SUPER_SHIFT, Q, killactive,"
|
||||||
|
];
|
||||||
"device:at-translated-set-2-keyboard" = {
|
"device:at-translated-set-2-keyboard" = {
|
||||||
kb_variant = "dvorak,";
|
kb_variant = "dvorak,";
|
||||||
kb_layout = "gb,gb";
|
kb_layout = "gb,gb";
|
||||||
|
|
@ -95,31 +98,34 @@ in {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
displays.displays = {
|
displays = {
|
||||||
"asus" = {
|
enable = true;
|
||||||
enable = false;
|
displays = {
|
||||||
};
|
"hdmi" = {
|
||||||
"hp" = {
|
enable = true;
|
||||||
enable = true;
|
name = "HDMI-A-1";
|
||||||
name = "HDMI-A-1";
|
wallpaper = ../images/nier2.jpg;
|
||||||
wallpaper = ../images/nier2.jpg;
|
workspaces = {
|
||||||
workspaces = {
|
start = 6;
|
||||||
start = 6;
|
end = 10;
|
||||||
end = 10;
|
};
|
||||||
|
position = {
|
||||||
|
x = 0;
|
||||||
|
y = 0;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
"internal" = {
|
||||||
"internal" = {
|
enable = true;
|
||||||
enable = true;
|
name = "eDP-1";
|
||||||
name = "eDP-1";
|
workspaces = {
|
||||||
description = "BOE 0x07D8";
|
start = 1;
|
||||||
workspaces = {
|
};
|
||||||
start = 1;
|
position = {
|
||||||
|
x = 0;
|
||||||
|
y = 1080;
|
||||||
|
};
|
||||||
|
wallpaper = ../images/nix-soft.png;
|
||||||
};
|
};
|
||||||
position = {
|
|
||||||
x = 0;
|
|
||||||
y = 1420;
|
|
||||||
};
|
|
||||||
wallpaper = ../images/nix-soft.png;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ in {
|
||||||
(import ./swaylock.nix)
|
(import ./swaylock.nix)
|
||||||
(import ./swayidle.nix)
|
(import ./swayidle.nix)
|
||||||
(import ./waybar.nix)
|
(import ./waybar.nix)
|
||||||
(import ./hycov.nix)
|
|
||||||
];
|
];
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,6 @@
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./modules/display.nix
|
./modules/display.nix
|
||||||
./modules/laptop.nix
|
|
||||||
../hardware/displays.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
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