add user to image
This commit is contained in:
parent
e41952d2a6
commit
50d197bcab
@ -3,28 +3,38 @@
|
||||
imports = [ ./helios64.nix ];
|
||||
nixpkgs.system = "aarch64-linux";
|
||||
networking = {
|
||||
hostName = "bold";
|
||||
hostId = "c7233a9f";
|
||||
hostName = "helios64";
|
||||
};
|
||||
environment.systemPackages = [ pkgs.sysstat pkgs.cryptsetup ];
|
||||
fileSystems."/" = { device = lib.mkForce "/dev/disk/by-label/bold-emmc"; fsType = lib.mkForce "btrfs"; };
|
||||
programs.mosh.enable = true;
|
||||
boot.zfs.extraPools = ["bold"];
|
||||
boot.supportedFilesystems = ["zfs"];
|
||||
boot.kernel.sysctl."kernel.sysrq" = 1;
|
||||
|
||||
services.openssh.enable = true;
|
||||
networking.firewall.rejectPackets = true;
|
||||
|
||||
# Preserve password changes
|
||||
users.mutableUsers = true;
|
||||
users.users = {
|
||||
root.openssh.authorizedKeys.keyFiles = [ ./linus.pub ];
|
||||
linus = {
|
||||
isNormalUser = true;
|
||||
extraGroups = ["wheel"];
|
||||
openssh.authorizedKeys.keyFiles = [ ./linus.pub ];
|
||||
};
|
||||
};
|
||||
system.stateVersion = "20.09";
|
||||
|
||||
networking.useDHCP = false;
|
||||
|
||||
time.timeZone = "America/New_York";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
services.openssh.enable = true;
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||
networking.firewall.allowedUDPPorts = [ ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
wget kakoune htop git dnsutils
|
||||
];
|
||||
|
||||
users.mutableUsers = false;
|
||||
users.users.googlebot = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMVR/R3ZOsv7TZbICGBCHdjh1NDT8SnswUyINeJOC7QG"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE0dcqL/FhHmv+a1iz3f9LJ48xubO7MZHy35rW9SZOYM"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO0VFnn3+Mh0nWeN92jov81qNE9fpzTAHYBphNoY7HUx" # reg
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHSkKiRUUmnErOKGx81nyge/9KqjkPh8BfDk0D3oP586" # nat
|
||||
];
|
||||
hashedPassword = "$6$TuDO46rILr$gkPUuLKZe3psexhs8WFZMpzgEBGksE.c3Tjh1f8sD0KMC4oV89K2pqAABfl.Lpxu2jVdr5bgvR5cWnZRnji/r/";
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user