framework: add thunderbolt dock
This commit is contained in:
parent
2219fb8619
commit
893ff02339
3 changed files with 57 additions and 18 deletions
|
|
@ -57,6 +57,8 @@
|
||||||
|
|
||||||
networking.hostName = "framework-13";
|
networking.hostName = "framework-13";
|
||||||
|
|
||||||
|
services.hardware.bolt.enable = true;
|
||||||
|
|
||||||
system.stateVersion = "24.11"; # do not change
|
system.stateVersion = "24.11"; # do not change
|
||||||
home-manager.users.${config.user}.imports = [
|
home-manager.users.${config.user}.imports = [
|
||||||
{
|
{
|
||||||
|
|
@ -77,6 +79,41 @@
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.niri.settings.outputs = {
|
||||||
|
# Laptop display
|
||||||
|
"eDP-1" = {
|
||||||
|
mode = {
|
||||||
|
width = 2256;
|
||||||
|
height = 1504;
|
||||||
|
refresh = 59.999;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"HP Inc. HP 24x 1CR9500W9Q" = {
|
||||||
|
mode = {
|
||||||
|
width = 1920;
|
||||||
|
height = 1080;
|
||||||
|
refresh = 144.001;
|
||||||
|
};
|
||||||
|
scale = 1.0;
|
||||||
|
position = {
|
||||||
|
x = 2256;
|
||||||
|
y = 0;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"Ancor Communications Inc ASUS VS228 F3LMTF154813" = {
|
||||||
|
mode = {
|
||||||
|
width = 1920;
|
||||||
|
height = 1080;
|
||||||
|
refresh = 60.0;
|
||||||
|
};
|
||||||
|
scale = 1.0;
|
||||||
|
position = {
|
||||||
|
x = 2256 + 1920;
|
||||||
|
y = 0;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -84,6 +84,26 @@ in {
|
||||||
home-manager.users.${user}.imports = [
|
home-manager.users.${user}.imports = [
|
||||||
{
|
{
|
||||||
home.stateVersion = "22.05";
|
home.stateVersion = "22.05";
|
||||||
|
programs.niri.settings.outputs = {
|
||||||
|
"DP-3" = {
|
||||||
|
mode = {
|
||||||
|
width = 1920;
|
||||||
|
height = 1080;
|
||||||
|
refresh = 143.855;
|
||||||
|
};
|
||||||
|
variable-refresh-rate = true;
|
||||||
|
scale = 1.0;
|
||||||
|
};
|
||||||
|
"HDMI-A-1" = {
|
||||||
|
mode = {
|
||||||
|
width = 3840;
|
||||||
|
height = 2160;
|
||||||
|
refresh = 120.0;
|
||||||
|
};
|
||||||
|
variable-refresh-rate = true;
|
||||||
|
scale = 2.5;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -59,24 +59,6 @@
|
||||||
NIXOS_OZONE_WL = "1";
|
NIXOS_OZONE_WL = "1";
|
||||||
DISPLAY = ":1";
|
DISPLAY = ":1";
|
||||||
};
|
};
|
||||||
outputs."DP-3" = {
|
|
||||||
mode = {
|
|
||||||
width = 1920;
|
|
||||||
height = 1080;
|
|
||||||
refresh = 143.855;
|
|
||||||
};
|
|
||||||
variable-refresh-rate = true;
|
|
||||||
scale = 1.0;
|
|
||||||
};
|
|
||||||
outputs."HDMI-A-1" = {
|
|
||||||
mode = {
|
|
||||||
width = 3840;
|
|
||||||
height = 2160;
|
|
||||||
refresh = 120.0;
|
|
||||||
};
|
|
||||||
variable-refresh-rate = true;
|
|
||||||
scale = 2.5;
|
|
||||||
};
|
|
||||||
binds = with config.lib.niri.actions; {
|
binds = with config.lib.niri.actions; {
|
||||||
"Mod+Return".action.spawn = [(lib.getExe config.programs.terminal)];
|
"Mod+Return".action.spawn = [(lib.getExe config.programs.terminal)];
|
||||||
"Mod+O".action.spawn = [(lib.getExe pkgs.cosmic-files)];
|
"Mod+O".action.spawn = [(lib.getExe pkgs.cosmic-files)];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue