My personal config for all systems running NixOS
Find a file
GHOSCHT 845d9a6248
flake.lock: Update
Flake lock file updates:

• Updated input 'arion':
    'github:hercules-ci/arion/90bc85532767c785245f5c1e29ebfecb941cf8c9' (2024-08-05)
  → 'github:hercules-ci/arion/94d092fffd5cfd4f09b8988aca1b857a9d37c4d6' (2024-10-20)
• Updated input 'disko':
    'github:nix-community/disko/a6a3179ddf396dfc28a078e2f169354d0c137125' (2024-10-18)
  → 'github:nix-community/disko/3979285062d6781525cded0f6c4ff92e71376b55' (2024-10-29)
• Updated input 'firefox-addons':
    'gitlab:rycee/nur-expressions/70087c8c6e491dcc0bbff459073b480b1a72ac1c?dir=pkgs/firefox-addons' (2024-10-19)
  → 'gitlab:rycee/nur-expressions/178c79df993216cc9be02630d6cf42868b29f9c2?dir=pkgs/firefox-addons' (2024-11-03)
• Updated input 'flatpaks':
    'github:GermanBread/declarative-flatpak/42cc2c4d97a03889d551cc82c43a0b124fd403f6' (2024-10-13)
  → 'github:GermanBread/declarative-flatpak/09b73f988d4a8376b81d0d22126bc8c2e039d36d' (2024-10-30)
• Updated input 'hardware':
    'github:nixos/nixos-hardware/a8dd1b21995964b115b1e3ec639dd6ce24ab9806' (2024-10-12)
  → 'github:nixos/nixos-hardware/f6e0cd5c47d150c4718199084e5764f968f1b560' (2024-11-02)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/4eb33fe664af7b41a4c446f87d20c9a0a6321fa3' (2024-10-17)
  → 'github:nixos/nixpkgs/080166c15633801df010977d9d7474b4a6c549d7' (2024-10-30)
• Updated input 'nixpkgs-unstable':
    'github:nixos/nixpkgs/5785b6bb5eaae44e627d541023034e1601455827' (2024-10-16)
  → 'github:nixos/nixpkgs/7ffd9ae656aec493492b44d0ddfb28e79a1ea25d' (2024-11-02)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/06535d0e3d0201e6a8080dd32dbfde339b94f01b' (2024-10-08)
  → 'github:Mic92/sops-nix/e9b5eef9b51cdf966c76143e13a9476725b2f760' (2024-11-03)
• Updated input 'sops-nix/nixpkgs':
    'github:NixOS/nixpkgs/e2f08f4d8b3ecb5cf5c9fd9cb2d53bb3c71807da' (2024-10-05)
  → 'github:NixOS/nixpkgs/2d2a9ddbe3f2c00747398f3dc9b05f7f2ebb0f53' (2024-10-30)
• Updated input 'sops-nix/nixpkgs-stable':
    'github:NixOS/nixpkgs/17ae88b569bb15590549ff478bab6494dde4a907' (2024-10-05)
  → 'github:NixOS/nixpkgs/3c2f1c4ca372622cb2f9de8016c9a0b1cbd0f37c' (2024-11-03)
2024-11-03 16:23:39 +01:00
disko Make disko config universal 2024-03-03 12:15:40 +01:00
home Fix 4k jellyfin playback on ludwig 2024-11-02 11:30:15 +01:00
hosts Add segger jlink udev rules 2024-11-03 16:22:02 +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 Fix breakages after upgrading to NixOS 24.05 2024-06-29 10:10:36 +02:00
rsc AwesomeWM: Disable picom compositor 2024-11-03 16:22:45 +01:00
secrets Add OIDC to grafana 2024-08-09 16:03:31 +02: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-11-03 16:23:39 +01:00
flake.nix flake.lock: Update 2024-09-19 18:32:05 +02: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