- Install NixOS
- Use albi as username
- Select No desktop
- Log in as albi and run
sh <(curl -L alb1.hu/init)
- BIOS instead of UEFI:
# Use grub instead of systemd-boot:
# Disabling systemd-boot enables GRUB
boot.loader.systemd-boot.enable = false;
boot.loader.grub.useOSProber = true; # if dual booting
boot.loader.grub.device = "/dev/sda"; # if needed
boot.loader.efi.canTouchEfiVariables = false;
Some scripts you might find useful while working with Linux.
All of them are runnable using the below commands,
without having to install python or any python packages,
if you have Nix (nix-shell
) installed.
The individual scripts contain more information on the specifications used and how they are implemented.
./scripts/print-env.py
- Pretty-prints the current environment variables. Sorts, colors and splits array variables onto new lines.
./scripts/list-desktop-files.py
- Lists
.desktop
files. These are used to populate app launchers and when opening URLs.
- Lists
./scripts/list-mimeapps-lists.py
- Lists
mimeapps.list
files. These are used to set which.desktop
file is used when opening a URL.
- Lists
./scripts/list-minecraft-saves.py
- Lists Minecraft saves by searching for
level.dat
files. You will most likely have to update the code for your specific use case.
- Lists Minecraft saves by searching for
./scripts/list-non-empty-dirs-from-env-var.py XDG_DATA_DIRS
- Given the name of an environment variable (
XDG_DATA_DIRS
in the example), lists all non-empty directories referenced by it.
- Given the name of an environment variable (
./scripts/mkmedia.sh
- Initializes a
/media
directory for Linux ISOs, using my preferred directory layout.
- Initializes a
ctrl+shift+space vi mode
ctrl+shift+f search forward
ctrl+shift+b search backward
d create dir
% create file
D delete file
pv explorer
pf search all
ctrl+p search git
ps grep
f format
y ctrl+c
n replace all ocurrences of current word
x chmod x
a harpoon add
ctrl+e harpoon toggle
ctrl+{htns} harpoon open
:sort
gx open url
gf open file
gv select last selection
K
: Displays hover information about the symbol under the cursorgd
: Jumps to the definition of the symbol under the cursorgD
: Jumps to the declaration of the symbol under the cursorgi
: Lists all the implementations for the symbol under the cursorgo
: Jumps to the definition of the type of the symbol under the cursorgr
: Lists all the references to the symbol under the cursorgs
: Displays signature information about the symbol under the cursor<F2>
: Renames all references to the symbol under the cursor<F3>
: Format code in current buffer<F4>
: Show code actionsgl
: Show diagnostics[d
: previous diagnostic]d
: next diagnostic
C-b ? help
C-b c create window
C-b 1 select window 1
C-b w window tree
C-b d deattach
- Before editing the
ags
config runags init
to set up JavaScript types