Compare commits

...

13 Commits

Author SHA1 Message Date
beatzaplenty 019afb5609 add semi colons
Check NixOS configurations / eval-hosts (push) Failing after 6m36s
2026-07-10 08:01:58 +10:00
beatzaplenty 63062cdda5 fix nix syntax
Check NixOS configurations / eval-hosts (push) Failing after 6m50s
2026-07-10 08:00:37 +10:00
beatzaplenty 8f5599a1c6 syntax change
Check NixOS configurations / eval-hosts (push) Failing after 6m55s
2026-07-10 07:56:16 +10:00
beatzaplenty 416b7196c2 updated beszel syntax
Check NixOS configurations / eval-hosts (push) Failing after 6m43s
2026-07-10 07:51:54 +10:00
beatzaplenty 0bdadcc772 added beszel agent
Check NixOS configurations / eval-hosts (push) Failing after 6m56s
2026-07-10 07:40:26 +10:00
beatzaplenty aa08bf60b9 removed tailscale
Check NixOS configurations / eval-hosts (push) Failing after 6m52s
2026-07-08 13:24:43 +10:00
beatzaplenty 99ad7501bb added new public key for server
Check NixOS configurations / eval-hosts (push) Failing after 6m54s
2026-07-08 13:09:28 +10:00
beatzaplenty 6c973e2300 typo
Check NixOS configurations / eval-hosts (push) Failing after 6m58s
2026-07-08 13:00:26 +10:00
beatzaplenty eb2d3e3260 added tailscale exit node module and enabled on server
Check NixOS configurations / eval-hosts (push) Failing after 6m55s
2026-07-08 12:48:52 +10:00
beatzaplenty f9c0f01aba updated /mnt/docker permissions
Check NixOS configurations / eval-hosts (push) Successful in 42m36s
2026-07-07 03:31:19 +10:00
beatzaplenty 83481b5291 updated NFS shares and deleted individual share modules
Check NixOS configurations / eval-hosts (push) Failing after 14m29s
2026-07-07 03:09:56 +10:00
beatzaplenty a553958bb9 remove prune task 2026-07-07 00:28:15 +10:00
beatzaplenty d16b22d2b5 removed --force from docker prune service command 2026-07-07 00:20:10 +10:00
10 changed files with 70 additions and 85 deletions
Generated
+3 -3
View File
@@ -127,11 +127,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1783148766, "lastModified": 1783389287,
"narHash": "sha256-uslt2pqShTIXDdAHRHv2QkYLsVdY8Oqwz0EA48/RSM8=", "narHash": "sha256-0xIy4dVLqq47rA+mRy0hXDfjhQd4E5PoIns/RmB7nR4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a50de1b7d8a586adc18d2395c19de7d6058e6030", "rev": "0ad6f47ea4fe188f4bc8f0380f93ae8523337c6c",
"type": "github" "type": "github"
}, },
"original": { "original": {
+36 -21
View File
@@ -17,8 +17,6 @@ in
../../common/configuration.nix ../../common/configuration.nix
../../modules/nix/cache-client.nix ../../modules/nix/cache-client.nix
../../modules/nix/remote-builder-client.nix ../../modules/nix/remote-builder-client.nix
# ../../modules/nix/mount-docker-config.nix
# ../../modules/nix/mount-docker-volumes.nix
../../modules/nix/docker-data.nix ../../modules/nix/docker-data.nix
]; ];
@@ -43,6 +41,15 @@ boot.zfs.forceImportRoot = false;
# experimental = true; # experimental = true;
# }; # };
}; };
services.beszel.agent.enable = true;
services.beszel.agent.environment = {
DOCKER_HOST = "tcp://docker-socket-proxy:2375";
HUB_URL = "http://beszel:8090";
KEY = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA2Snq66P/6GwTEafKuu3D/V1f7ofjKL9GD6ik+Kf/Gn";
TOKEN = "235b3-25a94f482-84576-40d34c48";
};
services.tailscale.enable = true; services.tailscale.enable = true;
# Enable docker-compose # Enable docker-compose
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@@ -120,23 +127,23 @@ systemd.timers.nextcloud = {
}; };
# Create nextcloud cron scheduled task # Create nextcloud cron scheduled task
systemd.services.docker-prune = { # systemd.services.docker-prune = {
description = "Prune docker data"; # description = "Prune docker data";
script = ''${pkgs.docker} system prune --volumes --all --force''; # script = ''${pkgs.docker} system prune --volumes --all'';
serviceConfig = { # serviceConfig = {
Type = "oneshot"; # Type = "oneshot";
User = "nixos"; # User = "nixos";
}; # };
path = with pkgs; [ docker docker-compose ]; # path = with pkgs; [ docker docker-compose ];
}; # };
systemd.timers.docker-prune = { # systemd.timers.docker-prune = {
wantedBy = [ "timers.target" ]; # wantedBy = [ "timers.target" ];
timerConfig = { # timerConfig = {
OnCalendar = "monthly"; # OnCalendar = "monthly";
Persistent = true; # Persistent = true;
}; # };
}; # };
# create update task # create update task
@@ -195,12 +202,20 @@ systemd.timers.docker-prune = {
}; };
}; };
systemd.tmpfiles.rules = [
# Create /mnt/docker
#"d /mnt/docker 0755 root root -"
# Create /home/nixos/docker -> /mnt/docker-config
"L+ /home/nixos/docker - - - - /mnt/docker/config"
"d /mnt/docker 0755 nixos users -"
];
#Add sym links to data on users home folder #Add sym links to data on users home folder
system.userActivationScripts.createDockerSymlink.text = '' #system.userActivationScripts.createDockerSymlink.text = ''
ln -sf /mnt/docker-config /home/nixos/docker # ln -sf /mnt/docker/config /home/nixos/docker
''; #'';
#system.userActivationScripts.createSetupSymlink.text = '' #system.userActivationScripts.createSetupSymlink.text = ''
# ln -sf /mnt/docker-persistent-data/setup /home/nixos/setup # ln -sf /mnt/docker-persistent-data/setup /home/nixos/setup
#''; #'';
+2
View File
@@ -12,6 +12,8 @@
../../common/configuration.nix ../../common/configuration.nix
../../modules/nix/cache-client.nix ../../modules/nix/cache-client.nix
../../modules/nix/remote-builder-client.nix ../../modules/nix/remote-builder-client.nix
# ../../modules/nix/tailscale-exit-node.nix
# ../../modules/nix/enable-ip-forwarding.nix
]; ];
+2 -1
View File
@@ -41,7 +41,8 @@
openssh.authorizedKeys.keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFDEA1S2ikpObREgbP5uVBWMxIOGbY8B+Wx7VTZK1m6t root@server" openssh.authorizedKeys.keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFDEA1S2ikpObREgbP5uVBWMxIOGbY8B+Wx7VTZK1m6t root@server"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPAYIT9ormlmxZ0SziyDQaUntnKI8HK9/s3Qac1ZKjP2 root@docker" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPAYIT9ormlmxZ0SziyDQaUntnKI8HK9/s3Qac1ZKjP2 root@docker"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKKKzoEPl/ZW9KBRHBcp6/ThOngGpwMv5EhkTlgC4aDf root@nixos" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKKKzoEPl/ZW9KBRHBcp6/ThOngGpwMv5EhkTlgC4aDf root@nixos"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIGtOWOCS+ImHc7NehguoyD7PbonGosKMZqc9+QR3v/h root@nixos"]; "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIGtOWOCS+ImHc7NehguoyD7PbonGosKMZqc9+QR3v/h root@nixos"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHxXTQxFnArK5HXG7czeoybZebCGfxpUdusJkPn+BCSp root@server"];
}; };
services.openssh.enable = true; services.openssh.enable = true;
+3 -15
View File
@@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
fileSystems."/mnt/docker-config" = { fileSystems."/mnt/docker/config" = {
device = "server:/tank/docker/config"; device = "server:/tank/docker/config";
fsType = "nfs"; fsType = "nfs";
@@ -13,7 +13,7 @@
]; ];
}; };
fileSystems."/mnt/docker-databases" = { fileSystems."/mnt/docker/databases" = {
device = "server:/tank/docker/databases"; device = "server:/tank/docker/databases";
fsType = "nfs"; fsType = "nfs";
@@ -25,7 +25,7 @@
]; ];
}; };
fileSystems."/mnt/docker-volumes" = { fileSystems."/mnt/docker/volumes" = {
device = "server:/tank/docker/volumes"; device = "server:/tank/docker/volumes";
fsType = "nfs"; fsType = "nfs";
@@ -49,16 +49,4 @@
]; ];
}; };
fileSystems."/mnt/docker/test" = {
device = "server:/tank/docker/nextcloud-data";
fsType = "nfs";
options = [
"nfsvers=4.2"
"_netdev"
"x-systemd.automount"
"noatime"
];
};
} }
+12
View File
@@ -0,0 +1,12 @@
{ config, lib, ... }:
{
options.myNetworking.ipForwarding.enable = lib.mkEnableOption "Enable IPv4 and IPv6 forwarding";
config = lib.mkIf config.myNetworking.ipForwarding.enable {
boot.kernel.sysctl = {
"net.ipv4.ip_forward" = 1;
"net.ipv6.conf.all.forwarding" = 1;
};
};
}
-15
View File
@@ -1,15 +0,0 @@
{ config, lib, pkgs, ... }:
{
fileSystems."/mnt/docker-config" = {
device = "server:/tank/docker/config";
fsType = "nfs";
options = [
"nfsvers=4.2"
"_netdev"
"x-systemd.automount"
"noatime"
];
};
}
-15
View File
@@ -1,15 +0,0 @@
{ config, lib, pkgs, ... }:
{
fileSystems."/mnt/docker-databases" = {
device = "server:/tank/docker/databases";
fsType = "nfs";
options = [
"nfsvers=4.2"
"_netdev"
"x-systemd.automount"
"noatime"
];
};
}
-15
View File
@@ -1,15 +0,0 @@
{ config, lib, pkgs, ... }:
{
fileSystems."/mnt/docker-volumes" = {
device = "server:/tank/docker/volumes";
fsType = "nfs";
options = [
"nfsvers=4.2"
"_netdev"
"x-systemd.automount"
"noatime"
];
};
}
+12
View File
@@ -0,0 +1,12 @@
{ ... }:
{
services.tailscale = {
enable = true;
extraUpFlags = [
"--advertise-exit-node"
"--advertise-routes=192.168.2.0/24"
];
};
}