Personal home lab nixos setup exposed as a flake.
- Local Manual
man configuration.nix
- Remote Manual
- Wiki
- Package Search
- Options Search
- Local Manual
man home-configuration.nix
- Remote
- boot nixos-install iso
- format disk using disko
- Prepare disk layout config
- Copy layout over:
scp ./profile/disks/disko-laptop-1.nix#TBD <target>:/tmp/disko-config.nix
- Find disk name:
sudo fdisk -l
- Place disk in device variable
vim /tmp/disk-config.nix
- Copy layout over:
- Create temp file with the password which will be applied to the disk
vim /tmp/disk.key
- Perform the format
sudo nix run github:nix-community/disko -- --mode disko /tmp/disko-config.nix
- Follow Complete the NixOS installation
- Before running
nixos-install
- Set networking.hostId
- Add the following config to enable ssh ``` services.openssh.enable = true; services.openssh.settings.PermitRootLogin = "yes";
- Prepare disk layout config
- reboot
- Apply machine config from local/donar/build machine
NIX_SSHOPTS="-t" nixos-rebuild boot --flake ~/Projects/nixos-config/master#jesus --target-host root@jesus