framework: add thunderbolt dock

This commit is contained in:
Tristan 2025-09-03 13:56:54 +01:00
parent 2219fb8619
commit f100918174
3 changed files with 59 additions and 18 deletions

View file

@ -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,43 @@
} }
''; '';
}; };
programs.niri.settings.outputs = {
# Laptop display
"eDP-1" = {
mode = {
width = 2256;
height = 1504;
refresh = 59.999;
};
};
# HP 24x
"DP-3" = {
mode = {
width = 1920;
height = 1080;
refresh = 144.001;
};
scale = 1.0;
position = {
x = 2256;
y = 0;
};
};
# ASUS display
"DP-7" = {
mode = {
width = 1920;
height = 1080;
refresh = 60.0;
};
scale = 1.0;
position = {
x = 2256 + 1920;
y = 0;
};
};
};
} }
]; ];

View file

@ -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;
};
};
} }
]; ];
} }

View file

@ -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)];