Gist with files I have used for managing Git repositories
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
My personal stance is that 1. all adjacent whitespace can be represented by a single token, 2. whitespace between expressions is significant, 3. whitespace adjacent to punctuation is parsed with the operator token, 4. no other whitespace is significant |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Overrides to keep packages building after Rust 1.80.0. | |
# There is a regression with type inference that primarily affects | |
# the `time` crate, so for packages that use it, go back one version. | |
# <https://github.com/NixOS/nixpkgs/issues/332957> | |
pkgs: pkgs0: | |
let | |
rustVersion = "1.79.0"; | |
rustPlatform = pkgs.makeRustPlatform { | |
cargo = pkgs.rust-bin.stable.${rustVersion}.default; | |
rustc = pkgs.rust-bin.stable.${rustVersion}.default; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eachNewer = lib.filterAttrs (name: updatedPackage: | |
let | |
verNixpkgs = pkgs0.${name}.version; | |
verOverride = updatedPackage.version; | |
in if lib.versionOlder verNixpkgs verOverride then | |
true | |
else | |
lib.warn '' | |
package `${name}` has an overlay but the version in Nixpkgs is newer | |
(${verNixpkgs} >= ${verOverride}) |
- Naming of overlay parameters, by scope
- Allow
mkShell
do the heavy lifting, usepackages
andinputsFrom
- Proper usage of
nixpkgs.lib.extend
using more overlays (TODO)- Also avoid
import
ing your own global functions everywhere, and registering functions inconfig
.
- Also avoid
- Use
nix-systems
andpkgsFor.${system}
I have multiple monitors connected to a Thunderbolt 4 hub, and the monitors must be connected in a specific order to ensure that their respective profiles (position, refresh rate, resolution) are applied.
DEVICE NAME | Description |
---|---|
HOST |
ThinkPad P14s Gen 4 (AMD). |
MASTER_HUB |
Anker PowerExpand 5-in-1. Has one THUNDERBOLT4_HOST and 10gb/s USB-A on the front, and 3x Thunderbolt 4 (USB-C) split passthru and a DC power jack on the back. |
For the sake of brevity, I will refer to the path
D:\Program Files (x86)\Steam\steamapps\common\Baldurs Gate 3
as GAMEDIR
.
This path will be different for your computer.
I do not recommend NexusMods' Vortex. It just doesn't work, and UI is confusing.
I hereby claim:
- I am spikespaz on github.
- I am spikespaz (https://keybase.io/spikespaz) on keybase.
- I have a public key ASAzP28yonIhOdu2z7XlFOEoqCBqJeyyJ7dNlnbzrTlanAo
To claim this, I am signing this object:
NewerOlder