1 { pkgs, lib, config, ... }:
7 default = head (match "([a-z0-9]*)\n?" (readFile "/etc/hostname"));
8 description = "hostname";
10 hardware = lib.mkOption {
11 type = with lib.types; listOf str;
12 default = filter (x: isString x && x != "") (split "[ \n]+" (readFile
13 "/sys/devices/virtual/dmi/id/product_name"));
14 description = "hardware";
16 desktop = lib.mkEnableOption "desktop profile";
17 server = lib.mkEnableOption "server profile";