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 ```
This commit is contained in:
parent
71e29782c2
commit
2ce33c60cf
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue