aserowy / dots

dotfiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dotfiles

install nixpkgs

fonts

To get usefull icons in shell and nvim, install your favorite nerd font from https://www.nerdfonts.com/font-downloads. My most beloved font is FiraCode Nerd Font. It is important to install all available font faces given.

Set the installed font as default in your terminal.

on debian

Install the specified dependencies in your distribution.

sudo apt-get update
sudo apt-get install -y curl openssh-server xz-utils

After these packages are installed run the install script with the following command.

For others to use: fork and change targets in flake.nix (user@system) accordingly.

curl -L https://raw.githubusercontent.com/aserowy/dots/main/install.sh | sh

At the end, copy your ssh keys into ~/.ssh and set the permissions to 600 for all keys and pubs.

sudo chmod 600 [file]

on windows for wsl 2

Fix author and principal in <./assets/wsl_init.xml> accordingly. Open the Task Scheduler and import the updated task definition.

install nixos

filesystem

export ROOT_DISK=/dev/sda

# create partitions
sudo parted -a opt --script "${ROOT_DISK}" \
    mklabel gpt \
    mkpart primary fat32 0% 512MiB \
    set 1 esp on \
    name 1 boot \
    mkpart primary 512MiB 100% \
    set 2 lvm on \
    name 2 root

sudo fdisk ${ROOT_DISK} -l

# setup virtuals
sudo vgcreate vg ${ROOT_DISK}2

sudo lvcreate -L 8G -n swap vg
sudo lvcreate -l '100%FREE' -n root vg

sudo lvdisplay

# format partitions
sudo mkfs.fat -F 32 -n boot /dev/disk/by-partlabel/boot
sudo mkfs.ext4 -L root /dev/vg/root
sudo mkswap -L swap /dev/vg/swap

swapon -s

install with flake

# mount for install
sudo mount /dev/disk/by-label/root /mnt
sudo mkdir -p /mnt/boot
sudo mount /dev/disk/by-label/boot /mnt/boot
sudo swapon /dev/vg/swap

# install
nix-shell -p git nixFlakes

sudo git clone --recurse-submodules -j8 https://github.com/aserowy/nixos.git /mnt/etc/dots

# add a new profile with hardware configuration
sudo nixos-install --root /mnt --flake /mnt/etc/dots#<new profile>

reboot

switch channel to unstable for direnv

sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos
sudo nix-channel --update

About

dotfiles


Languages

Language:Nix 77.4%Language:Nushell 13.2%Language:Shell 5.2%Language:Lua 2.3%Language:CSS 1.2%Language:Nu 0.7%