My personal config for all systems running NixOS
GHOSCHT
cac01b2a09
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/cb64993826fa7a477490be6ccb38ba1fa1e18fa8' (2024-11-16) → 'github:nix-community/disko/abc8baff333ac9dca930fc4921a26a8fc248e442' (2024-11-22) • Updated input 'firefox-addons': 'gitlab:rycee/nur-expressions/c1ca3a49435407dddef89c07961c5ce40f66ff99?dir=pkgs/firefox-addons' (2024-11-16) → 'gitlab:rycee/nur-expressions/4a8ba00d1be3f3745428ed56efbb32155c548192?dir=pkgs/firefox-addons' (2024-11-22) • Updated input 'flatpaks': 'github:GermanBread/declarative-flatpak/09b73f988d4a8376b81d0d22126bc8c2e039d36d' (2024-10-30) → 'github:GermanBread/declarative-flatpak/fb59bd957efb6580ceeba35d66bd2c6f14306bcf' (2024-11-19) • Added input 'flatpaks/systems': 'github:nix-systems/default-linux/31732fcf5e8fea42e59c2488ad31a0e651500f68' (2023-07-14) • Removed input 'flatpaks/utils' • Removed input 'flatpaks/utils/systems' • Updated input 'hardware': 'github:nixos/nixos-hardware/c2c275fbb2e656948ba6e1f67b8ddd430f158c5f' (2024-11-16) → 'github:nixos/nixos-hardware/672ac2ac86f7dff2f6f3406405bddecf960e0db6' (2024-11-16) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/c21b77913ea840f8bcf9adf4c41cecc2abffd38d' (2024-11-15) → 'github:nixos/nixpkgs/e8c38b73aeb218e27163376a2d617e61a2ad9b59' (2024-11-16) • Updated input 'nixpkgs-unstable': 'github:nixos/nixpkgs/5e4fbfb6b3de1aa2872b76d49fafc942626e2add' (2024-11-15) → 'github:nixos/nixpkgs/23e89b7da85c3640bbc2173fe04f4bd114342367' (2024-11-19) • Updated input 'sops-nix': 'github:Mic92/sops-nix/d2bd7f433b28db6bc7ae03d5eca43564da0af054' (2024-11-16) → 'github:Mic92/sops-nix/53c853fb1a7e4f25f68805ee25c83d5de18dc699' (2024-11-21) • Updated input 'sops-nix/nixpkgs': 'github:NixOS/nixpkgs/2d2a9ddbe3f2c00747398f3dc9b05f7f2ebb0f53' (2024-10-30) → 'github:NixOS/nixpkgs/c69a9bffbecde46b4b939465422ddc59493d3e4d' (2024-11-16) • Removed input 'sops-nix/nixpkgs-stable' |
||
---|---|---|
disko | ||
home | ||
hosts | ||
modules | ||
overlays | ||
pkgs | ||
rsc | ||
secrets | ||
.gitignore | ||
.sops.yaml | ||
flake.lock | ||
flake.nix | ||
README.md | ||
vars.nix |
Nix-Config
Installation
The NixOS installer image comes with password SSH auth disabled. Simply allowing the public Git keys is a nice workaround.
sudo systemctl start sshd
mkdir ~/.ssh; curl https://git.ghoscht.com/ghoscht.keys > ~/.ssh/authorized_keys
The specific config from "hosts" can be installed using the following command. Limiting the download speed is optional, but can come in handy.
sudo nixos-install --option download-speed 4000 --flake .#<CONFIG_NAME_HERE>
RPi Image generation
nix build .#nixosConfigurations.eustachius.config.system.build.sdImage
sudo dd if=./result/sd-image/<IMAGE_NAME>.img of=/dev/<DEVICE_NAME> bs=1M status=progress