diff --git a/README.md b/README.md new file mode 100644 index 0000000..020ea7b --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# NixOS Tutorial +This is a working repo for learning how to develop in NixOS and configure systems. + +## Material +I'm currently following the tutorials at [Nix.dev](https://nix.dev/tutorials/) \ No newline at end of file diff --git a/callPackage/default.nix b/callPackage/default.nix new file mode 100644 index 0000000..51db9a5 --- /dev/null +++ b/callPackage/default.nix @@ -0,0 +1,7 @@ +let + pkgs = import { }; +in +rec{ + hello = pkgs.callPackage ./hello.nix { audience = "people"; }; + hello-folks = hello.override { audience = "folks"; }; +} \ No newline at end of file diff --git a/callPackage/hello.nix b/callPackage/hello.nix new file mode 100644 index 0000000..2dc0740 --- /dev/null +++ b/callPackage/hello.nix @@ -0,0 +1,7 @@ +{ + writeShellScriptBin, + audience ? "world", +}: +writeShellScriptBin "hello" '' + echo "Hello, ${audience}!" +'' \ No newline at end of file