From 8daed5faf38a7ff184359905d1498d367c694f9f Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 15 Feb 2024 00:09:45 +0100 Subject: [PATCH] flake.nix: drop nixos 22.11 compat in examples --- flake.nix | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/flake.nix b/flake.nix index 7ba688a9..0385e083 100644 --- a/flake.nix +++ b/flake.nix @@ -203,16 +203,8 @@ networking.firewall.allowedTCPPorts = lib.optional (hypervisor == "qemu") 22; services.openssh = lib.optionalAttrs (hypervisor == "qemu") { enable = true; - } // ( - if builtins.compareVersions lib.version "22.11" <= 0 - then { - # NixOS<23.05 option - permitRootLogin = "yes"; - } else { - # NixOS>=23.05 setting - settings.PermitRootLogin = "yes"; - } - ); + settings.PermitRootLogin = "yes"; + }; }) config ]; @@ -238,16 +230,8 @@ networking.firewall.allowedTCPPorts = [ 22 ]; services.openssh = { enable = true; - } // ( - if builtins.compareVersions lib.version "22.11" <= 0 - then { - # NixOS<23.05 option - permitRootLogin = "yes"; - } else { - # NixOS>=23.05 setting - settings.PermitRootLogin = "yes"; - } - ); + settings.PermitRootLogin = "yes"; + }; }; }; };