๐ Results from Google โข Bing โข DDG โข Marginalia (embeds) โข Maps โข YouTube โข YouTube Music โข Spotify โข Bluesky โข Fediverse โข X
๐ Wikipedia article Hidden file and hidden directory leading to node [[Hidden file and hidden directory]]
๐ Node [[dotfiles]] โถ subnode @ajhalili2006/dotfiles
๐ src/dotfiles.md contributed by ๐ค @ajhalili2006 ๏ธ๐ โ๏ธ
Dotfiles
Repository
Canonically between github:andreijiroh-dev/dotfiles
and mau.dev/andreijiroh-dev/dotfiles
but also in the works for sourcehut mirror.
Branches
nixpkgs
- current branch
Usage
Setting up a new system
Basically followed ~sircmpwnโs blog on how did he setup his dotfiles repo on a new system.
# cd to $HOME
cd ~
# pro tip: "command -v git" first before running (maybe "nix-shell -p gitFull"
# first if we're in nix environment)
git init
# check the URLs above for hints
git remote add hub https://github.com/andreijiroh-dev/dotfiles
git remote add lab https://mau.dev/andreijiroh-dev/dotfiles
git fetch --all
# force checkout to the branch for that host
git checkout -f nixpkgs # nixpkgs defaults
git checkout -f termux # termux
git submdoule update --init
Since our configurations are managed by home-manager
, we need to run
do the following commands, assuming nix-commands
and flakes
feature flags
are enabled (see userspace nix.conf
for hints and context)
# local copy / submodule
nix run home-manager/master -- switch --flake .config/nixos # flake mode
nix run home-manager/master -- switch # plain flakeless mode
# or just use the flake remotely without cloning it
nix run home-manager/master -- switch --flake github:andreijiroh-dev/nixops-config
Reusing configs in other systems
Think of Nest and Project Segfault for the Nix-based setups.
Instead of having to polluting things a la yadm
, weโll use Git branches as a hack
or workaround (depending on your vocabulary) and some quick edits should do at least,
Related repositories

Rendering context...