Skip to content

jocelynthode/nixos-config

Repository files navigation

NixOS Config

Install

  1. Boot on the ISO
  2. Get the IP of the server and make sure ssh via root works
  3. Run bootstrap with the correct parameter
./bootstrap.sh --host <host> --ip <ip>
  1. Commit the sops changes
  2. Your vm should be reachable normally now

Rebuild

To rebuild after changes have made it to the repo use:

sudo nixos-rebuild switch --flake github:jocelynthode/nixos-config

Secrets

Add new secrets

nix develop
# Then create file
sops hosts/common/secrets.yaml

Update secrest for new key

# Add result to .sops.yaml
ssh-to-age -i /persist/etc/ssh/ssh_host_ed25519_key.pub

sops updatekeys secrets/**/*.yaml

Build ISO

To Build the custom iso run the following commands:

nix build .#nixosConfigurations.iso.config.system.build.isoImage
dd if=result/iso/*.iso of=/dev/sdX status=progress
sync

Showcase

fakebusy

Inspiration

About

My NixOS configuration

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •