{"id":15167099,"url":"https://github.com/drkhsh/salt-n-pepper","last_synced_at":"2025-09-30T23:30:50.369Z","repository":{"id":166603563,"uuid":"564069970","full_name":"drkhsh/salt-n-pepper","owner":"drkhsh","description":"My Qubes OS SaltStack configuration for automated template deployments.","archived":true,"fork":false,"pushed_at":"2023-08-08T10:48:11.000Z","size":946,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-20T12:39:21.377Z","etag":null,"topics":["qubes","qubes-os","salt","saltstack"],"latest_commit_sha":null,"homepage":"https://git.drkhsh.at/salt-n-pepper","language":"SaltStack","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drkhsh.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}},"created_at":"2022-11-09T23:31:34.000Z","updated_at":"2024-12-30T16:55:12.000Z","dependencies_parsed_at":"2024-09-02T17:40:58.156Z","dependency_job_id":null,"html_url":"https://github.com/drkhsh/salt-n-pepper","commit_stats":null,"previous_names":["drkhsh/salt-n-pepper"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/drkhsh/salt-n-pepper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drkhsh%2Fsalt-n-pepper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drkhsh%2Fsalt-n-pepper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drkhsh%2Fsalt-n-pepper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drkhsh%2Fsalt-n-pepper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drkhsh","download_url":"https://codeload.github.com/drkhsh/salt-n-pepper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drkhsh%2Fsalt-n-pepper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277771991,"owners_count":25874485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-30T02:00:09.208Z","response_time":75,"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":["qubes","qubes-os","salt","saltstack"],"created_at":"2024-09-27T05:24:37.773Z","updated_at":"2025-09-30T23:30:50.094Z","avatar_url":"https://github.com/drkhsh.png","language":"SaltStack","funding_links":[],"categories":[],"sub_categories":[],"readme":"```\n        █\n        █   █     █\n███ ███ █  ███   █ █   ███ ███ ███ ███ ███ ███\n█     █ █   █     █    █ █ ███ █ █ █ █ ███ █\n  █ ███ █   █    █ █   █ █ █   █ █ █ █ █   █\n███ ███ ██  ██    ██   ███ ███ ███ ███ ███ █\n                       █       █   █\n                       █       █   █\n```\n\n# Salt \u0026 Pepper\n\nMy Qubes SaltStack configuration for automated template deployments.\nThis repository mostly exists for personal reference and sharing between\nmachines, however **feel free to steal some salt**.\n\nContains *a lot* of templates, specifically configured for my usecases,\nused on two Qubes OS machines for personal and work use. Work-related\ntemplates are stripped out (NDA blabla).\n\n**Beware that some stuff may be very hacky, works on my machine(s)**.\n\n## Install\n\nFirst, enable user-directories for Salt on Qubes OS (to separate from\npre-installed formulas):\n\n```\nqubesctl top.enable qubes.user-dirs\nqubesctl state.apply\n```\n\nClone repository contents in a regular qube, then copy it to `dom0`, by\nusing [`git bundle`](https://git-scm.com/docs/git-bundle).\n\n***WARNING: You are going to copy files from a qube directly into `dom0`! [This\nis considered\nunsafe](https://www.qubes-os.org/doc/copy-from-dom0/#copying-to-dom0) and can\ncompromise the security of your whole Qubes system. You have been warned.***\n\n```\nqvm-run --pass-io \u003ctarget-qube\u003e 'cd /path/to/salt-repo/ \u0026\u0026 git bundle create -\n--all' \u003e /tmp/salt.bundle\n```\n\nFinally, clone the bundle into the salt user dir (`/srv/user_salt/`):\n\n```\ncd /srv/user_salt/\ngit clone /tmp/salt.bundle .\n```\n\nGit's `origin` is now set to the bundle file, it can be deleted for now.\n\n### Binaries / Dotfiles\n\n- Place static `st` binary in `/srv/user_salt/bin/`\n- Clone dotfiles repository in `/srv/user_salt/dotfiles/`\n\n(both are ignored by git)\n\n## Deploy\n\nUse `qubesctl` to enable and deploy states.\n\n```\nqubesctl top.enable template-example\nqubesctl --targets template-example state.highstate\n```\n\nTo apply all changed states, use:\n\n`qubesctl --all state.highstate`\n\n## Update\n\n### To dom0\n\nSince the `origin` in the cloned repository in `dom0` is set to the bundle file,\nit's enough to get the newest bundle and `git pull` from it:\n\n```\ncd /srv/user_salt/\nqvm-run --pass-io \u003ctarget-qube\u003e 'cd /path/to/salt-repo/ \u0026\u0026 git bundle create -\n--all' \u003e /tmp/salt.bundle\ngit pull # use --rebase if necessary\n```\n\n### From dom0\n\nCommit the changes in dom0, and generate a patch bundle per commit:\n\n```\ngit bundle create /tmp/salt.bundle --all -1 HEAD # or \u003csha\u003e\n```\n\nUse `qvm-copy-to-vm` to get the bundle back to the target qube:\n\n```\nqvm-move-to-vm \u003ctarget-qube\u003e /tmp/salt.bundle\n```\n\nThen, in the relevant qube, check and apply the patch, and push to the upstream\nrepo:\n\n```\ncd /path/to/salt-repo\ngit pull ~/QuebesIncoming/dom0/salt.bundle # use --rebase if necessary\n```\n\n## Pillars\n\n*theme.sls*:\n\n```\ntheme:\n  gtk: Dracula\n  icons: Dracula\n```\n\n*shell.sls*:\n\n```\nshell: mksh\n```\n\nInclude in top-file accordingly:\n\n```\nuser:\n  '*':\n    - shell\n    - theme\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrkhsh%2Fsalt-n-pepper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrkhsh%2Fsalt-n-pepper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrkhsh%2Fsalt-n-pepper/lists"}