mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
Add hetznix01
This commit is contained in:
parent
0d868fc0aa
commit
a62a3d136a
9 changed files with 120 additions and 14 deletions
32
modules/hosts/nixos/hetznix01/default.nix
Normal file
32
modules/hosts/nixos/hetznix01/default.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue