!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

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

Load older messages


SenderMessageTime
13 Sep 2022
@k0kada:matrix.orgk0kada (he/him)Yeahhh21:51:58
@ckie:ckie.devmei 🌒&stinkky21:52:07
@yuki:backalley.clubYuki (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
@ckie:ckie.devmei 🌒&indeed it is so: https://github.com/nixos/nix/blob/51712bf0127e995c94a4b598b045d52cf667dcef/src/libstore/build/local-derivation-goal.cc#L146921:52:41
@ckie:ckie.devmei 🌒& currently here in the nix source for anyone looking too 21:54:23
@yuki:backalley.clubYuki (they/them) (Old) didn't know there's potential impure issues with userns 21:53:50
@yuki:backalley.clubYuki (they/them) (Old) * didn't know there's potential impurity issues with userns 21:53:57
@ckie:ckie.devmei 🌒&i mean there shooouldn't be?21:54:56
@ckie:ckie.devmei 🌒& hey hey, uname -a? 21:55:31
@ckie:ckie.devmei 🌒&

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
@mon:tchncs.deribosomerocker

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:backalley.clubYuki (they/them) (Old)
In reply to@ckie:ckie.dev
hey hey, uname -a?
outside of build env?
21:55:06
@ckie:ckie.devmei 🌒&doesn't matter, that's impure21:56:08
@yuki:backalley.clubYuki (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
@ckie:ckie.devmei 🌒&that's the one that's okay?21:56:39
@yuki:backalley.clubYuki (they/them) (Old) they're both the same 21:56:01
@yuki:backalley.clubYuki (they/them) (Old)

[nixos@astolfo:~/home-access]$ uname -a
Linux astolfo 5.15.57.1-microsoft-standard-WSL2 #1 SMP Wed Jul 27 02:20:31 UTC 2022 x86_64 GNU/Linux
21:56:12
@yuki:backalley.clubYuki (they/them) (Old) *
[nixos@astolfo:~/home-access]$ uname -a
Linux astolfo 5.15.57.1-microsoft-standard-WSL2 #1 SMP Wed Jul 27 02:20:31 UTC 2022 x86_64 GNU/Linux
21:56:18
@k0kada:matrix.orgk0kada (he/him)I would say you to try something, and them I remember that you're using single-user mode21:58:35
@yuki:backalley.clubYuki (they/them) (Old)yup21:57:47
@yuki:backalley.clubYuki (they/them) (Old)WSL requires single-user mode due to the lack of systemd21:58:14
@yuki:backalley.clubYuki (they/them) (Old) * WSL requires Nix to run in single-user mode due to the lack of systemd as PID 121:58:24
@yuki:backalley.clubYuki (they/them) (Old) (there are hacks to make systemd as PID 1 which does some user namespace trickery: https://github.com/arkane-systems/genie) 21:59:25
@ckie:ckie.devmei 🌒&can you try using a remote builder to a machine that works maybe?22:00:30
@k0kada:matrix.orgk0kada (he/him)This will kinda fuck your setup, but can you try to run the single user mode with root?22:00:30
@k0kada:matrix.orgk0kada (he/him)You can chown later :p22:00:40
@yuki:backalley.clubYuki (they/them) (Old)
In reply to@k0kada:matrix.org
This will kinda fuck your setup, but can you try to run the single user mode with root?
np, I can always snapshot
21:59:55
@yuki:backalley.clubYuki (they/them) (Old)let me snapshot real quick22:00:03
@ckie:ckie.devmei 🌒&
In reply to @ckie:ckie.dev
can you try using a remote builder to a machine that works maybe?
i'm hoping that works because otherwise something is veryveryvery wrong
22:01:08
@k0kada:matrix.orgk0kada (he/him)
In reply to @yuki:backalley.club
WSL requires Nix to run in single-user mode due to the lack of systemd as PID 1
Do the nix daemon actually require systemd btw?
22:02:20

Show newer messages


Back to Room ListRoom Version: 9