l 2 browsers: add simpleScript

This commit is contained in:
lassulus 2015-11-13 00:59:34 +01:00
parent b6491e3b43
commit 3c77b638c7

View File

@ -1,7 +1,15 @@
{ config, lib, pkgs, ... }:
let
inherit (import ../4lib { inherit pkgs lib; }) simpleScript;
simpleScript = name: content:
pkgs.stdenv.mkDerivation {
inherit name;
phases = [ "installPhase" ];
installPhase = ''
mkdir -p $out/bin
ln -s ${pkgs.writeScript name content} $out/bin/${name}
'';
};
mainUser = config.users.extraUsers.mainUser;
createChromiumUser = name: extraGroups: packages: