Files
sydnix/modules/home/users/crumb/tf2.nix
Madeleine Sydney 70aa5c6a6b feat(tf2): Upgrade tf2-nix
- Patch DeerHud.
- Install jump_noskillrequired.
- Use alternate explosion effects, from Mastercomfig.
2025-04-15 08:03:16 -06:00

36 lines
1.1 KiB
Nix

{ config, lib, pkgs, inputs, ... }:
# Launch options: -novid -nojoy -nosteamcontroller -nohltv -particles 1 -precachefontchars -noquicktime -console -windowed -noborder
let cfg = config.sydnix.users.crumb.tf2;
in {
options.sydnix.users.crumb.tf2 = {
enable = lib.mkEnableOption "Madeleine's Team Fortress 2 config";
};
config = lib.mkIf cfg.enable
(let
tf2pkgs = inputs.tf2-nix.packages.x86_64-linux;
my-config = tf2pkgs.mergeTf2Configs (with tf2pkgs; [
mastercomfig.presets.medium-low
mastercomfig.addons.flat-mouse
mastercomfig.addons.no-tutorial
mastercomfig.addons.null-canceling-movement
improved-crosshairs
loadouts-script
(huds.deerhud.overrideAttrs (final: prev: {
patches = [ ./tf2/raise-uber-meter.patch ];
}))
maps.jump_noskillrequired_b3
./tf2/my-config
./tf2/quake-hitsounds
]);
game-dir = ".local/share/Steam/steamapps/common/Team Fortress 2/tf";
in {
home.file.${game-dir} = {
recursive = true;
source = my-config;
};
});
}