Skip to content

Commit

Permalink
Add nix flakes by default; firewall on; use correct port for ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
noonio committed Nov 18, 2024
1 parent 64e9220 commit 6ab48f2
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 39 deletions.
72 changes: 36 additions & 36 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions nix/hydra-explorer-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,20 @@
networking = {
hostName = "hydra-explorer";
firewall = {
allowedTCPPorts = [ 25 80 443 ];
enable = false;
allowedTCPPorts = [ 22 80 443 ];
enable = true;
};
};

nix = {
settings.trusted-users = [ "root" ];
extraOptions = ''
experimental-features = nix-command flakes recursive-nix ca-derivations
log-lines = 300
warn-dirty = false
'';
};

users.users.root = {
initialPassword = ""; # No password
openssh.authorizedKeys.keys = [
Expand All @@ -30,7 +39,6 @@

services.getty.autologinUser = "root";

nix.settings.trusted-users = [ "root" ];

services.cardano-node = {
enable = true;
Expand Down

0 comments on commit 6ab48f2

Please sign in to comment.