2025-05-30 16:44:23 +02:00
2025-05-29 09:59:09 +02:00
2025-05-30 16:15:52 +02:00
2025-05-13 14:26:22 +02:00
2024-07-17 19:19:56 +02:00
2025-05-30 12:06:21 +02:00
2025-05-30 15:37:19 +02:00

Dotfiles

My NixOS configuration.

Installation

For disk configuration we use disko, but for secrets management we use sops-nix and the particular setup makes the installation process a bit more involved. It is required that the computer from which the installation is being run has access to the nixos-secrets repository, otherwise you will need to manually add the required ssh keys to the installation image.

# Load into the installer
sudo passwd # Set a root password

# From a machine with network access to the installer
# and access to the nixos-secrets repo
ssh -A root@(installer-ip)

# Set up disks
nix-shell -p disko
disko --mode disko --flake git+https://git.bulthuis.dev/Jan/nixos-config#(system)
exit

# Install NixOS
nixos-install --no-channel-copy --no-root-password --flake git+https://git.bulthuis.dev/Jan/nixos-config#(system)
cd /mnt/persist/system/etc/sops

# Set up host credentials for access to the secrets
touch sops_ed25519_key 
chmod 600 sops_ed25519_key
nano sops_ed25519_key

If nixos-install is being stopped by the OOM-killer, you can try adding -j 1 to limit the amount of jobs that will be executed at the same time to 1. It might require running nixos-install multiple times untill it has managed to download all requirements and slowly start building the rest of the system.

Updating

To update the system configuration, it is a single command:

sudo system-update

Or if this shell script has not been installed for some reason:

sudo nixos-rebuild switch --flake git+https://git.bulthuis.dev/Jan/nixos-config

Sometimes it may be necessary to reboot of course.

Description
My dotfiles :)
Readme 1.2 MiB
Languages
Nix 100%