❄️ Dotfiles for our NixOS system configuration.
1{ pkgs, ... }: 2 3{ 4 home.packages = with pkgs; [ 5 # Convert nix hash to SRI format and fetch from URL 6 (writeShellScriptBin "shash" '' 7 nix hash to-sri --type sha256 $(nix-prefetch-url ''$1) 8 '') 9 10 # Create a Python virtual environment with --copies flag 11 (writeShellScriptBin "create-venv" '' 12 nix run nixpkgs#python3 -- -m venv .venv --copies 13 '') 14 ]; 15}