mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 19:00:46 +00:00
lxd-container-image: set mode of configuration.nix
before:
```
[root@nixos:~]# ls -la /etc/nixos
total 16
drwxr-xr-x 2 root root 4096 Feb 8 00:51 .
drwxr-xr-x 16 root root 4096 Feb 8 00:51 ..
-r--r--r-- 1 root root 605 Feb 8 00:51 configuration.nix
-rw-r--r-- 1 root root 150 Feb 8 00:51 lxd.nix
```
after:
```
[root@nixos:~]# ls -la /etc/nixos
total 16
drwxr-xr-x 2 root root 4096 Feb 8 00:50 .
drwxr-xr-x 16 root root 4096 Feb 8 00:50 ..
-rw-r--r-- 1 root root 605 Feb 8 00:50 configuration.nix
-rw-r--r-- 1 root root 149 Feb 8 00:50 lxd.nix
```
(cherry picked from commit 2ce33c60cf)
This commit is contained in:
committed by
github-actions[bot]
parent
55e1662831
commit
f5084ef883
@@ -20,8 +20,7 @@
|
||||
};
|
||||
in ''
|
||||
if [ ! -e /etc/nixos/configuration.nix ]; then
|
||||
mkdir -p /etc/nixos
|
||||
cp ${config} /etc/nixos/configuration.nix
|
||||
install -m 644 -D ${config} /etc/nixos/configuration.nix
|
||||
fi
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user