diff --git a/images/nixos.yaml b/images/nixos.yaml index 55662e94..e79ce02c 100644 --- a/images/nixos.yaml +++ b/images/nixos.yaml @@ -52,6 +52,22 @@ files: releases: - 24.05 + - name: conf-hostname + path: /etc/nixos/lxd.nix + generator: template + content: |- + { lib, config, pkgs, ... }: + + # WARNING: THIS CONFIGURATION IS AUTOGENERATED AND WILL BE OVERWRITTEN AUTOMATICALLY + + { + networking.hostName = "{{ instance.name }}"; + } + releases: + - unstable + types: + - container + - name: conf-hostname path: /etc/nixos/incus.nix generator: template @@ -70,3 +86,5 @@ files: } releases: - unstable + types: + - vm