feat: tf2.nix

This commit is contained in:
Madeleine Sydney
2025-03-30 04:52:35 -06:00
parent 52f56d5437
commit 7f6dcf010f
21 changed files with 507 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
{ config, lib, pkgs, ... }:
# 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 = pkgs.callPackage ../../tf2/packages.nix {};
in {
tf2 = {
enable = true;
packages = 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
(tf2pkgs.mkTf2PackageFromDir ./tf2/my-config)
(tf2pkgs.mkTf2PackageFromDir ./tf2/quake-hitsounds)
];
};
});
}