First, enter a Nix shell with all dependencies:
nix-shell https://github.com/sgillespie/nixos-yubikey-luks/archive/master.tar.gz
Then, run the following commands
# Reference variables
First, enter a Nix shell with all dependencies:
nix-shell https://github.com/sgillespie/nixos-yubikey-luks/archive/master.tar.gz
Then, run the following commands
# Reference variables
| { | |
| "$schema": "https://opencode.ai/config.json", | |
| "model": "ollama/mistral:7b", | |
| "provider": { | |
| "ollama": { | |
| "models": { | |
| "deepseek-coder:6.7b": { | |
| "name": "deepseek-coder" | |
| }, | |
| "llama3:8b": { |
| FROM docker.io/alpine:latest | |
| RUN apk add --no-cache curl bash \ | |
| && curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install linux \ | |
| --extra-conf "sandbox = false" \ | |
| --init none \ | |
| --no-confirm \ | |
| --extra-conf='filter-syscalls = false' |
I hereby claim:
To claim this, I am signing this object:
| { config, pkgs, ... }: | |
| { | |
| # Fingerprint | |
| services.fprintd = { | |
| enable = true; | |
| package = pkgs.fprintd-tod; | |
| tod.enable = true; | |
| tod.driver = pkgs.libfprint-2-tod1-goodix; | |
| }; |
| # Enable the community repository | |
| sed -i 's/#\(.*\/community\)/\1/' /etc/apk/repositories | |
| # Install Nix package | |
| apk add --no-cache nix shadow | |
| # Assuming you're running as root | |
| # Add user to the nix group | |
| # Using shadow because I'm incompetent | |
| myuser=heywoodlh |
| { | |
| description = "my home-manager flake"; | |
| inputs = { | |
| home-manager = { | |
| url = "github:nix-community/home-manager/release-24.05"; | |
| inputs.nixpkgs.follows = "nixpkgs"; | |
| }; | |
| flake-utils.url = "github:numtide/flake-utils"; | |
| zen-browser.url = "github:heywoodlh/flakes?dir=zen-browser"; |
| # credit: https://askubuntu.com/a/1475182 | |
| # invoke with: | |
| # curl -L https://gist.githubusercontent.com/heywoodlh/b55eb33e248db2b8a7625c1fddc6b8d3/raw/ce517a862ae4b4dd0c7a60912df22c5bcb10d736/setup-clevis.sh -o /tmp/setup-clevis.sh | |
| # sudo bash /tmp/setup-clevis.sh /dev/sda3 | |
| disk="$1" | |
| [[ ! -n "${disk}" ]] && echo "Usage: $0 /dev/sda3" && exit 1 | |
| [[ -n "${disk}" ]] && [[ ! -e "${disk}" ]] && echo "Disk ${disk} does not exist. Exiting." && exit 1 | |
| #install needed packages |
| { | |
| description = "example nixos flake"; | |
| inputs = { | |
| nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; | |
| home-manager = { | |
| url = "github:nix-community/home-manager"; | |
| inputs.nixpkgs.follows = "nixpkgs"; | |
| }; | |
| }; |
| # Socket address to listen on | |
| listen = "[::]:8080" | |
| # Allowed `Host` headers | |
| # | |
| # This _must_ be configured for production use. If unconfigured or the | |
| # list is empty, all `Host` headers are allowed. | |
| allowed-hosts = [] | |
| # The canonical API endpoint of this server |