Add pedro user and use mycellium instead of zerotier

This commit is contained in:
Pedro Rey Anca 2025-08-12 16:10:51 +02:00
parent cf407d17f5
commit 46dd5c41f7
Signed by: peprolinbot
GPG key ID: 053EA6E00116533A

View file

@ -1,5 +1,4 @@
{ {
# Ensure this is unique among all clans you want to use.
meta.name = "frues-clan"; meta.name = "frues-clan";
inventory.machines = { inventory.machines = {
@ -9,42 +8,37 @@
# Docs: See https://docs.clan.lol/reference/clanServices # Docs: See https://docs.clan.lol/reference/clanServices
inventory.instances = { inventory.instances = {
# Docs: https://docs.clan.lol/reference/clanServices/admin/
# Admin service for managing machines
# This service adds a root password and SSH access.
admin = { admin = {
roles.default.tags.all = { }; roles.default.tags.all = {};
roles.default.settings.allowedKeys = { roles.default.settings.allowedKeys = {
# Insert the public key that you want to use for SSH access. "pedro" = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJji4h4bgzgmp7YoRX/8ePN0TcCYRfI2wlrEeZkBQ/y2 personal@peprolinbot.com";
# All keys will have ssh access to all machines ("tags.all" means 'all machines').
# Alternatively set 'users.users.root.openssh.authorizedKeys.keys' in each machine
"admin-machine-1" = "__YOUR_PUBLIC_KEY__";
}; };
}; };
# Docs: https://docs.clan.lol/reference/clanServices/zerotier/ pedro-user = {
# The lines below will define a zerotier network and add all machines as 'peer' to it. module.name = "users";
# !!! Manual steps required:
# - Define a controller machine for the zerotier network. roles.default.tags.all = {};
# - Deploy the controller machine first to initilize the network.
zerotier = { roles.default.settings = {
# Replace with the name (string) of your machine that you will use as zerotier-controller user = "pedro";
# See: https://docs.zerotier.com/controller/ groups = [
# Deploy this machine first to create the network secrets "wheel"
roles.controller.machines."__YOUR_CONTROLLER__" = { }; "networkmanager"
# Peers of the network "video"
# tags.all means 'all machines' will joined "input"
roles.peer.tags.all = { }; "libvirtd"
}; "adbusers"
"dialout"
];
}; };
# Additional NixOS configuration can be added here. roles.default.extraModules = [./users/pedro/home.nix];
# machines/jon/configuration.nix will be automatically imported. };
# See: https://docs.clan.lol/guides/more-machines/#automatic-registration
machines = { # Docs: https://docs.clan.lol/reference/clanServices/mycelium/
# jon = { config, ... }: { mycelium = {
# environment.systemPackages = [ pkgs.asciinema ]; roles.peer.tags.all = {};
# }; };
}; };
} }