/dotfiles

nix flake

Primary LanguageNixMIT LicenseMIT

Dotfiles

Instructions for Future Reference

Nixos

  • nixos-generate-config --root /mnt

  • enable flakes

    • in configuration.nix add
      nix.settings.experimental-features = [ "nix-command" "flakes" ];
    • # nixos-rebuild switch
  • # nixos-rebuild switch --flake github:sachnr/dotfiles#desktop

wsl2

  • enable Virtual Machine Platform and Windows Subsystem for Linux
  • download latest release from here
  • wsl --import NixOS nixos-wsl-installer.tar.gz --version 2
  • wsl -d NixOS
  • in nixos nixos-rebuild switch --flake github:sachnr/dotfiles#wsl