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
| { | |
| description = "llama.cpp running vicuna"; | |
| inputs = { | |
| llama.url = "github:ggerganov/llama.cpp/aaf3b23debc1fe1a06733c8c6468fb84233cc44f"; | |
| flake-utils.url = "github:numtide/flake-utils/033b9f258ca96a10e543d4442071f614dc3f8412"; | |
| nixpkgs.url = "github:NixOS/nixpkgs/d9f759f2ea8d265d974a6e1259bd510ac5844c5d"; | |
| }; | |
| outputs = { self, flake-utils, llama, nixpkgs }: |
This file has been truncated, but you can view the full file.
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
| #!/usr/bin/env nix-shell | |
| #! nix-shell -p xorg.xrandr -p chromium -p pianoteq.stage-6 -i bash | |
| input="Elan Touchpad" | |
| function restore { | |
| xrandr -o normal | |
| xinput set-prop "$input" --type=float "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1 | |
| kill $! | |
| } |
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
| building the system configuration... | |
| error: attribute 'currentSystem' missing | |
| at /nix/store/mk4x3mhmgmzx0j0dda26ay19x22yxbyj-source/pkgs/top-level/impure.nix:18:43: | |
| 17| # (build, in GNU Autotools parlance) platform. | |
| 18| localSystem ? { system = args.system or builtins.currentSystem; } | |
| | ^ | |
| 19| |
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
| { lockFile }: | |
| let | |
| pkgs = import <nixpkgs> {}; | |
| lib = pkgs.lib; | |
| procLockFile = | |
| lockFile: | |
| let | |
| # https://github.com/NuGet/NuGet.Client/blob/f24bad0668193ce21a1db8cabd1ce95ba509c7f0/src/NuGet.Core/NuGet.Packaging/PackageArchiveReader.cs#L431 | |
| # https://github.com/NuGet/NuGet.Client/blob/f24bad0668193ce21a1db8cabd1ce95ba509c7f0/src/NuGet.Core/NuGet.Packaging/PackageExtractor.cs#L487 |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Net.Http.Headers; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using SolrNet; | |
| namespace SolrNetAuthTest | |
| { |
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
| { pkgs ? (import (fetchTarball https://github.com/NixOS/nixpkgs/archive/e298629fec0fe6ffbd6e30dcb1fc4718bc807cb4.tar.gz) {})}: | |
| with pkgs; | |
| stdenv.mkDerivation { | |
| pname = "starspace"; | |
| version = "8aee0a950aa607c023e5c91cff518bec335b5df5"; | |
| nativeBuildInputs = [ | |
| autoPatchelfHook | |
| ]; |
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
| # Usage: $ nix eval "(builtins.attrNames (import (builtins.fetchurl "https://matthewbauer.us/generate-versions.nix") {}).emacs)" | |
| # $ nix run "(import (builtins.fetchurl "https://matthewbauer.us/generate-versions.nix") {}).emacs.\"24.3\"" -u LANG -c emacs | |
| {}: | |
| let | |
| channels = [ "nixos-20.09" "nixos-20.03" "nixos-19.09" "nixpkgs-unstable" ]; | |
| getSet = channel: (import (builtins.fetchTarball "channel:${channel}") {inherit (builtins.currentSystem);}).pkgs; |
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
| FROM jupyter/minimal-notebook:36bce751008f | |
| USER root | |
| RUN apt-get update && apt-get install -y curl | |
| RUN mkdir /nix | |
| RUN chown jovyan /nix | |
| ENV PATH=/home/jovyan/.nix-profile/bin:$PATH |
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
| Kudos to https://matthewbauer.us/blog/static-nix.html | |
| $ docker run --rm -it -w /root alpine | |
| $ apk add curl | |
| $ curl https://matthewbauer.us/nix -o nix && chmod +x nix | |
| $ ./nix run -f channel:nixpkgs-unstable awscli -c aws --version | |
| aws-cli/1.17.13 Python/3.7.7 Linux/4.19.116 botocore/1.14.13 |