My personal config for all systems running NixOS
  • Nix 98.2%
  • Python 1.1%
  • Shell 0.7%
Find a file
2026-07-27 15:18:57 +09:00
docs feat: add docs 2025-08-13 16:48:49 +02:00
home chore: upgrade to nixos 26.05 2026-07-27 15:18:32 +09:00
hosts chore: upgrade to nixos 26.05 2026-07-27 15:18:32 +09:00
modules Fix breakages after upgrading to NixOS 24.05 2024-06-29 10:10:36 +02:00
overlays chore: upgrade to nixos 26.05 2026-07-27 15:18:32 +09:00
pkgs chore: switch to nixos-25.11 (#3) 2025-12-23 11:44:31 +01:00
rsc feat: basic japan mode init for wallpaper/timezones 2026-04-08 21:38:10 +09:00
secrets feat: migrate s3 to garage 2025-11-25 11:05:54 +01:00
.gitattributes Add cherryblossom wallpaper 2025-05-03 22:21:43 +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
cool-tricks.md chore: upgrade to nixos 26.05 2026-07-27 15:18:32 +09:00
flake.lock chore: update flake.lock 2026-07-27 15:18:57 +09:00
flake.nix chore: update flake.lock 2026-07-27 15:18:57 +09:00
README.md chore: switch to nixos-25.11 (#3) 2025-12-23 11:44:31 +01:00
vars.nix Add new global variable 2023-12-28 18:24:23 +01:00

Nix-Config

In case Git LFS is not present in the installation medium do the following additional steps before cloning the repo:

nix-shell -p git-lfs
git clone https://git.ghoscht.com/ghoscht/nix-config.git

# following steps are optional, if images in rsc/wallpaper are not present
git lfs install
git lfs pull

# and finally do
git add .

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

ATTENTION: Disable Sunshine (enable=false), otherwise Cuda Compile will lead to memory issues in the install medium!

The specific config from "hosts" can be installed using the following command. Limiting the download speed is optional, but can come in handy.

sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy,format,mount ./disko/btrfs-swap.nix --arg device '"/dev/nvme0n1"'
sudo nixos-install --option download-speed 5000 --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

Misc

git config lfs.https://git.ghoscht.com/ghoscht/nix-config.git/info/lfs.locksverify true