l 2 browsers: add simpleScript
This commit is contained in:
parent
b6491e3b43
commit
3c77b638c7
@ -1,7 +1,15 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
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;
|
mainUser = config.users.extraUsers.mainUser;
|
||||||
createChromiumUser = name: extraGroups: packages:
|
createChromiumUser = name: extraGroups: packages:
|
||||||
|
Loading…
Reference in New Issue
Block a user