about summary refs log tree commit diff
path: root/nixos/modules/services/web-apps
diff options
context:
space:
mode:
authorRyan Lahfa <masterancpp@gmail.com>2023-09-27 18:50:54 +0200
committerGitHub <noreply@github.com>2023-09-27 18:50:54 +0200
commite909050efda76765c3075436da3f8e07f9b9e70e (patch)
treeaaf418cfca40ec88565fe103579494905105b241 /nixos/modules/services/web-apps
parentbfbbf80015b33600c0cf9641d280febef9f4f006 (diff)
parent88ecbc2b98297ad979fb803885437435d25185d3 (diff)
downloadnixlib-e909050efda76765c3075436da3f8e07f9b9e70e.tar
nixlib-e909050efda76765c3075436da3f8e07f9b9e70e.tar.gz
nixlib-e909050efda76765c3075436da3f8e07f9b9e70e.tar.bz2
nixlib-e909050efda76765c3075436da3f8e07f9b9e70e.tar.lz
nixlib-e909050efda76765c3075436da3f8e07f9b9e70e.tar.xz
nixlib-e909050efda76765c3075436da3f8e07f9b9e70e.tar.zst
nixlib-e909050efda76765c3075436da3f8e07f9b9e70e.zip
Merge pull request #257047 from minijackson/netbox-3.6.2
Diffstat (limited to 'nixos/modules/services/web-apps')
-rw-r--r--nixos/modules/services/web-apps/netbox.nix13
1 files changed, 11 insertions, 2 deletions
diff --git a/nixos/modules/services/web-apps/netbox.nix b/nixos/modules/services/web-apps/netbox.nix
index 6d89ffc2a7b7..8ba1852848e5 100644
--- a/nixos/modules/services/web-apps/netbox.nix
+++ b/nixos/modules/services/web-apps/netbox.nix
@@ -74,9 +74,18 @@ in {
 
     package = lib.mkOption {
       type = lib.types.package;
-      default = if lib.versionAtLeast config.system.stateVersion "23.05" then pkgs.netbox else pkgs.netbox_3_3;
+      default =
+        if lib.versionAtLeast config.system.stateVersion "23.11"
+        then pkgs.netbox_3_6
+        else if lib.versionAtLeast config.system.stateVersion "23.05"
+        then pkgs.netbox_3_5
+        else pkgs.netbox_3_3;
       defaultText = lib.literalExpression ''
-        if versionAtLeast config.system.stateVersion "23.05" then pkgs.netbox else pkgs.netbox_3_3;
+        if lib.versionAtLeast config.system.stateVersion "23.11"
+        then pkgs.netbox_3_6
+        else if lib.versionAtLeast config.system.stateVersion "23.05"
+        then pkgs.netbox_3_5
+        else pkgs.netbox_3_3;
       '';
       description = lib.mdDoc ''
         NetBox package to use.