mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-26 08:48:38 +03: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 ```
This commit is contained in:
parent
71e29782c2
commit
2ce33c60cf
@ -20,8 +20,7 @@
|
|||||||
};
|
};
|
||||||
in ''
|
in ''
|
||||||
if [ ! -e /etc/nixos/configuration.nix ]; then
|
if [ ! -e /etc/nixos/configuration.nix ]; then
|
||||||
mkdir -p /etc/nixos
|
install -m 644 -D ${config} /etc/nixos/configuration.nix
|
||||||
cp ${config} /etc/nixos/configuration.nix
|
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user