summaryrefslogtreecommitdiff
path: root/hosts/knuth.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/knuth.nix')
-rw-r--r--hosts/knuth.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/hosts/knuth.nix b/hosts/knuth.nix
new file mode 100644
index 0000000..9685d51
--- /dev/null
+++ b/hosts/knuth.nix
@@ -0,0 +1,43 @@
+{ ... }:
+
+let
+ host = import ../hosts.nix;
+in
+{
+ imports = [
+ ../modules/dns.nix
+ ../modules/caddy.nix
+ ../modules/gitsrv.nix
+ ../modules/tailscale.nix
+ ../modules/users.nix
+ ];
+ nix.settings.trusted-users = [
+ "root"
+ "grace"
+];
+
+ nix.settings.experimental-features = [
+ "nix-command"
+ "flakes"
+ ];
+
+ boot.loader.grub = {
+ enable = true;
+ device = "/dev/vda";
+ };
+ networking.hostName = host.name;
+
+ services.openssh = {
+ enable = true;
+ openFirewall = true;
+
+ ports = [ 2222 ];
+
+ settings = {
+ PermitRootLogin = "no";
+ PasswordAuthentication = false;
+ KbdInteractiveAuthentication = false;
+ };
+ };
+
+}