]> Git — Sourcephile - julm/julm-nix.git/blob - homes/options.nix
wireguard: fix UDP hole-punching
[julm/julm-nix.git] / homes / options.nix
1 { pkgs, lib, config, ... }:
2 with builtins;
3 {
4 options.host = {
5 hardware = lib.mkOption {
6 type = with lib.types; listOf str;
7 default = filter (x: isString x && x != "") (split "[ \n]+" (readFile
8 "/sys/devices/virtual/dmi/id/product_name"));
9 description = "hardware";
10 };
11 admin = lib.mkEnableOption "admin profile";
12 base = lib.mkEnableOption "base profile";
13 desktop = lib.mkEnableOption "desktop profile";
14 developer = lib.mkEnableOption "developer profile";
15 media = lib.mkEnableOption "media profile";
16 server = lib.mkEnableOption "server profile";
17 };
18 }