Add hetznix01

This commit is contained in:
Gene Liverman 2024-02-05 00:45:52 -05:00 committed by Gene Liverman
parent 0d868fc0aa
commit a62a3d136a
9 changed files with 120 additions and 14 deletions

View file

@ -0,0 +1,32 @@
{ inputs, config, disko, hostname, pkgs, sops-nix, username, ... }: {
imports = [
./hardware-configuration.nix
./disk-config.nix
];
system.stateVersion = "23.11";
networking = {
# Open ports in the firewall.
firewall.allowedTCPPorts = [ 22 ];
# firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# firewall.enable = false;
hostId = "85d0e6cb"; # head -c4 /dev/urandom | od -A none -t x4
networkmanager.enable = true;
};
programs.mtr.enable = true;
users.users.${username} = {
isNormalUser = true;
description = "Gene Liverman";
extraGroups = [ "networkmanager" "wheel" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBjigwV0KnnaTnFmKjjvnULa5X+hvsy2FAlu+lUUY59f gene@rainbow-planet"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIp42X5DZ713+bgbOO+GXROufUFdxWo7NjJbGQ285x3N bluerock"
];
};
}