Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- configuration.nix
- imports = [ ./hardware-configuration.nix
- ./shell-scripts/hello.nix ];
- -- /shell-scripts/hello.nix file
- { pkgs, ... }:
- let
- helloWorld = pkgs.writeScriptBin "helloWorld" ''
- #!${pkgs.stdenv.shell}
- echo Hello World!!
- '';
- in {
- environment.systemPackages = [ helloWorld ];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement