Canonically between github:andreijiroh-dev/dotfiles
and mau.dev/andreijiroh-dev/dotfiles
but also in the works for sourcehut mirror.
nixpkgs
- current branchBasically 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
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,
The "." (dot) files where the configuration for your shell, editors, apps, and other system tools live.
Github has an unofficial guide to dotfiles dotfiles.github.io where you can see what other people are using.
I’m just in the midst of rebooting my dotfiles and switching to [[chezmoi]] as the tool for managing them.
[2018-06-20]
configs which are not symlinking – have a script which checks them against reference every few hours and complains if config doesn’t match the reference? [2019-06-01]
motivation for core.worktree [[git]] [[setup]] [[dotfiles]][2020-07-12]
Manage your dotfiles with Git - openSUSE News [[git]][2020-05-26]
Dotfiles - Joe Yates’ Blog [[git]] [[dotfiles]]TODO check occasionally?
apparently a parallel hierarchy with symlinks?
would be nice to specify, which directories should be created and which should just be symlinked. Otherwise stuff might end up in symlinked folders
you can write a configuration, and it will symlinka all automatically
apparently can source from gh repos, so you could just ‘follow’ someones’ dotfiles (not very portable though)
looks like a parallel hierarchy of dotfiles mimicing /home? could be convenient to manage with symlinks…
wonder if .homesick directory is configurable
ok, so if i create home dir and add relative symlinks to it, it sort of works fine.
add a script to check symlink integrity?
still unclear what should i do with patch files. maybe have a manual dir with symlinks as well?
homesick track? although it’s a bit weird if configuration comes from different files, but i guess it’s quite rare
ugh.. homedirsubdir is a bit weird.. could make it support relative symlinks within repo
ugh.. homesick seems to rewrite relative symlinks to absolute… wtf???
apparently just backs up and symlinks configs for some applications
hmm, so it supports doublecmd. wonder how they handle their configs..
nope, just copies. nothing interesting
[2021-05-04]
doesn’t support mcweird stuff, messes with git and uses mr tool to manipulate on multiple repos at the same time
take another look at it?
mm – ok, so apparently it’s just like single repo view but routing to different subrepos
e.g. vcsh init vim; vcsh vim commit .vimrc
yaml configs.. ugh
allows templating thanks to jinja2
erm.. it copies, not symlinks apparently
hmm encryption!
aims to keep all in single repository
too comlicated.
was updated 2 years ago
/repos/configuration
cgit command
cons: not dropbox friendly because of symlinks
maybe sync via syncthing?
keep only symlinks to files unless it absolutely makes sense to symlink directory
why: if it’s a directory locally and a symlink in the repo (e.g. with autostart dir), it won’t merge easily
symlink into from various repos
cgit status to see if anything has changed
cgit add / cgit commit / cgit push
ln -s "$(realpath $BASH_SOURCE)" "$CDIR"
https://jqplay.org/ is also quite convenient
[2018-06-20]
configs which are not symlinking – have a script which checks them against reference every few hours and complains if config doesn’t match the reference?I guess it would belong to configuration repository
[2019-06-01]
motivation for core.worktree [[git]] [[setup]] [[dotfiles]]can’t use bare repository since they don’t have index
we don’t want to use working directory since it’s just confusing
solution is git config core.worktree $HOME
[2020-07-12]
Manage your dotfiles with Git - openSUSE News [[git]][2020-05-26]
Dotfiles - Joe Yates’ Blog [[git]] [[dotfiles]]very similal to how I manage it – the git based approach is super simple, portable and predictable
Rendering context...