Declarative dotfiles, packages, and services manager with plain file paths, delegated encryption, proper permission management, and first-class support for dest = "/".
dotm apply
↓
1. Walk files/ directory
2. Render .tmpl templates with Go template engine
3. Write to dest (skip unchanged files)
4. Create symlinks from [symlinks] map
5. Apply permission rules from perms file
6. Run lifecycle scripts
7. Record manifest for orphan tracking
Chezmoi have large codebase to support dozen of tools and that bloats one.
Chezmoi literaly don't have somewhat saneful permission system.
Chezmoi is not intended to use with dest = "/" which I want to be used.
yay -S dotmgitpkg install dotmgit clone https://github.com/fkzys/dotm.git
cd dotm
sudo make installmake buildor directly:
go build -o dotm ./cmd/dotm/By default, apply, status, and diff operate on files only. Add scope words to include packages and services.
dotm init
dotm apply # deploy everything but pkgs/services
dotm apply -n # dry run
dotm apply --all # deploy files + packages + services
dotm diff
dotm diff pkgs
dotm diff services
dotm status # show sync state
dotm status pkgs
dotm status services
dotm status -v # include clean files
dotm status -q # exit 1 if problems exist, no output
dotm help$ dotm apply -n
mkdir /home/user/.config/hypr
write /home/user/.config/hypr/hyprland.conf (2847 bytes)
write /home/user/.zshrc (1204 bytes)
symlink /home/user/.local/bin/editor -> /home/user/.nix-profile/bin/nvim
run scripts/reload.sh
$ dotm status --all --verbose
modified .config/waybar/style.css
missing .config/foot/foot.ini
orphan .config/sway/config
Packages:
OK hyprland (pacman)
MISSING brightnessctl (pacman)
OBSOLETE old-tool (pacman) — still installed
Services:
ENABLED firewalld (systemd)
DISABLED waybar (systemd-user)
Four states:
- clean — dest matches rendered source
- modified — dest differs from source
- missing — in source but not yet in dest
- orphan — was deployed previously, no longer in source, still in dest
dotm never auto-deletes orphans.
dotm apply pkgsreads the config and loads the previous manifest- For each package: runs
check→ if not installed, runsinstall - For each package in manifest but not in config: if still installed, runs
remove - For each service: runs
check→ if not enabled, runsenable - For each service in manifest but not in config: if still enabled, runs
disable - Saves new manifest to state
Use dotm diff pkgs to preview what would be installed/removed, and dotm status pkgs to see current package status.
make test # run all tests
make test-root # run permission testsPermission tests (internal/perms/) need root for chmod/chown verification.
Build: Go 1.24+.
Go module dependencies:
github.com/BurntSushi/toml— TOML parsinggopkg.in/yaml.v3—fromYamltemplate function
External optional tools:
sops— if your templates calloutput "sops" ...diff— used bydotm diffbash— script execution
AGPL-3.0-or-later