refactor(nixosModules): moved networking config to a module
This commit is contained in:
parent
cb164afe12
commit
36b1088d34
6 changed files with 93 additions and 76 deletions
|
@ -14,11 +14,18 @@ in
|
|||
./nix-config.nix
|
||||
./gaming.nix
|
||||
./filesystems.nix
|
||||
./networking.nix
|
||||
];
|
||||
|
||||
options = {
|
||||
"${moduleName}" = {
|
||||
enable = lib.mkEnableOption "Enable ${moduleName}.";
|
||||
hostname = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "";
|
||||
example = "goron";
|
||||
description = "The name this machine will be known by.";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue