<samueldr>
emily: a possibility would be to copy the gdm module files from nixpkgs, and blacklist the nixos-version while you edit your version to have a clear delimitation between xserver and wayland
<simukis_>
bhipple: we hadn’t sandboxing enabled but I did enable it today and will monitor how the things change
<emily>
rnhmjoj: aw, okay. thanks for the info. more motivation to fix it upstream ^^
thc202 has quit [Ping timeout: 245 seconds]
<simukis_>
bhipple: could just reproduce with `--repeat` and sandboxing enabled. Thanks so much for the help :)
<bhipple>
simukis_: if you have sandboxing on, there's a UTS namespace that prevents the builder from knowing the name of localhost. Same for the uid/name of the user doing the build.
<bhipple>
It'll always be something like nixbld@localhost
<simukis_>
bhipple: Q: where does `nix build` store the previous build if at all, or do I need to pass in `-k`?
<bhipple>
If you're building with sandboxes, the build is done in a throwaway container mount at /build, then copied into /nix/store on success, or discarded on failure. If -k is passed, it goes into /tmp and prints where it put it
<simukis_>
okay, /me runs again with -k
__monty__ has quit [Quit: leaving]
<bhipple>
There's also a breakpointHook in the NixPkgs manual that you can use, which makes the sandbox sleep on failure and lets you enter into it with a cmd
<bhipple>
slightly more robust than inspecting the ex-post-facto result in /tmp, but I'd start with /tmp since it's simpler and more straightforward
<Dandellion>
cole-h: thanks
<Dandellion>
cole-h++
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drakonis has joined #nixos
Rusty1 has quit [Remote host closed the connection]
<simukis_>
bhipple: in my case machines are hopefully all the same, but one common hole in sandbox I know is cpuinfo. I don’t believe nix safeguards against it, does it?
<simukis_>
or rather cpuid and similar instructions.
<bhipple>
It doesn't, no
nek0 has joined #nixos
drakonis has quit [Ping timeout: 272 seconds]
Acou_Bass has joined #nixos
<samueldr>
that's probably the biggest reproducibility hole, hardware information
<simukis_>
Is it possible to enable coredumps for sigsegvs that could possibly occur inside build?
<cole-h>
Dandellion: No problem. By the way, the way I found it was using `nix-locate 'libsqlcipher.so'`, which is part of the `nix-index` package.
<bhipple>
As soon as you have two different pkgs, something like `diffoscope` is pretty useful
drakonis has joined #nixos
<simukis_>
yeah, I found one issue already but it wasn’t what I was looking for, it was just a derivation installing intermediate build artifacts and one of those was a log file of `configure` with differences being in filename of files used in feature detection.
<{^_^}>
[nixpkgs] @matthuszagh opened pull request #80770 → nodePackages: netlify-cli init at 2.35.0 → https://git.io/JvRju
jboy has quit [Quit: bye]
jboy has joined #nixos
<fusion809>
When I try to install RuneScape using Flatpak I get the error: https://paste2.org/w4m8Jc5p. I only need to install it again because I uninstalled it due to an error I was getting when I tried to launch it that I was hoping uninstalling and reinstalling would fix, that error was: https://paste2.org/1CkXfYXz.
h0m1 has quit [Ping timeout: 245 seconds]
<fusion809>
I'm on NixOS, of course. I never used to get this error.
MmeQuignon has quit [Ping timeout: 258 seconds]
h0m1 has joined #nixos
<zeta_0>
it turns out xmonad by itself without a desktop environment does work with vscodium, so my nix configuration must be messed up somewhere, i have no idea
<zeta_0>
what is the nix option to edit /etc/fonts/fonts.conf ?
<drakonis>
is key importing done through gpg not supposed to work?
kleisli has joined #nixos
<drakonis>
oh i can see why
<drakonis>
there's a patch hardcoding the keyserver
<drakonis>
seriously?
<drakonis>
why hardcode the keyserver
<drakonis>
read the patch wrong
<rivercat>
Hello. I recently started using nixos on my thinkpad. Generally going well so far. I'm having a problem though at the moment with resolving .local mdns hosts. pinging test.local says "ping: test.local: System error". Then I tried systemd-resolve and found it fails for normal DNS too, saying "nixos.org: resolve call failed: Unit dbus-org.freedesktop.resolve1.service not found." I've not modified the dns
<rivercat>
(and why does a resolver have anythin to do with desktop stuff?!)
ddellacosta has quit [Ping timeout: 255 seconds]
reallymemorable has quit [Quit: reallymemorable]
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
endforma1 has quit [Quit: WeeChat 2.6]
judson_ has joined #nixos
judson has quit [Ping timeout: 240 seconds]
inkbottle has quit [Quit: Konversation terminated!]
inkbottle has joined #nixos
<colemickens>
rivercat: what do you mean? something has to transform dns requests into responses
<colemickens>
rivercat: you might want to look at services.avahi.enable. It enables avahi to run a daemon, and enables whatever resolver you're using to check with it for .local domains.
<emily>
is buildRustCrate broken on nixos-unstable-small right now?
<emily>
I depend on Rust packages in my system so it seems unlikely, but I'm getting:
<emily>
/nix/store/0w5454az7vwcq60yqvcsv8fs9q7r4zrx-stdenv-linux/setup: line 1299: cd: /homeless-shelter: No such file or directory
<emily>
(is this more of a -dev question?)
drakonis has quit [Remote host closed the connection]
drakonis has joined #nixos
drakonis has quit [Quit: WeeChat 2.7]
zarel_ has joined #nixos
zarel has quit [Ping timeout: 268 seconds]
bhipple has quit [Remote host closed the connection]
<Mic92>
emily: no. this is not a bug HOME is intentionally broken by design in nix to avoid packages installing stuff by accident to HOME. If you think the stuff installed to home is just some intermediate output use export HOME=$TMPDIR.
<emily>
Mic92: yes, I know. but why is buildRustCrate trying to cd to $HOME?
<Mic92>
That is a good question
<emily>
can try to give a minimal repro but for all I know it happens with stuff in nixpkgs
<Mic92>
emily: use `set -x` to get more context on where the cd comes from
<emily>
not sure how to get that injected in the right place with carnix's output :/
<Mic92>
Because I dont see this at all in our rust related nix code
<kini>
Is it bad style to call `buildPhase` multiple times in the `buildCommand` for my package? I need to run `make` in multiple places and I figured I'd just use `buildPhase` as a substitute for `make` since it handles the -j and -l args and uses other standard build-control variables.
<kitemikaze>
hello, I was wondering if someone could give me a clue how to write a file in /etc that is not symlinked on the nixstore. The specific use case is I want to build an qcow2 image that include "environment.etc."ssl/custom-cacerts.pem".source = ./path/to/include/ca.pem ; ", but I don't want to take the risk to loose the file in the nixstore.
<jophish>
nope, fixed that. The very same error with 8.8.2 in there
<jophish>
"/nix/store/y9zg6ryffgc5c9y67fcmfdkyyiivjzpj-glibc-2.27/lib/libm.so.6: version `GLIBC_2.29' not found (required by /nix/store/r1hbgdmkj041vx87ds5px65lnbdvhyj7-ghc-8.8.2/lib/ghc-8.8.2/ghc-prim-0.5.3/libHSghc-prim-0.5.3-ghc8.8.2.so)"
<infinisil>
jophish: Oh that's an error that seems to happen on other distros, there's an issue on github for it (in all-hies), though I don't think there's a solution for it yet :(
<infinisil>
I might try to look into this error today
hax404 has quit [Quit: WeeChat 2.6]
hax404 has joined #nixos
MmeQuignon has quit [Ping timeout: 268 seconds]
fusion809 has joined #nixos
sigmundv has joined #nixos
orivej has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
<jophish>
infinisil: ah, so it's not related to the recent glibc bump in nixpkgs?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
logzet has quit [Ping timeout: 240 seconds]
smatting has joined #nixos
<jophish>
infinisil: I can confirm that it fails with the child commit
<jophish>
I'll put this on the issue
<manveru>
godparticle: sounds like you could try with nomodeset?
logzet has joined #nixos
ghasshee has joined #nixos
<godparticle>
i shot a slow-mo video of the startup but it's hard to read. last things i can see in the last frame: mounted /boot. reached target local file systems. starting create volatile files and directories. starting network time sync. starting update UTMP... started update UTMP about system Boot/Shutdown.
<manveru>
well, you probably want to try nomodeset then :)
<godparticle>
how do i?
<manveru>
in the bootloader, hit 'e' to edit the entry
<godparticle>
should i do that booting from the install usb, or the existing hd installation?
<manveru>
the existing installation
<godparticle>
the usb installer seemed to work well
<manveru>
the install usb booted fine, it has that option set
<godparticle>
ok ty
<manveru>
there should be a line starting with `linux`, add `nomodeset`, then hit ctrl-x to boot it
<manveru>
it that works, add `boot.kernelParams = [ "nomodeset" ];` to your configuration
nix505 has joined #nixos
chloekek has quit [Ping timeout: 265 seconds]
benedikt93 has quit [Quit: benedikt93]
benedikt93 has joined #nixos
philr has quit [Ping timeout: 272 seconds]
Rusty1 has joined #nixos
Chiliparrot has joined #nixos
rogue_koder has quit [Ping timeout: 240 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
fendor has joined #nixos
<{^_^}>
[nixpkgs] @grahamc pushed to master « nixos release process: use rev-list --count like Hydra does. »: https://git.io/Jv03a
<godparticle>
hmm. my bootloader begins with these menu options: NiOS | Reboot into Firmware Interface [BIOS]... if i select NixOS and hit 'e' I get one long single line that looks like: initrd=\efi\nixos\.....initrd-linux-4.19.102-initrd.efi systemConfig=/nix/store/......-nixos-system-nixos-19..... init=/nix/store/.....nixos-system-nixos-19.09.2070...../init
<godparticle>
loglevel=4
<godparticle>
not clear where should put that
<{^_^}>
[nixpkgs] @grahamc pushed to release-20.03 « Correct revcount diff (again) using the rev-list - method hydra uses. 75f604eb2c7 »: https://git.io/Jv03o
<godparticle>
i don't have a bootloader like GRUB installed
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/Jv036
FRidh2 has joined #nixos
<Raito_Bezarius>
How can I debug why "an option X is used but not defined" ?
<Raito_Bezarius>
It seems like it's an order issue or recursion problem
<Raito_Bezarius>
Also, maybe I'm doing it wrong but I want to use some Nix modules as data-only modules, they have no effect on the system configuration, except expose themselves to others modules
<simpson>
Order doesn't matter inside {}; they are sets. You can put it anywhere you like. I'd probably put it near the commented-out lines left by the autogeneration tool about boot configuration; you might not have those, depending on when and how you generated your configuration.nix.
unclechu has joined #nixos
<ShaRose>
So, I know there has been discussion on encrypting values in nix files: Has anyone ever looked at something like using hardware serial numbers that require root to use as key material?
<godparticle>
TY simpson. after that I must exec `nixos-rebuild switch` ?
<simpson>
godparticle: Presumably. And a reboot, as well, since kernel params are usually not hotpluggable, and `nomodeset` is not an exception.
<godparticle>
bummer. the last thing i saw before the screen blanked was 'starting X11Server
butterthebuddha has joined #nixos
<simpson>
Perhaps the problem is the X server loading the wrong driver, and not modesetting? Who knows; these sorts of GPU debugging tasks take a while and more than a few reboots.
mehlon has joined #nixos
<mehlon>
anyone know how to setup DNS-over-TLS on nixos?
<godparticle>
whatever is in the install image works. i need to figure out what parts of that to keep
<godparticle>
can someone advise me how to read NixOS installation-cd-graphical-kde.nix? I need to make my configuration.nix more closely resemble that, since it works and mine doesn't
<iqubic>
So, Dunst is supposed to be able to invoke dmenu for me, for notifications that have an action. That isn't happening for me. No dmenu is launched at all. Instead I get an error: "Feb 22 09:03:29 LATITUDE-NIXOS org.freedesktop.Notifications[2267]: CRITICAL: Cannot spawn dmenu: Failed to execute child process “/nix/store/ljzzpm9sp9myykp3fhapkcny7q6ar5b5-dmenu-4.9” (Permission denied)"
ddellacosta has quit [Ping timeout: 258 seconds]
<iqubic>
I know that's the right path because I'm telling home-manager to set the value of dmenu to "${pkgs.dmenu} -p Dunst:" in the Dunst config file.
<simpson>
Whereever you put ^^, you probably want to add "/bin/dmenu"
<iqubic>
So I want "${pkgs.dmenu}/bin/dmenu" ?
<iqubic>
I thought ${pkgs.foo} would expand to the path to foo's binary.
fusion809 has quit [Remote host closed the connection]
<iqubic>
I see now what my issue is.
<iqubic>
And I assume I'll need to change "${pkgs.firefox}" to "${pkgs.firefox}/bin/firefox" too? Dunst also needs to know where my web browser is located.
<cole-h>
Yes. `{pkgs.<package>}` only expands to the derivation's direcory, not any of its contents
<emily>
is there a place to nominate nix errors for being maximally useful? I would like to submit "error: infinite recursion encountered, at undefined position"
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #80818 → nixos/nixpkgs.nix: Allow just using config in system → https://git.io/Jv0WI
<{^_^}>
[nixpkgs] @jonringer opened pull request #80822 → pythonPackages.fluidasserts: disable because of dependency issues → https://git.io/Jv0ll
asbachb has joined #nixos
<asbachb>
Hey. I say there's a possibility to pin a specific packages version (https://nixos.wiki/wiki/FAQ/Pinning_Nixpkgs), but if I get it right it's for the entire pkgs. I just want some packages from a pinned nixpkgs.
butterthebuddha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
butterthebuddha has joined #nixos
zeta_0 has joined #nixos
<zeta_0>
so it turns out that vscodium does work in xmonad, but more some reason it is not working for me, i must have made a mistake in my nix config somewhere
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/Jv0EB
butterthebuddha has joined #nixos
<iqubic>
so, I have this issue with Dunst, where only certain keybindings work.
<iqubic>
A bug report thread on github is telling me I should run "dunst -print" to get some helpful diagnostics to troubleshoot my issue. The thing is: I only have Dunst installed as a systemd service. I don't have the dunst command available as a command line thing. What should I do here?
<samueldr>
if you know the name of the service, you can use `systemctl cat thatname.service` to show the final unit file, it will have the full path to dunst in there
<samueldr>
systemctl --user may be required
shibboleth has quit [Quit: shibboleth]
<iqubic>
yeah. The service name is "dunst"
<iqubic>
The path is: /nix/store/ixd4y00a1arm0amsj0cavbwaa48aal25-dunst-1.4.1/bin/dunst
<iqubic>
Which should be in my path already. But for some reason it just isn't.
<iqubic>
So, if I go into htop, close dunst and then start it up with "dunst -print" I get no errors.
<zeta_0>
i finally got vcodium working in xmonad
<iqubic>
So, if run dunst via the binary in the nix-store, then my keybindings work. But if I start dunst through the systemd service, they don't.
andreas303 has quit [Ping timeout: 240 seconds]
<zeta_0>
i had to install vscodium in home.nix because xmonad is also in home.nix, when i installed vscodium in configuration.nix it did not work, apparently xmonad can't recognize it there
<zeta_0>
could someone paste the link to the nixpkgs vscodium extensions, i can't seem to find them
<iqubic>
zeta_0: Most vscode extensions should just work with vscodium. For this reason there's no separate page for vscodium extensions. That being said, here's a NixOS wiki page about this topic. https://nixos.wiki/wiki/VSCodium
<iqubic>
However, this is as far as I'll be able to help you, because I've never used vscodium or vscode at all.
<zeta_0>
iqubic: thanks for clarifying this
<iqubic>
I'm mostly just repeating what I saw on that wiki page.
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #80843 → rust 1.41: Fix build with no_std only target → https://git.io/Jv0uq
<zeta_0>
iqubic: i had issues setting up emacs for web development so i decided to give vscodium a try, it was a pain to get it working with xmonad, but it works now. i heard it has good support for web development
<iqubic>
Like I said earlier, I haven't had any experience with vscodium. You'll have to ask someone else for help. I wish you the best of luck.