terra's desktop is split into profiles/workstation.nix (NixOS side) and home/desktop/ (home-manager side, moved from hosts/terra/home*), so titan, an ASUS Zenbook Pro Duo UX581 (Intel iGPU + RTX 2060 PRIME offload), gets the same Hyprland workstation. Per-host monitors, primary/secondary output and wallpaper are homelab.desktop.* options; the quickshell widgets read the outputs from QS_PRIMARY_OUTPUT/QS_SECONDARY_OUTPUT instead of hardcoding DP-2/HDMI-A-1. Folder icons come from a new HyprChrome-Folders icon theme. titan gets its own sops file and recipient. LibreChat is removed from terra along with its secrets declarations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
56 lines
1.8 KiB
Nix
56 lines
1.8 KiB
Nix
# ---- TITAN ----
|
|
# ASUS Zenbook Pro Duo UX581LV: i7/i9 10th gen (UHD 630) + RTX 2060,
|
|
# 4K OLED + ScreenPad Plus. Same workstation as terra (profiles/workstation.nix).
|
|
{ config, pkgs, lib, inputs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
./disk-config.nix
|
|
./secrets.nix
|
|
../../common.nix
|
|
../../profiles/workstation.nix
|
|
];
|
|
|
|
networking.hostName = "titan";
|
|
|
|
# Connector names are a first guess; check `hyprctl monitors` after the
|
|
# first boot. The catch-all rule keeps any unlisted output usable.
|
|
home-manager.users.darman.homelab.desktop = {
|
|
monitors = [
|
|
{ output = "eDP-1"; mode = "3840x2160@60"; position = "0x0"; scale = 2; }
|
|
{ output = ""; mode = "preferred"; position = "auto"; scale = "auto"; }
|
|
];
|
|
primaryOutput = "eDP-1";
|
|
};
|
|
|
|
hardware.cpu.intel.updateMicrocode = true;
|
|
services.thermald.enable = true;
|
|
|
|
# ---- GPU: Intel iGPU drives the panels, RTX 2060 on demand ----
|
|
# Run something on the dGPU with `nvidia-offload <cmd>`.
|
|
hardware.graphics.extraPackages = [ pkgs.intel-media-driver ];
|
|
services.xserver.videoDrivers = [ "modesetting" "nvidia" ];
|
|
hardware.nvidia = {
|
|
open = true; # Turing is supported by the open module
|
|
modesetting.enable = true;
|
|
powerManagement.enable = true;
|
|
powerManagement.finegrained = true; # dGPU powers off when idle
|
|
prime = {
|
|
offload.enable = true;
|
|
offload.enableOffloadCmd = true;
|
|
# Usual UX581 values; confirm with `lspci | grep -E 'VGA|3D'`.
|
|
intelBusId = "PCI:0:2:0";
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
};
|
|
};
|
|
|
|
# ---- laptop ----
|
|
hardware.bluetooth.enable = true;
|
|
services.power-profiles-daemon.enable = true;
|
|
services.upower.enable = true;
|
|
zramSwap.enable = true;
|
|
|
|
system.stateVersion = "26.05";
|
|
}
|