Add profile.d/default to the default requirements

This commit is contained in:
Reid 'arrdem' McKenzie 2021-10-10 22:57:53 -06:00
parent 97c0a10e79
commit 7a583ab42a
2 changed files with 6 additions and 1 deletions

View file

@ -31,3 +31,5 @@ Cram reads a config dir with three groups of packages
- `hosts.d/<hostname>` contains one package for each host, and should pull in a list of profiles. - `hosts.d/<hostname>` contains one package for each host, and should pull in a list of profiles.
The intent of this tool is to keep GNU Stow's intuitive model of deploying configs via symlinks, and augment it with a useful pattern for talking about "layers" / "packages" of related configs. The intent of this tool is to keep GNU Stow's intuitive model of deploying configs via symlinks, and augment it with a useful pattern for talking about "layers" / "packages" of related configs.
Cram installs the package `hosts.d/$(hostname)`, and `profiles.d/default` by default.

View file

@ -96,7 +96,10 @@ def main():
hostname = os.uname()[1] hostname = os.uname()[1]
# Compute the closure of packages to install # Compute the closure of packages to install
requirements = [f"hosts.d/{hostname}"] requirements = [
f"hosts.d/{hostname}",
"profiles.d/default",
]
for r in requirements: for r in requirements:
try: try: