working htz conf

This commit is contained in:
iofq 2024-01-28 04:11:29 -06:00
parent 6ae9ddb73a
commit 2d1a2ce02a
6 changed files with 151 additions and 43 deletions

View file

@ -5,7 +5,6 @@
#./eth.nix
];
environment.systemPackages = with pkgs; [
nfs-utils
vim
];
networking = {
@ -35,11 +34,6 @@
isNormalUser = true;
extraGroups = [ "wheel" ];
home = "/home/e";
packages = with pkgs; [
vim
htop
tree
];
openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHM4Zr0PFN7QdOG2aJ+nuzRCK6caulrpY6bphA1Ppl8Y e@t14''];
};
};

View file

@ -19,7 +19,7 @@
};
fileSystems = {
"/boot" = {
device = "/dev/disk/by-uuid/5679-B4CD";
device = "/dev/disk/by-uuid/8480-5FBB";
fsType = "vfat";
};
"/" = {
@ -52,10 +52,11 @@
matchConfig.Name = "microvm";
networkConfig = {
DHCPServer = true;
IPv6SendRA = true;
};
addresses = [ {
addressConfig.Address = "10.0.0.1/24";
}];
} ];
};
"11-microvm" = {
matchConfig.Name = "vm-*";

View file

@ -12,7 +12,11 @@
};
};
};
services.openssh.enable = true;
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
settings.KbdInteractiveAuthentication = false;
};
networking.firewall = {
enable = true;
allowedTCPPorts = [22];
@ -22,14 +26,14 @@
users.users = {
root = {
openssh.authorizedKeys.keys = [
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEV8yjC8g68hoIi5021A6MR0ggMy++8KjmtXMzyOir2c root@htz''
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIItTJm2iu/5xacOoh4/JAvMtHE62duDlVVXpvVP+uQMR root@htz''
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILU2TUxKyGKoZ68IG4hw23RmxVf72u5K9W0StkgTr0b2 e@t14'' ];
};
e = {
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEV8yjC8g68hoIi5021A6MR0ggMy++8KjmtXMzyOir2c root@htz''
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIItTJm2iu/5xacOoh4/JAvMtHE62duDlVVXpvVP+uQMR root@htz''
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILU2TUxKyGKoZ68IG4hw23RmxVf72u5K9W0StkgTr0b2 e@t14''
];
};