Warning
- It's recommended to use swapfile/partition while building to avoid OOM killer.
- This repository is ment for personal use so expect little to no documentation.
Note
- This repository does not include the wallpaper used in the screenshot.
- Most GUI apps are configured via account syncing (vscode, brave, etc) and are not configured via home-manager.
- Some
options.nixare unused. Most likely WIP.
to create a swapfile:
sudo dd if=/dev/zero of=/swapfile bs=512M count=4 # change this to the amount required
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfileto build the system:
# 0. clone repo and edit options:
nix-shell -p git vim tmux htop home-manager # tmux and htop for monitoring
git clone github.com/SX-9/nix-conf --depth 1
vim options.nix # configure the system here
# 1. hardware config:
nixos-generate-config --show-hardware-config > hardware/scan.nix
git add . -f # (-f)orce add hardware scan as its in .gitignore
# 2. apply nixos config
sudo nixos-rebuild switch --flake .#thinkpad
# 3. apply home config
home-manager switch --flake .#mainor with nixos-anywhere
vim options.nix # change config to enable disko
vim disko/default.nix # change disk partitioning
nixos-anywhere --generate-hardware-config nixos-generate-config ./hardware/scan.nix --flake .#FLAKE --target-host root@HOST