29 lines
1.4 KiB
Nix
29 lines
1.4 KiB
Nix
{
|
|
imports = [
|
|
# contains your disk format and partitioning configuration.
|
|
../../modules/disko.nix
|
|
# this file is shared among all machines
|
|
../../modules/shared.nix
|
|
# enables GNOME desktop (optional)
|
|
../../modules/gnome.nix
|
|
];
|
|
|
|
# This is your user login name.
|
|
users.users.user.name = "pbsds";
|
|
|
|
# Set this for clan commands use ssh i.e. `clan machines update`
|
|
clan.core.networking.targetHost = "root@129.241.210.143";
|
|
# ssh root@<IP> lsblk --output NAME,ID-LINK,FSTYPE,SIZE,MOUNTPOINT
|
|
disko.devices.disk.main.device = "/dev/disk/by-id/wwn-0x50026b7785c5ed67";
|
|
|
|
users.users.root.openssh.authorizedKeys.keys = [
|
|
''
|
|
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC+qv5MogWwOgctQfQeHxUHF2ij6UA8BR4DLXtZClnw6A1CtOjAtZeAW62C8q9OKaIKDO0hqd2vLBkgEno4smqBDJ2ThwKuXrhiHqJzCkXZqIKKx79mpTo7aRpFgkJ7328Ee+tbqa65coL98WRhLnDg69NDaOfSCmH85/D0kuyTG7mYIMdBtFXB/IU0QC9USCSGcUGSnQAEx8S0vaXL7JP043kfEfeqwsea598qX+LFa2UfGwgLBpiWi4QEfYy6fviz2TFkbRYKQImybidzUHZkljjPupqu8U4dIx/jsJM/vew717xZPCU0ZCho77TIU+bYSitD5mjnzuD7LrAdbFgnhkD2sQlD/hUW40kPVT/Tq3DrpDRKC9tniiTaIQV1Pe0k82XwYrvV/hTl8T1ed6TuzhmUggqowAbJRbaBIa1zI672AFFQM8OBIN59ZlLy3V2RZW4fvQk2/xMRdVBT0W5Upx+9rCbH9LCGWL8gNNA/PRJ0L9Ts6cq8kf4tFhFQQrk= pbsds@bjarte
|
|
''
|
|
];
|
|
|
|
# Zerotier needs one controller to accept new nodes. Once accepted
|
|
# the controller can be offline and routing still works.
|
|
clan.core.networking.zerotier.controller.enable = true;
|
|
}
|