From 893ff02339cd5ae3b325dcf1610b9bed8bc6428f Mon Sep 17 00:00:00 2001 From: Tristan Date: Wed, 3 Sep 2025 13:56:54 +0100 Subject: [PATCH] framework: add thunderbolt dock --- hardware/framework-13.nix | 37 +++++++++++++++++++++++++++++++++++ hardware/zenix.nix | 20 +++++++++++++++++++ home/desktop/niri/default.nix | 18 ----------------- 3 files changed, 57 insertions(+), 18 deletions(-) diff --git a/hardware/framework-13.nix b/hardware/framework-13.nix index 120e188..dd70137 100644 --- a/hardware/framework-13.nix +++ b/hardware/framework-13.nix @@ -57,6 +57,8 @@ networking.hostName = "framework-13"; + services.hardware.bolt.enable = true; + system.stateVersion = "24.11"; # do not change 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; + }; + }; + }; } ]; diff --git a/hardware/zenix.nix b/hardware/zenix.nix index 7408fa1..d0fa17f 100644 --- a/hardware/zenix.nix +++ b/hardware/zenix.nix @@ -84,6 +84,26 @@ in { home-manager.users.${user}.imports = [ { 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; + }; + }; } ]; } diff --git a/home/desktop/niri/default.nix b/home/desktop/niri/default.nix index 05865a5..f615ce9 100644 --- a/home/desktop/niri/default.nix +++ b/home/desktop/niri/default.nix @@ -59,24 +59,6 @@ NIXOS_OZONE_WL = "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; { "Mod+Return".action.spawn = [(lib.getExe config.programs.terminal)]; "Mod+O".action.spawn = [(lib.getExe pkgs.cosmic-files)];