refactor(tf2): Split off tf2.nix into separate repo

This commit is contained in:
Madeleine Sydney
2025-04-02 08:28:25 -06:00
parent 21fb7efde0
commit 3e0ed596da
6 changed files with 51 additions and 249 deletions

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, inputs, ... }:
# Launch options: -novid -nojoy -nosteamcontroller -nohltv -particles 1 -precachefontchars -noquicktime -console -windowed -noborder
@@ -10,21 +10,25 @@ in {
config = lib.mkIf cfg.enable
(let
tf2pkgs = pkgs.callPackage ../../tf2/packages.nix {};
in {
tf2 = {
enable = true;
packages = with tf2pkgs; [
tf2pkgs = inputs.tf2-nix.packages.x86_64-linux;
my-config = pkgs.symlinkJoin {
name = "tf2-files";
paths = 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)
deerhud
./tf2/my-config
./tf2/quake-hitsounds
];
};
});
in {
home.file."tf" = {
recursive = true;
source = my-config;
};
});
}