Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 2.25 KB

RANDOM_NOTES.md

File metadata and controls

68 lines (48 loc) · 2.25 KB

GPG

  1. generate new gpg key
gpg --full-generate-key
  1. show id for previous export, the id is after the '/'
 gpg --list-secret-keys --keyid-format LONG
  1. export public key
 gpg --armor --export REPLACE_WITH_EXTRACTED_ID
  1. display id short version for gitconfig
gpg --list-secret-keys --keyid-format SHORT

nix build ~/.config/darwin#darwinConfigurations.Pepos-MacBooks.system ./result/sw/bin/darwin-rebuild switch --flake ~/.config/darwin

leerme nix.dev for sure https://apple.stackexchange.com/questions/335400/how-switch-mac-uk-pc-keyboard-layout-backslash-and-backtick-to-match-normal todo, when flakes, bring node and split node packages

  • nix flake update ./
  • nix build ./#darwinConfigurations.Joseps-MBP.system
  • ./result/sw/bin/darwin-rebuild switch --flake ./
  • swish review window management

NOTES ALL keystrokes for lsp and config sudo scutil --set HostName lair

ulti-user Nix users on macOS can upgrade Nix by running: sudo -i sh -c 'nix-channel --update && nix-env -iA nixpkgs.nix && launchctl remove org.nixos.nix-daemon && launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist'

Starting a nix linux-builder on macos

nix run 'github:NixOS/nixpkgs/23.05#darwin.builder'

if you have issues with port 22 already being allocated you can disable remote login in your machine with the following command:

sudo systemsetup -setremotelogin off

If you have started already the builder vm and you want to stop it just run pkill qemu.

Varmilo keyboard

  • FN + a for about 3 seconds until capslock flashes and keyboard will swap to mac mode.
  • FN + w for about 3 seconds until capslock flashes and keyboard will swap to Windows mode.
  • If capslock does not flash after pressing any of the previous combinations mentioned above. Keyboard should be already in mentioned mode.
  • FN + ESC for about 3 seconds until capslock flashes and keyboard will be reset to defaults.
  • https://en.varmilo.com/keyboardproscenium/question
  • Hold Fn down and press ESC about 4 seconds, if Capslocked backlight can flash 3 times, it means reset succeed. If FN and left WIN swapped,hold left WIN down, and press ESC about 4 seconds, capslocked backlight will flash 3 times.