This commit is contained in:
Histausse 2023-04-10 18:35:08 +02:00
parent dbf3d50d66
commit d7b32c8d7d
2 changed files with 30 additions and 0 deletions

24
README.md Normal file
View 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
```

View file

@ -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";
}; };
}; };