https://github.com/tboerger/nixos-config
Configuration for Nix on my NixOS machines
https://github.com/tboerger/nixos-config
home-manager nix nixos nixpkgs workstation
Last synced: 3 months ago
JSON representation
Configuration for Nix on my NixOS machines
- Host: GitHub
- URL: https://github.com/tboerger/nixos-config
- Owner: tboerger
- License: apache-2.0
- Created: 2022-02-20T16:39:00.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-04-14T08:05:14.000Z (3 months ago)
- Last Synced: 2025-04-14T09:22:59.894Z (3 months ago)
- Topics: home-manager, nix, nixos, nixpkgs, workstation
- Language: Nix
- Homepage:
- Size: 7.87 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# nixos-config
[](https://github.com/tboerger/nixos-config/actions/workflows/build.yml)
Provisioning for my NixOS systems based on [Nix][nix].
## Prepare
Copy `/etc/ssh/ssh_host_ed25519_key.pub` into [secrets](./secrets/secrets.nix)
and rekey the secrets via [agenix][agenix], you could also just execute
`ssh-keyscan ip_or_fqdn` to fetch the current public keys. After pushing the
rekeyed secrets execute the commands below.## Asgard
### Bootstrap
```console
sudo loadkeys de
sudo nix-shell --packages nixUnstablenix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko --flake github:tboerger/nixos-config#asgard
mkdir -p /mnt/etc/ssh
cp /etc/ssh/ssh_host_* /mnt/etc/ssh/
nixos-install --no-root-password --root /mnt --flake github:tboerger/nixos-config#asgard
```### Updates
```console
nix run github:serokell/deploy-rs github:tboerger/nixos-config#asgard
```## Utgard
### Bootstrap
```console
sudo loadkeys de
sudo nix-shell --packages nixUnstablenix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko --flake github:tboerger/nixos-config#utgard
mkdir -p /mnt/etc/ssh
cp /etc/ssh/ssh_host_* /mnt/etc/ssh/
nixos-install --no-root-password --root /mnt --flake github:tboerger/nixos-config#utgard
```### Updates
```console
nix run github:serokell/deploy-rs github:tboerger/nixos-config#utgard
```## Vanaheim
### Bootstrap
```console
sudo loadkeys de
sudo nix-shell --packages nixUnstablenix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko --flake github:tboerger/nixos-config#vanaheim
mkdir -p /mnt/etc/ssh
cp /etc/ssh/ssh_host_* /mnt/etc/ssh/
nixos-install --no-root-password --root /mnt --flake github:tboerger/nixos-config#vanaheim
```### Updates
```console
nix run github:serokell/deploy-rs github:tboerger/nixos-config#vanaheim
```## Yggdrasil
### Bootstrap
```console
sudo loadkeys de
sudo nix-shell --packages nixUnstablemount /dev/disk/by-label/NIXOS_SD /mnt
mkdir -p /mnt/etc/ssh
cp /etc/ssh/ssh_host_* /mnt/etc/ssh/
nixos-install --no-root-password --root /mnt --flake github:tboerger/nixos-config#yggdrasil
```### Updates
```console
nix run github:serokell/deploy-rs github:tboerger/nixos-config#yggdrasil
```## Security
If you find a security issue please contact [email protected] first.
## Contributing
Fork -> Patch -> Push -> Pull Request
## Authors
- [Thomas Boerger](https://github.com/tboerger)
## License
Apache-2.0
## Copyright
```console
Copyright (c) 2021 Thomas Boerger
```[nix]: https://nixos.org/manual/nix/stable/
[agenix]: https://github.com/ryantm/agenix