From f3ad42da46a637d96347e44e9db1f55a910c0e7e Mon Sep 17 00:00:00 2001
From: clerie <git@clerie.de>
Date: Sun, 2 Jan 2022 18:40:55 +0100
Subject: [PATCH] Add setup-configuration.nix which is easy to include in new
 host configurations when deployment is not configured yet

---
 setup-configuration.nix | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 setup-configuration.nix

diff --git a/setup-configuration.nix b/setup-configuration.nix
new file mode 100644
index 0000000..b93540a
--- /dev/null
+++ b/setup-configuration.nix
@@ -0,0 +1,39 @@
+# Configuration file to import when setting up new hosts
+# Just download and import in the configuration.nix
+
+{ pkgs, lib, ... }:
+
+{
+  networking.domain = "net.clerie.de";
+
+  time.timeZone = "Europe/Berlin";
+
+  i18n.defaultLocale = "en_US.UTF-8";
+  console = {
+    keyMap = "de-latin1";
+  };
+
+  security.sudo.wheelNeedsPassword = false;
+
+  nix.trustedUsers = [ "@wheel" ];
+
+  users.users.clerie = {
+    isNormalUser = true;
+    extraGroups = [ "wheel" ];
+    openssh.authorizedKeys.keys = [
+      "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCnUBblmmVoMMBftn4EnwnzqR12m9zill51LpO124hHb10K2rqxNoq8tYSc2pMkV/3briZovffpe5SzB+m2MnXbtOBstIEXkrPZQ78vaZ/nLh7+eWg30lCmMPwjf2wIjlTXkcbxbsi7FbPW7FsolGkU/0mqGhqK1Xft/g7SnCXIoGPSSrHMXEv5dPPofCa1Z0Un+98wQTVfOSKek6TnIsfLbG01UFQVkN7afE4dqSmMiWwEm2PK9l+OiBA2/QzDpbtu9wsfTol4c192vFEWR9crB2YZ1JlMbjVWHjYmB7NFsS0A6lUOikss0Y+LUWS2/QuM/kqybSo4rasZMAIazM6D clerie"
+    ];
+  };
+
+  environment.systemPackages = with pkgs; [
+    htop
+    tmux
+  ];
+
+  programs.mtr.enable = true;
+
+  services.openssh.enable = true;
+  services.openssh.passwordAuthentication = false;
+  services.openssh.challengeResponseAuthentication = false;
+  services.openssh.permitRootLogin = lib.mkDefault "no";
+}