My personal config for all systems running NixOS
Find a file
GHOSCHT 0c8b4ccfa9
Fix sops-nix failure after reboot
/home partition of lvm wasn't mounted and sops-nix couldn't find the key
in that unmounted partition
2024-12-25 22:37:51 +01:00
disko Make disko config universal 2024-03-03 12:15:40 +01:00
home Franz: Use nixvim instead of custom config 2024-12-21 17:14:14 +01:00
hosts Fix sops-nix failure after reboot 2024-12-25 22:37:51 +01:00
modules Fix breakages after upgrading to NixOS 24.05 2024-06-29 10:10:36 +02:00
overlays Switch nh from flake to nixpkgs 2024-08-21 11:10:25 +02:00
pkgs Nixos: Fix cargoHash deprecatin warning 2024-12-13 20:38:47 +01:00
rsc Subtle cleanup 2024-12-13 20:37:56 +01:00
secrets Add forgejo runner 2024-12-18 22:47:19 +01:00
.gitignore Initial desktop config 2023-10-13 20:52:26 +02:00
.sops.yaml Add basic docker config 2024-03-03 20:04:13 +01:00
flake.lock flake.lock: Update 2024-12-21 16:24:21 +01:00
flake.nix Adapt adalbert to 24.11 2024-12-08 17:32:41 +01:00
README.md Add basic raspi build docs 2024-05-31 00:19:21 +02:00
vars.nix Add new global variable 2023-12-28 18:24:23 +01:00

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