summaryrefslogtreecommitdiff
path: root/server/bootstrap.nix
diff options
context:
space:
mode:
Diffstat (limited to 'server/bootstrap.nix')
-rw-r--r--server/bootstrap.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/server/bootstrap.nix b/server/bootstrap.nix
new file mode 100644
index 0000000..32b65ff
--- /dev/null
+++ b/server/bootstrap.nix
@@ -0,0 +1,33 @@
+{
+ config,
+ modulesPath,
+ lib,
+ pkgs,
+ ...
+}@args:
+{
+ imports = [
+ (modulesPath + "/installer/scan/not-detected.nix")
+ (modulesPath + "/profiles/qemu-guest.nix")
+ ./disk-config.nix
+ ];
+ networking.useDHCP = lib.mkDefault true;
+ networking.hostName = "jakezerrer";
+
+ boot.loader.grub.enable = true;
+
+ services.openssh = {
+ enable = true;
+ };
+
+ networking.firewall = {
+ enable = true;
+ allowedTCPPorts = [ 22 ];
+ };
+
+ users.users.root.openssh.authorizedKeys.keys = [
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINPtvI9cG6YLKUWY3R4vg/ky2wAV0izTAkMgWiOS8Tzr him@jakezerrer.com"
+ ];
+
+ system.stateVersion = "24.05";
+}