@ajhalili2006's dotfiles in a nutshell, without using home-manager for managing dotfiles.
Find a file
Andrei Jiroh Halili 747de2b257
docs: use MPL-2.0 as repo license
Used on the nix2vscode.toml file btw, so let's make this official

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>
2025-09-29 09:05:08 +08:00
.config chore: update configs 2025-09-16 06:34:03 +08:00
.ssh chore: update configs 2025-09-16 06:34:03 +08:00
bin cook things up again (also fix symlink issues with hm in the meanwhile) 2025-04-17 19:03:31 +08:00
.gitignore utilize one-byte gitignore to avoid leeks 2025-05-29 02:16:27 +08:00
.nix-channels chore(global): initial commit for nixpkgs branch 2024-12-29 19:39:14 +08:00
.nix4vscode.toml Update nix files and stuff 2024-12-31 13:24:09 +08:00
.wakatime-project chore(nixos): update configurations and add README 2024-12-29 22:16:59 +08:00
LICENSE docs: use MPL-2.0 as repo license 2025-09-29 09:05:08 +08:00
meta-info.toml update configs and docs 2025-02-09 13:01:55 +08:00
README.md chore(bashrc): get cooked on aliases and ssh-agent-loader 2025-02-28 01:32:21 +08:00

@andreijiroh-dev/dotfiles@nixos - @ajhalili2006's dotfiles under nixos + nixpkgs!

Yup, I'm starting a fresh for my dotfiles for 2025 and beyond, now with nixpkgs and home-manager in mind. Backwards-compatible with non-nixpkgs setups via yadm.

Usage

Plain dotfiles

Make sure Git is installed in your non NixOS/nixpkgs setup for the setup to work.

cd ~
git init
git remote add origin https://mau.dev/andreijiroh-dev/dotfiles
git checkout -f main
ln -s ./.git ./.local/share/yadm/repo.git # so that we can use yadm later

If you prefer to cook up with yadm first:

yadm clone https://github.com/andreijiroh-dev/dotfiles
ln -s ./.local/share/yadm/repo.git ./.git # so that we can normally use git here

Using nix flakes + home-manager

# A quick home-manager switch should do the trick
nix run home-manager/master -- switch --flake github:andreijiroh-dev/nixops-config

# otherwise a quick copy paste configs should fix 'em if you use a different username
# (not different home directory yet!)

Updating authorized_keys with Nix

  1. Update [shared/ssh-keys.nix][ssh-keys] and users.users.<gildedguy|ajhalili2006>.openssh.authorizedKeys.keys
  2. Run nixos-rebuild switch to regenerate /etc/ssh/authorized_keys.d/<gildedguy|ajhalili2006>.
  3. Copy that file back to .ssh/authorized_keys. Commit changes and push.
  4. On the affected machines, just git pull away.

Using 1Password SSH Agent integration

Warning

1Password Desktop app must be installed and enabled Use SSH Agent in Settings -> Developer -> SSH Agent after signing in.

Note that this should work on most desktop apps, although if you're in Nest (and friends with RDP access), connect to there first and authenicate. You may need to adjust security settings in the desktop app to ensure nothing go wrong.

Alternatively, you can export the private keys with password encryption

Directory + File Map

Essientials

License

MPL-2.0