1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-22 09:11:57 +01:00
Go to file
2022-02-20 17:46:48 +01:00
.github chore: initial commit 2022-02-20 17:46:48 +01:00
machines chore: initial commit 2022-02-20 17:46:48 +01:00
overlays chore: initial commit 2022-02-20 17:46:48 +01:00
profiles chore: initial commit 2022-02-20 17:46:48 +01:00
scripts chore: initial commit 2022-02-20 17:46:48 +01:00
.editorconfig chore: initial commit 2022-02-20 17:46:48 +01:00
.gitignore chore: initial commit 2022-02-20 17:46:48 +01:00
flake.nix chore: initial commit 2022-02-20 17:46:48 +01:00
LICENSE chore: initial commit 2022-02-20 17:46:48 +01:00
Makefile chore: initial commit 2022-02-20 17:46:48 +01:00
README.md chore: initial commit 2022-02-20 17:46:48 +01:00
shell.nix chore: initial commit 2022-02-20 17:46:48 +01:00

nixos-config

Build

Provisioning for my NixOS systems based on Nix.

Secrets

Generally all secrets are encrypted with agenix, so make sure to copy the SSH keys from the secrets stick with these commands:

mkdir -p $HOME/.ssh
cp /mnt/secrets/ssh/id_* $HOME/.ssh/
chmod u=rw,g=,o= $HOME/.ssh/id_*

Prepare

Midgard

Bootstrap

bash -c "$(curl -fsSL https://raw.githubusercontent.com/tboerger/nixos-config/master/scripts/partitions)" midgard
nixos-install --root /mnt --flake github:tboerger/nixos-config\#midgard

Updates

If the repository had been cloned you could just execute make switch, otherwise there is still this long option to update the deployment:

nixos-rebuild switch \
    --flake github:tboerger/nixos-config\#midgard

Utgard

Bootstrap

bash -c "$(curl -fsSL https://raw.githubusercontent.com/tboerger/nixos-config/master/scripts/partitions)" utgard
nixos-install --root /mnt --flake github:tboerger/nixos-config\#utgard

Updates

If the repository had been cloned you could just execute make switch, otherwise there is still this long option to update the deployment:

nixos-rebuild switch \
    --flake github:tboerger/nixos-config\#utgard

Asgard

Bootstrap

bash -c "$(curl -fsSL https://raw.githubusercontent.com/tboerger/nixos-config/master/scripts/partitions)" asgard
nixos-install --root /mnt --flake github:tboerger/nixos-config\#asgard

Updates

If the repository had been cloned you could just execute make switch, otherwise there is still this long option to update the deployment:

nixos-rebuild switch \
    --flake github:tboerger/nixos-config\#asgard

Security

If you find a security issue please contact thomas@webhippie.de first.

Contributing

Fork -> Patch -> Push -> Pull Request

Authors

License

Apache-2.0

Copyright (c) 2021 Thomas Boerger <thomas@webhippie.de>