From 4d2b0f9b5d38ab1a4d5bef08d736e3a8afb63371 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Tue, 18 Jul 2023 16:16:57 +0300 Subject: [PATCH] Hardcoded machine ids! --- hosts/nixos/common/global/persistence.nix | 6 +----- hosts/nixos/lapetus/default.nix | 3 +++ hosts/nixos/tethys/default.nix | 3 +++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/hosts/nixos/common/global/persistence.nix b/hosts/nixos/common/global/persistence.nix index 638199d..ffcd441 100644 --- a/hosts/nixos/common/global/persistence.nix +++ b/hosts/nixos/common/global/persistence.nix @@ -1,5 +1 @@ -{ - environment.persistence."/persist/state".files = [ - "/etc/machine-id" - ]; -} +{ } diff --git a/hosts/nixos/lapetus/default.nix b/hosts/nixos/lapetus/default.nix index 5bafc5b..4186fa0 100644 --- a/hosts/nixos/lapetus/default.nix +++ b/hosts/nixos/lapetus/default.nix @@ -21,6 +21,9 @@ in # ID required by zfs. networking.hostId = "08357db3"; + # Set machine id for log continuity + environment.etc.machine-id.text = "d9571439c8a34e34b89727b73bad3587"; + # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion system.stateVersion = "23.05"; diff --git a/hosts/nixos/tethys/default.nix b/hosts/nixos/tethys/default.nix index d9c49ab..037b301 100644 --- a/hosts/nixos/tethys/default.nix +++ b/hosts/nixos/tethys/default.nix @@ -21,6 +21,9 @@ # Set the name of this machine! networking.hostName = "tethys"; + # Set machine id for log continuity + environment.etc.machine-id.text = "08357db3540c4cd2b76d4bb7f825ec88"; + # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion system.stateVersion = "22.11";