Skip to content

Instantly share code, notes, and snippets.

@tilpner
Last active April 9, 2019 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tilpner/2e3fada3268f7d65357f154aa4a5da64 to your computer and use it in GitHub Desktop.
Save tilpner/2e3fada3268f7d65357f154aa4a5da64 to your computer and use it in GitHub Desktop.
{ pkgs, ... }: {
users.users.tilpner.packages = with pkgs; [
(wrapWeb "riot" "https://riot.tx0.co")
];
}
{ lib, writeShellScriptBin, chromium }:
name: url: writeShellScriptBin name ''
${chromium}/bin/chromium \
--app=${lib.escapeShellArg url} \
--user-data-dir=$HOME/.local/web-wrapper/${name}
''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment