43 lines
1.3 KiB
Nix
43 lines
1.3 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
tf2-nix = {
|
|
url = "gitlab:msyds/tf2-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, ... }@inputs: {
|
|
# TF2 config built as a package.
|
|
packages.x86_64-linux.default =
|
|
let
|
|
pkgs = import inputs.nixpkgs { system = "x86_64-linux"; };
|
|
tf2Pkgs = inputs.tf2-nix.lib.mkTf2Pkgs { inherit pkgs; };
|
|
in tf2Pkgs.mergeTf2Configs (with tf2Pkgs; [
|
|
mastercomfig.presets.medium-low
|
|
mastercomfig.addons.flat-mouse
|
|
mastercomfig.addons.no-tutorial
|
|
mastercomfig.addons.null-canceling-movement
|
|
maps.jump_beef
|
|
improved-crosshairs
|
|
loadouts-script
|
|
# Packages are overridable.
|
|
(huds.deerhud.overrideAttrs (final: prev: {
|
|
patches = [ ./raise-uber-meter.patch ];
|
|
}))
|
|
# Existing configs on your file system may be referenced by path:
|
|
./my-config
|
|
]);
|
|
|
|
# TF2 config installed using Home-manager.
|
|
homeConfigurations.default =
|
|
let gameDir = ".local/share/Steam/steamapps/common/Team Fortress 2/tf";
|
|
in {
|
|
home.file.${gameDir} = {
|
|
recursive = true;
|
|
source = self.packages.x86_64-linux.default;
|
|
};
|
|
};
|
|
};
|
|
}
|