!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

232 Members
Running Doom Emacs with Nix | You probably want https://github.com/nix-community/nix-doom-emacs49 Servers

Load older messages


SenderMessageTime
13 Sep 2022
@yuki:backalley.clubYuki (they/them) (Old) ugh 22:52:30
@yuki:backalley.clubYuki (they/them) (Old)

@k0kada It builds successfully

astolfo:~/nix-doom-emacs-tests # nix build .
astolfo:~/nix-doom-emacs-tests # ls -l
total 36
drwxr-xr-x 8 root root  4096 Sep 14 00:49 .git
-rw-r--r-- 1 root root    18 Sep 14 00:49 .gitignore
drwxr-xr-x 2 root root  4096 Sep 14 00:49 doom.d
-rw-r--r-- 1 root root 14608 Sep 14 00:49 flake.lock
-rw-r--r-- 1 root root   704 Sep 14 00:49 flake.nix
lrwxrwxrwx 1 root root    68 Sep 14 01:29 result -> /nix/store/y8qv91yb34d6f65pw3p26qmb7s0f3vi6-emacs-with-packages-28.1
23:29:21
@yuki:backalley.clubYuki (they/them) (Old) *

@k0kada It builds successfully (with root, nix single user)

astolfo:~/nix-doom-emacs-tests # nix build .
astolfo:~/nix-doom-emacs-tests # ls -l
total 36
drwxr-xr-x 8 root root  4096 Sep 14 00:49 .git
-rw-r--r-- 1 root root    18 Sep 14 00:49 .gitignore
drwxr-xr-x 2 root root  4096 Sep 14 00:49 doom.d
-rw-r--r-- 1 root root 14608 Sep 14 00:49 flake.lock
-rw-r--r-- 1 root root   704 Sep 14 00:49 flake.nix
lrwxrwxrwx 1 root root    68 Sep 14 01:29 result -> /nix/store/y8qv91yb34d6f65pw3p26qmb7s0f3vi6-emacs-with-packages-28.1
23:29:40
@yuki:backalley.clubYuki (they/them) (Old)
In reply to@yuki:backalley.club

@k0kada It builds successfully (with root, nix single user)

astolfo:~/nix-doom-emacs-tests # nix build .
astolfo:~/nix-doom-emacs-tests # ls -l
total 36
drwxr-xr-x 8 root root  4096 Sep 14 00:49 .git
-rw-r--r-- 1 root root    18 Sep 14 00:49 .gitignore
drwxr-xr-x 2 root root  4096 Sep 14 00:49 doom.d
-rw-r--r-- 1 root root 14608 Sep 14 00:49 flake.lock
-rw-r--r-- 1 root root   704 Sep 14 00:49 flake.nix
lrwxrwxrwx 1 root root    68 Sep 14 01:29 result -> /nix/store/y8qv91yb34d6f65pw3p26qmb7s0f3vi6-emacs-with-packages-28.1
@k0kada
23:32:41
@yuki:backalley.clubYuki (they/them) (Old)it seems my client borked the ping23:32:47
@yuki:backalley.clubYuki (they/them) (Old) i'm gonna go to sleep, feel free to ping me if you need me to do more tests 23:34:45
14 Sep 2022
@mon:tchncs.deribosomerocker
In reply to@ckie:ckie.dev
mon_aaraj: please write those questions on github and i'll get back to you next time i murder all my unread emails
just did
00:23:39
@k0kada:matrix.orgk0kada (he/him)
In reply to @yuki:backalley.club

@k0kada It builds successfully (with root, nix single user)

