My personal config for all systems running NixOS
GHOSCHT
a4ed0a03d1
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/8ea5bcccc03111bdedaeaae9380dfab61e9deb33' (2024-05-30) → 'github:nix-community/disko/0274af4c92531ebfba4a5bd493251a143bc51f3c' (2024-05-31) • Updated input 'firefox-addons': 'gitlab:rycee/nur-expressions/984d03b48bff391f054e1676a97181d79ae309db?dir=pkgs/firefox-addons' (2024-05-30) → 'gitlab:rycee/nur-expressions/29a3b4c8d5f21dcb359a91d88fd94ae4aa3e6a47?dir=pkgs/firefox-addons' (2024-06-02) • Updated input 'hardware': 'github:nixos/nixos-hardware/8251761f93d6f5b91cee45ac09edb6e382641009' (2024-05-29) → 'github:nixos/nixos-hardware/7b49d3967613d9aacac5b340ef158d493906ba79' (2024-06-01) • Updated input 'home-manager': 'github:nix-community/home-manager/2c78a57c544dd19b07442350727ced097e1aa6e6' (2024-05-26) → 'github:nix-community/home-manager/a631666f5ec18271e86a5cde998cba68c33d9ac6' (2024-05-26) • Updated input 'nh': 'github:viperml/nh/127a23c82aa41091e97466092d2547c08c2a9a9d' (2024-05-05) → 'github:viperml/nh/0d76479fcdec0243ea560d1e2fde854337787e3a' (2024-06-01) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/9d29cd266cebf80234c98dd0b87256b6be0af44e' (2024-05-25) → 'github:nixos/nixpkgs/805a384895c696f802a9bf5bf4720f37385df547' (2024-05-31) • Updated input 'nixpkgs-unstable': 'github:nixos/nixpkgs/9ca3f649614213b2aaf5f1e16ec06952fe4c2632' (2024-05-27) → 'github:nixos/nixpkgs/ad57eef4ef0659193044870c731987a6df5cf56b' (2024-05-29) • Updated input 'sops-nix': 'github:Mic92/sops-nix/962797a8d7f15ed7033031731d0bb77244839960' (2024-05-26) → 'github:Mic92/sops-nix/ab2a43b0d21d1d37d4d5726a892f714eaeb4b075' (2024-06-02) • Updated input 'sops-nix/nixpkgs': 'github:NixOS/nixpkgs/c5187508b11177ef4278edf19616f44f21cc8c69' (2024-05-25) → 'github:NixOS/nixpkgs/6132b0f6e344ce2fe34fc051b72fb46e34f668e0' (2024-05-30) • Updated input 'sops-nix/nixpkgs-stable': 'github:NixOS/nixpkgs/59a450646ec8ee0397f5fa54a08573e8240eb91f' (2024-05-25) → 'github:NixOS/nixpkgs/3b1b4895b2c5f9f5544d02132896aeb9ceea77bc' (2024-06-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