My personal config for all systems running NixOS
GHOSCHT
6ae147ddab
Flake lock file updates: • Updated input 'arkenfox': 'github:dwarfmaster/arkenfox-nixos/92c9a287b7b98198c3ba5cdfc90218402e49c4b3' (2024-07-23) → 'github:dwarfmaster/arkenfox-nixos/72addd96455cce49c0c8524c53aecd02cf20adec' (2024-09-02) • Updated input 'arkenfox/pre-commit': 'github:cachix/pre-commit-hooks.nix/cc4d466cb1254af050ff7bdf47f6d404a7c646d1' (2024-06-06) → 'github:cachix/pre-commit-hooks.nix/4509ca64f1084e73bc7a721b20c669a8d4c5ebe6' (2024-08-28) • Updated input 'arkenfox/pre-commit/nixpkgs': 'github:NixOS/nixpkgs/e367f7a1fb93137af22a3908f00b9a35e2d286a7' (2024-03-18) → 'github:NixOS/nixpkgs/9693852a2070b398ee123a329e68f0dab5526681' (2024-06-22) • Updated input 'arkenfox/pre-commit/nixpkgs-stable': 'github:NixOS/nixpkgs/614b4613980a522ba49f0d194531beddbb7220d3' (2024-03-17) → 'github:NixOS/nixpkgs/194846768975b7ad2c4988bdb82572c00222c0d7' (2024-07-07) • Updated input 'disko': 'github:nix-community/disko/511388d837178979de66d14ca4a2ebd5f7991cd3' (2024-08-29) → 'github:nix-community/disko/e55f9a8678adc02024a4877c2a403e3f6daf24fe' (2024-09-03) • Updated input 'firefox-addons': 'gitlab:rycee/nur-expressions/79e336c765b0bfd77a0bb1a8c5efb7eb2c9a6b58?dir=pkgs/firefox-addons' (2024-08-30) → 'gitlab:rycee/nur-expressions/4b1b073837d8ba654680ded26200bbc9aaafeaaa?dir=pkgs/firefox-addons' (2024-09-06) • Updated input 'hardware': 'github:nixos/nixos-hardware/95c3dfe6ef2e96ddc1ccdd7194e3cda02ca9a8ef' (2024-08-28) → 'github:nixos/nixos-hardware/880be1ab837e1e9fe0449dae41ac4d034694d4ce' (2024-09-04) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/ae2fc9e0e42caaf3f068c1bfdc11c71734125e06' (2024-08-28) → 'github:nixos/nixpkgs/6f6c45b5134a8ee2e465164811e451dcb5ad86e3' (2024-09-03) • Updated input 'nixpkgs-unstable': 'github:nixos/nixpkgs/71e91c409d1e654808b2621f28a327acfdad8dc2' (2024-08-28) → 'github:nixos/nixpkgs/ad416d066ca1222956472ab7d0555a6946746a80' (2024-09-04) • Updated input 'sops-nix': 'github:Mic92/sops-nix/be0eec2d27563590194a9206f551a6f73d52fa34' (2024-08-12) → 'github:Mic92/sops-nix/d9d781523a1463965cd1e1333a306e70d9feff07' (2024-09-05) • Updated input 'sops-nix/nixpkgs': 'github:NixOS/nixpkgs/6e14bbce7bea6c4efd7adfa88a40dac750d80100' (2024-07-20) → 'github:NixOS/nixpkgs/b833ff01a0d694b910daca6e2ff4a3f26dee478c' (2024-09-01) |
||
---|---|---|
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