astolfo:~/nix-doom-emacs-tests # nix build .
astolfo:~/nix-doom-emacs-tests # ls -l
total 36
drwxr-xr-x 8 root root  4096 Sep 14 00:49 .git
-rw-r--r-- 1 root root    18 Sep 14 00:49 .gitignore
drwxr-xr-x 2 root root  4096 Sep 14 00:49 doom.d
-rw-r--r-- 1 root root 14608 Sep 14 00:49 flake.lock
-rw-r--r-- 1 root root   704 Sep 14 00:49 flake.nix
lrwxrwxrwx 1 root root    68 Sep 14 01:29 result -> /nix/store/y8qv91yb34d6f65pw3p26qmb7s0f3vi6-emacs-with-packages-28.1
Huh... So I am really thinking the issue is in the sandbox
08:20:33
@yuki:backalley.clubYuki (they/them) (Old)how do I make sure that nix only builds on the distributed builder?09:55:55
@ckie:ckie.devckie (they/them) Yuki (they/them): --option max-jobs 0 10:15:15
@k0kada:matrix.orgk0kada (he/him)So my hypothesis: The sandbox probably needs some elevated permissions to do its job correctly, but if running as a single user it is probably not doing so because you're running Nix as a your current user Not a problem in multi-user mode/single-user mode as root because, well, you're running the whole thing as root10:41:04
@k0kada:matrix.orgk0kada (he/him)I really am not sure how user ns in Linux works, but maybe to use single-mode correctly you need to setuid or something the nix binary?10:41:45
@k0kada:matrix.orgk0kada (he/him)Anyway, for me this looks more a bug in Nix them anything we can do10:42:23
@k0kada:matrix.orgk0kada (he/him)It will also only affect if you're building Emacs locally for some reason10:42:52
@k0kada:matrix.orgk0kada (he/him)If you get Emacs from cache it should works fine10:43:03
@k0kada:matrix.orgk0kada (he/him) Yuki (they/them): 👆️ 10:43:43
@k0kada:matrix.orgk0kada (he/him)Now, the question is, what is happening? What is actually leaking in single-user mode that is causing this behavior?10:44:44
@k0kada:matrix.orgk0kada (he/him) * Now, the question is, what is happening? What is leaking in single-user mode that is causing this behavior?10:45:42
@k0kada:matrix.orgk0kada (he/him)

Yuki (they/them): https://github.com/nix-community/nix-doom-emacs/tree/do-not-fail-builds-when-fake-home-is-populated

Can you try this branch?

10:52:33
@yuki:backalley.clubYuki (they/them) (Old)
In reply to@k0kada:matrix.org
Anyway, for me this looks more a bug in Nix them anything we can do
I'm still wondering with whose responsibility is it in the Nix ecosystem to ensure a clean slate for build environments.
12:25:30
@yuki:backalley.clubYuki (they/them) (Old) I'm under the presumption that the sandbox environment is only there to further isolate the build environment but it's the builder script or something among those lines from nixpkgs which clears out env, sets the deterministic CFLAGS, etc. 12:26:33
@k0kada:matrix.orgk0kada (he/him)
In reply to @yuki:backalley.club
I'm under the presumption that the sandbox environment is only there to further isolate the build environment but it's the builder script or something among those lines from nixpkgs which clears out env, sets the deterministic CFLAGS, etc.
No, the sandbox is responsible for everything actually
12:29:01
@yuki:backalley.clubYuki (they/them) (Old)I see12:28:30
@k0kada:matrix.orgk0kada (he/him)Otherwise it would be impossible to build a few things12:29:28
@k0kada:matrix.orgk0kada (he/him)Like macOS12:29:31
@yuki:backalley.clubYuki (they/them) (Old)So the generic builders or other builder script can safely assume that Nix itself has setup a clean slate for them to do their work12:29:16
@k0kada:matrix.orgk0kada (he/him)
In reply to @yuki:backalley.club
So the generic builders or other builder script can safely assume that Nix itself has setup a clean slate for them to do their work
Yeah, it should
12:30:25
@yuki:backalley.clubYuki (they/them) (Old) I'm building your branch right now 12:29:50
@yuki:backalley.clubYuki (they/them) (Old)Ugh getting Nix to work as multi-user under the WSL environment (outside of using NixOS-WSL distro) would be rather painful12:30:38
@k0kada:matrix.orgk0kada (he/him)
In reply to @k0kada:matrix.org
Like macOS
To clarify, macOS is basically impure because there is no syscall direct access
12:31:46

Show newer messages


Back to Room ListRoom Version: 9