nix/hosts/nixos/thinkpad/home.nix
2025-11-03 13:46:06 +01:00

67 lines
1.5 KiB
Nix

{ 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
];
# ThinkPad-specific GNOME dconf overrides
dconf.settings = {
"org/gnome/desktop/peripherals/mouse" = {
speed = 0.0; # Match libinput accelSpeed for TrackPoint
accel-profile = "flat"; # Match libinput accelProfile (no acceleration)
};
};
programs.yt-dlp-custom = {
enable = true;
downloadDir = "~/Downloads/web-video";
};
# 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;
};
# ThinkPad-specific applications
home.packages = with pkgs; [
obsidian
keepassxc
imagemagick
inkscape
vlc
wemeet
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
];
}