<energizer>
/dev/mapper/cryptroot on /nix type btrfs (rw,relatime,ssd,space_cache,subvolid=258,subvol=/nix) /dev/mapper/cryptroot on /nix/store type btrfs (ro,relatime,ssd,space_cache,subvolid=258,subvol=/nix)
<energizer>
i guess i'll try nix-store --repair --check-contents --verify
__monty__ has quit [Quit: leaving]
<simpson>
Check dmesg; I think that your drive is failing. The file /nix/store/by7b4hy789sq88dx6ylgh99gc97sznr0-glances-3.1.5/lib/python3.8/site-packages/glances/__init__.py does *not* suddenly turn into null bytes for me at line 36.
<Fare>
how do you do printf debugging in nix? I'm having trouble writing a trivial recursive function, and I'm missing some simple debugging tool.
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JkhT1
<genevino>
so i have a customized iso.nix to create live images that fit my needs exactly - i use environment.etc."something.conf" = [...] to control files in etc, but what's the most straight forward way to control the contents of a file in /home/someuser from the iso.nix file?
<gchristensen>
if you extracted the image you'd actually find there is no /etc, it is created on startup. unfortunately NixOS doesn't really have a way to put files in to /home
<lukegb>
if it's a live image and you have a super simple usecase, you could potentially (ab)use a activation script
alp__ has quit [Ping timeout: 272 seconds]
schweby has quit [Quit: Das ist möglich, also tun wir es. Später.]
<genevino>
hmm, i reckon i could use home-manager from iso.nix in the same way it's used for configuration.nix like described here https://nixos.wiki/wiki/Home_Manager but i don't understand how the complete construct would look with xdc.configFile. in the context of the user specified by home-manager.users.my_username = { ... } on top
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JkhmM
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jkhmy
rprije has quit [Ping timeout: 240 seconds]
nehsou^ has quit []
jonatanb has quit [Ping timeout: 256 seconds]
EmoSpice has quit [Quit: WeeChat 2.7.1]
Lord_of_Life_ has joined #nixos
Lord_of_Life has quit [Ping timeout: 240 seconds]
rprije has joined #nixos
EmoSpice has joined #nixos
cole-h has joined #nixos
<EmoSpice>
For those playing along at home, makeWrapper worked to inject bindings to my custom dwm overlay. But I think I prefer a different method: using stdenv's `substitute` to inject full paths to the executables I need. Thanks for the pointers. It pushed me to read over the docs more thoroughly and notice the substitute functions I'd missed :)
<Fare>
OK. So if I has a path, can I compute from the nix expression the sha256 of its contents, to compare with the upstream contents, and only do trigger overrides if it differs?
<Fare>
(I'm asking, because this would allow me to determine that the version hasn't changed, vs having to try to infer a semi-bullshit version from the source.
<{^_^}>
[nixpkgs] @SuperSandro2000 opened pull request #105422 → passExtensions.pass-audit: Disable tests on darwin cause they just hang → https://git.io/JkhEZ
cptchaos83 has joined #nixos
hlolli_ has quit [Ping timeout: 272 seconds]
rprije has quit [Ping timeout: 272 seconds]
spudly111 has quit [Ping timeout: 264 seconds]
spudly111 has joined #nixos
<rogerr>
i found a bug in nixos i need help fixing. https://termbin.com/ph65 has minimal reproducible config and details
jonatanb has joined #nixos
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
aw has joined #nixos
spacefrogg has joined #nixos
stephank has quit [Quit: stephank]
stephank has joined #nixos
jonatanb has quit [Ping timeout: 240 seconds]
<siraben>
I'm pinning nixpkgs in many projects but won't that lead to worse sharing in general?
ddellacosta has quit [Ping timeout: 240 seconds]
aasg has quit [Quit: Bridge terminating on SIGTERM]
waleee-cl has quit [Quit: Connection closed for inactivity]
sorki has quit [Remote host closed the connection]
<Fare>
What's the right way to declare that a package will depend on another at runtime so it can dynamically load modules from it or read data files from it?
<raghavsood>
You probably want a wrapper
<Fare>
one that exports some shell variables, etc.?
ericsagnes has joined #nixos
<raghavsood>
You can have it put the dependency package in the PATH for the package you are running, so that it can load any modules etc. required
<srhb>
Fare: It really depends on the type of package. The ways in which different ecosystems handle dependencies varies at lot.
<Reventlov>
so yeah i'm recompiling my system to get up-to-date linux headers (because nixos ships outdated linux headers)
vidbina has quit [Ping timeout: 240 seconds]
<Reventlov>
and tests are running but very slowly ( from what I can see, the test after "tests/dd/unblock-sync.sh" has been running for 8 hours and still not ended
<Reventlov>
is that expected ?
<Reventlov>
(coreutils)
simonpe^^ has joined #nixos
<Reventlov>
so, yeah, other question: is there some way to get up to date headers in another way than having to recompile pretty much everything ?
<Fare>
simonpe^^, you mean, using filterSource or some such?
sangoma has quit [Ping timeout: 264 seconds]
<Fare>
builtins.filterSource is not just for source!
eoli3n_ has quit [Remote host closed the connection]
cfricke has joined #nixos
<Reventlov>
and another question: can I easily "disable" tests (like the one for coreutils), but at a more general level than package ?
<thibm>
Reventlov: to problem is that it will trigger rebuild of all packages (which currently have tests enabled) so I think it doesn't worth it
<simonpe^^>
Fare: I was looking at that, but currently its leaning towards scanning all the binaries we "intall" and figuring out what shared libraries are required with readelf or ldd
<pinpox>
thibm: can you explain what the error is? I don't really understand what the message means, i.e. why that path is expected to be there and is not
<pinpox>
how can that happen?
<thibm>
pinpox: I suppose the "getting attributes of path" means that Nix (or any child process) is using attr_get (or something related) on this path
<thibm>
and the function fails telling that there is "no such file"
<teto>
thibm: mostly a mapping (package, license). I asked because I thought nixos would already have something like that. check-meta.nix for instance but it is run on the mkDerivation call. Apparently there is a recurseIntoDerivations I could use
respawn_ has joined #nixos
seanparsons has quit [Ping timeout: 265 seconds]
wnklmnn has joined #nixos
seanparsons has joined #nixos
ericsagnes has quit [Ping timeout: 265 seconds]
jonatanb has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramses_ has quit [Ping timeout: 240 seconds]
jonatanb has quit [Remote host closed the connection]
werner292 has joined #nixos
jonatanb has joined #nixos
werner291 has quit [Ping timeout: 272 seconds]
werner292 is now known as werner291
CMCDragonkai1 has joined #nixos
ericsagnes has joined #nixos
jonatanb has quit [Remote host closed the connection]
<typetetris>
Dunno how it happened, but had to `chown` `/var/lib/acme/.lego` on a nixops (nixos-20.03) system today, to get let's encrypt working again ...
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/Jkjdj
<{^_^}>
[nixpkgs] @SuperSandro2000 opened pull request #105448 → pythonPackages.uvicorn: Disable hanging tests on Darwin → https://git.io/JkjFm
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
<juboba>
I just installed NixOS. I've been using Nix in Ubuntu for a year now. I'm wondering if I can "export" a list of the packages installed by my user with `nix-env -i`.
<evils>
juboba: `nix-env -q`
<thibm>
juboba: there's nix-env -q
<thibm>
although it's based on the packages' names
hyper_ch4 has joined #nixos
<juboba>
yeah, I was able to do that when Ubuntu was installed
<juboba>
now the .nix-env is not working anymore, so I backed it up and generated a new one
<juboba>
what I need are the packages names, the names of the binaries was easy to get
<{^_^}>
[nixpkgs] @mschuwalow opened pull request #105449 → ibus-engines.rime: init at 1.4.0 → https://git.io/JkjNQ
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Maxdamantus has quit [Ping timeout: 260 seconds]
Maxdamantus has joined #nixos
orivej has joined #nixos
<juboba>
thanks exarkun
alp_ has quit [Remote host closed the connection]
zupo has joined #nixos
alp_ has joined #nixos
cosimone has joined #nixos
FRidh has quit [Ping timeout: 256 seconds]
FRidh has joined #nixos
meh` has quit [Ping timeout: 264 seconds]
<octe>
i'm trying to update the version of a package but the resulting binary now crashes with a segmentation fault, kind of stuck.. this is the backtrace, doesn't mean much to me: https://pastebin.com/raw/B4a30Kym
<octe>
but maybe that means something to someone else?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<thibm>
octe: it looks like a dynamic library (dl) inconsistency problem.
<thibm>
you could check what upstream use
werner292 has joined #nixos
<octe>
it's trying to load a library dynamically that isn't in the path or wrong version?
werner291 has quit [Ping timeout: 260 seconds]
werner292 is now known as werner291
cfricke has quit [Quit: WeeChat 2.9]
<risson>
I'm getting `A submoduleWith option is declared multiple times with conflicting shorthandOnlyDefinesConfig values`, what does it mean exactly?
<risson>
Except that all my submodules aren't declared with the same shorthandOnlyDefinesConfig
<risson>
Which btw, they are, and it is `false`
<thibm>
octe: I think so
z1g34n3r has quit [Remote host closed the connection]
zupo has joined #nixos
<octe>
thibm, sounds reasonable.. not sure how to find out what library is an issue though, it's a binary only package so there's not source to check
FRidh has quit [Ping timeout: 256 seconds]
<octe>
i tried using strace, the library it opens before crashing is just libc.so.6
<rogerr>
i found a bug in nixos i need help fixing. https://termbin.com/ph65 has minimal reproducible config and details
<risson>
rogerr: seems like a home-manager issue though
<risson>
I'm not exactly sure hoe that "/etc/profile.d/hm-session-vars.sh" file is loaded though, but it probably has to do with the fact that when you ssh you open a new session, and I'm not sure rdp does that
<rogerr>
__HM_SESS_VARS_SOURCED=1 in both so i know it's being sourced
hyper_ch5 has quit [Ping timeout: 272 seconds]
<risson>
but your path still ends up different?
<thibm>
octe: how do you invoke the binary? Which version (commit) of nixpkgs are you using? I tested the upgrade quickly and it seems to work.
azazel has quit [Quit: bye]
<octe>
it's not the main binary that fail, it's the Engine-binary
<octe>
on my system /nix/store/kkk5jybjj16j87bzya3prvbw8xj5jn7v-bitwig-studio-3.3/libexec/bin/.BitwigStudioEngine-wrapped
<rogerr>
yep it does risson
<rogerr>
which means PATH must get clobbered or something
<octe>
thibm, i'm not sure how to check which commit, i'm on 20.09
<octe>
i can try building it on master
<risson>
rogerr: have you tried displaying/storing in a file yout path right after hm-session-vars.sh has been sourced? to see if maybe something goes wrong in there
<thibm>
octe: is this binary spawned from the main binary?
<octe>
yes
<octe>
though starting the engine binary separately doesn't crash for the old version
<rogerr>
risson sorry i dont understand?
<thibm>
octe: ok
<octe>
i'll try building it from nixpkg-master
<thibm>
That what I just did and it segfaults
<octe>
oh ok, you get the same then
<octe>
the previous version's engine binary runs, even if it exits with an error
<octe>
the first thing it outputs is "Detected instruction set: AVX", perhaps it's trying to load/detect some cpu specific library..
<risson>
I meant doing something like `echo $PATH > /tmp/path-$(date)` right after the `hm-session-vars.sh` has been sourced in your xprofile
<octe>
thibm, any ideas how to debug it?
<risson>
that way you'll see if something goes wrong at that point
<thibm>
octe: (for the version check `lib.version`)
gustavderdrache has joined #nixos
<rogerr>
risson ya i can try that. can i edit files managed by home manager? they seem to be RO
<thibm>
octe: because the source is unfree, the package is a bit hacky. The real logic is in the file bitwig-studio1.nix (version 3 is just overriding it). Here you can see that we remove a bunch of .so files.
Fare has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @ratatamatata opened pull request #105455 → systemc: init at 2.3.3 → https://git.io/JIe8Q
azazel has joined #nixos
azazel has quit [Client Quit]
<octe>
thibm, yes, i'll have to dig into that i guess
<rogerr>
i added the echo at top of .xprofile, right after the hm session vars sourcing, and 3rd after the .profile sourcing. first file had no path addition as expected, but 2nd and 3rd did!
zupo has quit [Ping timeout: 256 seconds]
FRidh has joined #nixos
stoile has joined #nixos
<{^_^}>
[nixpkgs] @drewrisinger opened pull request #105456 → [20.09] pythonPackages.pyqtgraph: use pyqt5 vs pyqt4 → https://git.io/JIeud
<{^_^}>
[nixpkgs] @mweinelt pushed 2 commits to release-20.09: https://git.io/JIeuF
<numkem>
gchristensen: should have went through the whole manual... I was looking for a --substituters or something similar. thanks! gchristensen++
<{^_^}>
gchristensen's karma got increased to 380
justanotheruser has joined #nixos
<gchristensen>
numkem: eh... I submitted a whole PR adding a flag to nixos-rebuild, only to be reminded of --option :P ttps://github.com/NixOS/nixpkgs/pull/104779
<thibm>
to be fair, --option is not specified is nixos-rebuild's manual
<gchristensen>
heh
<gchristensen>
want to PR that? :P
<numkem>
that would be very helpful
<numkem>
considering how important it is, having a --substituters would have been helpful
<rogerr>
i found a bug in nixos i need help fixing. https://termbin.com/agal has minimal reproducible config and details
<thibm>
I should definitively maintain a list of all options missing in nix commands manual and do a PR at some point
lordcirth has quit [Remote host closed the connection]
<thibm>
It happens regurlarly and I don't want to open a PR for one
<thibm>
(So I don't do it. Well…)
<gchristensen>
why maintain a list when you could just PR each one? :)
<gchristensen>
(or open bugs)
lordcirth has joined #nixos
<thibm>
True
bitmapper has quit [Quit: Connection closed for inactivity]
<thibm>
numkem: --option is a general switch to override nix.conf, substituters is no more or less important than other ones
<thibm>
And the we would have missed 2 options in the manual :p
<numkem>
a few lines explaining that would be nice. I figured rebuild was it's own thing and didn't piggy back on nix's options
<sphalerite>
siraben: https://github.com/siraben/dotfiles/blob/master/nixos/configuration.nix won't really pin nixpkgs for much of your system config: the things you're putting in environment.systemPackages will come from the pkgs you're defining at the top, but other than that all the packages used will come from the "ambient" nixpkgs
<simpson>
Your channels are ambient. (Environment variables often provide ambient authority.)
<srk>
nix-instantiate --find-file nixpkgs
<simpson>
siraben: Lucky 10000 for this security concept. From WP https://en.wikipedia.org/wiki/Ambient_authority "The authority is "ambient" in the sense that it exists in a broadly visible environment (often, but not necessarily a global environment) where any subject can request it by name."
<simpson>
e.g. <nixpkgs>
hnOsmium0001 has joined #nixos
<sphalerite>
siraben: no, you don't have to use flakes
<sphalerite>
siraben: you could also pass -I nixpkgs=… to nixos-rebuild every time, or otherwise ensure you have the right nixpkgs in NIX_PATH
<simpson>
siraben: The upshot of what sphalerite is saying is that, if you override NIX_PATH for just a single nixos-rebuild, then you can switch over to something on a temporary basis.
<simpson>
sphalerite++
<{^_^}>
sphalerite's karma got increased to 116
<siraben>
For me, $NIX_PATH is `/home/siraben/.nix-defexpr/channels:nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels`
<sphalerite>
Whether that's elegant or not is a matter of opinion :p
<simpson>
I go completely in the other direction, and embrace channels; when I log into a machine that I haven't touched in months, I would like it to be running the channels that it's currently got, so that I don't get bitten by having to download/unbreak tools.
<sphalerite>
Alternatively, you can also completely avoid nixos-rebuild and build your system from an expression that uses your niv pin instead. That does take a little extra legwork though.
zupo has joined #nixos
<lordcirth__>
nixos-rebuild with a flake works great for me
_Adluc_ has joined #nixos
jonatanb has quit [Remote host closed the connection]
<thibm>
sphalerite: siraben: something like `import <nixpkgs/nixos/lib/eval-config.nix> { modules = [ (import ./configuration.nix) ]; }` can be enough
ericsagnes has quit [Ping timeout: 272 seconds]
<thibm>
it's a bit of work indeed, but you can easily control <nixpkgs>
crazazy[m] has quit [Quit: Idle for 30+ days]
<sphalerite>
thibm: I raise you a ((import <nixpkgs> {}).nixos { imports = [./configuration.nix]; })
<simpson>
rogerr: Maybe? I'm going to repeat what I recommended the other day: Patch these files until they have the content that you want. The only change is that now you have the option of patching out the C code, too.
domogled has quit [Ping timeout: 264 seconds]
<rogerr>
and what im saying is this is a nixos bug that needs to be fixed
<rogerr>
im here reporting it and offering to help debug a fix
alp_ has quit [Remote host closed the connection]
<rogerr>
there's no reason that a working nix config not working isn't a bug
alp_ has joined #nixos
<simpson>
AFAICT this is Xrdp WAI. If you really disagree, then open an issue on GH for Xrdp or for nixpkgs.
<rogerr>
i give nix a config, it isn't honored. it's real simple
<rogerr>
is there another channel for nix devs?
<simpson>
This is the main channel. I'm being relatively generous, given that you've been cross-posting and spamming your requests for help. In particular, please use GH to file bugs as issues, or otherwise they *will* immediately get lost.
<{^_^}>
[nixos-search] @ncfavier closed pull request #236 → Fix rendering of default and example values → https://git.io/JkQnB
zupo has quit [Client Quit]
<rogerr>
im not spamming. if you dont want to help me just ignore me
<rogerr>
the /ignore rogerr is right there
<simpson>
I want to help you. You need to break out of your epistemic helplessness; the power of Nix is in being able to customize the builds of your tools with extremely high precision. If you want to build a custom Xrdp that has a patch on its shell code, or its C code, then that is an option in front of you right now.
rgrau has joined #nixos
<rogerr>
helplessness? keep your insulting opinion to yourself. i've continued to research the problem and i have new info every day
<rogerr>
i don't write C, this is a nix bug
<rogerr>
like i said if you dont want to help me just ignore me and leave me alone you're being harassing
<simpson>
This is a problem that you have repeatedly encountered on every distro that you've used, including non-Linux, and the common ingredient is Xrdp. Meanwhile, SSH works, and the whole configuration pipeline with NixOS and home-manager works via SSH.
<siraben>
sphalerite: where do I put `((import <nixpkgs> {}).nixos { imports = [./configuration.nix]; })` ?
<siraben>
Is that a new configuration.nix?
<simpson>
Finally, it's *not even a bug*; clearly Xrdp's code was written this way, and there's clear security implications. If you want to hack up your execution environment in a custom way, alter the shell code by writing some Nix.
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JIeQx
<rogerr>
ya i was the 1 that told you i encountered this on other platforms, and the fix. i can't add the fix here because nixos generates config files for us and makes them read only
<rogerr>
it is a bug because the config i give nix isn't honored
<rogerr>
nix's xrdp module should handle this
<rogerr>
we disagree, fine, just stop talking to me
<gchristensen>
yikes
<{^_^}>
[nixos-search] @ncfavier pushed 10 commits to fix-import-scripts: https://git.io/JIe7O
<gchristensen>
probably should be tracked in the issue tracker
<thibm>
siraben: it's a nix expression, put it in a file if you want. Important thing is that if you go to that direction, you don't use nixos-rebuild anymore but you're doing the plumbing yourself. Just be aware of that
<gchristensen>
that is unfortunate, maybe you could get one, or somebody volunteers to do it on your behalf
<rogerr>
gchristensen my hope was that once a fix was found i could give the full details to someone to post
<rogerr>
i almost have that
<rogerr>
i need simpson to stop harassing me
<simpson>
rogerr: I'm not going to /ignore you (for philosophical reasons), but please be assured that I will not reply to you in here, #home-manager, or any other #nixos channel. No worries.
<gchristensen>
my read is simpson is trying pretty hard to help
<siraben>
thibm: if, would it be possible to use nixos-rebuild again?
<rogerr>
gchristensen he's not, and i don't care to debate it. he and i aren't going any further
<rogerr>
he can leave me alone or /ignore me. i'll keep posting my issue until i find someone that wants to help debug it
<gchristensen>
okay, but that sort of behavior isn't really desirable here and I think simpson was trying to help explain that, too
heyitsrama has joined #nixos
<rogerr>
trying to help nixos fix a bug isn't wanted ok
<rogerr>
then forget it i'll use a personal work around and fuck nixos
<gchristensen>
okay
<thibm>
siraben: if you keep a configuration.nix in the "regular" form, yes (like with this oneliner importing it)
<rogerr>
waste of my time trying to help nixos
<rogerr>
nixos bugs = harassment and apathy by the maintainers. got it
FRidh has quit [Ping timeout: 240 seconds]
<gchristensen>
I think the root of the issue is the hostility, not the bug
FRidh has joined #nixos
<gchristensen>
which is definitely off-topic for #nixos
<rogerr>
the hostility is after several days of simpson harassing me rather than simply /ignoring me
<simpson>
(I'm barely a maintainer. If I'm answering a question, then usually the package is no longer maintained, as with nvi, or it is extremely esoteric and requires a deep dive, as with Xrdp.)
<rogerr>
it's not unreasonable on my part
<rogerr>
im not going to take abuse
<gchristensen>
well, okay, but you should know we're not inclined to either. feel free to open an issue, ask for help periodically, post patches to upstream, etc.
iH8c0ff33 has quit [Ping timeout: 272 seconds]
<rogerr>
nah im just gonna use a personal fix and nixos can stay buggy, fuck it
<rogerr>
not gonna take abuse AND help nixos
<gchristensen>
by all means
stigo has quit [Ping timeout: 256 seconds]
<halfbit>
If I need protobuf the library as a buildInput but I also need protoc as a nativeBuildInput, how can I get that working?
<halfbit>
I tried adding it to both but the build then attempts to run the protoc for the target architecture instead of the native variant
UnhinchedMind has quit [Ping timeout: 245 seconds]
<halfbit>
there isn't a seperate protoc package
stigo has joined #nixos
<halfbit>
at least that I saw
pushqrdx has joined #nixos
astylian has quit [Remote host closed the connection]
growpotkin has joined #nixos
red[evilred] has joined #nixos
<red[evilred]>
so I have a .drv file that's failing to build
fendor_ has joined #nixos
<red[evilred]>
can someone point me at how I would get nix-build or whatever to just build that drv
<red[evilred]>
in a way that I can examine how it failed
<thibm>
red[evilred]: you can use nix-build --keep-failed to look at the build directory
<red[evilred]>
perfect - thanks
<thibm>
you can also invoke a shell and launch the build to see what happens
<thibm>
(:s in the repl, then genericBuild)
cosimone has quit [Quit: cosimone]
<red[evilred]>
it's not a package
<red[evilred]>
it's a modulew
fendor has quit [Ping timeout: 240 seconds]
<red[evilred]>
networking.hostFiles to be precise
<thibm>
halfbit: after a quick experiment, protobuf in nativeBuildInputs provides a host architecture protoc, as expected
<red[evilred]>
I think my problem is the sandbox
<thibm>
red[evilred]: maybe told us what you are try to do?
<red[evilred]>
Im trying to populate that with a [ "/nix/store/jhodgqwejhkgdqkewhjgeqdwkjhgdwe-examplehostfile" ];
<thibm>
literally?
<red[evilred]>
but I see this: cat: /nix/store/42ccy87fl9px5gdp9p1r656sxl7r79z8-samplehosts: No such file or directory
<thibm>
yes
<thibm>
where does this examplehostfile path comes from?
<red[evilred]>
the examplehostfile is something added with nix-store --add
<ben___>
Is it an anti-pattern to use Docker to add/update channels before running a nix build? I'm very new to nix and trying to make a basic user environment that can run vim and kubectl. I'm not sure if I should be using dockerTools for this, perhaps.
<{^_^}>
[nixos-search] @ncfavier pushed to fix-import-scripts « improve testing of empty lists and dicts »: https://git.io/JIeF0
simonpe^^ has quit [Remote host closed the connection]
fendor_ is now known as fendor
<thibm>
red[evilred]: you should, somehow, put the "source point" of this information directly in networking.hostFiles
<red[evilred]>
right - otherwise what's to stop nix-collect-garbage from blowing it away
<simpson>
ben___: Like, using `FROM nixos/nix` or otherwise calling Nix during your Docker build? No, it's fine and common to do that; it's like running `apt-get update`, right? But dockerTools might eventually be easier, when you want more and more stuff in there.
<red[evilred]>
so how does one do that
zfnmxt has quit [Quit: Bye!]
<thibm>
you are right about the sandbox
zupo has joined #nixos
<thibm>
red[evilred]: you can do [ ./path/to/examplehostfile ]
<red[evilred]>
you can't say "/root/samplefile" either
nehsou^ has joined #nixos
<ben___>
simpson: awesome, thanks :)
<simpson>
halfbit: I don't have an answer yet, but I'm rereading https://nixos.org/manual/nixpkgs/stable/#chap-cross and I have a suspicion that you *will* succeed if you specify your `protobuf` twice, in just the right way.
<thibm>
red[evilred]: No you can't, same reason. But you can if you remove the quotes
<red[evilred]>
ahhh
<red[evilred]>
thank you
<red[evilred]>
why do the quotes make a difference?
<thibm>
Yes: then it's not a string (looking like a path) but a path
<thibm>
An the path will be added to the store, you don't have to do it yourself
<jongewebchat>
hello! i used to run "nix repl '<nixpkgs/nixos>' " in order to explore my current config values. this does not seem to work any longer if the system is configured via /etc/nixos/flake.nix - how do i explore my config now? i tried importing flake.nix, but it seems like i have to do the fixpoint iteration myself, no idea if that is the right way.
<red[evilred]>
I'm wondering if we're going to have to build a custom derivation to generate that file
<{^_^}>
[nixpkgs] @kisik21 opened pull request #105469 → nixos/tests/cloud-init: fix the erroring out → https://git.io/JIeNG
<red[evilred]>
and then use that
<hyper_ch>
ignore works both ways... instead of tellling the other user to /ignore {me}, one could also /ignore {other user}
jonatanb has quit [Ping timeout: 260 seconds]
<thibm>
red[evilred]: what do you mean? If the file is already on you system, you can just refer to it with a path. If you need to generate its content, then yes, you need a derivation
<red[evilred]>
but it doesn't matter how I specify the file - it can't find it
<red[evilred]>
that's my problem
<red[evilred]>
for example, if I use (unquoted) /etc/nixos/samplefile - it tries to do this:
<red[evilred]>
cat: /etc/nixos/etc/nixos/samplehosts: No such file or directory
<simpson>
halfbit: Okay, so having read the docs, I'm still a little in the dark, but I kind of understand. First, I have this patch https://bpa.st/ZFLA which splits proto3's outputs, if you're using proto3 and needed that. (The split might be wrong, too; not sure?)
<thibm>
red[evilred]: there's a double /etc/nixos, there's a problem somewhere for sure
<red[evilred]>
right
<simpson>
halfbit: Second, I think that you possibly want to try putting protobuf into `depsBuildTarget`. I am *really* not sure how this is supposed to all come together, but maybe this is a useful direction.
<red[evilred]>
so - if I change it to just ./samplehosts
<simpson>
If any/all of this works, we can document it and etc.; make a bug and tag me.
<red[evilred]>
cat: /etc/nixos/samplehosts: No such file or directory
<red[evilred]>
which the sandbox rightly rejects
<halfbit>
thibm: thanks
<halfbit>
simpson: thanks, will try these things
<simpson>
Good luck. I hate fighting protoc but it is a thing we all must do sooner or later.
<halfbit>
thibm: the problem is there's both a native (x86_64) protoc *and* the target protoc (aarch64) which the cmake build then chooses to use the aarch64 variant, ideally protoc would be split from the library I would think
<simpson>
And hey, it's nice that nixpkgs even *has* a cross-compilation infrastructure. There can still be a good ending here.
<halfbit>
simpson: I'm using nix specifically because of its cross compilation infrastructure
<red[evilred]>
I'll bbiab - going to see how other modules solve the problem
<halfbit>
I didn't think it was prudent trying to roll my own builds of the toolchain, libc of choice, and a dozen or so deps for my project
<halfbit>
nix has all that done it seemed, with some added bonuses
<neonfuz2>
So I'm trying to bump a project right now but the maintainers aren't responding. If I add myself as a maintainer and mark it as reviewed could that speed up the process?
<neonfuz2>
it's been over a month now
<neonfuz2>
I do intend on maintaining this package
<boogiewoogie[m]>
hey. the `bin/python3` in a python virtualenv is just a symlink to the system python executable. however, executing this symlink via its absolute path somehow still gives the resulting python call the symlink's corresponding virtualenv (i.e. `sys.prefix` and `sys.exec_prefix`), regardless of other factors. I was wondering how this is done, can a symlink somehow communicate with its target when it's run?
<boogiewoogie[m]>
not nixos-related, sorry for off-topic. but I was pretty sure there's gotta be someone here who knows this. =)
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixos-search] @garbas merged pull request #240 → Correctly replace set-env with Env Files in GitHub Actions → https://git.io/JIehH
<{^_^}>
[nixos-search] @garbas pushed to master « AWS_DEFAULT_REGION was missing in our cron github actions (#240) »: https://git.io/JIvTA
<{^_^}>
[nixos-search] @garbas pushed 0 commits to fix-github-actions: https://git.io/JIvTx
proofofkeags has joined #nixos
<infinisil>
Ke: Yup, reviewed :)
<Ke>
infinisil: thanks, but I see that the conflict already resolved the issue I had, I'll just drop the pull request, thanks
<Ke>
the other commit was from march, so it had been there for quite a while
c0c0 has quit [Quit: WeeChat 2.9]
<Ke>
=o)
<{^_^}>
[nixos-homepage] @garbas pushed to github-actions « add nix profile to PATH »: https://git.io/JIvkK
<Ke>
maybe it came through via staging or something
<{^_^}>
[nixos-homepage] @garbas opened pull request #654 → add nix profile to PATH → https://git.io/JIvkP
<{^_^}>
[nix] @edolstra pushed 9 commits to eval-optimisations: https://git.io/JIvkd
<FRidh>
boogiewoogie[m]: if I am correct argv contains the path to the symlink, as that is how it is invoked. Then, it checks $argv/bin/../pyvenv.cfg If that file exists, it knows its in a venv, and loads what it should
<FRidh>
or more like $(dirname( $argv))/../pyvenv.cfg
<FRidh>
*argc and in python you can check sys.executable
<{^_^}>
[nixpkgs] @danieldk opened pull request #105474 → WIP: rocm: update to 3.10.0 → https://git.io/JIvIz
stigo has quit [Read error: Connection reset by peer]
zupo has quit [Client Quit]
<emilsp>
is there documentation about all the groups that exist by default on nixos? Looking to make my default user able to write to tty devices
<prop_frms>
So far I have an overlay with config.nixpkgs.config expanded to just config. See https://psty.io/p?q=52bf3
sigmundv has joined #nixos
stigo has joined #nixos
<mgsk>
I have a mkDerivation that I import in configuration.nix. How do I make that available to e.g. a shell.nix? The mkDerivation defines "sbcl", and my shell.nix refers to that name, but it uses the sbcl in nixpkgs
sangoma has quit [Quit: WeeChat 2.9]
<fzakaria>
gchristensen: what do you mean drop aws ? In the base Nix installation?
<gchristensen>
pkgs.aws is never the tool anyone is looking for
<fzakaria>
gchristensen: something that comes up a lot for me + when I review PRs is namespacing
<fzakaria>
There's too much of a "let's Nixify every single tiny project" in the monorepo that is at odds with that
sangoma has joined #nixos
<gchristensen>
yea
UnhinchedMind has quit [Ping timeout: 245 seconds]
Edward- has joined #nixos
<fzakaria>
There's some waterfall:
<fzakaria>
person learns Nix -> person Nixifies their random application -> person submits it to Nixpkgs -> person never uses nix again & their application has 0 users
<gchristensen>
=)
<fzakaria>
(i forgot person has now domain squatted)
<fzakaria>
I know a lot of discussion on discourse especiall with jringer is about making nix more user friendly & even more open to contributions.
<fzakaria>
After having used nix for 1+ year in a professional capacity at work; i want the opposite lol.
Edward- has quit [Remote host closed the connection]
<fzakaria>
i mean user friendliness is great; i mean more geared though to professionals/SRE/DevOps & a higher bar for submission of apps or some sort of staging workflow to promote them.
<fzakaria>
to `top-level.nix`
<gchristensen>
there is a double-edged sword to being so big tent, and one side is if you have it packaged, you have fewer reasons to avoid nix
<Yaniel>
top-level.nix is getting inconveniently large tbh
<Yaniel>
a proper, well-publicized search is a lot better for user friendliness
<gchristensen>
yea
eoli3n has quit [Remote host closed the connection]
<fzakaria>
somehow adopting NUR would be better; or i guess flakes might solve that since there's less of a need to have it all in a monorepo
eoli3n has joined #nixos
<gchristensen>
Yaniel: I believe that one problem facing Nix(OS) is we need to be able to grow in a way where users don't feel like their immediate goal is "get it in nixpkgs/nixos"
<fzakaria>
but then how do you solve search :)
<Yaniel>
NUR/flakes I suppose does solve that
<Yaniel>
and some kind of searx thing for discovery
<gchristensen>
an example of this is nixos probaly has no business having a module for weechat as a service being evaluated on every nixos-rebuild ever
<fzakaria>
lol
<Ke>
heh just realized that actually that earlier commit did not fix my pull request issue, just makes workaround a bit easier
<fzakaria>
If the burden to maintain moves to authors then I find you'll get higher quality or none at all (my favorite two options)
<gchristensen>
hehe
<fzakaria>
none > poor
<gchristensen>
for some values of none and poor and ecosystem size I agree
<Ke>
on my personal nixos I use imports for the modules I want in, why can't nixos modules be like that?
<Ke>
I guess imports is slightly nasty, because it gets evaluated early on
<gchristensen>
well we don't have a structure for that
<Yaniel>
-> flakes
kalbasit_ has joined #nixos
<Yaniel>
oh yea *modules*
<Ke>
not saying it's really something that could be done today
<Yaniel>
can flakes add modules?
<lordcirth__>
Flakes solve a lot of stuff. Needs better docs and tools, though
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 3 commits to master: https://git.io/JIvqB
<Lordcirth>
Ke, it's not ideal, but neither is having a prod you can't rebuild
<Ke>
even failing to compile is better than depending on years old stuff
<fzakaria>
I think you underestimate how old corporate world depends on "old stuff"
<Ke>
but then you don't even get a warning that your system is broken
<Lordcirth>
With a working baseline, you can try to update it and fix problems as they arise. With a non-working baseline, you may not know why it doesn't compile and don't know where to start.
<Ke>
which is imo quite horrible
<Lordcirth>
You definitely want to document and/or have something checking for deps that are old
<Ke>
fzakaria: I am not corporate world
<supersandro2000>
lukegb: I let you wait one day. That is really short for nixpkgs time
<Lordcirth>
"If I update glibc from X.Y to X.Z it crashes" is a lot better than "it worked 3 years ago and not now"
<Ke>
I guess it would be ok for me, if you could set some minimum age for flake's deps
<Ke>
maximum...
<gchristensen>
fzakaria: "old stuff" heh yea
<Lordcirth>
Yeah, a tool that checked flake.lock's and looked up the commit dates would be pretty cool
<lukegb>
supersandro2000: yeah, I know, but my factorio ⚙️
<infinisil>
lukegb: Hehe, supersandro2000 was faster :)
<lukegb>
On a related note I've been trying to go through nixpkgs PRs in reverse order and see whether the _really old ones_ are still moving
<lukegb>
It depends how lean: is lean "lean enough to build the minimal ISO" or "lean enough to build the GNOME/KDE ISOs"?
<simpson>
Are there any practices within nixpkgs for marking Nix expressions as generated by tools? I am fixing a file which was hand-edited several times, and would be glad to include it in some list of files which generate a warning when edited or something for maintainers.
<fzakaria>
I'd leave that up to a BFDL but probably include basic programming language support & system services.
<Ke>
I think archlinux also has tiers
<Ke>
like core, whatever and user contributed aur
<Lordcirth>
simpson, I would just put a comment at the top
<supersandro2000>
lukegb: the factory must grow!
<boogiewoogie[m]>
FRidh: aah, I see. yeah, makes sense. thanks for clearing this up for me!
<simpson>
Lordcirth: There is one, but that didn't stop folks. I'm updating the docs and hopefully that will at least clear up what folks are supposed to do.
<lukegb>
simpson: add one at the bottom as well :>
<lukegb>
Unless people are editing it in the middle, in which case, oh well
<supersandro2000>
fzakaria: just install nix and only use nix-shell. Can't get more minimal than that
<fzakaria>
It needs to be way smarter, since you have to diamond dependency resolve.
<fzakaria>
i.e. in the Ruby example, if libruby resolved to /nix/store already has glibc then you probably want to pick that instead of the one listed in the top ELF
<fzakaria>
but i think there's something neat there to play with.
<{^_^}>
[nixpkgs] @zimbatm pushed commit from @groodt to master « python: pip-tools: 5.3.1 -> 5.4.0 (#105451) »: https://git.io/JIvZX
<simpson>
SomeoneSerge: Typically you can just use paths as if they were derivations. What are you stuck on?
<SomeoneSerge>
simpson: ah, there's just an .sh which I want to make a defaultPackage in my flake.nix - and I realized I'm not sure what's the canonical way to do so
<simpson>
bourbon: "Google’s Bazel rules for building Android apps will be open sourced, used in AOSP, and maintained by Google" is the actual motivation; it's not a r13y situation.
pushqrdx__ has quit [Client Quit]
pushqrdx has joined #nixos
<bourbon>
it hit my radar because it's an OS build on bazel
<bourbon>
even if they're not doing it for reproducibility, advocates could push it there
<bourbon>
is an interesting benefit of getting it on to bazel if they go that way
jonatanb has quit [Ping timeout: 240 seconds]
<samueldr>
IIRC android already is binary reproducible
<{^_^}>
[nixpkgs] @kisik21 opened pull request #105487 → gst-plugins-good: fix aarch64 builds and make raspi deps optional → https://git.io/JIv4M
hexo^ has joined #nixos
halfbit has quit [Read error: Connection reset by peer]
<bigvalen>
If you run a local caching nameserver, and break the config, so your machine no longer can look up addresses...but 'nixos-rebuild' won't work, because you can't find cache.nixos.org - what do you do ?
<bigvalen>
Just ... er ... speaking theoretically. I'd never be stupid enough to do that.
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JIvB2
<ben_>
Is there a way to get the signature of a lambda? Similar to builtins.attrNames
<thibm>
bigvalen: you don't need cache.nixos.org to build the config anyway
<thibm>
(but you would need to resolve other domains of course)
<bigvalen>
Hmm. Maaabe my fix was going to be "dump bind, use unbound instead"
fendor has quit [Remote host closed the connection]
<qyliss>
bigvalen: I'd do --option substitute false
<thibm>
ben_: there's lib.functionArgs
<qyliss>
which will also help you if you want to switch to a new config while offline, as long as you don't need anything new from the internet to built it
<drakonis>
aight yalls, is there a thing to diff generations?
<thibm>
drakonis: there's nix-diff
<prop_frms>
I managed to pass through localSystem by removing the system argument from mirror-closure in order to avoid the legacy system assertion in impure.nix. nix-nixos repl '<nixpkgs>' is showing config.nixpkgs.localSystem set in the same manner as the system configuration. However, spot checking haskellPackages.cryptonite.drvPath by grepping for requiredSystemFeatures shows the package derivations in the repl
<energizer>
,locate bin/aticonfig
<prop_frms>
have not inherited the environment (should be set to "gccarch-${localSystem.gcc.arch}"). Should I pass through a stdenv as well? https://psty.io/p?q=49f97
<{^_^}>
Couldn't find in any packages
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<energizer>
where is aticonfig?
cosimone has quit [Remote host closed the connection]
<juboba>
what's the simplest way of modifying the sources of `st` (a simple terminal that gets configured by editing the sources)? Should I create a nix derivartion?
<prop_frms>
BTW, I'm trying to setup this environement to debug a test failure in cryptonite (as packaged in 20.09) related to setting gcc.arch (I am able to reproduce hydra's successful build without optimizations).
vesper11 has quit [K-Lined]
iH8c0ff33 has joined #nixos
<thibm>
juboba: the easiest way is to do `st.overrideAttrs (_: { src = …; })`
<juboba>
thanks thibm, where can I see documentation for this?
<juboba>
(what concept should I look for)
<prop_frms>
I have just been setting haskell.lib.dontCheck in an overlay as the test failure is not reflected in git-annex for which it is a dependency.
<Alastair>
I only get this issue when using an installer to install a new image. If I upgrade an existing 19.09 image to the same as the installed image, autoLogin seems to work fine
<Lordcirth>
Alastair, can you try building a 20.09 image with system.stateVersion= "19.09"?
<Alastair>
Sure
<{^_^}>
[nixpkgs] @alunduil opened pull request #105494 → nixos/nixpkgs/doc: add missing operator to attrsets.mapAttrs example. → https://git.io/JIvzp
<Lordcirth>
As that is the most obvious difference between a fresh install and an upgrade
noudle has quit []
<Alastair>
Should `users.users.root.hashedPassword` be `""` or `*`?
<Alastair>
`"*"`
puck has joined #nixos
<Lordcirth>
Alastair, emptystring will allow local login, null will disallow login
<Lordcirth>
"*" would presumably also disallow login
<{^_^}>
[nixpkgs] @erictapen pushed commit from @petabyteboy to master « unifiBeta: 6.0.28 -> 6.0.36 »: https://git.io/JIvg7
<{^_^}>
[nixpkgs] @3699n opened pull request #105496 → Update etesync-dav to 0.30.6 and add etebase to python-modules → https://git.io/JIvg5
<Alastair>
Lordcirth Thanks. `"*"` allowed local login in 19.09 but in the 20.09 comments it says it does not set a password, which I intepret to mean cannot log in.
<{^_^}>
[nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/JIvay
ericsagnes has joined #nixos
hisham is now known as CodeWarrior
<Alastair>
Lordcirth As in downgrading from NixOS 20.09 to 20.03?
<Lordcirth>
Alastair, building a 20.03 image. You said that 19.09 worked, and 20.09 does not. So if you try 20.03, that may help you figure out what change caused this
<Alastair>
Got it
<Lordcirth>
Then you can perhaps git bisect from there, if need be
<Alastair>
Think I will wait until tomorrow to try that. Thanks for taking a look!
<{^_^}>
[nixos-homepage] @garbas pushed to improve-readme « write to stdout »: https://git.io/JIvVv
<Lordcirth>
Alastair, no problem, good luck. Let me know if you figure it out
tlaxkit has joined #nixos
thibm has quit [Quit: WeeChat 2.6]
<catern>
are overlays not usable from within packageOverrides in config.nix? I'm using an overlay (emacs-overlay), it seems to work fine (nix-env -iA nixpkgs.emacsGit works, which is added by the overlay) but if I use packages from the overlay in packageOverrides, they aren't there
<{^_^}>
[nixpkgs] @SuperSandro2000 opened pull request #105500 → python3packages.bme680: Mark Linux only as upstream → https://git.io/JIvVV
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JIvV6
neiluj has quit [Ping timeout: 272 seconds]
<sphalerite>
catern: no, you'll probably want to use another overlay rather than packageOverrides.
neiluj has joined #nixos
hello90 has joined #nixos
<hello90>
hello
<sphalerite>
catern: packageOverrides is just the first overlay that's applied essentially, except it's less powerful than an actual overlay since it doesn't get the self argument, only super.
Lordcirth has quit [Remote host closed the connection]
<hello90>
I'm in the middle of installing nixos when the gnome lockscreen gets in the way
<hello90>
I don't know the nixos user's password
<hello90>
it's supposed to be empty
<hello90>
but simply hitting enter for the password doesn't work
<hello90>
the install script is running behind the lockscreen
<hello90>
I can't know when it's finished
<hello90>
what on earth is the password
<{^_^}>
[nixos-homepage] @garbas pushed to improve-readme « be smarted on what we watch »: https://git.io/JIvwO
<sphalerite>
hello90: the screen probably shouldn't lock in the graphical installer though, or at least not require a password to unlock. Feel free to report an issue at https://github.com/nixos/nixpkgs/issues
spudly111 has joined #nixos
<hello90>
oh I sure will, no one has to go through this
iH8c0ff33 has joined #nixos
<hello90>
sphalerite: I'm very new to all this, sorry but why nixpkgs?
<sphalerite>
because that's where nixos lives as well :)
<prop_frms>
Anyone know how to set the stdenv of a nix repl to the same the current NixOS system? (i.e. bash = /run/current-system/sw/bin/bash etc.)
<ToxicFrog>
Anyone else seeing "JWS verification error" with ACME over the past ~week?
<catern>
overlays is kind of awkward though
<catern>
I've spent a fair bit of time telling my users to use packageOverrides, heh
ben_ has quit [Ping timeout: 240 seconds]
ben_ has joined #nixos
<catern>
it's kind of annoying to have to tell them to split out any customizations into a separate file - is there some way to have an overlay in the same file? well... I guess it only matters if they're using a second overlay
<sphalerite>
ToxicFrog: #101445 — I'm guessing you upgraded t0 20.09?
<Jonathan82>
sphalerite Should the install script work?
<sphalerite>
Jonathan82: on aarch64, I think so. On 32-bit ARM architectures, I think there are no official binaries
ericsagnes has quit [Read error: No route to host]
ericsagnes has joined #nixos
<prop_frms>
sphalerite: Understood. I was rather trying to refer to the builder bash as referenced in all store derivations (.drv files) of the current generation. Does this have a well known name?
<sphalerite>
prop_frms: stdenv.shell points to the executable directly, stdenv.shellPackage is the derivation
<sphalerite>
prop_frms: assuming you're on the same nixpkgs version that the system was built from, that is
spudly111 has quit [Ping timeout: 256 seconds]
<prop_frms>
sphalerite: Right... I'm just looking to set a custom stdenv as I'm building with gcc.arch (which effects all of the stdenv including the non-binary early stages)
<prop_frms>
sphalerite: I just have <nixpkgs> set from the root channel and no channels in any user.
<Jonathan82>
The nix install script is failing on my PinePhone (with Arch), which should be aarch64, so it should have binaries.
<prop_frms>
sphalerite: So everything is building from the same nixpkgs... just a different stdenv as nix repl does not inherit localSystem from configuration.nix.
<{^_^}>
#25264 (by volth, 3 years ago, closed): How to tell nix-build/nix-shell to pick up config and overlays from nixos configuration?
<sphalerite>
Jonathan82: then we'll need some more details on how it's failing to be able to help.
<hello90>
I added a user in my configuration.nix file like so: `users.users.nixy = { isNormalUser = true ; extraGroups = [ "wheel" ] };`
<sphalerite>
hello90: missing semicolon between ] and }
Jonathan82 has quit [Remote host closed the connection]
iH8c0ff33 has quit [Quit: WeeChat 3.0]
<hello90>
yes I didn't actually make that mistake, but don't worry the system built
Jonathan3 has joined #nixos
<hello90>
spalerite: now I can't log into nixy because apparently I forgot to set a passwd
<hello90>
nor can I change the passwd
<Jonathan3>
Ah shoot. I did not post the error report because it was useless. But I see now above it, it says rsync was not found.
<hello90>
I get a passwd: Permission denied
<Jonathan3>
Thanks, I guess. Sorry for the dumb question.
<hello90>
running this as the root user
<sphalerite>
hello90: huh, that's odd. Did you set users.mutableUsers to false?
<hello90>
interestingly, if I add sudo, I get a `PERM_SUDOERS: setresuid(-1,1,-1): Operation not permitted`
<hello90>
sphalerite: no I didn't
<sphalerite>
uuuuh.
<sphalerite>
That's weird.
<hello90>
all I did was build the system with `nixos-install` and reboot
spudly1 has joined #nixos
<sphalerite>
I have no idea what's wrong there
<sphalerite>
and I need to sleep
<hello90>
oh sorry
<hello90>
maybe I can just change the user's name, and make sure to set the password right after building
<hello90>
I can build with nix-build right?
<sphalerite>
nixos-rebuild switch
<sphalerite>
good luck, and good night! :)
<hello90>
umm, what's the difference please x)
<hello90>
oh good night
<hello90>
nvm
<hello90>
nvm
<hello90>
nix-build is for pkgs haha
<ben_>
How can I start debugging output like `builder for 'nix/store/...' failed to produce output path 'nix/store/...'`? I have what I think is a very simple nix script here: https://pastebin.com/1rCHTv25
<{^_^}>
hello90: nix-env has multiple drawbacks as an imperative package manager. nix-env -u will sometimes upgrade to the wrong thing; the outputs to install are very finicky to override; and packages that have been removed or are otherwise unavailable will remain in your profile without any warnings. Consider using a ,declarative setup instead.
__monty__ has quit [Quit: leaving]
<hello90>
so it's recommended to use configuration.nix
<{^_^}>
[nixpkgs] @AndersonTorres opened pull request #105514 → hdl-dump: init at 20202807 → https://git.io/JIvMc
<{^_^}>
[nixpkgs] @jonringer pushed 5 commits to python-unstable: https://git.io/JIvMB
rprije has joined #nixos
<ben_>
How can I get a builder script to write something basic to a file? A script like `echo test > file.txt` doesn't seem to do what I'm expecting.
eoli3n has quit [Ping timeout: 240 seconds]
tlaxkit has quit [Ping timeout: 260 seconds]
<Orbstheorem>
Where can I find the list of primops available in Nix 2.0 restricted mode?
<Orbstheorem>
Basically I would like to import all .nix files in a directory, but upon switching to using flakes, it refuses to import "calculated" paths.
<infinisil>
ben_: What doesn't work about that?
<{^_^}>
[nixos-homepage] @garbas pushed to improve-readme « add serve command and move scripts to scripts/ folder »: https://git.io/JIvDs
<ben_>
infinisil: builder for '/nix/store/...' failed to produce output path ...
<Orbstheorem>
ben_: Builders have to produce a derivation
rprije has quit [Ping timeout: 240 seconds]
<infinisil>
Yeah, you need to populate $out for it to succeed
<hello90>
I changed the user's name slightly in order to debug an earlier issue
immae has quit [Quit: WeeChat 2.9]
<hello90>
but I forgot to put it back the way it was
<hello90>
I'm not using `mutableUsers = false`
<hello90>
I'm just being silly again
<{^_^}>
[nixos-homepage] @garbas pushed to improve-readme « fix for scripts »: https://git.io/JIvy7
rprije has joined #nixos
<{^_^}>
[nixos-homepage] @garbas pushed to improve-readme « add the binary cache instructions for nixos »: https://git.io/JIvSS
<qyliss>
To answer my question from earlier about Adwaita-dark: I needed to set gtk-application-prefer-dark-theme=1 in $XDG_CONFIG_HOME/gtk/settings.ini