<euank>
That error's quite opaque though. nixos-install should probably check that the paths up to the install root all have o+rx so that it can give a reasonable error message earlier on
<euank>
That's probaly the actionable thing to do outta this
lsix has quit [Quit: WeeChat 2.8]
Pwnna has quit [Quit: Bye]
Pwnna has joined #nixos
moet has quit [Quit: leaving]
cr4y1 has quit [Remote host closed the connection]
<MtotheM>
I saw an old talk about nixOS earlier today. and someone asked about creating bare container images. for example docker. but it wasn't implemented then, but they mentioned a desire to do so. Is this anything that has been worked on? or is it still on the back burner.
<MtotheM>
I like the idea of being able to use nix to construct images for any server. not only nix systems.
<euank>
`dockerTools.buildImage` / `buildLayeredImage` exist and work
<MtotheM>
yeah I agree, Just don't see many work directly in the console vs a desktop / ssh
thc202 has quit [Ping timeout: 256 seconds]
<armin>
MtotheM: yeah it became much less common over the last 2 decades, that for sure, but when i started with linux, it was completely normal to work without any graphical server.
<cole-h>
energizer: "Once the job succeeds at a particular nixpkgs commit, cache.nixos.org will download binaries from hydra.nixos.org. When the download completes, the channel updates." from https://nixos.wiki/wiki/Nix_channels
<tnks_>
cole-h: maybe you had shellcheck already from before it was GC'd?
<energizer>
ok so hydra has some storage
<clever>
cole-h: out of date, hydra now uploads everything to cache.nixos.org immediately upon the build finishing
<energizer>
but cache.nixos.org is the main place where you download things from
<clever>
cole-h: its no longer waiting for a whole jobset or job
<cole-h>
As you can see, I downloaded shellcheck from the cache moments ago.
<energizer>
i have boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/...". when i try to boot, it says that device is unavailable. i can't see why it would be unavailable. examining the disk from another computer, i see that uuid is there
h0m1 has quit [Ping timeout: 260 seconds]
<clever>
energizer: add boot.shell_on_fail to the kernel params, then you can get a shell when it does fail
<clever>
energizer: then you can check /dev/disk/by-uuid/ and /dev/sd*
<clever>
tnks_: thats probably what extra-substituters is for
<tnks_>
Yeah, that makes sense.
<clever>
/home/clever/apps/nix/src/nix-daemon/nix-daemon.cc: else if (setSubstituters(settings.extraSubstituters))
<clever>
/home/clever/apps/nix/src/libstore/store-api.cc: for (auto uri : settings.extraSubstituters.get())
drakonis_ has quit [Ping timeout: 265 seconds]
<tnks_>
I might have a look later at the source... but for now, I feel unblocked on something that was super confusing me.
markus1199 has joined #nixos
<clever>
tnks_: store-api.cc will put both options into a single list, nix-daemon.cc is doing something related to trusted users
<tnks_>
That makes sense from the docs. The docs were a little tough for me to read in this regard, though.
<tnks_>
I think you're right that the source tells the more accurate story.
markus1189 has quit [Ping timeout: 256 seconds]
<clever>
tnks_: something i often say, "luke, use the source" and "the docs can lie"
<tnks_>
Yeah, but the Nix community really has to get away from that mindset.
<tnks_>
One day, someone needs to write a man page for the not-as-new-anymore `nix` command.
<{^_^}>
[nixpkgs] @veprbl pushed to release-20.03 « intltool: add a backup url for a patch »: https://git.io/Jf7Ib
ddellacosta has quit [Ping timeout: 264 seconds]
<cole-h>
Be our guest ;^)
<cole-h>
But really, even if it's not as new anymore, doesn't mean it
<cole-h>
's stable
ddellacosta has joined #nixos
<gchristensen>
it has been disabled by default in the master branch, actually
drakonis_ has joined #nixos
<cole-h>
Which means, when things change, the docs will need to be revised. No matter how miniscule the effort to write and rewrite the docs, it just seems like a waste to write docs for something that is *still* experimental.
<cole-h>
`nix [...] --help` is good enough until it stabilizes, IMHO.
<tnks_>
Okay, I think calling it "experimental" is a better answer than "PRs welcome."
<cole-h>
You mean like "Note: this program is EXPERIMENTAL and subject to change." ?
<cole-h>
;^)
<tnks_>
You can be coy. I've put in tons of hours into this OS. But I'm more defensive of the experience for new users.
<cole-h>
Sorry, I'm not trying to be combative or dismiss your opinion at all.
<gchristensen>
tnks_++
<{^_^}>
tnks_'s karma got increased to 1
<cole-h>
You are 100% right that our documentation is sorely lacking in more than one way
<tnks_>
Thanks for supporting my perspective.
drakonis1 has quit [Ping timeout: 256 seconds]
<tnks_>
I would like to help more with documentation. But am still sorting through a few more projects on my plate.
<{^_^}>
[nixpkgs] @cdepillabout pushed 4 commits to haskell-updates: https://git.io/Jf7Le
<tnks_>
Am I wrong or was there an era when you could put in more than one `substituters` entry in a `nix.conf` file? I seem to remember that being the case a while ago. But it definitely doesn't seem to be that way any more. Am I misremembering the past?
sbetrium has quit [Quit: sbetrium]
<cole-h>
tnks_++
<{^_^}>
tnks_'s karma got increased to 2
<gchristensen>
hmm you can definitely have more than one value in a single definition
<cole-h>
I think it should merge them, no?
<cole-h>
But I don't know if it will merge from two different files (like in your previous situation)
<tnks_>
I need to run an experiment. And `nix show-config` can probably hepl.
<gchristensen>
definitely
drakonis1 has joined #nixos
<bqv>
I think haskell.nix has massively added to my eval time
<bqv>
Or at least the flakey gymnastics I had to do to compile hie
drakonis_ has quit [Read error: Connection reset by peer]
drakonis2 has joined #nixos
proofofkeags has joined #nixos
<tnks_>
okay, I created a `~/.config/nix/nix.conf` with two `substituters` entries. And it appears the last one wins based on a `nix show-config | grep ^subst`...
<moet>
what's the best way to find the last nixpkgs channel rev that used a pre 3.0 version of cabal-install? .. i'm about to try git blame on hackages-packages.nix and go back in time, but it seems like there must be a more efficient way
<moet>
asked another way: what's the best way to get an older version of a package?
<moet>
ah, i see there are versioned packages in the file.. they're just named differently.. instead of `cabal-install` the packages that i want are named as `Cabal_$VER`
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<cole-h>
(Note that this isn't applicable for all packages, or even most)
<cjpbirkbeck>
so last night i was asking about not getting a boot menu on one of my machines; i think i kind of figured it out - i think NixOS wasn't properly setting the efi variables, so setting timeout = 10 didn't change anything
<cjpbirkbeck>
so i switched (back) to systemd-boot and then hammer down on shift-t at boot, which seems to have set timeout to 10. thanks for everybody who gave suggestions on how to fix it
bhipple has quit [Remote host closed the connection]
<wedens[m]>
why do I need to set up overlays in 3 places? nixpkgs.overlays in nixos config, same setting in home-manager config and nixpkgs-overlays in nix.nixPath
<wedens[m]>
they all affect different things, but it's weird that there is no single place to specify overlays
<cole-h>
I don't think you need nixpkgs-overlays in your nix.nixPath if you already have `nixpkgs.overlays` set.
<cole-h>
You don't need it set for home-manager if you place them in an overlays directory or an overlays.nix file
<wedens[m]>
nix-shell is not affected by overlays without nixpkgs-overlays
<cole-h>
I can't reproduce that if I have my h-m overlays in ~/.config/nixpkgs/overlays/
<bqv>
I mean theyre separate, it shouldn't be a surprise. If you want home-manager and nixos to share stuff then maybe put them in the same eval (use the hm nixos module)
<wedens[m]>
I don't. and to place them there I'll need to duplicate system-wide overlays due to paths difference
<cole-h>
But the reason you need those three is because they affect three different things. One affects the NixOS package set, one affects the home-manager package set, and one affects the various nix binaries
<wedens[m]>
bqv: I do use hm as nixos-module
<bqv>
Then you can fix this with an option
<cole-h>
home-manager.useGlobalPkgs = true;
<cole-h>
I think
<bqv>
Hold tight whil- yeah that
<cole-h>
lol
drakonis2 has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
<wedens[m]>
but what package set does HM use when used as nixos module and without useGlobalPkgs=true?
<{^_^}>
In order of preference: Patch source OR ((if it uses PATH -> wrap with new $PATH) AND (if it uses dlopen, (patchelf --set-rpath in postFixup OR wrap with new LD_LIBRARY_PATH)))
codygman has quit [Read error: Connection reset by peer]
<dminuoso>
Mmm, for the package oracle-instantclient, there's two store paths generated, one for `%{hash}-oracle-instantclient-19.3.0.0.0-lib` and one for `{%hash}-oracle-instantclient-19.3.0.0.0`, Im staring at the derivation file ( ./pkgs/development/libraries/oracle-instantclient/default.nix ) - but I dont see why that happens.
<dminuoso>
srk: Whats the source for those outputs? Is that taken from subdirectories during the build phase?
<dminuoso>
That is, does it look for a subdirectory "out/", and place all its content into a separate store entry suffixed with -out?
xavierm02 has joined #nixos
sbetrium has joined #nixos
<srk>
dminuoso: not sure precisely, I think it decides that according to where the paths are installed
<{^_^}>
[nixpkgs] @joachimschmidt557 opened pull request #90451 → nimmm: init at 0.1.2 → https://git.io/Jf7no
<srk>
out is the default, containing everything even if not defined explicitely
<srk>
if you add doc, lib, dev than it splits those from out
orivej has quit [Ping timeout: 260 seconds]
<xavierm02>
Hi. I was wondering how to install the latest precompiled version of a package with Nix. Should I just use a stable NixOS channel instead of the unstable nixpkgs one? Or is there some other way to achieve this?
<NinjaTrappeur>
xavierm02: in general, you can be pretty sure you'll get a cached build as long as you stay on the nixos-{unstable,20.03} channels. You can get the current channel position (ie. git commit) on https://status.nixos.org/.
kreyren has quit [Remote host closed the connection]
<{^_^}>
[nixos-search] @garbas pushed to fix-cron « use short names for channels now »: https://git.io/Jf7c5
<{^_^}>
[nixos-search] @garbas opened pull request #101 → use short names for channels now → https://git.io/Jf7cF
<{^_^}>
[nixos-search] @garbas merged pull request #101 → use short names for channels now → https://git.io/Jf7cF
<{^_^}>
[nixos-search] @garbas pushed to master « use short names for channels now (#101) »: https://git.io/Jf7cA
<{^_^}>
[nixos-search] @garbas pushed 0 commits to fix-cron: https://git.io/Jf7cp
<xavierm02>
NinjaTrappeur: Ok. Thank you!
c0c0 has joined #nixos
<clever>
xavierm02: and the history files in https://channels.nix.gsc.io/nixos-20.03 give you a history of past revisions the channel has been on, which are also going to be cached
<marius851000[m]>
I've made custom stdenv for cross-compiling to the nintendo 3ds, and I have a custom pkgs derivation (a general arm cross compilation pkgs made with crosspkgs). I want to know if it is possible to make this custom pkgs derivation have the custom stdenv on the pkgs (so I can use something like cross3dspkgs.stdenv = cross3dsstdenv).
<clever>
marius851000[m]: and then i can just pkgsCross.vc4.callPackage or use things like `pkgsCross.vc4.extend overlay` or just import nixpkgs with overlays, and `pkgsCross.vc4.customStuff`
sbetrium has quit [Quit: sbetrium]
<marius851000[m]>
clever: But I don't want to modify nixpkgs, and I prefer have an independant repository for everything else (knowing that the particular need is to cross-compile library already package in nixpkgs).
<clever>
marius851000[m]: that might be a bit more difficult, and is a bit of the reverse of what ive been doing
<eyJhb>
But 1. the example is outdated 2. It complains about filesystems and grub. Do I need to import those as well? How are these in general handled?
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #nixos
wolfshappen has quit [Ping timeout: 256 seconds]
Chiliparrot has quit [Ping timeout: 260 seconds]
Chiliparrot has joined #nixos
wolfshappen has joined #nixos
neheist has joined #nixos
bbb has joined #nixos
bbb is now known as Guest6598
<eyJhb>
srhb: ping :D I know you are a expert on SSH targets regarding NixOps!
<{^_^}>
[nixpkgs] @marsam pushed 2 commits to release-20.03: https://git.io/Jf78n
<eyJhb>
srhb: aszlig ended up helping ;) I just needed to know how to handle the none backend for nixops. Does your work have any public configs used in nixops ?
<srhb>
Ah ok :)
<srhb>
eyJhb: No, we use morph for all ours and have yet to open source it.
<Orbstheorem>
Hi. How can I list which stack resolvers are supported in a NixOS release?
<maralorn>
Can please someone with the rights restart this evaluation on hydra? https://hydra.nixos.org/build/121987969 It is blocking a large chunk of the hackage package set for for days now. That build fail seems to be some IO error specific to the build host.
<srk>
eyJhb: not much to handle about that - it generates a key pair for each machine and stores that in a state file, if it fails to deploy the key it gets a bit complicated
<maralorn>
Orbstheorem: Wait a second.
<maralorn>
Orbstheorem: If you want a specific LTS version you can find the nixpkgs commit switching the resolver via "git log --grep LTS pkgs/development/haskell-modules/configuration-hackage2nix.yaml"
<maralorn>
Of course you need a checkout of nixpkgs for that.
<Orbstheorem>
Thank you!
<maralorn>
Orbstheorem: Just be sure to not pick the exact commit you find. The commit only writes the versions from the resolver into that yaml file one of the commits after it is the one that actually updates the nix expressions (in pkgs/development/haskell-modules/hackage-packages.nix)
tmaekawa has quit [Remote host closed the connection]
<maralorn>
I generally would recommend finding a commit that was actually published as a channel.
Zetagon has joined #nixos
proofofkeags has quit [Remote host closed the connection]
<maralorn>
Orbstheorem: Also you can of course use stack with any resolver so they are all "supported" under nixos. But there is for every channel only one resolver for which you can get prebuilt packages via nix.
proofofkeags has joined #nixos
<Orbstheorem>
maralorn: I tried to build using lts-6.35, vur ir xoulsn'r dins ghc7103
<Orbstheorem>
s.vur ir xoulsn'r dins.but it couldn't find.
<srk>
I've used to put such config to network-physical.nix which got merged with network.nix so I can use different backends
<michaelpj>
is there a way to make a derivation depend on something without using it? afaict if you don't actually use the dependency then Nix is smart enough to not consider it a dependency when building the derivation... In this case I just want the thing to have been built in case the user wants it later
<eyJhb>
srk: any none backend nixops configs I can peak at?
<srk>
yeah, trying to find one
<eyJhb>
Because, my problem is now, that I try to import hardware config and network, but they are on the remote host
<eyJhb>
Do I need to pull them before I can deploy?
<srk>
you need a local copy, yes
<srk>
exactly :)
<eyJhb>
... damn it
<maralorn>
Orbstheorem: That's unfortunate. But as I understand it you just need a nixpkgs version which contains ghc7103?
<srk>
eyJhb: that's how we do stuff now with libvirt, justdoit like "oneclick" installer creating a vm, you reboot, copy two fileSystems lines for root/boot and include that to your config
<maralorn>
michaelpj: Is this plain nix or nixos? In general you can always symlink the thing you want to save somewhere into the output of a derivation. e.g. on nixos I tend to link stuff somewhere under /etc when I want to make sure it is always around.
<Orbstheorem>
maralorn: Actually I managed to find that version ^^
<michaelpj>
maralorn: yeah, I could do that. In this case I'm trying to avoid modifying the underlying derivation as much as possible...
<Orbstheorem>
I looked through the commits of Peter Simons, and found LTS 6.3
<maralorn>
Orbstheorem: \o/
<Orbstheorem>
None of them are in the cache though but hey it's building!
<maralorn>
michaelpj: I am not sure what kind of separation you want to achieve (or if you just want to avoid work) but for the former maybe working with overrides might help?
<{^_^}>
[nixpkgs] @flokli merged pull request #90064 → [20.03] Backport of nixpart0 fixes against glibc >= 2.28 → https://git.io/JfSoz
<{^_^}>
[nixpkgs] @flokli pushed 7 commits to release-20.03: https://git.io/Jf7Bn
<michaelpj>
oh hm, maybe `overrideAttrs` actually works
<maralorn>
Orbstheorem: You found a commit with LTS 6.3 that wasn‘t found by that git log --grep?
<Orbstheorem>
Yep, I think it didn't touch configuration-hackage2nix.yaml in that commit
<maralorn>
huh
<Orbstheorem>
8d86c8274f8
<maralorn>
Weird
<Orbstheorem>
Oh, sorry: bef99f11cb4
<maralorn>
michaelpj: Just note that some language specific builders don't work with overrideAttrs.
<maralorn>
Or to phrase it differently: knowing which override method is the correct one for every package in nixpkgs is one of the darkest arts …
fendor has joined #nixos
<fps>
hi, guix has this nice little mechanism for synthesizing environment variables needed for certain packages (or collections thereof). like LV2PATH or LADSPA_PATH. is there suche a mechanism in nix?
<{^_^}>
[nixpkgs] @primeos pushed to master « wayvnc: Add the missing dependency on librt »: https://git.io/Jf7RT
amerigo has quit [Quit: Connection closed for inactivity]
meh` has quit [Quit: I don't want to live on this planet anymore.]
<maralorn>
I remember the other day I tried to use patchPhase on a node package. Only to realize that node uses the installPhase (which is after the patchPhase) to unpack source tarballs …
wavirc22 has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
<ghutzriop>
hi, i connected my nixos laptop to my tv over hdmi. everytime Audio stops, nixos stops transmitting audio over hdmi. this means that every time audio is started, it takes a few seconds until the tv recognizes the audio signal again. how can I configure nixos to always keep the audio signal transimitting, even if it's just silence?
<{^_^}>
[nixpkgs] @mroi opened pull request #90463 → clamav: enable build on darwin → https://git.io/Jf7Ra
wavirc22 has joined #nixos
<edcragg>
hi, wondered if anyone has a quick fix for "openocd: error while loading shared libraries: libudev.so.1: cannot open shared object file: No such file or directory", I'm trying to use `openocd` from nixpkgs-installed platformio
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<srk>
ghutzriop: try disabling runtime power management for the device via powertop
<srk>
edcragg: won't be easy if platformio pulls its own openocd, can it use system one?
<edcragg>
yes, i think it's a bug with platformio's pulled tools, is it a failure of patching, or something else though
tmaekawa has quit [Quit: tmaekawa]
<{^_^}>
[nixpkgs] @FRidh pushed to staging-next « gtk-doc: dont recompile bytecode »: https://git.io/Jf7RF
<srk>
well if it pulls openocd binary after it (platformio) is installed it's not easy to package it so it just works
<edcragg>
true, i wondered how it even managed to work at all with any tools/compilers, tbh
<ghutzriop>
srk: I set everything to bad now, not sure if it's really working. but thanks.
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #nixos
aranea has quit [Quit: rebooting]
<srk>
edcragg: you can check by running ldd on the library to see if it's static or uses libs from /nix/store or so
<srk>
ghutzriop: just a guess, works for some soundcards
bbarker has quit [Read error: Connection reset by peer]
<srk>
edcragg: I see, I would suggest trying w/o platformio if you don't strictly need it, all the tools are available as standalone nixpkgs
Chiliparrot has quit [Client Quit]
notgne2 has joined #nixos
<edcragg>
srk: indeed. i did try copying the openocd invocation out of the platformio verbose output initially, but it didn't do anything and produced no meaningful output, but heh, needs more fiddling
<srk>
edcragg: what's the target mcu?
<edcragg>
stm32f446, using stlink on a nucleo board
<{^_^}>
[nixos-homepage] @garbas pushed to fix-469 « correct link to older nix releases »: https://git.io/Jf7EB
<srk>
edcragg: I'm using blackmagic probe flashed on the programmer instead of stlink but it should work just fine with openocd, you can ask on ##stm32 if it gives you trouble. which nucle btw? the most recent ones spot stlinkV3
<{^_^}>
[nixos-homepage] @garbas opened pull request #471 → correct link to older nix releases → https://git.io/Jf7ER
silver has joined #nixos
<edcragg>
srk: hmm, i hadn't considered the stlink version, but it's supposed to be V2 I think
drakonis_ has quit [Read error: Connection reset by peer]
<srk>
edcragg: both should be supported iirc, V3 works with blackmagic_hosted tool as well
<srk>
edcragg: flashing it with BMP reduces the need for openocd completely so I prefer to use that where possible, one less tool in the chain to worry about
drakonis_ has joined #nixos
<srk>
edcragg: or ideally, acquire genuine BMP to support the devs :)
<edcragg>
:)
orivej has quit [Ping timeout: 265 seconds]
orivej_ has joined #nixos
<edcragg>
i'd not heard of blackmagic at all, so that's interesting
<srk>
it is quite nice for e.g. f4 disco boards, where it can do both gdb server and uart passthru with a bit of hacking
knupfer has joined #nixos
<ocharles>
Has anyone ever tried adding `CPUQuota` to `nix-daemon.service`? Does it work?
drakonis1 has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<ocharles>
We have a 48-core Hydra server that also runs a few other services. I wouldn't mind bumping up max-jobs and stuff very high (to a value that theoretically exceeds what the machine can do, but pratically would lead to more machine usage), but wouldn't want to impact the rest of the machine (or at least want to reserve some extra resources)
<betaboon>
infinisil: remember when you suggested using `crossSystem = self.hostPlatform.system` on my overlay to keep being able to cross-compile. that has some weird sideeffects, seems like it tries to cross-compile even for my host-architecture now xD
<kolaente_>
Hey there, has anyone gotten google test to work with cmake on nixos?
<kolaente_>
I've just installed gmock for my user and kind of expected it to "just work"
lorimer has joined #nixos
<simpson>
It might indeed Just Work, but perhaps only in derivations and not when installed with nix-env.
<kolaente_>
I've put it in the packages definition in my configuration.nix
<kolaente_>
But building failed with "Error running link command: no such file or directory"
<kolaente_>
while linking libgtestd.a
<betaboon>
EatThem: i guess you want `python3.withPackages(ps: [ ps.i3ipc ])` as propagatedBuildInput. or even better create a wrapper for autotiling.py that uses that python
c0c0 has joined #nixos
<kolaente_>
I'm not really sure how to debug this honestly
orivej_ has joined #nixos
bbb1 has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @tapayne88 opened pull request #90485 → fpp: fix python2 replace command and add python3 replace command → https://git.io/Jf7a0
<simpson>
kolaente_: Could you share your derivation?
<kolaente_>
(I've since tried to add gmock globally and removed it for my user, but no luck)
bew has joined #nixos
<simpson>
kolaente_: Oh, I was rather thinking instead that you'd add cmake and gmock to a derivation that builds your package, and invoke that instead. Installing traditional build tools to an environment, whether global or per-user, tends to not work.
<EatThem>
Betaboon: ty but not working because it was not the right error, the real problem is that the app don't has access to my sway desktop windows
<kolaente_>
simpson: TIL
<bew>
Hello, I'd like to use NixOps with the libvirt backend, but I can't figure out how to install the plugin. I checked in the documentation but didn't find mention of this, any help?
<EatThem>
type object 'Event' has no Attribute 'WINDOW_FOCUS'
Zetagon has quit [Ping timeout: 256 seconds]
<kolaente_>
simpson: Kind of the problem with that is that it's not really a package (as in Trying to build a package for nix) but rather a project someone gave me to work on
<simpson>
kolaente_: Sure. So, the first step then would be to write a derivation that builds that package. Once you can locally use Nix to build the package, then you can proceed to developing as usual, using nix-build to replace your normal build-system invocation.
bezaban has quit [Quit: leaving]
<kolaente_>
simpson: I'll look into that. Thanks!
<simpson>
bew: How does one check that the libvirtd backend is available? I have /nix/store/vwdll7m39fa7k4mwa8ap3s7m1ca3yry3-nixops-1.7 and it was built from cache and I *think* it has libvirtd support but I don't know how to tell for sure.
<{^_^}>
[nixpkgs] @datafoo opened pull request #90490 → nixos/pam: ability to calls an external command → https://git.io/Jf7Vt
<yorick>
gchristensen: what did the tweet say :D
smatting has joined #nixos
rajivr has quit [Quit: Connection closed for inactivity]
<AmandaC_>
Question: Is there any way I can, in my nix configs, specify "I want to use nixos-unstable, but with these patches added ontop" -- so I can fast-track locally PRs for stuff that I care about?
AmandaC_ is now known as AmandaC
simba1 has joined #nixos
<lunik1>
"created 6969 symlinks in user environment" looks like I upgraded at the perfect time
<emmanuelrosa[m]>
AmandaC_: For packages you can use a Nix overlay. For NixOS modules you can copy them to /etc/nixos/ and import them directly into your configuration.nix. Personally, I don't use channels at all. Instead I build from a clone of the Nixpkgs Git repo. When I want to use a PR (which I'm doing right now) I just use a Git to manage it all.
<AmandaC>
emmanuelrosa[m]: I'd like to have the convience of having 99% of my system pre-built, as I'm on a laptop, but at the same time it can take a couple days at best for some PRs to trickle into those binary caches. I'd not mind rebuilding small amounts of packages, while getting the benifit of mostly cached builds
<evils>
AmandaC: i base my local nixpkgs on nixos-unstable, still getting cache hits, do have to rebase every time it moves
<evils>
i too would love a way to have the same effect without having to rebase my local checkout...
<emmanuelrosa[m]>
@evils I think that can be done using NUR. I know it's possible to override a NUR repo using a local copy (which is what I do) but I'm not sure if it's possible to have a NUR that is not public.
<AmandaC>
maybe I should just switch to nixos-unstable-small and then use my nixos vm on my gaming rig as a package cache
<AmandaC>
Let that machine build everything, then pull down the binary packages to my laptop
smatting has quit [Ping timeout: 265 seconds]
pamplemousse has quit [Ping timeout: 256 seconds]
<emmanuelrosa[m]>
AmandaC: I build off master (on a laptop) and usually I don't have to compile anything (other than my custom projects), so the binary cache should work well for you using nixos-unstable. It's a bit annoying to have to maintain a separate branch while I wait for the PRs to be merged, but considering the bang-for-the-buck I get out of it, it's not a bad deal :)
<makefu>
evils: i moved away from my custom nixpkgs to upstream nixos-unstable by either overwriting the packages i need `different` or copy-pasting modules i need changed. it may work for you as well (not sure what you do in your checkout though)
<dramforever>
Got full system freeze several times here on my new system here with nixos-unstable (audio repeats a small snippet, so probably pretty bad I guess?), any ideas on what to do?
agsdheidjd has quit [Ping timeout: 265 seconds]
<dramforever>
I didn't get any error messages in journal after reboot
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
<Taneb>
Any advice for how I can diagnose why a Hydra build isn't starting?
dramforever has quit [Remote host closed the connection]
dramforever has joined #nixos
noudle has joined #nixos
<dramforever>
(oops got myself logged out by activating a configuration...)
<dramforever>
I'm trying disabling PRIME for now, but I literally have zero idea what went wrong other than that it freezes...
<goibhniu1>
dramforever: did you try `alt-sysrq-f` ?
justan0theruser has quit [Ping timeout: 260 seconds]
<goibhniu1>
sounds like a likely candidate alright :/
<dramforever>
Not yet, I did not remember to enable sysrq :(
<dramforever>
But will try next time, thanks
<goibhniu1>
good luck!
<MtotheM>
I'm sorry if this is an uneducated question, but it's important for my next move. does nixOS unpack onto my filesystem or into memory? I will have SD / eMMC / NVME on this device.
<dramforever>
I'm generally having less success with Linux this new laptop than the previous one
<MtotheM>
So have several options of where to install and so forth
<gchristensen>
MtotheM: the live ISO ?
<gchristensen>
MtotheM: the ISO is in to memory
<MtotheM>
No, the actual system
<gchristensen>
you'll install it somewhere on disk
<gchristensen>
where is up to you
EatThem has quit [Read error: Connection reset by peer]
davidv7 has joined #nixos
<MtotheM>
ah, so it works like I expected then.
<MtotheM>
thanks
EatThem has joined #nixos
<gchristensen>
yep!
<dramforever>
The installation process is pretty much manual on the filesystem step
agsdheidjd has joined #nixos
<numkem>
has someone here managed to get emacsUnstable (from the overlay) working with libvterm?
<dramforever>
less success... like the wifi seems disconnects itself every now and then :(
<dramforever>
goibhniu1: I just checked and seems like f means oom killer. I don't think it's likely since I have plenty of RAM and I do watch RAM usage. Also it's sudden freeze not gradual slow down then irresponsive
<dramforever>
But yeah sysrq can at least tell me if kernel is responding
agsdheidjd has quit [Ping timeout: 265 seconds]
Chiliparrot has joined #nixos
agsdheidjd has joined #nixos
AmandaC has joined #nixos
<numkem>
I'm trying to install emacs-libvterm and I found that you are supposed to do something like this in your systemPackages: ((emacsPackagesFor numpkgs.emacsUnstable).emacsWithPackages (epkgs: [ epkgs.vterm ])). Yet when I do I get an error saying `error: attribute 'platforms' missing, at
<numkem>
/nix/store/[...]/nixpkgs/pkgs/build-support/emacs/generic.nix:22:17`. I'm on unstable too
<dramforever>
Wait, I seemed to have overlooked the answer: xsession[1493]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 65501, resource id: 10485897, major code: 2 (ChangeWindowAttributes), minor code: 0
<cole-h>
You run `nix-index` once to generate a database, and then run `nix-locate '/glib.h'`
<numkem>
duh, I've been using it through comma from Shopify, didn't think about files like that
<{^_^}>
[nixpkgs] @zimbatm opened pull request #90521 → ###### Motivation for this change → https://git.io/Jf7DA
<eyJhb>
srk: F it, I think I will use nsjail. Seems better. Have to specify exactly what it can use :p - Would still be nice with a base chroot.. But that is for another day
Rusty1 has quit [Quit: No Ping reply in 180 seconds.]
neheist2 has quit [Remote host closed the connection]
nixbitcoin_ has quit [Ping timeout: 240 seconds]
<AmandaC>
Hrm, is there no channel for hydra? I'm having some trouble making it be under example.com/hydra/ instead of example.com:3000 -- it seems the config given in the manual isn't correct, I'm getting nothing but 404s, it seems to be because everything's getting prefixed with /hydra in the path, which I thought X-Request-Base was meant to help with
AluisioASG has quit [Read error: Connection reset by peer]
otti0815 has quit [Ping timeout: 272 seconds]
ericnoan has quit [Ping timeout: 272 seconds]
stteevveen has joined #nixos
delroth has quit [Ping timeout: 272 seconds]
delroth has joined #nixos
bkv has joined #nixos
dramforever has quit [Ping timeout: 258 seconds]
ericnoan has joined #nixos
bqv has quit [Ping timeout: 246 seconds]
pamplemousse has joined #nixos
<stteevveen>
Hi! following this HowTo on discourse on learning how to pin a nixpkgs version (https://discourse.nixos.org/t/nix-haskell-development-2020/6170), I have happened to this file in my case http://0x0.st/iWes.txt however nixos-rebuild emits an error because neither `hello` nor `python36Packages` are in my pinnedPkgs. Any idea what I have done wrong
<stteevveen>
?
<cole-h>
You need to import your pinnedPkgs just like you did for `<nixpkgs>`
dramforever has joined #nixos
<cole-h>
Otherwise it's just a path to the nixpkgs source
<AmandaC>
I see that https://github.com/NixOS/nixpkgs/issues/90097 got "fixed" by cherry-picking a commit into the 20.03 release channel, what exactly is the process for that/ what is happening /waiting to happen to get this into nixos-unstable?
<{^_^}>
#90097 (by mweinelt, 4 days ago, closed): python3.7-apsw fails tests on 20.03
<janneke>
about time "we" took-up the nix work on that?
<AmandaC>
It's not even in nixos-unstable-small AFAICT, so I'm not sure what exactly it was even cherry-picked from
proofofkeags has quit [Remote host closed the connection]
<euank>
It was cherry-picked from master. unstable branches are build from master, but lag behind because hydra has to build them and be happy
<AmandaC>
Indeed. I looked in the unstable channel branch repo though, and the patch doesn't seem to have been made it into there
<energizer>
gchristensen: `hashedPassword = "$6$$/.q/.";` that's redacted, right? not the actual value
<AmandaC>
ah
<gchristensen>
yeah
proofofkeags has joined #nixos
<energizer>
ok
<cole-h>
euank: That's actually wrong, because the channel exporter is stuck ATM. If you look at the `nixos-unstable` branch on the nixpkgs repo, you'll notice it's from less than 8 days ago.
<euank>
Ah, neat :)
<AmandaC>
Nope, the patch mentioned in there doesn't seem to be in the nixpkgs master branch either.
<cole-h>
Not by much (6 days), but still newer
<euank>
Well, the broader point that unstable is built off master but lags behind it stands
<euank>
Oh, weird
agsdheidjd has joined #nixos
<AmandaC>
and I don't see any PR when I search for "apsw"
<euank>
AmandaC: yeah, usually something should land on master before it's cherry-picked to a release branch. Looks like I'm off the mark
<cole-h>
btw, uh gchristensen, ping -- exporter seems dead again x)
<gchristensen>
heh
<AmandaC>
so I feel like either I'm missing something with the process here, or the process was side-lined?
<cole-h>
Give it a little love tap :P
<eyJhb>
gchristensen: sorry for tagging, but the buildFHSUserEnv. that is meant to build a FS, which a program/user will be chrooted into, right?
<cole-h>
AmandaC: That's because the commit it was cherry-picked from is not in master yet
FRidh has quit [Quit: Konversation terminated!]
<cole-h>
It's appears to be a mass rebuild and is currently in the staging flow
<euank>
Some changes go to staging before master, yeah
<cole-h>
Right now, it's in staging-next, which means the next staging merge window will see it make its way into master.
<{^_^}>
#90447 (by FRidh, 12 hours ago, open): Staging next
<euank>
eyJhb: what's your question about chrootenv?
<euank>
Do you have a more specific question? It seems like it's doing the basic stuff of creating a mount namespace, pivoting into it, etc, not too different from what runc/systemd-nspawn/etc do
proofofkeags has quit [Ping timeout: 246 seconds]
<eyJhb>
I want to use it, to build a chroot, that I can use with other programs, such as firejail, nsjail, etc. but atm. I have a simple derivatie, but runnig it yields in... a chroot of / I guess
<AmandaC>
I'll subscribe to that PR then, so I know when to start looking for when I can update, because calibre is a requirement for me, and it ultimately depends on that package. :/
<energizer>
how can i set myself up to avoid running nix-channel during an install?
<eyJhb>
Running nix-build on this, gives me a relult which I can see have the chroot (2 scrpts in), but running it, I have my own normal system...
<cole-h>
I thought the ISOs come with a prebaked channel
<eyJhb>
And I can access all my files euank ... Any ideas?
<energizer>
cole-h: there's still the home-manager channel at least
<energizer>
and anyway i'd prefer to pin
proofofkeags has joined #nixos
<energizer>
or somehow lock the nixpkgs version so i know what i'm getting
<euank>
eyJhb: if you compare `mount` output from in and outside the chroot, you'll see that some directories differ I expect :)
<energizer>
can i just clone nixpkgs and do imports = [./nixpkgs];?
MtotheM has quit [Read error: Connection reset by peer]
<eyJhb>
euank: there is a hell of a lot more
<eyJhb>
I can still see my mounted drive in /state, after I have run the script
<cole-h>
energizer: You'd probably want to do `nixpkgs.pkgs = import ./nixpkgs {};` (or something, I think)
<eyJhb>
Which is not what I would expect :/
<euank>
You can see in chrootenv it's intentionally mirroring everything in `/` that isn't in `bind_blacklist`
lsix has joined #nixos
<euank>
so it masks out /bin and /etc and /lib in favor of the chrootenv
drakonis has quit [Ping timeout: 240 seconds]
<euank>
but it leaves /home and so on
<euank>
does that make more sense now eyJhb?
<cole-h>
janneke: Interesting read. It would be cool to see how far we could reduce our stdenv/bootstrap graph as well.
<energizer>
cole-h: will that also define the nixos modules?
<cole-h>
janneke: If there isn't one already, maybe you'd be in a good position to write an issue to the tracker about shrinking the graph
<cole-h>
energizer: You can find out by setting NIX_PATH= before you rebuild
<eyJhb>
euank: it does very much! Thanks. Thinking there is no good way to make a chroot build to store, while only having the specified packages (partial nix store), and somehow allow for bind mounting things into it
<euank>
What's your goal here?
<euank>
The intent of chrootenv seems to be different from what you want.
<eyJhb>
Making a simple derivative I can chroot /nix/store/something, where I only have a partial system
<eyJhb>
Specifed by the packages. Basically something I can point my jails at (nsjail or firejail) that they can use as a chroot
drakonis has joined #nixos
<eyJhb>
It is basically to only allow X files to be accessed
<eyJhb>
But it might be easier cooking something up
<euank>
I don't think chrootenv fits that intent, and i don't know if anything else exists that's suitable for that, sorry :(
mallox has joined #nixos
<eyJhb>
But would that even be possible? Because I can't bind mount something into the store. Then I should make.. Wait! I should be able to do this :)
<euank>
I know systemd services allow you to do things like `InaccessiblePaths=/ ReadOnlyPaths=/foo ReadWritePaths=/bar`
<eyJhb>
I can make the basic stuff in a chroot, generate those, have a activation script that makes a tmpdir that symlinks the files I need, and the bindmount into that, and then chroot
<euank>
But it seems like you want just that part
<eyJhb>
I just need to get only the packages I need, and not the whole /nix
<janneke>
cole-h: let's ask xwvvvvwx, they already did some work -- is there an issue about this, should there be one?
<eyJhb>
That could also be a solution, but wouldn't work with e.g. firefox + jails I assume
<janneke>
cole-h: what's interesting (and also tricky) is that nix isn't nooted in guile
<cole-h>
janneke: I did a quick search on our tracker and didn't find anything. Even if it gets closed for XYZ reason, I think an issue might be nice, accompanied by reasoning on why it's desired, if only for documentation purposes.
<janneke>
otoh, nix is probably one of the very few other distros that is actually bootstrappable, i.e. has an acyclic directed package graph
<janneke>
i would love for xwvvvvwx to open an issue ;-)
<lewo>
whois xwvvvvwx
rardiol has joined #nixos
* janneke
is now a bit scared they are pressing too hard
<cole-h>
I certainly don't have any sort of expertise on the subject, but if you do create an issue, I'd subscribe to it to see what discussions could come out of it. If it's not too painful, I could see the fact that we would need less space for the bootstrap (like you guys over at Guix now have) as a positive.
<janneke>
guess they're lurking
<cole-h>
(Though I don't actually know how to measure our current bootstrap -- is it just stdenv? That weighs in at ~232M)
<janneke>
they did some initial packaging work on gnu mes, but it's on a private branch i think
<{^_^}>
[nixos-weekly] @ghedamat opened pull request #123 → Add intro to nix blog post → https://git.io/Jf75l
<janneke>
cole-h: i don't know either and tbh the numbers are great for "marketing" but i don't care too much
<cole-h>
It's true :^)
<janneke>
getting rid of binutils+gcc+glibc is a major achievement, imho
<cole-h>
But more marketing means more users means more contributors ;)
<janneke>
i don't want to sound cheesy, but it's sometimes hard to explain the subject
<janneke>
numbers are "easy"
<ghuntley>
Picking up the NixOS on WSL PR once again.
muslimm has joined #nixos
cosimone has quit [Remote host closed the connection]
muslimm has quit [K-Lined]
<mgdm>
oh neat
cosimone has joined #nixos
<cole-h>
NixOS in its entirety, or just Nix + Nixpkgs?
<ogkloo>
Hi, I'm kinda stupid and so I installed nixos without networkmanager. I tried to use wpa_cli to get into the network, but that failed at boot because it could't find a config file, and the example config files seem to be missing. Is there some way short of running an ethernet cable or reinstalling with networkmanager that I could deal with this?
<euank>
If you still have an install cd, I think `nixos-enter` + adding network manager to the config + `nixos-rebuild switch` might let it download NM using the livecd's networking setup.
<euank>
but if you can get wpa_supplicant to work, that seems simpler
<ogkloo>
okay, I'll try the first options given as those definitely seem easier- I'm more familiar with NM's setup but if I can do it without rebooting a bunch that'd be nice. Still very new to nixos.
<ogkloo>
Tyty
codygman has quit [Ping timeout: 256 seconds]
<ivegotasthma>
hello, how can I override biber for biber 2.11 in my shell.nix ?
<ogkloo>
Successfully initialized / nl80211: Driver does not support authentication/association or connect commands?
<ogkloo>
hmmm
codygman has joined #nixos
codygman has quit [Read error: Connection reset by peer]
justanotheruser has joined #nixos
shabius has quit [Remote host closed the connection]
<euank>
ogkloo: there's a -D flag to pick a different driver (such as wext) if the default one really doesn't work
shabius has joined #nixos
<hoverbear>
Can anyone recommend a way to make Firefox on Nixos not crash every time it tries to open a file dialog in KDE5?
drakonis has quit [Ping timeout: 265 seconds]
<ivegotasthma>
hoverbear: did you clean your profile?
<ivegotasthma>
your firefox profile that is
<hoverbear>
ivegotasthma: I reset it just this morning
<ivegotasthma>
if not, you should look for the mimetype associations
codygman has joined #nixos
<hoverbear>
But this problem has been happening for over a month :(
justan0theruser has quit [Ping timeout: 256 seconds]
<ivegotasthma>
I had something where firefox would open pdfs with libreoffice, it was a problem with mimetypes
<ivegotasthma>
I'm not sure if it's the same issue
<ivegotasthma>
*a similar
<hoverbear>
Yeah no this is different, it's about the save/open dialogs being broken :(
<hoverbear>
I don't have any GTK so I presume that's why?
<hoverbear>
But adding nautilus etc to my system, which should add this, doesn't help
<ogkloo>
euank tried that one, different error: rfkill cannot get wiphy information?
<ogkloo>
archwiki also seems to end here
<ogkloo>
Odd, the networking setup worked in the livecd
<ivegotasthma>
how can I override biber for biber 2.11 in a shell.nix ?
drakonis has joined #nixos
rogue_koder has joined #nixos
aasg has quit [Read error: Connection reset by peer]
<euank>
ivegotasthma: same way you normally would. I'd suggest an overlay
<energizer>
it'll have to look like `networking.networkmanager.extraConfig = ''[keyfile] path = ${secrets.wifiKeyPath}'' ` but then how do i put something into that path?
<energizer>
(unless that path is in the store, which defeats the point)
absoluutely has quit [Ping timeout: 246 seconds]
eoli3n has quit [Ping timeout: 260 seconds]
<energizer>
oh i guess i just manually put the key at some path on the drive
dermetfan has quit [Ping timeout: 260 seconds]
absoluutely has joined #nixos
AmandaC has quit [Read error: Connection reset by peer]
<sheeldotme>
coc-nvim requires nodejs at runtime, so I'm trying to create an overlay to do just that. I'm currently running into a recursion error. I'd really appreciate some help. https://pastebin.com/raw/A8DJxVgt . Also, is this even the right approach?
<energizer>
is it possible to not set a root password?
<gchristensen>
root.hashedPassword = "!"
<energizer>
is that a special syntax, or that's actually a hash?
basket_fran has quit [Ping timeout: 240 seconds]
<gchristensen>
it isn't a hash, specifically, it is an impossible value-- nothing will ever match it
<energizer>
ok
<energizer>
gchristensen++
<{^_^}>
gchristensen's karma got increased to 0o475
<sheeldotme>
Accidentally evaluated `import <nixpkgs> {}` is there a way to undo it? Here's the log: https://pastebin.com/GpEY2VHs
pingiun has joined #nixos
<pingiun>
boot.loader.grub.device needs to be something like /dev/sda right, or can it use uuids?
<pingiun>
my server switched /dev/sda and /dev/sdb while booted so grub is complaining
<bigvalen>
Has anyone been crazy enough to try move their root filesystem to another volume ?
<pingiun>
isn't that really weird behaviour btw? I don't know why it's happening
<bigvalen>
I put an NVMe drive in, was gonna try reboot to the rescue image, change the nixos-configuration to point to the new device. But...will it leave the nix-store in the old location ?
<{^_^}>
[nixpkgs] @flokli pushed commit from @maralorn to release-20.03 « system-config-printer: Fix ABRT: free(): invalid pointer »: https://git.io/Jf7xC
cosimone has quit [Quit: Quit.]
<nazrhom>
Hey all, Im very new to Nix and have a problem with nix-shell. Im on osx and got this error: `Package ‘glibc-2.30’ in /nix/store/q6ppzkyplaz92x2p3pyibid9qybml1wr-source/pkgs/development/libraries/glibc/default.nix:149 is not supported on ‘x86_64-darwin’, refusing to evaluate.` It then suggests some option to allowUnsupportedSystem but the
<nazrhom>
build fails because glibc is not available
<pingiun>
nazrhom: which package are you trying to use with nix-shell?
<{^_^}>
[nixpkgs] @Pablo1107 opened pull request #90542 → luaPackages.ldbus: init at scm-0 → https://git.io/Jf7xw
nazrhom has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
xelxebar has quit [Ping timeout: 240 seconds]
iceypoi has joined #nixos
xelxebar has joined #nixos
erasmas has quit [Quit: leaving]
icey_ has quit [Ping timeout: 264 seconds]
[rg] has joined #nixos
<[rg]>
I'm so impressed! at first I was afraid of nix because it seemed complex, but it seems to actually handle to "package management" aspect, as opposed to just installing packages
<hodapp>
anyone have a guess at what might affect SSL certs in something running on Oracle JDK? I am running Processing and it is failing to add libraries that I discovered were all hosted at github and with an HTTPS URL so this is my first guess
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
kreyren has quit [Remote host closed the connection]
<[rg]>
how do I get packages with systemd files up and running? just point directly to the service file?