12 lines
430 B
Nix
12 lines
430 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
web-app = name: url:
|
|
pkgs.writeScriptBin name ''
|
|
#!${pkgs.stdenv.shell}
|
|
exec ${pkgs.chromium}/bin/chromium --app="${url}"
|
|
'';
|
|
whatsapp = web-app "whatsapp" "https://web.whatsapp.com/";
|
|
threema = web-app "threema" "https://web.threema.ch/";
|
|
netflix = web-app "netflix" "https://netflix.com/";
|
|
in { environment.systemPackages = with pkgs; [ whatsapp netflix threema ]; }
|