update
This commit is contained in:
parent
dbf3d50d66
commit
b535861ad5
24
README.md
Normal file
24
README.md
Normal file
|
@ -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
|
||||||
|
```
|
|
@ -6,6 +6,12 @@ in {
|
||||||
options.base = {
|
options.base = {
|
||||||
name = mkOption {
|
name = mkOption {
|
||||||
type = types.str;
|
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";
|
description = "Name of the machine, use for hostname";
|
||||||
};
|
};
|
||||||
};
|
};
|
Loading…
Reference in a new issue