Skip to content

Instantly share code, notes, and snippets.

@matejc
Created August 2, 2015 03:30
Show Gist options
  • Save matejc/410a9a07bb8d39644405 to your computer and use it in GitHub Desktop.
Save matejc/410a9a07bb8d39644405 to your computer and use it in GitHub Desktop.
{ pkgs, config, lib }:
let
somescript = pkgs.writeScriptBin "somescript.sh" ''
#!${pkgs.stdenv.shell}
some shell commands ...
'';
in {
.
.
.
systemd.services."someservice".preStart = "${somescript}/bin/somescript.sh";
.
.
.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment