{ lib, config, ... }: let inherit (lib) types mkOption; cfg = config.ooknet.host; in { options.ooknet.host = { name = mkOption { type = types.str; default = "ooksgeneric"; description = "Name of host machine"; }; }; config = { networking.hostName = cfg.name; environment.sessionVariables.HN = cfg.name; }; }