Skip to content

PerchunPak/nixos-dotfiles

Repository files navigation

My NixOS dotfiles

If you don't know what is NixOS, please read this. TLDR: I can rebuild my system from scratch with a few commands on a new PC.

Installation

I prefer to install NixOS from minimal installation ISO, though any should work as well.

nix-env -i git neovim
git clone https://github.com/PerchunPak/nixos-dotfiles
cd nixos-dotfiles
# Format disk; also modify device name if needed
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko ./systems/x86-64_linux/perchun-pc/disko.nix --arg device '"/dev/vda"'
sudo nixos-generate-config --root /mnt
sudo rm -rf /mnt/etc/nixos
sudo cp -r ~/nixos-dotfiles /mnt/etc/nixos
sudo mkdir -p /mnt/persist/home /mnt/persist/system
sudo chown 1000:100 /mnt/persist/home
sudo nixos-install --root /mnt --flake /mnt/etc/nixos#perchun-pc
reboot
# Done!

About

My configs for NixOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published