بدون توضیح

xd1le 2fe2821458 alacritty: cemant and base16-black-metal-immortal colors 3 سال پیش
alacritty 2fe2821458 alacritty: cemant and base16-black-metal-immortal colors 3 سال پیش
chromium c4081bbdca ⚙ chromium: increase monospace font size on github 7 سال پیش
compton 25f7ab78de ⚙🎁 polybar: colors 7 سال پیش
emacs 2fe2821458 alacritty: cemant and base16-black-metal-immortal colors 3 سال پیش
fontconfig 9d49ecd3bd ⚙ update 5 سال پیش
ghci 0aa402f764 feat(ghci): vi bindings 8 سال پیش
git 2b8b0967b2 git: use 'main' as initial branch 3 سال پیش
guile 8200aa4b8c refactor(bin): remove some scripts to move them to [1] 7 سال پیش
herbstluftwm 786dbe0623 ⚙ terminal: switch to using alacritty 5 سال پیش
interception-tools c6174ee38f nixos: enable interception tools 4 سال پیش
iosevka 0c8339ab75 iosevka: separate iosevka customization from iosevka-custom nix package 3 سال پیش
latexmk 7cad720a41 🎁 latexmk: init latexmkrc 7 سال پیش
mpd 4d2a3e4ded refactor(mpd): new music library location 7 سال پیش
mpv 11909d84bf ⚙ mpv: add quick chapter navigation keybindings 7 سال پیش
nixos fcd313b0dd nixos: use latest janet release 3 سال پیش
pandoc 76e550be28 ♻ nixos/pkgs/xwinwrap + pandoc: add some uncommited files in case they 6 سال پیش
polybar 9d49ecd3bd ⚙ update 5 سال پیش
readline e37f262ec8 refactor(readline): place .inputrc in the right place 7 سال پیش
stow adb1c72d74 feat(stow): add vim swap files to the default global ignore list 9 سال پیش
sxhkd bcfebed62a ⚙ sxhkd: up and down arrow keys are still sometimes useful to use in web 5 سال پیش
tridactyl 85075a8b73 🎈 tridactyl: init 5 سال پیش
vim 857aa4305e update 3 سال پیش
x a045727ae8 ⚙ nixos: switch to dummy startx display manager 5 سال پیش
zathura f00d460de6 🎁 zathura: init zathurarc 7 سال پیش
zsh 857aa4305e update 3 سال پیش
.gitignore 15ed3c536f refactor(nixos): add nixpkgs submodule back again 7 سال پیش
bootstrap 9d49ecd3bd ⚙ update 5 سال پیش
copying a7bdb5314b ⚖ copying: asl2.0 to gplv3+ 5 سال پیش
flake.lock 3b4facd9e4 nixos: update nixos-unstable 3 سال پیش
flake.nix 2cdfc814df update 3 سال پیش
readme.md cb7a8cb480 📝 readme: keep some installation instructions here for now 5 سال پیش

readme.md

Installation

  1. Download latest nixos-unstable image from https://nixos.org/channels/nixos-unstable.

  2. Make a bootable usb. For example:

    # Obviously run `lsblk -f` first to get the correct 'of' path to your usb.
    #
    # NOTE: Not using the correct 'of' path could erase your hard drive so be
    # very careful to use the right one!
    dd if=path/to/image of=/dev/sdb # As root.
    
  3. Boot into live image and log in as root with empty password (if it doesn't automatically log you in).

  4. Get internet access.

    1. ip a will bring up a list of network interfaces.

    2. iwlist <interface> scan | less to see if your wifi is available.

    3. Edit /etc/wpa_supplicant.conf with your network details.

    4. wpa_supplicant -B -i<interface> -c/etc/wpa_supplicant.conf -Dwext.

    5. dhclient <interface> or dhcpcd <interface> if dhclient command doesn't exist.

  5. Partition and format disks.

    • lsblk -f lists your devices.

    • mkfs.ext4 -L nixos <device> to format a device.

    • mkswap -L swap <device> to make a swap partition.

  6. (optional) Activate swap device: swapon <device>.

  7. Mount target filesystems under /mnt:

    mount /dev/disk/by-label/nixos /mnt
    
  8. Generate /etc/nixos configuration files:

    nixos-generate-config --root /mnt
    
  9. Inspect the generated /mnt/etc/configuration.nix to see if any bootloader options were put in there to hint on which bootloader options to use.

  10. If using systemd-boot, mount the boot partition under /mnt/boot and perform step 8 again to get an updated hardware-configuration.nix with the /mnt/boot filesystem entry.

  11. Backup hardware-configuration.nix:

    cp /mnt/etc/nixos/hardware-configuration.nix \
       /mnt/etc/nixos/hardware-configuration.modified.nix
    
  12. Edit hardware-configuration.modified.nix to put the correct bootloader options in it, and also put system.stateVersion from configuration.nix into hardware-configuration.modified.nix.

  13. Copy wpa_supplicant.conf to target filesystem:

    cp /etc/wpa_supplicant.conf /mnt/etc
    

    This allows wpa_supplicant to automatically connect to internet when rebooting into the installed system.

  14. nixos-install -I nixos-config=https://raw.githubusercontent.com/vyp/dots/master/nixos/minimal.nix

  15. Reboot and login with root and set password for user "u":

    passwd u
    
  16. Login as user and retrieve this repository:

    git clone https://vyp@github.com/vyp/dots
    
  17. ./dots/bootstrap.

  18. sudo nixos-rebuild boot and reboot (with sudo shutdown now).