diff --git a/README.md b/README.md new file mode 100644 index 0000000..45b1d52 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# Some module for Nixos + +Modules can be imported with `fetchurl` like this: + +``` + imports = + [ + ./hardware-configuration.nix + (builtins.fetchurl { + url = "https://git.mineau.eu/histausse/base-nix-vm/raw/branch/master/base.nix"; + sha256 = "0r7rj0in3f5m171sx0savbynijcj3bfnnm9zi60l1l4v5l6dgv78"; + }) + + ]; +``` + +Where the value of `sha256` can be found using `nix-prefetch-url` like this: + +``` +``` +$ nix-prefetch-url https://git.mineau.eu/histausse/nixos-modules/raw/branch/master/default.nix +path is '/nix/store/jrypv02r1c2i05iw8q0y1h386mjrp6da-default.nix' +0r7rj0in3f5m171sx0savbynijcj3bfnnm9zi60l1l4v5l6dgv78 +``` diff --git a/default.nix b/base.nix similarity index 82% rename from default.nix rename to base.nix index 0ab34a1..4a622c8 100644 --- a/default.nix +++ b/base.nix @@ -6,6 +6,12 @@ in { options.base = { name = mkOption { type = types.str; + example = "server-1"; + description = "Name of the machine, use for hostname"; + }; + domainName = mkOption { + type = types.str; + example = "example.com"; description = "Name of the machine, use for hostname"; }; };