From 194bf6a6727547f5fda41dc665873a1a67713841 Mon Sep 17 00:00:00 2001 From: catvayor Date: Thu, 10 Oct 2024 15:45:53 +0200 Subject: [PATCH] feat(agb02): init --- machines/agb02/_configuration.nix | 17 +++++++++++++++++ machines/agb02/users.nix | 13 +++++++++++++ meta.nix | 6 ++++++ 3 files changed, 36 insertions(+) create mode 100644 machines/agb02/_configuration.nix create mode 100644 machines/agb02/users.nix diff --git a/machines/agb02/_configuration.nix b/machines/agb02/_configuration.nix new file mode 100644 index 0000000..a6f9eca --- /dev/null +++ b/machines/agb02/_configuration.nix @@ -0,0 +1,17 @@ +{ config, pkgs, lib, modulesPath, ... }: + +{ + imports = [ + "${modulesPath}/installer/sd-card/sd-image-aarch64.nix" + ]; + sdImage.compressImage = false; + services = { + getty.autologinUser = "root"; + openssh.enable = true; + }; + + networking.hostName = "agb02"; + networking.networkmanager.enable = true; + + system.stateVersion = "24.11"; +} diff --git a/machines/agb02/users.nix b/machines/agb02/users.nix new file mode 100644 index 0000000..4fb1722 --- /dev/null +++ b/machines/agb02/users.nix @@ -0,0 +1,13 @@ +{ ... }: +{ + users = { + mutableUsers = false; + users = { + root.openssh.authorizedKeys.keyFiles = [ + ../../pubkeys/sinavir.keys + ../../pubkeys/catvayor.keys + ../../pubkeys/soyouzpanda.keys + ]; + }; + }; +} diff --git a/meta.nix b/meta.nix index b20ff80..4401078 100644 --- a/meta.nix +++ b/meta.nix @@ -40,6 +40,12 @@ let ]; }; + agb02 = { + deployment = { + targetHost = null; + }; + arch = "aarch64-linux"; + }; }; }; in