| 13 Sep 2022 |
mei 🌒& | do you have any other builds running in parallel? | 21:47:18 |
Yuki (they/them) (Old) | I don't think so | 21:46:37 |
mei 🌒& | id? | 21:47:46 |
Yuki (they/them) (Old) | ~/n/envs % id
uid=1000(yuki) gid=1000(yuki) groups=1000(yuki)
| 21:47:02 |
mei 🌒& | no, in the build :P | 21:48:01 |
Yuki (they/them) (Old) | oh | 21:47:11 |
Yuki (they/them) (Old) | argh | 21:47:13 |
Yuki (they/them) (Old) | anyway, this is ls /home/yuki on openSUSE Tumbleweed
~/n/envs % nix build .
error: builder for '/nix/store/x5zh00pxyl0d0fsc0237l95q8i7srwar-home-access.drv' failed with exit code 2;
last 1 log lines:
> ls: cannot access '/home/yuki': No such file or directory
For full logs, run 'nix log /nix/store/x5zh00pxyl0d0fsc0237l95q8i7srwar-home-access.drv'.
| 21:47:38 |
Yuki (they/them) (Old) | In reply to@yuki:backalley.club
anyway, this is ls /home/yuki on openSUSE Tumbleweed
~/n/envs % nix build .
error: builder for '/nix/store/x5zh00pxyl0d0fsc0237l95q8i7srwar-home-access.drv' failed with exit code 2;
last 1 log lines:
> ls: cannot access '/home/yuki': No such file or directory
For full logs, run 'nix log /nix/store/x5zh00pxyl0d0fsc0237l95q8i7srwar-home-access.drv'.
Same thing on NixOS
[nixos@astolfo:~/home-access]$ nix build
error: builder for '/nix/store/x5zh00pxyl0d0fsc0237l95q8i7srwar-home-access.drv' failed with exit code 2;
last 1 log lines:
> ls: cannot access '/home/yuki': No such file or directory
For full logs, run 'nix log /nix/store/x5zh00pxyl0d0fsc0237l95q8i7srwar-home-access.drv'.
(I made an empty folder /home/yuki on NixOS) | 21:48:25 |
k0kada (he/him) | Since the env is the same, I am curious about the user too | 21:50:23 |
Yuki (they/them) (Old) | id on openSUSE Tumbleweed
~/n/envs % nix build
error: builder for '/nix/store/zvsvgcryb7s3w0wiaxrj25id904b4zbr-home-access.drv' failed with exit code 1;
last 1 log lines:
> uid=1000(nixbld) gid=100(nixbld) groups=100(nixbld)
For full logs, run 'nix log /nix/store/zvsvgcryb7s3w0wiaxrj25id904b4zbr-home-access.drv'.
| 21:49:43 |
Yuki (they/them) (Old) | I added exit 1 so it just dumps it to nix log | 21:50:10 |
mei 🌒& | heh | 21:51:37 |
Yuki (they/them) (Old) | id on NixOS
[nixos@astolfo:~/home-access]$ nix build
error: builder for '/nix/store/zvsvgcryb7s3w0wiaxrj25id904b4zbr-home-access.drv' failed with exit code 1;
last 1 log lines:
> uid=1000(nixbld) gid=100(nixbld) groups=100(nixbld)
For full logs, run 'nix log /nix/store/zvsvgcryb7s3w0wiaxrj25id904b4zbr-home-access.drv'.
| 21:50:45 |
mei 🌒& | same uid as your real user | 21:51:41 |
mei 🌒& | smells like a user namespace | 21:51:53 |
k0kada (he/him) | Yeahhh | 21:51:58 |
mei 🌒& | stinkky | 21:52:07 |
Yuki (they/them) (Old) | In reply to@yuki:backalley.club
id on NixOS
[nixos@astolfo:~/home-access]$ nix build
error: builder for '/nix/store/zvsvgcryb7s3w0wiaxrj25id904b4zbr-home-access.drv' failed with exit code 1;
last 1 log lines:
> uid=1000(nixbld) gid=100(nixbld) groups=100(nixbld)
For full logs, run 'nix log /nix/store/zvsvgcryb7s3w0wiaxrj25id904b4zbr-home-access.drv'.
id on NixOS outside of the build env
[nixos@astolfo:~/home-access]$ id
uid=1000(nixos) gid=100(users) groups=100(users),1(wheel)
| 21:51:17 |
mei 🌒& | indeed it is so: https://github.com/nixos/nix/blob/51712bf0127e995c94a4b598b045d52cf667dcef/src/libstore/build/local-derivation-goal.cc#L1469 | 21:52:41 |
mei 🌒& | currently here in the nix source for anyone looking too | 21:54:23 |
Yuki (they/them) (Old) | didn't know there's potential impure issues with userns | 21:53:50 |
Yuki (they/them) (Old) | * didn't know there's potential impurity issues with userns | 21:53:57 |
mei 🌒& | i mean there shooouldn't be? | 21:54:56 |
mei 🌒& | hey hey, uname -a? | 21:55:31 |
mei 🌒& | here:
ckie@cookiemonster ~ -> uname -a
Linux cookiemonster 5.15.59 #1-NixOS SMP Wed Aug 3 10:03:56 UTC 2022 x86_64 GNU/Linux
| 21:55:46 |
ribosomerocker | about this: https://github.com/nix-community/nix-doom-emacs/pull/266#discussion_r969490245
do you think it's implied? i'd really like to keep it in to at least give users some semblance of knowing what's most recommended | 21:55:54 |
Yuki (they/them) (Old) | In reply to@ckie:ckie.dev hey hey, uname -a? outside of build env? | 21:55:06 |
mei 🌒& | doesn't matter, that's impure | 21:56:08 |
Yuki (they/them) (Old) | ~ % uname -a
Linux astolfo 5.15.57.1-microsoft-standard-WSL2 #1 SMP Wed Jul 27 02:20:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
| 21:55:21 |