My personal config for all systems running NixOS
GHOSCHT
0c0dd6ab30
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/5e40e02978e3bd63c2a6a9fa6fa8ba0e310e747f' (2024-11-08) → 'github:nix-community/disko/cb64993826fa7a477490be6ccb38ba1fa1e18fa8' (2024-11-16) • Updated input 'firefox-addons': 'gitlab:rycee/nur-expressions/674763b3eb6f0bdfa1f987984711bd3f33efc7bf?dir=pkgs/firefox-addons' (2024-11-08) → 'gitlab:rycee/nur-expressions/c1ca3a49435407dddef89c07961c5ce40f66ff99?dir=pkgs/firefox-addons' (2024-11-16) • Updated input 'hardware': 'github:nixos/nixos-hardware/e1cc1f6483393634aee94514186d21a4871e78d7' (2024-11-06) → 'github:nixos/nixos-hardware/c2c275fbb2e656948ba6e1f67b8ddd430f158c5f' (2024-11-16) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/dba414932936fde69f0606b4f1d87c5bc0003ede' (2024-11-06) → 'github:nixos/nixpkgs/c21b77913ea840f8bcf9adf4c41cecc2abffd38d' (2024-11-15) • Updated input 'nixpkgs-unstable': 'github:nixos/nixpkgs/4aa36568d413aca0ea84a1684d2d46f55dbabad7' (2024-11-05) → 'github:nixos/nixpkgs/5e4fbfb6b3de1aa2872b76d49fafc942626e2add' (2024-11-15) • Updated input 'sops-nix': 'github:Mic92/sops-nix/60e1bce1999f126e3b16ef45f89f72f0c3f8d16f' (2024-11-08) → 'github:Mic92/sops-nix/d2bd7f433b28db6bc7ae03d5eca43564da0af054' (2024-11-16) |
||
---|---|---|
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