1
0
Fork
You've already forked nix
0
my nix configs
  • Shell 59.3%
  • Nix 36.8%
  • JavaScript 3.2%
  • Just 0.7%
Find a file
2026年07月10日 12:47:02 -04:00
cfg remove this yaml 2026年03月29日 16:17:43 -04:00
hosts shellcheck 2026年07月10日 12:47:02 -04:00
scripts gram settings 2026年04月14日 01:36:55 -04:00
secrets update mumbot 2026年04月27日 22:22:10 -04:00
services update naanban port 2026年05月25日 03:48:51 +00:00
flake.lock add superhtml to t14 2026年07月06日 16:56:31 -04:00
flake.nix add naanban 2026年05月25日 02:33:28 +00:00
Justfile gc on h updates 2026年07月05日 16:32:15 -04:00
LICENSE remove md ext 2026年02月23日 15:08:33 -05:00
README.md secrets 2026年02月08日 21:34:28 +00:00
TODO.md add todos 2026年02月22日 13:05:56 -05:00
vars.nix linkding cron 2026年02月08日 21:11:50 +00:00

nix / home

install

# I currently prefer Determinate Nix
curl -fsSL https://install.determinate.systems/nix | sh -s -- install
# clone or download repo
git clone https://codeberg.org/kevinfiol/nix ~/nix
cd ~/nix

updates

NixOS hosts

# (on first time bootstrapping)
nix shell nixpkgs#just
# deploy changes
just switch <hostname>

non-NixOS hosts (home-manager)

# (on first time bootstrapping)
nix shell nixpkgs#home-manager nixpkgs#just
# deploy changes
just home-switch <hostname>

secrets

This repository uses agenix for secrets management. secrets/secrets.nix contains user and host public keys.

cd ~/nix/secrets
# create secret
agenix -e <secret-name>.age
# rekey (if secrets.nix is changed, e.g., new host or new key)
agenix -r -i /etc/ssh/ssh_host_ed25519_key

GPG keys need to be imported manually (unfortunately) after a switch.

gpg --import /run/user/$(id -u)/agenix/gpg-me
gpg --import /run/user/$(id -u)/agenix/gpg-me2