Skip to content

Instantly share code, notes, and snippets.

@icecreammatt
icecreammatt / vimium_colemak
Last active May 12, 2025 22:17 — forked from benyarb/vimium_colemak
Vimium Colemak Keybindings
# Custom key mappings
map e scrollDown
map E nextTab
#map L scrollPageUp
unmap n
map n scrollLeft
map u scrollUp
@icecreammatt
icecreammatt / README
Created March 9, 2023 07:48 — forked from jmatsushita/README
Setup nix, nix-darwin and home-manager from scratch on an M1 Macbook Pro
# I found some good resources but they seem to do a bit too much (maybe from a time when there were more bugs).
# So here's a minimal Gist which worked for me as an install on a new M1 Pro.
# Inspired by https://github.com/malob/nixpkgs I highly recommend looking at malob's repo for a more thorough configuration
#
# Some people are coming directly to this Gist from search results and not the original post[1]. If that sounds like you, you should also know there is a video[2] that accompanies this.
#
# [1] https://discourse.nixos.org/t/simple-workable-config-for-m1-macbook-pro-monterey-12-0-1-with-nix-flakes-nix-darwin-and-home-manager/16834
# [2] https://www.youtube.com/watch?v=KJgN0lnA5mk
#
@icecreammatt
icecreammatt / sample.nix
Created December 23, 2023 21:51
Mixed nix versions
# https://discourse.nixos.org/t/one-flake-multiple-systems-tracking-different-releases/37028/14
# https://github.com/futile/nixos-config/blob/e1c6a21a48bd0ef0ddebd67370b376eb54ff92e2/flake.nix#L6
{
inputs = {
nixpkgs = { url = "github:nixos/nixpkgs/nixos-23.11"; };
nixpkgs-unstable = { url = "github:nixos/nixpkgs/nixos-unstable"; };
};
@icecreammatt
icecreammatt / immich.nix
Created March 26, 2024 01:31 — forked from mfenniak/immich.nix
NixOS configuration for Immich, based upon upstream docker-compose.yml
{ config, ... }:
let
immichHost = "immich.example.com"; # TODO: put your immich domain name here
immichRoot = "/tank/immich"; # TODO: Tweak these to your desired storage locations
immichPhotos = "${immichRoot}/photos";
immichAppdataRoot = "${immichRoot}/appdata";
immichVersion = "release";
immichExternalVolume1 = "/tank/BackupData/Google Photos/someone@example.com"; # TODO: if external volumes are desired
@icecreammatt
icecreammatt / toggle-gaming.sh
Created March 8, 2025 18:17
Toggle touchpad while typing for Asahi Linux
#!/usr/bin/env bash
res=$(qdbus org.kde.kglobalaccel /org/kde/KWin/InputDevice/event0 org.freedesktop.DBus.Properties.Get org.kde.KWin.InputDevice disableWhileTyping)
set_value=false
if [[ "$res" == "false" ]]; then
set_value=true
fi
qdbus org.kde.kglobalaccel /org/kde/KWin/InputDevice/event0 org.freedesktop.DBus.Properties.Set org.kde.KWin.InputDevice disableWhileTyping $set_value