mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
32 lines
790 B
Nix
32 lines
790 B
Nix
{ pkgs, modulesPath, ... }:
|
|
|
|
let username = "azurenixosuser";
|
|
in
|
|
{
|
|
imports = [
|
|
"${modulesPath}/virtualisation/azure-common.nix"
|
|
"${modulesPath}/virtualisation/azure-image.nix"
|
|
];
|
|
|
|
users.users."${username}" = {
|
|
isNormalUser = true;
|
|
home = "/home/${username}";
|
|
description = "Azure NixOS Test User";
|
|
openssh.authorizedKeys.keys = [ (builtins.readFile ~/.ssh/id_ed25519.pub) ];
|
|
};
|
|
nix.trustedUsers = [ username ];
|
|
|
|
virtualisation.azureImage.diskSize = 2500;
|
|
|
|
system.stateVersion = "20.03";
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
# test user doesn't have a password
|
|
services.openssh.passwordAuthentication = false;
|
|
security.sudo.wheelNeedsPassword = false;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
git file htop wget curl
|
|
];
|
|
}
|