{"id":44923532,"url":"https://github.com/cebarks/dotm","last_synced_at":"2026-02-18T04:01:46.461Z","repository":{"id":338904026,"uuid":"1159640471","full_name":"cebarks/dotm","owner":"cebarks","description":"a stow-like dotfile manager with composable roles, Tera templates, and host-specific overrides.","archived":false,"fork":false,"pushed_at":"2026-02-17T06:57:45.000Z","size":105,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-17T07:58:57.865Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cebarks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-17T01:10:24.000Z","updated_at":"2026-02-17T06:57:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cebarks/dotm","commit_stats":null,"previous_names":["cebarks/dotm"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/cebarks/dotm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebarks%2Fdotm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebarks%2Fdotm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebarks%2Fdotm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebarks%2Fdotm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cebarks","download_url":"https://codeload.github.com/cebarks/dotm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebarks%2Fdotm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29567616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T00:47:08.760Z","status":"online","status_checked_at":"2026-02-18T02:00:09.468Z","response_time":162,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-18T04:01:45.839Z","updated_at":"2026-02-18T04:01:46.450Z","avatar_url":"https://github.com/cebarks.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dotm\n\nA dotfile manager with composable roles, Tera templates, and host-specific overrides.\n\ndotm organizes config files into **packages** (directories mirroring your home directory structure), groups them into **roles** (e.g. \"desktop\", \"dev\", \"gaming\"), and assigns roles to **hosts**. Deployment creates symlinks for plain files and copies for overrides/templates, so your dotfiles repo stays the single source of truth.\n\n## Installation\n\n```bash\ncargo install dotm-rs\n```\n\nOr to install from the latest source:\n\n```bash\ncargo install --git https://github.com/cebarks/dotm\n```\n\n## Quick Start\n\n```bash\n# Initialize a dotm project\nmkdir ~/dotfiles \u0026\u0026 cd ~/dotfiles\n\n# Create the root config\ncat \u003e dotm.toml \u003c\u003c 'EOF'\n[dotm]\ntarget = \"~\"\n\n[packages.shell]\ndescription = \"Shell configuration\"\n\n[packages.editor]\ndescription = \"Editor configuration\"\ndepends = [\"shell\"]\nEOF\n\n# Create a package\ndotm init shell\ncp ~/.bashrc packages/shell/.bashrc\n\n# Create a role\nmkdir roles\necho 'packages = [\"shell\", \"editor\"]' \u003e roles/dev.toml\n\n# Create a host config\nmkdir hosts\ncat \u003e hosts/$(hostname).toml \u003c\u003c EOF\nhostname = \"$(hostname)\"\nroles = [\"dev\"]\nEOF\n\n# Deploy (dry run first)\ndotm deploy --dry-run\ndotm deploy\n```\n\n## Core Concepts\n\n### Packages\n\nA package is a directory under `packages/` that mirrors the target directory structure (usually `~`). Files inside are symlinked to their corresponding locations during deployment.\n\n```\npackages/\n├── shell/\n│   ├── .bashrc\n│   └── .bash_profile\n└── editor/\n    └── .config/\n        └── nvim/\n            └── init.lua\n```\n\nPackages can declare dependencies and suggestions in `dotm.toml`:\n\n```toml\n[packages.editor]\ndescription = \"Editor configuration\"\ndepends = [\"shell\"]       # always pulled in\nsuggests = [\"theme\"]      # informational only\ntarget = \"/\"              # override deploy target (default: ~)\n```\n\n### Roles\n\nA role groups packages together and can define variables for template rendering. Role configs live in `roles/\u003cname\u003e.toml`:\n\n```toml\n# roles/desktop.toml\npackages = [\"shell\", \"editor\", \"kde\"]\n\n[vars]\nshell.prompt = \"fancy\"\ndisplay.resolution = \"3840x2160\"\n```\n\n### Hosts\n\nA host config selects which roles to apply and can override variables. Host configs live in `hosts/\u003chostname\u003e.toml`:\n\n```toml\n# hosts/workstation.toml\nhostname = \"workstation\"\nroles = [\"desktop\", \"gaming\", \"dev\"]\n\n[vars]\ndisplay.resolution = \"3840x2160\"\ngpu.vendor = \"amd\"\n```\n\nVariable precedence: **host vars \u003e role vars** (last role listed wins among roles).\n\n## Directory Structure\n\n```\n~/dotfiles/\n├── dotm.toml                    # root config: package declarations\n├── hosts/\n│   ├── workstation.toml          # workstation\n│   └── dev-server.toml                # server\n├── roles/\n│   ├── desktop.toml\n│   ├── dev.toml\n│   └── gaming.toml\n└── packages/\n    ├── shell/\n    │   ├── .bashrc              # plain file → symlinked\n    │   ├── .bashrc##host.dev-server   # host override → copied\n    │   └── .bashrc##role.dev    # role override → copied\n    ├── editor/\n    │   └── .config/nvim/\n    │       └── init.lua\n    └── kde/\n        └── .config/\n            ├── rc.conf\n            └── rc.conf.tera     # template → rendered \u0026 copied\n```\n\n## File Overrides\n\nOverride files sit next to the base file with a `##` suffix:\n\n| Pattern | Priority | Description |\n|---------|----------|-------------|\n| `file##host.\u003chostname\u003e` | 1 (highest) | Used only on the named host |\n| `file##role.\u003crolename\u003e` | 2 | Used when the role is active |\n| `file.tera` | 3 | Tera template, rendered with vars |\n| `file` | 4 (lowest) | Base file, symlinked |\n\n- Override and template files are **copied**, not symlinked\n- Only the highest-priority matching variant is deployed\n- Non-matching overrides are ignored entirely\n\n## Templates\n\nFiles ending in `.tera` are rendered using [Tera](https://keats.github.io/tera/) (a Jinja2-like template engine). Variables come from role and host configs:\n\n```\n# .config/app.conf.tera\nresolution={{ display.resolution }}\n{% if gpu.vendor == \"amd\" %}\ndriver=amdgpu\n{% else %}\ndriver=modesetting\n{% endif %}\n```\n\nThe `.tera` extension is stripped from the deployed filename.\n\n## CLI Reference\n\n```\ndotm [OPTIONS] \u003cCOMMAND\u003e\n\nOptions:\n  -d, --dir \u003cDIR\u003e   Path to dotfiles directory [default: .]\n  -V, --version     Print version\n\nCommands:\n  deploy     Deploy configs for the current host\n  undeploy   Remove all managed symlinks and copies\n  status     Show deployment status\n  check      Validate configuration\n  init       Initialize a new package\n```\n\n### deploy\n\n```bash\ndotm deploy                    # deploy for current hostname\ndotm deploy --host dev-server        # deploy for a specific host\ndotm deploy --dry-run          # show what would be done\ndotm deploy --force            # overwrite existing unmanaged files\n```\n\n### undeploy\n\n```bash\ndotm undeploy                  # remove all managed files\n```\n\n### status\n\n```bash\ndotm status                    # show managed files and their state\n```\n\n### check\n\n```bash\ndotm check                     # validate configuration\ndotm check --warn-suggestions  # also warn about unresolved suggests\n```\n\n### init\n\n```bash\ndotm init mypackage            # create packages/mypackage/\n```\n\n## Comparison\n\n| Feature | dotm | GNU stow | yadm | dotter |\n|---------|------|----------|------|--------|\n| Symlink-based | Yes | Yes | Yes | Yes |\n| Role/profile system | Yes | No | No | Yes |\n| Host-specific overrides | Yes | No | Alt files | Yes |\n| Template rendering | Tera | No | Jinja2* | Handlebars |\n| Dependency resolution | Yes | No | No | No |\n| Per-package target dirs | Yes | Yes | No | No |\n\n*yadm templates require a separate `yadm alt` step.\n\n## Disclaimer\n\nClaude Code (Opus 4.6) was used for parts of the development of this tool, including some implementation, testing and documentation.\n\n## License\n\nGNU AGPLv3 \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcebarks%2Fdotm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcebarks%2Fdotm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcebarks%2Fdotm/lists"}