Advertisement
Guest User

Untitled

a guest
Nov 3rd, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- configuration.nix
  2. imports = [ ./hardware-configuration.nix
  3.             ./shell-scripts/hello.nix ];
  4.  
  5. -- /shell-scripts/hello.nix file
  6. { pkgs, ... }:
  7. let
  8.   helloWorld = pkgs.writeScriptBin "helloWorld" ''
  9.     #!${pkgs.stdenv.shell}
  10.     echo Hello World!!
  11.   '';
  12. in {
  13.   environment.systemPackages = [ helloWorld ];
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement