From e8077fde966e051fc449fffcfa061c7f7edc47b0 Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Mon, 14 Apr 2025 19:01:38 -0700 Subject: migration: finalize --- systems/x86_64-linux/copenhagen/default.nix | 76 +++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 systems/x86_64-linux/copenhagen/default.nix (limited to 'systems/x86_64-linux/copenhagen/default.nix') diff --git a/systems/x86_64-linux/copenhagen/default.nix b/systems/x86_64-linux/copenhagen/default.nix new file mode 100644 index 0000000..e893f43 --- /dev/null +++ b/systems/x86_64-linux/copenhagen/default.nix @@ -0,0 +1,76 @@ +{ lib, pkgs, namespace, ... }: + +with lib; with lib.${namespace}; { + imports = [ + ./hardware.nix + ./network.nix + ]; + + cxl = { + system = { + hostname = "copenhagen"; + id = "a50062ff"; + + impermanence.enable = true; + impermanence.home.enable = true; + }; + + suites.common.enable = true; + + services = { + ssh = { + enable = true; + port = 42069; + }; + + web = { + personal.enable = true; + landing.enable = true; + images.enable = true; + stargazers.enable = true; + }; + + minecraft = { + stargazers = { + enable = true; + port = 25566; + }; + + zenith = { + enable = true; + port = 25569; + }; + }; + }; + }; + + services = { + pcscd.enable = true; + udev.enable = true; + }; + + snowfallorg.users."c" = { + admin = true; + + config = { + cxl.tools.git.key = "DE64538967CA0C68"; + }; + }; + + users.users = { + root.hashedPasswordFile = "/secrets/passwords/root"; + + "c" = { + hashedPasswordFile = "/secrets/passwords/c"; + + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIDO8JxqS7B2n3YlNtlVMZGARi+GG/z7wLiiyl52qSZc caroline@larimo.re" # c-pc + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICGftQ5W8QMIVhgDijreliiMgIqwQvxwTkpMftJdQWu+ caroline@larimo.re" # phoenix + ]; + + extraGroups = [ "minecraft" ]; + }; + }; + + system.stateVersion = "23.11"; +} \ No newline at end of file -- cgit v1.2.3