From 017fbd720a731ed84c06a851032ead12942f6937 Mon Sep 17 00:00:00 2001 From: Adam Stephens Date: Fri, 31 May 2024 09:40:13 -0400 Subject: [PATCH] lxd-virtual-machine-image: install initial configuration read-write (cherry picked from commit dfd0d14efc14c5673be1ce76753ea4e8140868bc) --- nixos/maintainers/scripts/lxd/lxd-container-image.nix | 2 +- nixos/maintainers/scripts/lxd/lxd-virtual-machine-image.nix | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/nixos/maintainers/scripts/lxd/lxd-container-image.nix b/nixos/maintainers/scripts/lxd/lxd-container-image.nix index 930ab34af385..8c0e75e84f75 100644 --- a/nixos/maintainers/scripts/lxd/lxd-container-image.nix +++ b/nixos/maintainers/scripts/lxd/lxd-container-image.nix @@ -20,7 +20,7 @@ }; in '' if [ ! -e /etc/nixos/configuration.nix ]; then - install -m 644 -D ${config} /etc/nixos/configuration.nix + install -m 0644 -D ${config} /etc/nixos/configuration.nix fi ''; diff --git a/nixos/maintainers/scripts/lxd/lxd-virtual-machine-image.nix b/nixos/maintainers/scripts/lxd/lxd-virtual-machine-image.nix index bbbdd1f3fa17..8a1c9b0d634c 100644 --- a/nixos/maintainers/scripts/lxd/lxd-virtual-machine-image.nix +++ b/nixos/maintainers/scripts/lxd/lxd-virtual-machine-image.nix @@ -20,8 +20,7 @@ }; in '' if [ ! -e /etc/nixos/configuration.nix ]; then - mkdir -p /etc/nixos - cp ${config} /etc/nixos/configuration.nix + install -m 0644 -D ${config} /etc/nixos/configuration.nix fi '';