pantheon/modules/nixos/default.nix

33 lines
568 B
Nix

{
config,
lib,
...
}:
let
moduleName = "nixosModules";
cfg = config."${moduleName}";
in
{
imports = [
./boot.nix
./hardware.nix
./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.";
};
};
};
config = lib.mkIf cfg.enable { };
}