From c73a179b65548b45743b506a5dd1504d0a304289 Mon Sep 17 00:00:00 2001 From: blake Date: Sat, 4 Oct 2025 14:23:14 -0500 Subject: [PATCH] fix generation generation --- hosts/vaniville/configuration.nix | 6 +++++- rebuild.sh | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hosts/vaniville/configuration.nix b/hosts/vaniville/configuration.nix index bff3b26..e0e82d8 100644 --- a/hosts/vaniville/configuration.nix +++ b/hosts/vaniville/configuration.nix @@ -6,16 +6,20 @@ ./hardware-configuration.nix ../../users/blake/blake.nix ../../modules/system/system.nix + ../../modules/homelab/ddns_docker.nix ]; modules = { system = { ssh.enable = true; - docker.enable = false; + docker.enable = true; syncthing.enable = false; tailscale.enable = true; nvidia.enable = false; }; + homelab = { + ddns_docker.enable = true; + }; }; # enable user diff --git a/rebuild.sh b/rebuild.sh index c3a6595..f6c998c 100755 --- a/rebuild.sh +++ b/rebuild.sh @@ -7,8 +7,7 @@ pushd ~/.nix git diff -U0 $(find . -name '*.nix') # add generation comment to flake.nix -current_gen=$(nixos-rebuild list-generations | grep current | awk '{print $1}') -gen=$((current_gen + 1)) +gen=$(nixos-rebuild list-generations | grep current | awk '{print $1}') if sed -n '3p' flake.nix | grep -q '^# generation:'; then # replace the comment on line 3 sed -i "3s/^# generation:.*/# generation: $gen/" flake.nix