/dotfiles

Configuration for WSL and old laptop

Primary LanguageNushell

Configuration stuff

Miscellaneous

  • asdf - For managing different versions of Node and other stuff
  • Install Python sh module to do shell stuff from Python
    • Drop into python repl and use like a shell, but with Python syntax
  • On WSL, apt install gnome-tweaks to make GUI apps look better

Prompt

Uses Oh My Posh for the prompt. The configuration file is in the shared-config repo so that the Windows config can also use it. It's listed in .chezmoiexternal.toml.

Nix

Building NixOS configuration

sudo nixos-rebuild switch

NixOS configuration is in ~/nixfiles/configuration.nix.

Building Home Manager configuration

home-manager switch

Home Manager configuration is in ~/.config/home-manager.

Listing and removing old generations

For NixOS:

nix-env --list-generations
nix-env --delete-generations <generations>

For Home Manager:

home-manager generations # List generations
home-manager remove-generations <generations>

Running the GC:

nix-store --gc

Removing GRUb entries

(from https://discourse.nixos.org/t/how-to-remove-grub-entries-in-grub-cfg/9059)

sudo nix-env --delete-generations old --profile /nix/var/nix/profiles/system # Mark old profiles to be deleted?
sudo /nix/var/nix/profiles/system/bin/switch-to-configuration switch
nix-store --gc # Garbage collect the old profiles

Background images

.background-image is automatically used as the desktop wallpaper by NixOS. screensaver.png is set up to be used as the screensaver (user-specific config).