home-manager: nix default host.hardware
authorJulien Moutinho <julm@sourcephile.fr>
Sun, 28 Mar 2021 01:25:46 +0000 (03:25 +0200)
committerJulien Moutinho <julm@sourcephile.fr>
Sun, 28 Mar 2021 01:25:46 +0000 (03:25 +0200)
homes/options.nix

index eae0095ddf0fc6e9fbf5037f3868f065d90d53e8..a3bad6fd7df3571407b96b6de84835ee43150ff1 100644 (file)
@@ -10,7 +10,7 @@ options.host = {
   hardware = lib.mkOption {
     type = with lib.types; listOf str;
     default = filter (x: isString x && x != "") (split "[ \n]+" (readFile
-      "/sys/devices/virtual/dmi/id/product_version"));
+      "/sys/devices/virtual/dmi/id/product_name"));
     description = "hardware";
   };
   desktop = lib.mkEnableOption "desktop profile";