make thinkpad headless

This commit is contained in:
Yan Lin 2025-12-07 21:33:22 +01:00
parent 0b2fd37a07
commit 2450a37916
2 changed files with 11 additions and 113 deletions

View file

@ -1,62 +1,12 @@
{ config, pkgs, ... }:
{
# Allow unfree packages in home-manager
nixpkgs.config.allowUnfree = true;
# Import the common NixOS home configuration
imports = [
../home-default.nix
../../../modules/syncthing.nix
../../../modules/tex.nix
../../../modules/gnome/home.nix
../../../modules/firefox.nix
../../../modules/ghostty.nix
../../../modules/papis.nix
../../../modules/libreoffice.nix
../../../modules/schedule.nix
../../../modules/cursor.nix
];
# Enable Ghostty terminal with OSC-52 clipboard support
programs.ghostty-custom = {
enable = true;
package = pkgs.ghostty;
fontSize = 12;
windowMode = "maximized";
};
# Enable Firefox browser
programs.firefox-custom = {
enable = true;
package = pkgs.firefox;
};
# Enable Cursor editor
programs.cursor.package = pkgs.code-cursor;
# ThinkPad-specific applications
home.packages = with pkgs; [
obsidian
keepassxc
imagemagick
inkscape
vlc
obs-studio
(pkgs.symlinkJoin {
name = "ovito-wrapped";
paths = [ pkgs.ovito ];
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/ovito \
--set QT_QPA_PLATFORM wayland \
--set MESA_GL_VERSION_OVERRIDE 3.3
'';
})
remmina
chromium
localsend
calibre
zotero
];
}