[MIRRORED] My personal nixos configuration https://gitlab.org/papanito/nixos-configuration/
  • Nix 98.8%
  • Shell 1.2%
Find a file
2026-04-14 22:38:41 +02:00
common clawfinger: Fix address for calico in dnsmasq 2026-04-14 22:38:41 +02:00
hosts clawfinger: Fix address for calico in dnsmasq 2026-04-14 22:38:41 +02:00
infra hcloud: Add config 2026-01-19 20:32:21 +01:00
modules common: Move common packages to a dedicate packages.nix 2026-04-10 12:17:58 +02:00
profiles common: Move common packages to a dedicate packages.nix 2026-04-10 12:17:58 +02:00
scripts
secrets
shells chore: Add pre-commit-config, formatting fixes 2026-03-28 15:18:59 +01:00
.commitlintrc.js chore: Add pre-commit-config, formatting fixes 2026-03-28 15:18:59 +01:00
.gitattributes
.gitignore devshell: add shellHook 2026-01-19 20:32:21 +01:00
.gitleaks-report.json
.pre-commit-config.yaml chore: Add pre-commit-config, formatting fixes 2026-03-28 15:18:59 +01:00
.sops.yaml
flake.lock clawfinger: Switch to latest kernel, removid evdi 2026-04-08 10:31:54 +02:00
flake.nix chore: Add pre-commit-config, formatting fixes 2026-03-28 15:18:59 +01:00
README.md chore: Add pre-commit-config, formatting fixes 2026-03-28 15:18:59 +01:00

My NIXOS Configuration

Setup all my devices using nixos (WIP)

General Setup

I use nix-sops

nix-shell -p sops --run "sops secrets/secrets.yaml"
nix-shell -p spos --run 'sops updatekeys secrets/secrets.yaml'

Setup remote system

  1. Boot system in live mode

  2. Use nixos-anywhere

    nix run github:nix-community/nixos-anywhere -- \
     --flake ".#FLAKE" \
    <[email protected]>
    
  3. Install/Update system using colmena

    colmena apply --on lenovo,envy
    
  4. Add host key to .spps.yaml

  5. Update secrets

sops updatekeys profiles/servers/secrets.yaml
sops updatekeys secrets/secrets.yaml
...

Alternatively you can also run:

sudo -E nixos-rebuild switch --flake '.#envy' \
  --upgrade --target-host \
  [email protected] --sudo

If there is a problem with ssh, you can specify the key to use:

NIX_SSHOPTS="-i /home/papanito/.ssh/[email protected]"

Raspberry PI

Follows https://github.com/nvmd/nixos-raspberrypi?tab=readme-ov-file

  1. Build image
nix build '.#nixosConfigurations.rpi4-demo.config.system.build.sdImage'
  1. Unzstd image
unzstd result/sd-image/nixos-sd-image-rpi4-uboot.img.zst -o nixos-sd-image-rpi4-uboot.img
  1. Burn it to sdcard
sudo dd if=nixos-sd-image-rpi4-uboot.img of=/dev/sda bs=4M status=progress