diff --git a/nixos/maintainers/scripts/azure-new/examples/basic/system.nix b/nixos/maintainers/scripts/azure-new/examples/basic/system.nix index 9d70bd7..f43d8aa 100644 --- a/nixos/maintainers/scripts/azure-new/examples/basic/system.nix +++ b/nixos/maintainers/scripts/azure-new/examples/basic/system.nix @@ -21,8 +21,8 @@ in # description = "Azure NixOS Test User"; # openssh.authorizedKeys.keys = [ (builtins.readFile ~/.ssh/id_ed25519.pub) ]; }; - # nix.trustedUsers = [ username ]; - nix.trustedUsers = [ "@wheel" ]; + # nix.settings.trusted-users = [ username ]; + nix.settings.trusted-users = [ "@wheel" ]; virtualisation.azureImage.diskSize = 2500; @@ -30,7 +30,7 @@ in boot.kernelPackages = pkgs.linuxPackages_latest; # test user doesn't have a password - services.openssh.passwordAuthentication = false; + services.openssh.settings.PasswordAuthentication = false; security.sudo.wheelNeedsPassword = false; environment.systemPackages = with pkgs; [ diff --git a/nixos/maintainers/scripts/azure-new/tr2-image/system.nix b/nixos/maintainers/scripts/azure-new/tr2-image/system.nix index d33cc18..5a579a4 100644 --- a/nixos/maintainers/scripts/azure-new/tr2-image/system.nix +++ b/nixos/maintainers/scripts/azure-new/tr2-image/system.nix @@ -21,8 +21,8 @@ in # description = "Azure NixOS Test User"; # openssh.authorizedKeys.keys = [ (builtins.readFile ~/.ssh/id_ed25519.pub) ]; }; - # nix.trustedUsers = [ username ]; - nix.trustedUsers = [ "@wheel" ]; + # nix.settings.trusted-users = [ username ]; + nix.settings.trusted-users = [ "@wheel" ]; virtualisation.azureImage.diskSize = 2500; @@ -30,7 +30,7 @@ in boot.kernelPackages = pkgs.linuxPackages_latest; # test user doesn't have a password - services.openssh.passwordAuthentication = false; + services.openssh.settings.PasswordAuthentication = false; security.sudo.wheelNeedsPassword = false; environment.systemPackages = with pkgs; [