summary refs log tree commit diff
path: root/nixos/modules/services/web-apps/peertube.nix
diff options
context:
space:
mode:
authorDaniel Nagy <danielnagy@posteo.de>2022-11-09 22:30:00 +0100
committerDaniel Nagy <danielnagy@posteo.de>2022-11-10 09:30:00 +0100
commit095269c8622e878eaaac117cc6b63dd1a4970a68 (patch)
treea386280c5393e47ec123a7f3dba08612f264fde5 /nixos/modules/services/web-apps/peertube.nix
parentc32d981cdd0835dd847a091c6603630009129f8f (diff)
downloadnixpkgs-095269c8622e878eaaac117cc6b63dd1a4970a68.tar
nixpkgs-095269c8622e878eaaac117cc6b63dd1a4970a68.tar.gz
nixpkgs-095269c8622e878eaaac117cc6b63dd1a4970a68.tar.bz2
nixpkgs-095269c8622e878eaaac117cc6b63dd1a4970a68.tar.lz
nixpkgs-095269c8622e878eaaac117cc6b63dd1a4970a68.tar.xz
nixpkgs-095269c8622e878eaaac117cc6b63dd1a4970a68.tar.zst
nixpkgs-095269c8622e878eaaac117cc6b63dd1a4970a68.zip
treewide: use `types.port` in nixos modules
Diffstat (limited to 'nixos/modules/services/web-apps/peertube.nix')
-rw-r--r--nixos/modules/services/web-apps/peertube.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/web-apps/peertube.nix b/nixos/modules/services/web-apps/peertube.nix
index a42d1a1a932..76ff5782ba8 100644
--- a/nixos/modules/services/web-apps/peertube.nix
+++ b/nixos/modules/services/web-apps/peertube.nix
@@ -96,13 +96,13 @@ in {
     };
 
     listenHttp = lib.mkOption {
-      type = lib.types.int;
+      type = lib.types.port;
       default = 9000;
       description = lib.mdDoc "listen port for HTTP server.";
     };
 
     listenWeb = lib.mkOption {
-      type = lib.types.int;
+      type = lib.types.port;
       default = 9000;
       description = lib.mdDoc "listen port for WEB server.";
     };
@@ -177,7 +177,7 @@ in {
       };
 
       port = lib.mkOption {
-        type = lib.types.int;
+        type = lib.types.port;
         default = 5432;
         description = lib.mdDoc "Database host port.";
       };