nixpkgs/nixos/modules
Artturin f25f2a4209 nixos/stage-2-init: dont use install to create /etc/nixos if it's a symlink
it should be checking that it is not a broken symlink but bash
conditionals are difficult

-d was causing the directory to not be created if it does not exist

```
$ install -m 0755 -d $PWD/hello
$ ls
hello/
$ ln -s something notexist
'notexist' -> 'something'
$ ls -l
lrwxrwxrwx artturin artturin 9 B Sat Sep  9 06:59:44 2023 notexist@ ⇒ something
drwxr-xr-x artturin artturin 2 B Sat Sep  9 06:59:36 2023 hello/
$ install -m 0755 -d $PWD/notexist
install: cannot change permissions of ‘/home/artturin/nixgits/my-nixpkgs/test/notexist’: No such file or directory
```
2023-09-09 07:22:05 +03:00
..
config nixos/update-users-groups: no need to include extra package 2023-09-03 11:26:37 +02:00
hardware nixos/infiniband: add support for configurable guids 2023-09-07 19:59:33 +02:00
i18n/input-method uim: remove qt4, fix qt5 2023-09-04 13:54:50 +02:00
image modules/image/repart: Fix stripNixStorePrefix 2023-08-22 13:09:03 +02:00
installer nixos/iso-image: Remove leftover false dichotomy between console/serial 2023-09-06 14:10:09 -04:00
misc nixos/doc: Improve documentation of documentation 2023-08-12 22:28:04 +03:00
profiles nixos/installation-device: allow nix-copy for root/nixos user 2023-08-07 16:48:49 +02:00
programs Merge pull request #253071 from linsui/yazi 2023-09-07 22:57:22 +02:00
security nixos/sudo: Guard against security.sudo.package = pkgs.sudo-rs; 2023-09-04 22:00:00 +00:00
services Merge pull request #253142 from SuperSandro2000/patch-1 2023-09-07 23:54:48 +02:00
system nixos/stage-2-init: dont use install to create /etc/nixos if it's a symlink 2023-09-09 07:22:05 +03:00
tasks zfs: 'want', don't 'require', systemd-udev-settle 2023-07-28 16:57:12 +10:00
testing Merge pull request #219106 from m-bdf/nixos-testing-increase-device-timeout 2023-06-20 11:48:45 +02:00
virtualisation Merge pull request #253146 from rnhmjoj/pr-anbox 2023-09-05 23:46:54 +02:00
module-list.nix nixos/infiniband: add support for configurable guids 2023-09-07 19:59:33 +02:00
rename.nix nixos/dhcp(46): remove 2023-07-28 16:35:40 +02:00