Skip to content

Latest commit

 

History

History
61 lines (49 loc) · 1.45 KB

README.md

File metadata and controls

61 lines (49 loc) · 1.45 KB

Dotbot snap Plugin

Plugin for Dotbot, that adds snap directive, which allows you to install snap packages

Installation

  1. Simply add this repo as a submodule of your dotfiles repository:
git submodule add https://github.com/DrDynamic/dotbot-snap.git
  1. Pass this folder (or directly snap.py file) path with corresponding flag to your Dotbot script:
  • -p /path/to/file/snap.py

or

  • --plugin-dir /pato/to/plugin/folder

Supported task variants

...
- snap: 
    - app 1
    - app 2
    - app 3:
        classic: true
    ...
Parameter Explanation
classic Installs snap in classic mode, with --classic flag. Required for some snaps published using classic confinement, which would otherwise throw an error. (default: false)
channel Installs snap with the specified channel instead of latest/stable. Useful for pinning versions or tracking alpha, beta, or edge releases.

Usage

Example config

- defaults:
    snap:
      classic: false          # default
      channel: latest/stable  # default
...
- snap:
    - bpytop
    - chromium
    - mailspring
    - node:
        classic: true
    - juju:
        channel: 2.9/stable
    ...
...

Execution

"~/.dotfiles/bin/dotbot" -d "~/.dotfiles" -c "~/.dotfiles/packages.yaml" -p "~/.dotfiles/plugins/dotbot-snap/snap.py"