add deploy-all script
This commit is contained in:
parent
e1ddf66b7d
commit
efa5b68eb0
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = with tree; [
|
imports = with tree; [
|
||||||
|
users.root
|
||||||
users.chaoticryptidz
|
users.chaoticryptidz
|
||||||
|
|
||||||
profiles.tailscale
|
profiles.tailscale
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = with tree; [
|
imports = with tree; [
|
||||||
|
users.root
|
||||||
users.chaoticryptidz
|
users.chaoticryptidz
|
||||||
|
|
||||||
profiles.tailscale
|
profiles.tailscale
|
||||||
profiles.gui
|
profiles.gui
|
||||||
profiles.laptop
|
profiles.laptop
|
||||||
|
@ -15,9 +17,11 @@
|
||||||
|
|
||||||
# for sci-hub and whenever websites break
|
# for sci-hub and whenever websites break
|
||||||
profiles.tor
|
profiles.tor
|
||||||
# profiles.sshd
|
profiles.sshd
|
||||||
];
|
];
|
||||||
|
|
||||||
|
networking.firewall.enable = true;
|
||||||
|
|
||||||
home-manager.users.root = { imports = with tree; [ home.base ]; };
|
home-manager.users.root = { imports = with tree; [ home.base ]; };
|
||||||
home-manager.users.chaoticryptidz = {
|
home-manager.users.chaoticryptidz = {
|
||||||
imports = with tree; [
|
imports = with tree; [
|
||||||
|
|
|
@ -30,7 +30,7 @@ in {
|
||||||
nixosConfigurations = import ./hosts ({ inherit tree; } // inputs);
|
nixosConfigurations = import ./hosts ({ inherit tree; } // inputs);
|
||||||
|
|
||||||
deploy.nodes.lappy = {
|
deploy.nodes.lappy = {
|
||||||
hostname = "localhost";
|
hostname = "100.115.10.34";
|
||||||
profiles.system = {
|
profiles.system = {
|
||||||
user = "root";
|
user = "root";
|
||||||
path = deploy-rs.lib.x86_64-linux.activate.nixos
|
path = deploy-rs.lib.x86_64-linux.activate.nixos
|
||||||
|
@ -38,7 +38,7 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
deploy.nodes.hetzner-vm = {
|
deploy.nodes.hetzner-vm = {
|
||||||
hostname = "65.21.182.73";
|
hostname = "100.116.159.25";
|
||||||
username = "root";
|
username = "root";
|
||||||
profiles.system = {
|
profiles.system = {
|
||||||
user = "root";
|
user = "root";
|
||||||
|
|
|
@ -1 +1,4 @@
|
||||||
{ ... }: { services.tailscale.enable = true; }
|
{ ... }: {
|
||||||
|
services.tailscale.enable = true;
|
||||||
|
networking.firewall.trustedInterfaces = [ "tailscale0" ];
|
||||||
|
}
|
||||||
|
|
10
scripts/deploy-all.sh
Normal file → Executable file
10
scripts/deploy-all.sh
Normal file → Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
|
REPO_ROOT="${SCRIPT_DIR}/.."
|
||||||
|
cd $REPO_ROOT
|
||||||
|
|
||||||
|
git add .
|
||||||
|
|
||||||
|
deploy ".#lappy"
|
||||||
|
deploy ".#hetzner-vm"
|
7
users/root.nix
Normal file
7
users/root.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ config, ... }: {
|
||||||
|
users.users.root = {
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL4L1eBZzYXZNGBucTn/eOFp48el9JPiYt9iXQDpBSg/ chaoticryptidz@owo.monster"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue