summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-11-13 00:59:34 +0100
committerlassulus <lass@aidsballs.de>2015-11-13 00:59:34 +0100
commit3c77b638c73ce6b57619371cc9636b8e701056d9 (patch)
tree2f1c0f46dfc55f79a81a5066a1ad0996c6fef276 /lass
parentb6491e3b43e6d9bc4d76ce2845645b001b9d23c1 (diff)
l 2 browsers: add simpleScript
Diffstat (limited to 'lass')
-rw-r--r--lass/2configs/browsers.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/lass/2configs/browsers.nix b/lass/2configs/browsers.nix
index 5a1857973..849778a7a 100644
--- a/lass/2configs/browsers.nix
+++ b/lass/2configs/browsers.nix
@@ -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: