FreshcollegeGirl has quit [Ping timeout: 240 seconds]
FreshcollegeGirl has joined #nixos
<nixtacular>
infinisil: but first, i should probably figure out how to get an overlay working, haha. would you mind helping me debug this? https://hastebin.com/zareceliqu
<{^_^}>
#53269 (by chekoopa, 42 weeks ago, open): Can't run Xorg on Intel-Nvidia laptop
mbrgm_ has joined #nixos
<infinisil>
nixtacular: Compare your overlay with what I wrote earlier: `self: super: { bundler = super.bundler.overrideAttrs (old: { src = super.fetchurl { ... }; }); }`
toppler has joined #nixos
<vaibhavsagar>
I'm trying to install on a friend's laptop and it has a high-res screen so the terminal is unusable
Thra11 has joined #nixos
<nixtacular>
infinisil: in your example, seems to me like you're missing a `{` before `old` and the `:` should be a `=`, but more likely i am not understanding the syntax :-)
<nixtacular>
other than that, i can't spot the difference...
m0rphism has quit [Ping timeout: 264 seconds]
<ToxicFrog>
So I'm installing 19.09 on a new machine and woooooah this nixos-install progress indicator
<infinisil>
nixtacular: That's indeed a difference that matters!
<ToxicFrog>
When do we get this for nixos-rebuild?
<vaibhavsagar>
DigitalKiwi: no, it's a ThinkPad P52
Thra11 has joined #nixos
FreshcollegeGirl has quit [Ping timeout: 268 seconds]
FreshcollegeGirl has joined #nixos
<nixtacular>
is there a way to configure address lookups to prefer ipv4 addresses over ipv6 ones in NixOS? normally this can be accomplished for glibc through `/etc/gai.conf`, but I don't see an option in the NixOS manual for it
justanotheruser has quit [Ping timeout: 240 seconds]
selfsymmetric-mu has joined #nixos
justanotheruser has joined #nixos
<nixtacular>
solution. i created my own `/etc/gai.conf` and it worked.
<DigitalKiwi>
vaibhavsagar: oh i see it now on twitter lol
o1lo01ol1o has joined #nixos
<DigitalKiwi>
shapr :D
<vaibhavsagar>
so we successfully installed NixOS without a display manager
gkmngrgn has quit [Ping timeout: 240 seconds]
<vaibhavsagar>
any tips on debbuging xserver?
toppler has quit [Ping timeout: 268 seconds]
lord| has quit [Read error: Connection reset by peer]
lord| has joined #nixos
<ToxicFrog>
Argh. I have it installed, but on boot it just says "SHA256 validated" and then hangs forever
<ToxicFrog>
The liveUSB works fine, though
MmeQuignon has quit [Ping timeout: 265 seconds]
Gohla has quit [Ping timeout: 265 seconds]
selfsymmetric-mu has quit [Remote host closed the connection]
toppler has joined #nixos
ng0 has quit [Quit: Alexa, when is the end of world?]
Gohla has joined #nixos
FreshcollegeGirl has quit [Ping timeout: 240 seconds]
FreshcollegeGirl has joined #nixos
selfsymmetric-mu has joined #nixos
<nixtacular>
is there a simple way to get the `sha256` of whatever is fetched with `fetchFromGithub`? something similar to `nix-prefetch-url`?
<nixtacular>
or maybe i can use `nix-prefetch-url` with Github in some way?
FreshcollegeGirl has quit [Ping timeout: 240 seconds]
<{^_^}>
#72144 (by chessai, 1 day ago, open): libck: init at 0.7.0
<CMCDragonkai>
So on-going analysis of the initrd. In the initrd that is created by netboot, there's a `/init` script at the root of the initrd. This `/init` is a symlink to the stage-1-init.sh and it receives parameters, one of which is `init=...`. Now on the kernel command line in NixOS, this parameter `init=...` is specified to point to a nix store path of the stage-2-init.sh. This is confusing to me because according to the...
<xd1le>
i wonder how rustup works
<CMCDragonkai>
The kernel documentation, the `init=...` is a kernel command line parameter that is interpreted to the init script that kernel runs. So how does the kernel execute the `/init` then?
h0m1 has quit [Ping timeout: 250 seconds]
<CMCDragonkai>
Either the kernel is defaulting to or ignoring or always executing `/init` in initrd, and then not interpreting the `init=` parameter, and then passing to the `/init` which uses that as the `stage2Init` variable to exec.
<danderson>
initrd /init is not the same nit as init=
<CMCDragonkai>
danderson: I'm aware of that
<danderson>
init= specifies PID 1 for the main system, but it knows that it's instead passing control to an initrd
<CMCDragonkai>
danderson: I'm confused as to how `/init` gets executed if the kernel command line `init=` is pointing to the stage-2-init.sh script.
h0m1 has joined #nixos
<evanjs>
re what i'm doing, I can't figure it out with rustup, either x_x
<CMCDragonkai>
danderson: My observation is that `/init` gets executed first, and it does an exec to the `init=...` script.
<CMCDragonkai>
danderson: but what tells the kernel to call `/init` first?
<danderson>
CMCDragonkai: the source code. That's just what an initrd does
<danderson>
if the kernel boot code is given an initrd, it mounts it at / and runs /init
<CMCDragonkai>
I see
<CMCDragonkai>
that's what i suspected
<danderson>
and expects that to eventually exec into the main init process (and respect `init=...`)
<CMCDragonkai>
that this was a default/hardcoded thing
inkbottle has quit [Quit: Konversation terminated!]
<danderson>
I guess if you want to be technical, this is the hardcoded behavior for *initramfs* images, not initrd
<danderson>
they're two different formats, but these days everything uses initramfs
<CMCDragonkai>
danderson: i thought initramfs is compiled into the kernel image?
<CMCDragonkai>
danderson: initrd is a separate file
<danderson>
nope, initramfs is the format+behavior specification
<evanjs>
really all I'm trying to do is _build_ clippy from rust-clippy on a NixOS system
<danderson>
initrd is oooold, like pre-2.6 linux old
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 12 commits to nixos-unstable-small: https://git.io/JeujN
snicket has quit [Ping timeout: 268 seconds]
FreshcollegeGirl has quit [Ping timeout: 268 seconds]
inkbottle has joined #nixos
<danderson>
however...
<CMCDragonkai>
danderson: the initramfs specifies a format and behaviour but not the name of the file?
<CMCDragonkai>
danderson: we just call `initrd` a separate file by convention?
FreshcollegeGirl has joined #nixos
<danderson>
correct. For silly compat reasons, they're still named initrd
<CMCDragonkai>
danderson: we just call it`initrd` and have a separate file by convention?
<danderson>
but they're cpio archives with an executable /init inside them
<CMCDragonkai>
danderson: so its still possible to put the initrd contents into the kernel image
<danderson>
sort-of. Initramfs allows you to have many initramfs files
<danderson>
they all get unpacked at /, and then /init gets run
<danderson>
so you can embed one in the kernel binary if you want, or you can even pass multiple initrd files from the bootloader
eraserhd has quit [Quit: WeeChat 2.6]
<danderson>
the kernel just unpacks all of them one over the other, and the combined result is your initramfs filesystem
eraserhd has joined #nixos
<CMCDragonkai>
ok this all makes sense, and matches what i see in the netboot output
<danderson>
this is actually used all the time in a lot of linux distros btw, for CPU microcode
<CMCDragonkai>
however continuing my yesterday's questions... when i inspect my current initrd on my AMD machine, the initrd doesn't have an init file anymore
toppler has quit [Ping timeout: 240 seconds]
<danderson>
the microcode is distributed as one cpio image, and it gets concatenated onto the "main" cpio image
<danderson>
that way the CPU microcode file ends up "injected" in the init ramfs
fusion809 has joined #nixos
Thra11 has joined #nixos
<CMCDragonkai>
yea right, sort of like a union fs
<CMCDragonkai>
danderson: can you explain why my modern 19.09 initrd has no `/init` file
<danderson>
exactly - except it's just a series of archive decompressions one after the other
<CMCDragonkai>
i unpacked it... and all i see is `kernel/x86/microcode/AuthenticAMD.bin`
<danderson>
ah, well, that's your microcode cpio archive, not the main initrd
<danderson>
that's exactly what I was saying above :)
<danderson>
so you must have another cpio archive somewhere - either burned into the kernel file, or passed-in by the bootloader from elsewhere
<danderson>
I need to go make dinner, but happy to help dig when I get back. I don't know exactly where nixos hides things, but I know a fair bit about how the linux boot process works, so happy to help out
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
jlmeeker has quit [Ping timeout: 265 seconds]
toppler has joined #nixos
mexisme has joined #nixos
<evanjs>
Okay, think I figured it out. Just needed to get the _whole_ rust repo, init a bunch of submodules, and build via `cargo test -p clippy` or clippy-lints, etc
<evanjs>
Now to figure out how to test the website...
das_j has quit [Remote host closed the connection]
Scriptkiddi has quit [Remote host closed the connection]
Scriptkiddi has joined #nixos
das_j has joined #nixos
mexisme has quit [Ping timeout: 276 seconds]
selfsymmetric-mu has quit [Remote host closed the connection]
slack1256 has joined #nixos
marcusr has quit [Remote host closed the connection]
marcusr has joined #nixos
marcusr has quit [Remote host closed the connection]
<dminuoso>
I think concatMapStringsSep should be kicked out of lib :p
gkmngrgn has joined #nixos
<dminuoso>
It promotes this Python-esque type of "pack as much logic into complicated calls".
<dminuoso>
Oh and I must say. `let x = { body = ...; ...}` is the best thing in nix! :)
<gchristensen>
concating a string after iterating over it is a very common idiom in nixos
toppler has quit [Ping timeout: 265 seconds]
<dminuoso>
gchristensen: Absolutely, I prefer to just do something like `let r = { body = concatStringsSep "," quoted; elems = ["foo" "bar"]; quoted = map quote elems; quote = x: ''"${x}"''; }`
<dminuoso>
Minus any possible syntax errors. ;)
<dminuoso>
gchristensen: Making bindings to create small modular code improves readability a lot.
<gchristensen>
this `let` with `body` thing should probably not be used, as it is just an implementation detail of how `let .. in ..` works
<gchristensen>
fair enough, though
thomashoneyman has joined #nixos
<dminuoso>
gchristensen: Its one of the sanest things because there's no where.
<dminuoso>
gchristensen: I found it to be quite pleasing since it allows me to write more expressive nix code.
<dminuoso>
With `let` it requires a high amount of mental stack space to read code.
<dminuoso>
say `f = let ........ in expr` requires you to put so much information onto your mental stack before you get to understand what expression is bound to.
toppler has joined #nixos
<dminuoso>
And it might be nested with more let bindings.
<dminuoso>
If we had `f = foo bar where ...` it would dramatically improve the readability of code since you can get a high level overview what some expression does much quicker. `let x = { body = ... }` lets me emulate where-style bindings. :)
Thra11 has joined #nixos
<gchristensen>
I see
work_ has quit [Quit: Connection closed for inactivity]
teressa has quit [Read error: Connection reset by peer]
bvdw has quit [Read error: Connection reset by peer]
<gchristensen>
that service is trying to SSH somewhere. the user that service is running as doesn't trust the remote's SSH host key
<gchristensen>
put that host key in programs.ssh.knownHosts via ssh-keyscan
graf_blutwurst has joined #nixos
<eyJhb>
gchristensen: I know the issue now.. It is the part from etu configs I have stolen :p
<eyJhb>
Just me being stupid
lsix has joined #nixos
lsix_ has joined #nixos
lsix_ has quit [Remote host closed the connection]
<graf_blutwurst>
Good morning. So i finally figured out what is causing my kernel panics with the newer versions. it's iwlwifi. if i blacklist it everything boots fine. Does anyone have an idea how to address this?
m0rphism has joined #nixos
<eyJhb>
But I finally added cleanup of /tmp, so I can get rid of my bad habbits of placing files into it
<wucke13>
gchristensen: what does it take to become a knonw user for ofborg
<eyJhb>
wucke13: isn't it just making a PR here adding yourself, and having a good reason for it? - https://github.com/nixos/ofborg
<gchristensen>
yep, send a PR (see other PRs for examples.) I'll do a deploy today
<wucke13>
I already have a PR open
<eyJhb>
gchristensen: are there any hard criterias? Do you need to be fairly active or could someone like me just open a PR and request access?
<gchristensen>
cool
<gchristensen>
known? almost no criteria
<gchristensen>
trusted? a bit more complicated
<wucke13>
Is it enough of arguments to claim that I want to test darwin compatibility of my pkgs to become trusted?
<eyJhb>
Saying you don't trust me gchristensen ? ;) :p
ckauhaus[afk] is now known as ckauhaus
mexisme has quit [Ping timeout: 264 seconds]
Makaveli7 has quit [Quit: WeeChat 2.6]
<flokli>
pandoc patch to make it properly understand our current nixpkgs docbook structure, in preparation of using different formats: https://github.com/jgm/pandoc/pull/5864 (cc gchristensen)
<{^_^}>
jgm/pandoc#5864 (by flokli, 6 minutes ago, open): docbook reader: fix nesting of chapters and sections
is_null has joined #nixos
sjourdois has joined #nixos
Makaveli7 has joined #nixos
arahael1 has joined #nixos
toppler has quit [Ping timeout: 276 seconds]
Arahael has quit [Ping timeout: 276 seconds]
<pbb>
I am trying the experimental nix flakes implementation, and I'm wondering if it's intended that I get a lot of different nixpkgs versions from other flakes?
<pbb>
For example running "nix run patchelf" fetches an old version of nixpkgs. Can I prevent that somehow?
<pbb>
I see how pinning nixpkgs for every flake is the only way to achieve 100% reproducability, but I will end up with a lot of different gcc builds on my machine.
toppler has joined #nixos
JonReed has joined #nixos
pie_ has quit [Ping timeout: 240 seconds]
aaa_ has joined #nixos
pie_ has joined #nixos
vesper has joined #nixos
vesper11 has quit [Ping timeout: 268 seconds]
marusich has quit [Remote host closed the connection]
<JonReed>
Hi, I'm trying to upgrade an old nix system, but it breaks due to "unsupported builtin function 'buildenv'". I have identified the problem as nix-daemon running an older version. I.e. `nix-env --version` and `nix-daemon --version` both return `2.2.2`, while `sudo /proc/`pidof nix-daemon`/exe --version` shows `1.11.16`. What do I do next to run a
<JonReed>
newer version of the daemon?
<gchristensen>
how are you trying ot upgrade?
thomashoneyman has quit [Ping timeout: 246 seconds]
<JonReed>
nix-env -iA nixpkgs.nix and `nixos-rebuild --switch` both fail.
<gchristensen>
and you firt updated the channel, or?
<JonReed>
Yeah, `nix-channel --update`
hmpffff has joined #nixos
<JonReed>
Or rather `sudo nix-channel --update`
<gchristensen>
what does nixos-version say?
<JonReed>
`18.03`
<gchristensen>
maybe set your channel to 19.03 first, upgrade, then do 19.09
<gchristensen>
or 18.09 first, then 19.09
<JonReed>
Ok, will try. Thanks!
vidbina has joined #nixos
Tucky has joined #nixos
wrl_ has joined #nixos
wrl has quit [Read error: Connection reset by peer]
<sshow>
from where do i get access to systemd.services, so I can override a service definition: systemd.services.systemd-networkd-wait-online.serviceConfig.ExecStart ?
<sshow>
since config.systemd.services.systemd-timesyncd.preStart is illegal to set
cosimone has joined #nixos
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 9 commits to nixos-unstable-small: https://git.io/JezIW
<sshow>
it appears it is `systemd.services.systemd-timesyncd.preStart`
toppler has quit [Ping timeout: 265 seconds]
wormwood has joined #nixos
jbmusso has joined #nixos
<doelie>
hi. when using buildFHSUserEnv, is it generally necessary to explicitly use patchelf to add proper rpath to binaries generated inside the FHS chroot? i'm trying to wrap a buildroot toolchain. it builds fine, but dynlinks only inside the FHS chroot it was built in.
<Orbstheorem>
buildPhase would probably work, but then it breaks because there's no make install xD
<Orbstheorem>
I guess I'll just keep calling fixupPhase from my buildPhase
<Orbstheorem>
from my buildCommand*
<infinisil>
Orbstheorem: You can set your own installPhase too
<infinisil>
Or `dontInstall = true` to disable the install phase
<Orbstheorem>
infinisil: That works*
<Orbstheorem>
(don't install)
<Orbstheorem>
thanks ^^
JonReed has quit [Remote host closed the connection]
<Orbstheorem>
(The fact that buildCommand prevents all other standard phases should be added to the manual though)
mwelt has joined #nixos
LeshaInc has joined #nixos
<mwelt>
hi @all. Short quick question about nix + haskell + dante. All the internet states that `nix-shell -p cabal2nix --run "cabal2nix . --shell > shell.nix"` will be sufficient. But there's no cabal executable in the corresponding nix-shell.
wrl_ has quit [Quit: Reconnecting]
neiluj has quit [Quit: Konversation terminated!]
wrl has joined #nixos
<mwelt>
I can edit the shell.nix manually, add cabal-install deps, and it'll work. But this breaks the whole >>> add dependency to cabal file >>> cabal2nix it again >>> restart shell - lifecycle
<Orbstheorem>
mwelt: fwiw, you can build a derivation with `haskellPackages.callCabal2nix` and the use the `.env` to `mkShell`, so when you run nix-shell, you'll automatically get into a shell with the cabal dependencies
halfbit has joined #nixos
<Orbstheorem>
mwelt: Also, if you make adrv with callCabal2nix, you can overrideAttrs to add whichever native package you may be missing
xd1le has quit [Quit: leaving]
sigmundv has joined #nixos
Izorkin has quit [Ping timeout: 265 seconds]
<worldofpeace>
nh2_: you shouldn't have to do anything I think. but if you run patchShebangs once on the file/s and, for example, it gets build time bash, it won't run again on that file changing it to the other version. so what I do is run unpackPhase and patchShebangs in the unpacked archive and find what files just need to be patched for the build.
<nh2_>
worldofpeace: but these files contain e.g. `/bin/sh`. Doesn't that mean they won't run on the target system?
tabasko has joined #nixos
custum has joined #nixos
<mwelt>
Orbstheorem: I am not shure if this will work with dante
<mwelt>
<mwelt>
but I'll try, thx!
reallymemorable has joined #nixos
<worldofpeace>
nh2_: I'm not sure I understand, that makes it sound like if you don't run patchShebangs at postPatch it isn't ran at all. and it's still going to happen in fixup, it's just interpreters that are already patched and in the nix store are going to be untouched when we reach that phase, and you'll have the wrong version of the interpreter
<nh2_>
worldofpeace: ah, so you're saying that mkDerivation will patch all the _remaining_ files for me (so that they can run on the target) after the build phase is done? E.g. it will replace the shebangs of the remaining bash files by the bash version that run on the cross-compile target?
<worldofpeace>
nh2_: I believe so, the hook has fixupOutputHooks+=(patchShebangsAuto)
<edef>
hmm. i'd never really considered how patchShebangs and crossbuilds interact
<fresheyeball>
tilpner: do you know how to fix this problem?
<tilpner>
fresheyeball: Redirect a number into the brightness as root
<tilpner>
E.g. echo 10 > brightness
bvdw has quit [Quit: bvdw]
<tilpner>
But check max_brightness
<tilpner>
And the scale might not be "more is brighter"
<fresheyeball>
tilpner: that works as expected
bvdw has joined #nixos
<tilpner>
fresheyeball: I use light
<tilpner>
programs.light.enable
<chessai>
"redirect a number into the brightness as root" if you didnt know what those words meant, that would sound like something a cult leader would say.
kvik has quit [Ping timeout: 246 seconds]
<fresheyeball>
tilpner: what does that do?
mishaor has joined #nixos
<mishaor>
hi everyone
<tilpner>
fresheyeball: It allows me to control brightness more easily
<tilpner>
fresheyeball: E.g. light -S 50 for 50% brightness
<chessai>
is there a way to do nix-copy-closure for multiple store paths, e.g. of all the derivations in a given attribute set
<mishaor>
why do I get an address boundary error when launching Qt5 apps with QT_QPA_PLATFORM=wayland
<tilpner>
fresheyeball: I then call "light" from my i3 config
dhess has quit [Ping timeout: 276 seconds]
<mishaor>
I installed qtwayland
<tilpner>
glittershark: I need more information than that
* tilpner
checks paste
<fresheyeball>
tilpner: awesome!
<fresheyeball>
does it allow a get?
<fresheyeball>
I would like to hook this into dzen
kvik has joined #nixos
<tilpner>
fresheyeball: light -G
<tilpner>
chessai: nix-copy-closure does take multiple paths as arguments
<red[m]>
The way I would probably do it would to make a Package that has those you wanted as dependencies - but there may be an easier way
<chessai>
tilpner: okay, figures. i'll try that later then. thanks
<glittershark>
I guess the // was binding to the whole import expression, rather than just args
<glittershark>
dang syntax trees!
<glittershark>
ty for your help
<tilpner>
glittershark: That was particularly mean, because you imported it without allowUnfree, but then overwrote config so that your repl would show allowUnfree = true
<glittershark>
yeah
<glittershark>
naaaaasty
genesis has joined #nixos
<glittershark>
it does make sense that function application binds tighter than (//) but like
<fresheyeball>
actually is there a version of the Xmonad spawn command that returns a String?
dhess has joined #nixos
<fresheyeball>
]'
<fresheyeball>
^^ that was my 3 year old bumping into me
jonringer has joined #nixos
endformationage has joined #nixos
slack1256 has joined #nixos
<Raito_Bezarius>
Is there any way to generate a derivation without specifying its SHA256 sum? I am in a NixOps deployment context, I'd like to always deploy the latest version if possible
<Raito_Bezarius>
I guess I could just run sha256sum in Nix using pkgs.runCommand
<Raito_Bezarius>
Is there any Good Practice™ to do this?
<{^_^}>
[cabal2nix] @peti pushed to master « README.md: improve spelling and grammar »: https://git.io/JezqH
<exarkun>
You can fetchTarball without a sha256
<exarkun>
It just means it will download it every time
<Raito_Bezarius>
No cache, then?
* exarkun
nods
<tilpner>
Yes cache, 1h TTL by default
<exarkun>
tilpner: waaat
<Raito_Bezarius>
Is there a way to disable it?
<tilpner>
Yes, set tarball-ttl to 0
<Raito_Bezarius>
Awesome
<Raito_Bezarius>
Can I have the same thing for fetch*** methods?
<Raito_Bezarius>
(mostly fetchFromGit(Hub))
lord| has quit [Ping timeout: 276 seconds]
<Raito_Bezarius>
tilpner++
<{^_^}>
tilpner's karma got increased to 51
<Raito_Bezarius>
exarkun++
<{^_^}>
exarkun's karma got increased to 5
<tilpner>
Perhaps for builtins.fetchGit
<tilpner>
And you can use fetchTarball to fetch a tarball of your repo from GH
<doelie>
(for reference, self answer) when using buildFHSUserEnv, is it generally necessary to explicitly use patchelf to add proper rpath to binaries generated inside the FHS chroot? i'm trying to wrap a buildroot toolchain. it builds fine, but dynlinks only inside the FHS chroot it was built in. => rpath of nix's gcc output is fine. it is buildroot "sdk" target that messes with rpath afterwards.
fresheyeball has quit [Quit: WeeChat 2.4]
<Raito_Bezarius>
tilpner: Indeed
<adisbladis>
Raito_Bezarius: You can only do so for builtins.fetch*
lord| has joined #nixos
<Raito_Bezarius>
tilpner: Do you know where is the source code for builtins.fetch* on the nixos/nix repo or nixos/nixpkgs?
<Raito_Bezarius>
adisbladis: Thanks!
<adisbladis>
Since they run in the evaluator
<adisbladis>
Raito_Bezarius: Which the fetchers in nixpkgs are fixed-output-derivations
<Raito_Bezarius>
adisbladis: What does that mean exactly "fixed-output-derivation" ?
<adisbladis>
,FOD
<tilpner>
Raito_Bezarius: src/libexpr/primops.cc
<tilpner>
prim_fetchTarball
<Raito_Bezarius>
tilpner: Perfect
<Raito_Bezarius>
adisbladis++
<{^_^}>
adisbladis's karma got increased to 21
<adisbladis>
Hm, I thought the bot had something for fixed-outputs
toppler has quit [Ping timeout: 276 seconds]
<adisbladis>
Raito_Bezarius: Basically fixed-output derivations are a special class of derivations that has network access
<adisbladis>
And the output of those are verified against a known hash
<Raito_Bezarius>
Okay
<adisbladis>
But, except for that they are fairly standard derivations.
<Raito_Bezarius>
They guarantee a certain determinism across rebuilds?
<adisbladis>
They guarantee that the output of the derivation is exactly what you expected
<Raito_Bezarius>
Alright
<adisbladis>
While builtins.fetch* run inside the process evaluating your nix code (as your user), and therefore has less strict limitations
<adisbladis>
And also why they can take things like ~/.ssh and ~/.netrc into account
<Raito_Bezarius>
Makes sense
<Twey>
Rather, they have network access *because* the output is verified against a known hash
<Twey>
‘Fixed-output’ derivations that know their own intended output hash are allowed more sources of non-determinism, since they're checked anyway
mwelt has left #nixos ["ERC (IRC client for Emacs 26.3)"]
<adisbladis>
Twey: With that said, there is some push to restrict fixed-output derivations
<adisbladis>
(or even remove them entirely in the longer-term)
<Twey>
Hrm. Don't know how I feel about that. My understanding has always been that Nix's reproduciblity guarantee is that *if it builds*, it's reproducible. I don't see any breakage of that guarantee by allowing arbitrary fixed-output derivations, nor any strengthening of it by forbidding them — seems like it just moves more functionality into the “core” Nix code and out of user libraries
<Ankhers>
I am trying to use emacs and org mode to generate a pdf. I am getting an error about grffile.sty not being found. Does anyone know which package(s) I should be installing in order for org mode to have everything it needs?
<exarkun>
Anyone know why `stack path` doesn't get the path for --local-doc-root right? not sure if this is related to stack's nix support or something else.
<slack1256>
Also checkout out `systemctl --user status pulseaudio.service` and checkout the last logs for info. Maybe there is a log about your BT headphones (as a sink etc).
<inkbottle>
OK...
hmpffff has joined #nixos
<exarkun>
Twey: I don't think Nix makes such a reproducibility guarantee. Reproducibility is up to the build tool chain. Nix only invokes that and crosses its fingers.
johnw_ has joined #nixos
<slack1256>
Ankhers: .sty files are files LaTex or the TeX engine needs. Checkout if you can generate PDF from latex. Also try to install pandoc and see if you can generate PDF that way.
<Twey>
exarkun: Well, it tries hard, with things like sandboxing and reproduciblity checking on Hydra.
<exarkun>
I can get behind "tries hard".
<Twey>
reproducibility**
<slack1256>
Ankhers: That way you can diagnose if it's a Emacs' org problem, Latex problem etc.
Tucky has quit [Ping timeout: 268 seconds]
johnw has quit [Ping timeout: 264 seconds]
<Ankhers>
slack1256: I will try the pandoc route, but I'm pretty sure it is a latex problem. I currently have the tetex package installed, it just doesn't seem to come with that sty file.
<inkbottle>
slack1256, adisbladis: Thanks. From the "wiki" it seems there is some issue when using pulseaudio/system-Wide: Someone has said "the info below is not enough" (I'm using KDE and therefore have "systemWide" in my configuration.nix
nobbo has quit [Quit: leaving]
nobbo has joined #nixos
erasmas has joined #nixos
h0m1 has quit [Client Quit]
basvandijk has joined #nixos
<inkbottle>
Anyway, I keep the wiki page in mind and finalize that later
<basvandijk>
Did something change between nix-2.2.2 (from 19.03) and nix-2.3 (from 19.09) regarding nix builds on localhost? My hydra has localhost configured as a build machine so that jobs are also build locally. However I see the following error in my build logs: "cannot build on 'localhost': don't know how to open Nix store 'localhost'". See: https://github.com/NixOS/nix/issues/3177
orbekk has quit [Quit: WeeChat 2.4]
<{^_^}>
nix#3177 (by basvandijk, 2 minutes ago, open): cannot build on 'localhost': don't know how to open Nix store 'localhost'
orbekk has joined #nixos
<slack1256>
Did /proc/sys/kernel/sysrq default value change on nixos 20.03?
fusion809 has quit [Remote host closed the connection]
toppler has quit [Ping timeout: 276 seconds]
<adisbladis>
inkbottle: You're not using pulseaudio system-wide unless you configured that yourself.
<adisbladis>
Tbh the system-wide bits should be removed from the wiki
<adisbladis>
It's really confusing to users who don't know much about pulseaudio
<adisbladis>
system-wide is unsupported by upstream
fendor has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
<adisbladis>
`hardware.pulseaudio.package = pkgs.pulseaudioFull;` and `hardware.bluetooth.enable = true;` should be sufficient
<adisbladis>
In fact, running PA system-wide is _less_ secure
<slack1256>
Take notice it's a big closure, like 1G. For me the cost was worth it as my thesis paper had to had certain format only that derivation provided.
<adisbladis>
Because PA supports module loading, so you could potentially load a module that gives you the same privileges as the PA user
<{^_^}>
[nixpkgs] @jonringer pushed commit from @eraserhd to master « osxsnarf: init at 0.1.0 »: https://git.io/JezOZ
<adisbladis>
Iirc --system was added because of embedded use cases, it's not meant for desktops.
<{^_^}>
[nixpkgs] @adisbladis pushed to master « nixos.pulseaudio: Remove bad recommendation to use pulseaudio in system-wide mode »: https://git.io/JezOl
<{^_^}>
[nixpkgs] @fgaz opened pull request #72306 → mindustry: init at 99 → https://git.io/JezOB
<inkbottle>
adisbladis: So your advice is to simply remove it.
<adisbladis>
inkbottle: Right. That's only true for our install media.
<adisbladis>
Where X runs as root.
<adisbladis>
(I'm not even sure we need it there tbh)
Ariakenom has quit [Quit: WeeChat 2.6]
<adisbladis>
inkbottle: Yes. Please do.
<adisbladis>
It's very likely things will "just work" after that.
drakonis has joined #nixos
<inkbottle>
adisbladis: Thanks
<{^_^}>
[nixpkgs] @adisbladis pushed to release-19.09 « nixos.pulseaudio: Remove bad recommendation to use pulseaudio in system-wide mode »: https://git.io/JezOR
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<stammon>
I'm looking for an option to assemble a filesystem from a list of nix packages. Kind of like dockertools.buildImage but as a result I need a tar (or similar). Has anyone ever done something similar or has some advice on how to do it?
<etu>
adisbladis: I'd assumed that that would have been removed with changing the default user to run as a regular user. But seems like it wasn't.
<{^_^}>
[nix] @dasJ opened pull request #3178 → [flakes] Replace git show with git log → https://git.io/JezOD
<Twey>
stammon: Sounds like `buildUserFHSEnv` or maybe just `buildEnv`?
<Twey>
stammon: You can just tar up the result of that, with -h to follow symlinks if you want
<Raito_Bezarius>
Sometimes I don't understand something about nix-shell and derivations, I have a local derivation file, when I run nix-shell on it, and I do buildPhase it tries to use make but I specified a buildPhase in the derivation and it's not using it, why?
<Raito_Bezarius>
In the env vars, I can see my buildPhase, but buildPhase run something else it seems like
<{^_^}>
[nix] @edolstra merged pull request #3178 → [flakes] Replace git show with git log → https://git.io/JezOD
dreverri has quit [Remote host closed the connection]
dreverri has joined #nixos
neiluj has joined #nixos
neiluj has joined #nixos
neiluj has quit [Changing host]
dreverri has quit [Remote host closed the connection]
dreverri has joined #nixos
<neiluj>
hello! I managed to fix my problem with my nix shell for ocaml development but I'm missing a library : cairo2-gtk (cairo2 is only available through nixpkgs)
<Ankhers>
Is it possible to have multi stage builds like in docker? An example would be that I need packages A, B and C to build my application, but I need packages X, Y, Z to run my application. This way I am not putting a bunch of unnecessary packages on my production server.
drakonis has quit [Quit: WeeChat 2.6]
<neiluj>
I think this can be done simply by building the nix expression for the cairo2 library with the lablgtk as an extra dependency
slack1256 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @jojosch opened pull request #72310 → dbeaver: use github release as src → https://git.io/Jez3q
<Ankhers>
Raito_Bezarius: Thanks. I will take a look through that.
__Sander__ has quit [Quit: Konversation terminated!]
cosimone has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
Ariakenom has joined #nixos
jonringer has quit [Ping timeout: 264 seconds]
<stammon>
@Twey nix-build of a buildFhsUserEnv just generates a script file which chrootenvs into the actual environment. To build a tar archive of that some extra steps are required. Also does the fhsEnv contain everything? I'll use the result to build a vm that contains a kernel, a init binary and the collected files.
<shapr>
Even more impressive, my laptop boots into NixOS by default, but I can still use Ubuntu on my other drive by switching the boot device.
<red[m]>
I have a phone that dual-boots Android and Linux and I keep being tempted to make a NixOS image for it
neiluj has quit [Quit: Konversation terminated!]
toppler has joined #nixos
<Raito_Bezarius>
I have a nix-shell and I am unable to do mkdir -p $out/ in it? Why?
<Raito_Bezarius>
(it says permission denied)
Tucky has quit [Quit: WeeChat 2.6]
<ajs124>
Raito_Bezarius: because it points to the nix store, which is read only.
<Raito_Bezarius>
ajs124: Alright, but in this case, when I nix-build something, how it handles the readonly /nix store?
<Raito_Bezarius>
I guess there are some point where $out must be some nix store path and he must be able to write to it
drakonis has joined #nixos
<Twey>
stammon: I think it contains everything you give it. So if you include a kernel it'll have a kernel
JonReed has joined #nixos
zupo has joined #nixos
drakonis_ has quit [Ping timeout: 246 seconds]
fendor has quit [Ping timeout: 276 seconds]
drakonis has quit [Ping timeout: 264 seconds]
CMCDragonkai has quit [Quit: Connection closed for inactivity]
<JonReed>
Does anybody know how to deal in Nix with python packages that specify extra features in square brackets? That is I'm trying to translate a line like this to nix: `pip install splinter[django]". If I understand correctly, pip parses that line as package name there still being `splinter` and the stuff inside square brackets as extra args that python
<JonReed>
setup somehow recognizes. Where to put that `[django]` in Nix?
<JonReed>
Ah, I think it's `checkInput`. I'll try if that works.
phreedom has quit [Ping timeout: 260 seconds]
judson__ has joined #nixos
<JonReed>
No, that doesn't really make sense. I'm still confused.
phreedom has joined #nixos
cosimone has quit [Quit: Quit.]
<FRidh>
JonReed: not. We don't bother with extra dependencies
cosimone has joined #nixos
fendor has joined #nixos
<{^_^}>
[nixpkgs] @sweber83 opened pull request #72312 → add package for pkgdiff → https://git.io/Jez3j
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 23 commits to nixos-unstable-small: https://git.io/Jezse
<stammon>
@Twey Since the binaries are dynamically linked, they need /nix/store libraries. I'm not sure whether the FhsEnv actually contains all of these. Also I'd have to tar everything up with it's absolute path since to dependency lookup assumes it has a nix store
NoctisLabs has quit [Quit: WeeChat 2.6]
jgt1 has joined #nixos
<JonReed>
FRidh: Ok. Thanks! I'll just add them then as normal dependencies inside `propagatedBuildInputs` then.
<Raito_Bezarius>
How to enable access to the network during a derivation phase?
<Raito_Bezarius>
(I know it won't make the derivation pure, but I'm okay with this)
jgt has quit [Ping timeout: 252 seconds]
wildtrees has joined #nixos
<JonReed>
Raito_Bezarius: What do you want to do? If you want to download something, then why not use `fetchurl` or `fetchtarball` in the nix expression itself?
juhe has quit [Ping timeout: 246 seconds]
<Raito_Bezarius>
JonReed: I want to use the NPM packager to install some packages
<JonReed>
Raito_Bezarius: That won't work.
<Raito_Bezarius>
Alright, so I guess node2nix is the only way
<adisbladis>
Raito_Bezarius: The only way to do so is via a fixed-output derivation. And that wont work unless your output is reproducible.
<Raito_Bezarius>
The output is reproducible because I have a lock file
<adisbladis>
Raito_Bezarius: It's not.
<adisbladis>
100% _binary_ reproducible
<Raito_Bezarius>
Ah
<Raito_Bezarius>
Well, in this case, yes
<adisbladis>
npm lockfiles do not guarantee that.
<adisbladis>
Use node2nix :)
<adisbladis>
or yarn2nix, or something along those lines
<Raito_Bezarius>
Yeah, that's what I was going to use
<Raito_Bezarius>
Thank you
hmpffff has quit [Quit: nchrrrr…]
nDuff has joined #nixos
freeman42x has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
<FRidh>
JonReed: in nixpkgs that is typically not desired, as it can lead to unnecessary bloat
<JonReed>
FRidh: How does a user enable some feature, if it's a library? By taking a package from `pythonPackages.package` and overriding its dependencies adding extra ones?
ubert has quit [Quit: Leaving]
reallymemorable has joined #nixos
<JonReed>
FRidh: Let's say I want to package a python package `myPackage` with feature `myFeature`, which enables a bunch of extra dependencies. Are you saying that I then need to package `myPackage` without extra depedencies and rely on user to notice that a python package doesn't have that feature and leave it for whoever will use that library then to add
<JonReed>
those extra dependencies if they need them?
<nDuff>
JonReed, there are packages in nixpkgs that take boolean arguments as to whether to require optional features, and adjust both dependencies and compile-time flags appropriately if that boolean argument is overridden. Might be a model to follow.
<nDuff>
(that said, FRidh is much more an expert in everything here than I am)
<JonReed>
Ah, right nevermind. Yeah, that should work for python packages as well.
toppler has joined #nixos
oscarvarto has joined #nixos
selfsymmetric-mu has joined #nixos
mishaor has quit [Ping timeout: 240 seconds]
<selfsymmetric-mu>
Hi! I'm trying to maintain a tmux session over ssh but my ssh session keeps dying. How can I declaratively increase the SSH keepalive on NixOS?
<JonReed>
The link doesn't matter. `ssh.extraConfig`
<JonReed>
And putting `ServerAliveInterval` there sshExtraConfig = '' ServerAliveInterval 42 '';
<selfsymmetric-mu>
Hah, fair enough. Thank you!
<selfsymmetric-mu>
JonReed++
<{^_^}>
JonReed's karma got increased to 1
<{^_^}>
[nixpkgs] @jtojnar opened pull request #72313 → twitter-color-emoji: use noto-fonts-emoji’s src → https://git.io/Jezsb
reallymemorable has quit [Quit: reallymemorable]
<FRidh>
JonReed: one always uses python.withPackages, so you can just add your dep yourself to that environment
nDuff has quit [Read error: Connection reset by peer]
lsix_ has quit [Remote host closed the connection]
<exarkun>
`security.acme` doesn't seem to do anything right away. Are you required to manually provision a certificate first, and then `security.acme` merely takes care of renewal?
<exarkun>
I set `security.acme.preliminarySelfsigned` to true but this didn't result in a system with any "acme-selfsigned-..." services. :/
nDuff has joined #nixos
<nDuff>
Huh; having some oddness with npm2nix; when in the shell environment it defines, NODE_PATH to a store location under which lib/node_modules/<dep>/package.json exists, yet even in that environment, ''npm list'' claims that <dep> doesn't exist, for every dependency in the list... until/unless I ``ln -s "$NODE_PATH" node_modules``, after which everything works properly.
<nDuff>
...which is to say, it smells a lot like NODE_PATH isn't being honored at all.
dreverri has quit [Remote host closed the connection]
<infinisil>
inkbottle: Pretty sure that's not the case
<infinisil>
> :v fact
<{^_^}>
fact = n: if n <= 1 then 1 else n * fact (n - 1)
<infinisil>
This is the usual definition ^^
<infinisil>
> fact 10
<{^_^}>
3628800
<exarkun>
if I start the self-signed service myself, it works. if I declare the self-signed service as wanted by my service, nothing.
ThatDocsLady has quit [Remote host closed the connection]
ThatDocsLady has joined #nixos
<inkbottle>
let fix = f: let result = f result; in result; in fix (f: n: if n == 0 then 1 else n * (f (n - 1))) 3 # I've forgotten to abstract the 'f', works better now
<inkbottle>
infinisil: OK, thanks
<inkbottle>
:v let fix = f: let result = f result; in result; in fix (f: n: if n == 0 then 1 else n * (f (n - 1))) 3 # I've forgotten to abstract the 'f', works better now
<inkbottle>
Why didn't it do the evaluation as it did for you?
<exarkun>
inkbottle: >
<inkbottle>
ok
<inkbottle>
> let fix = f: let result = f result; in result; in fix (f: n: if n == 0 then 1 else n * (f (n - 1))) 3 # I've forgotten to abstract the 'f', works better now
<{^_^}>
6
jgt1 has quit [Read error: Connection reset by peer]
toppler has quit [Ping timeout: 268 seconds]
rauno has quit [Ping timeout: 276 seconds]
ThatDocsLady has quit [Ping timeout: 252 seconds]
<avocadoom>
Hey, I have a problem rebuilding my nixos configuration. When I run "nixos-rebuild switch" it does not display any output. When I use -v it hangs at evaluating file '/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/lib/from-env.nix'. I don't know what causes this error. Can you help me?
basvandi` has joined #nixos
fendor has quit [Remote host closed the connection]
<exarkun>
oops the self-signed service doesn't have/respect plugins configuration so sort of useless if you need different stuff
toppler has joined #nixos
fendor has joined #nixos
basvandijk has quit [Ping timeout: 276 seconds]
<avocadoom>
problem solved :D
griff_ has joined #nixos
JonReed has quit [Remote host closed the connection]
<Raito_Bezarius>
I have a local nix-built (i.e. I called nix-build on it) package, how can I install it in my profile?
<infinisil>
avocadoom: Well what was the problem??
<srhb>
Raito_Bezarius: You could nix-env -i the store path. I'd say that's a rare approach compared to adding the package to, say, and overlay, as described in the manual.
<Raito_Bezarius>
srhb: Well, I'm not sure I can overlay a nixops aws plugin
<Raito_Bezarius>
I'd definitely love to, but the nixops plugin installation stuff looks like complicated
<srhb>
Raito_Bezarius: (For local dev I tend to do stuff like that)
<srhb>
Raito_Bezarius: Usually this goes in some dev attrs that I import into my main nixpkgs, so I can nix-env -iA nixpkgs.my-nixops-with-aws or whatnot.
<{^_^}>
[nixos-hardware] @Mic92 pushed commit from @Alecktos to master « Add Dell XPS-7390 Profile (#128) »: https://git.io/Jezn2
Jackneill has quit [Remote host closed the connection]
sigmundv__ has joined #nixos
<Raito_Bezarius>
srhb: That looks super cool, this is what I wanted but didn't know how to do it, thanks! :)
<Raito_Bezarius>
srhb++
<{^_^}>
srhb's karma got increased to 77
<srhb>
Sure thing.
<{^_^}>
[nixpkgs] @magnetophon opened pull request #72318 → fmsynth: change build so it produces sound again → https://git.io/Jeznw
<Raito_Bezarius>
Just a quick (naive) question, how do you maintain an updated nixpkgs and a local nixpkgs?
<srhb>
Raito_Bezarius: I'm not sure what you mean by "updated" nixpkgs
<Raito_Bezarius>
Sync'd with upstream
<srhb>
Ah. We have a nixpkgs-channels repo whose head branches match our channels
<srhb>
So, I'd checkout say nixos-19.09 if I want the stable channel
noudle has quit []
<srhb>
(As in, I have it as a remote called "channels" in my checkout)
<srhb>
When it's not my laptop I always import nixpkgs from some specific revision.
zeta_0 has joined #nixos
<Raito_Bezarius>
I see
Soo_Slow has quit [Remote host closed the connection]
<Raito_Bezarius>
Thank you again
<srhb>
Sure :)
Interstitial has joined #nixos
<Interstitial>
Noob question here: the qscintilla package is marked as broken, so whenever I try to rebuild-switch, the build fails. I've tried setting allowBroken = true; but that also leads to failure. I've even tried getting rid of whatever package depends on qscintilla, but I can't determine that at the moment, since it's not a standard .drv file and the
<Interstitial>
typical nix-store query mechanisms don't yield useful information (maybe there's a command I'm missing?) Any help would be appreciated!
mexisme has joined #nixos
<srhb>
Interstitial: In the end it is a drv file, you should see it in the rebuild-switch output near the top I think? Otherwise we can find its path through other means..
<zeta_0>
i`m trying to install postgresql, but whenever i try to do the nixos-rebuild switch commands i get this error: systemd[1]: Failed to start PostgreSQL Server
<srhb>
Interstitial: (Essentially just figuring out what nixos-rebuild does itself to make the drv, it's a fairly readable script)
domogled has joined #nixos
noudle has joined #nixos
<srhb>
zeta_0: You'll probably want to start looking at postgres' logs to figure that one out.
<Interstitial>
The exact error is "error: Package ‘qscintilla-qt4-2.11.2’ in /nix/store/dicgv1d43j066fp0371sn23mp2xm71pk-nixpkgs-20.03pre197736.91d5b3f07d2/nixpkgs/pkgs/development/libraries/qscintilla/default.nix:56 is marked as broken, refusing to evaluate"
<zeta_0>
srhb: does it have something to do with the installation, or do i have to configure something else so that the postgresql server can start ?
<Interstitial>
So I have the hash at least
<srhb>
Interstitial: Ah, sounds like you have not allowed broken yet.
<Interstitial>
I tried that, but it ended up breaking for other reasons
<Interstitial>
I can try again
<srhb>
Interstitial: (Probably because you're working with nixos options which have yet to apply until your next generation?)
<srhb>
Interstitial: Anyway, there's a lot of things you can do to figure this out aside from allowing broken, which is usually not what you want anyway. One thing is to completely remove the package, eg. by pointing nixos-rebuild at a local repo where you've yanked it out
<srhb>
Interstitial: That'll get you closer to the thing pulling in the dep.
noudle has quit [Client Quit]
<avocadoom>
infinisil: the problem was a misconfigured symlink ^^ condiguration.nix linked to itself
<zeta_0>
do i need to configure systemd in order to get postgresql server to work ?
<Interstitial>
srhb: Sorry, what exactly do you mean by yank it out? Delete the store path? I guess based on what then fails I can then have a better idea of what depends on that derivation. Thanks for the help btw
<exarkun>
How do I add a non-Haskell package build input to a haskell-nix packaged Haskell library?
noudle has joined #nixos
<shapr>
ooh good question
noudle has quit [Client Quit]
<zeta_0>
also has postgresql 12 been packaged yet ? i am currently using version 11 ?
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<{^_^}>
[nix] @dtzWill opened pull request #3179 → minor: fix mismatch of struct/class forward decl of 'Source' → https://git.io/Jezce
<{^_^}>
[nixpkgs] @gnidorah opened pull request #72319 → mame: init at 0.215 → https://git.io/Jezcv
waynee95 has joined #nixos
* DigitalKiwi
knowing nothing about the binary signing...will this affect nix packages?
<zeta_0>
srhb: i did that but the output is too large ?
<srhb>
zeta_0: Too large for reading? :)
<srhb>
zeta_0: The error that caused startup to fail is likely to be near the bottom, start digging. ^_^
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed commit from @adisbladis to nixos-19.09-small « nixos.pulseaudio: Remove bad recommendation to use pulseaudio in system-wide mode »: https://git.io/JezOR
<srhb>
(Or you can pastebin the logs and hope someone has time to look through it and help diagnosing the problem with you)
judson has joined #nixos
<glittershark>
is there a linter floating around for nix?
<glittershark>
would love simple things like unused variables etc.
leotaku has joined #nixos
judson__ has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #nixos
<zeta_0>
srhb: ok i'll pastebin it, one second
waynee95 has left #nixos [#nixos]
bdju has joined #nixos
<waleee-cl>
do the nixpkgs ffmpeg work well on other distros? (minus ffplay &c I guess)
<shapr>
DigitalKiwi: the whole discussion started when recurse center sent out an email saying "do not upgrade to os x catalina! wifi will not work!"
<DigitalKiwi>
yeah i used nix for a while on macos and soon realized it was going to be a lot better experience to go full nixos. but i wasn't quite ready to switch. so i put it in a VM for a while... and then macos started causing me a ton of grief. and here i am using it full time since december :D
<srhb>
zeta_0: What do you think the problem is, if you read the two lines labelled FATAL and DETAIL respectively?
toppler has joined #nixos
mexisme has joined #nixos
gkmngrgn has quit [Ping timeout: 240 seconds]
q3k has joined #nixos
cosimone has quit [Quit: Terminated!]
dreverri has quit [Ping timeout: 276 seconds]
<srhb>
zeta_0: When you see an error like that, it may also be helpful to google something like "database files are incompatible with server" -- the first error you see, and check if someone out there has some hints for you :)
<shizonic>
I am a advanced Void Linux User an Packager for years and kept an eye on nixos since 2016 but never used it active .... Now I would give it a try and become used to it. So I am here and want to say hello. :)
<srhb>
shizonic: Welcome! :)
<srhb>
Hope you have fun trying it out. This channel is a great resource to help get started.
<shizonic>
srhb: Thx :)
<shizonic>
Any other Voider around here?
<adamt>
They tend to avoid us
* adamt
hides
skatista has quit [Ping timeout: 245 seconds]
<srhb>
Seems unlikely, looks like there's at least some common ground.
jb55 has quit [Remote host closed the connection]
<adamt>
a-void -- go get some coffee, srhb :P
<srhb>
Completely unscientifically, I think most common new NixOS'ers tend to be either coming from Arch, Ubuntu or Gentoo, in approximately that order.
<samueldr>
(I think adamt made a bad^W pun)
<srhb>
Ah, you see, I share an office with him, so I have this filter going on....
<steveeJ>
I'm having an issue with clang. it seems to be passed weird gcc arguments and I don't understand why: `clang-8: warning: argument unused during compilation: '--gcc-toolchain=/nix/store/d4n93jn9fdq8fkmkm1q8f32lfagvibjk-gcc-7.4.0' [-Wunused-command-line-argument]`
jb55 has joined #nixos
<shizonic>
adamt: Who ?
<shizonic>
samueldr: Guess he could be right indeed
<adamt>
shizonic: I wasn't being serious, void linux => a-void => avoid. Next time I'll be quiet, I promise.
neiluj has joined #nixos
neiluj has joined #nixos
neiluj has quit [Changing host]
mfernandez has joined #nixos
<shizonic>
adamt: I see :D
<shizonic>
No pls
<shizonic>
Don't !
<shizonic>
:D
<DigitalKiwi>
i think i was familiar with void before it was void unless there are two projects named void... i was interested in its package managment system years ago (i was working on package managers)
<glittershark>
is there a "nixos for arch linux users" guide floating around somewhere?
<DigitalKiwi>
or am i thinking of vanilla :|
<shizonic>
DigitalKiwi: Nice !
<glittershark>
I've been on arch linux for 5 years (still am!) but have been seriously considering making the switch
<DigitalKiwi>
all recovering arch users raise your hand
<glittershark>
dmj` would be so proud
<srhb>
glittershark: There was a command cheat sheet, but frankly the difference to approximately all linux distros is large enough that it's really difficult to draw too many comparisons with a specific one.
* DigitalKiwi
raises hand
<shizonic>
Currently I work on improvements of Nixos' installer script because it doesn't work on Void (yet).
dreverri has joined #nixos
jlmeeker has quit [Ping timeout: 240 seconds]
<neiluj>
raises hand too
<srhb>
Maybe I'm just not being optimistic enough though.. :P
zeta_0 has joined #nixos
<glittershark>
yeah I'm like
<glittershark>
anxious about switching
<glittershark>
because when I first switched to arch it was like 2 weeks before I was productive
<neiluj>
glittershark: i just did it two days ago :D
<srhb>
Oh boy. :-)
<DigitalKiwi>
glittershark: checkout the manual(s) and the wiki and occasionally i'll find myself on the arch wiki...
<neiluj>
still perfecting my ocaml environment with nix shell
<glittershark>
work is 1 week away from 100% nix-shell for local dev
<glittershark>
so at least 1. I know nix well now 2. I know linux well now
<glittershark>
but still
<srhb>
glittershark: If you can get your important work stuff ready to go in a nix shell, switching is probably less scary
jlmeeker has joined #nixos
<dmj`>
glittershark: nothing wrong with wading out into the water. First get good with the package manager using OSX, Ubuntu, Arch. We use both ubuntu and nixos for all our haskell dev. But prod servers on nixos
<srhb>
glittershark: Since you'll have your basics in NixOS already good to go.
<glittershark>
yeah
<zeta_0>
srhb: it worked, thanks for the help
<glittershark>
I'm mostly just worried about re-learning all the deskop/system level stuff
<srhb>
zeta_0: Nice :)
<zeta_0>
srhb++
<{^_^}>
srhb's karma got increased to 78
<glittershark>
nvidia, hibernation, bumblebee, networkmanager, font rendering
<glittershark>
etc etc
<dmj`>
just get a macbook pro, and a NUC running NixOS, ssh into it and call it a day
<glittershark>
lol
<shizonic>
following problem: AFAIK Nixos' installer script loads a tarball with glibc 2.28, doesn't it?
<glittershark>
yeah we're switching to nix! in prod!
<dmj`>
grats
<glittershark>
all Cam's doing
<dmj`>
tell him I said, "Good one sug'"
<glittershark>
will do
selfsymmetric-mu has quit [Remote host closed the connection]
<zeta_0>
i am going to make the upgrade from 19.03 stable to 21.03 unstable, is there any preparation that i need to do before doing the upgrade, and is there any problems that i may encounter ?
<adamt>
We're having a two year anniversary with NixOS in production soon. Time to get the boss to buy cake and celebrate that.
<zeta_0>
20.03, typo
<shizonic>
maybe the wrong place here for a nix beginner ?
<srhb>
shizonic: Not at all
<adamt>
zeta_0: Read the 19.09 release notes as a start
<srhb>
shizonic: Traffic varies though :)
<shizonic>
I see ^^
<shizonic>
so wrong time ? ^^
<Interstitial>
I'm now getting "cannot download osxupd10.11.5.dmg from any mirror" errors
<Interstitial>
This seems...unrelated to my previous issues?
<zeta_0>
so i just need to change the channell and do a `nixos-rebuild switch --upgrade` ?
<srhb>
shizonic: Are you talking about the Nix tarball?
<srhb>
shizonic: (Might be some conflation between Nix and NixOS)
karetsu has joined #nixos
karetsu has quit [Client Quit]
drakonis_ has quit [Ping timeout: 265 seconds]
<zeta_0>
i am reading the wiki, and i am not sure what commands i need to do to change the channel to correctly do the upgrade ? https://nixos.wiki/wiki/Nix_channels
karetsu has joined #nixos
<srhb>
zeta_0: The NixOS manual contains the upgrade instructions
<shizonic>
yes nix not nixos
<shizonic>
sry
<srhb>
zeta_0: Do bear in mind that you're heading into unsupported territory. But yes, what you said was essentially the gist of it, if the (incomplete) release notes have no warnings that you need to take manual action.
ddellacosta has quit [Ping timeout: 240 seconds]
FRidh has quit [Quit: Konversation terminated!]
<srhb>
shizonic: No need to be sorry? Hmm, I'm not actually sure which version the standalone installer uses currently.
<srhb>
shizonic: Why?
<{^_^}>
[nixpkgs] @bhipple opened pull request #72325 → cloud-custodian: init at 0.8.45.1 → https://git.io/JezCl
<{^_^}>
[nixpkgs] @scalavision opened pull request #72326 → svaba: init at 1.1.0 → https://git.io/JezC4
<shizonic>
srhb: because I get a segmentation fault
<zeta_0>
srhb: ok, found the instructions in the nix manual
<shizonic>
Gues caused Void is on glibc 2.30
<srhb>
shizonic: Looks like 2.27 to me
mishaor has quit [Ping timeout: 276 seconds]
<zeta_0>
srhb: i thought upgrading nixos is supposed to be simple and easy ?
<shizonic>
correct
<shizonic>
for me too
<karetsu>
none of my users are appearing in lightdm - I only get the 'username' prompt, how to fix?
<srhb>
zeta_0: I consider it simple and easy, but that's very subjective. :)
drakonis has quit [Read error: Connection reset by peer]
<shizonic>
i am not on nixos (yet)
<waleee-cl>
otherwise it'd be a noop (if installing updates though)
drakonis has joined #nixos
<shizonic>
so i just have the nixpkgs unstable channel
shibboleth has joined #nixos
<zeta_0>
is the unstable nixos only for testing or can i use it for work as well ?
<clever>
zeta_0: you can use the nixos channel on any linux distro
<waleee-cl>
zeta_0: it worked pretty well a week ago at least. Some font changes apparently (for me at least)
romildo has joined #nixos
karetsu has quit [Quit: WeeChat 2.6]
<zeta_0>
clever: as long as i can reboot to a previous configuration(generation) if something breaks, it should be fine right ?
<shizonic>
Unstable channels (nixos-unstable, nixpkgs-unstable) correspond to the main development branch of Nixpkgs, delivering the latest tested updates on a rolling basis.
<blitzclone_>
shizonic: gcc -dumpspecs seems to indicate that we indeed use -march=native
<shizonic>
blitzclone: yes makes sense
<shizonic>
what else?
cmacrae has joined #nixos
knupfer has quit [Ping timeout: 245 seconds]
cmacrae has quit [Client Quit]
drakonis has joined #nixos
<blitzclone_>
shizonic: well, that's not going to work if machine A builds derivations for machine B and machine B doesn't support all features of machine A
<srhb>
That definitely does not sound pure.
<srhb>
We even have a stdenvAdapter that's supposed to _add_ that flag, with a ton of impurity warnings
<srhb>
(To NIX_CFLAGS_COMPILE, that is)
<blitzclone_>
it also means that you are f*** if the machine populating the binary cache is pretty new
<srhb>
(That adapter sets `preferLocalBuild = true` for the very same reason)
romildo has quit [Quit: Leaving]
Neo-- has quit [Ping timeout: 276 seconds]
<srhb>
blitzclone_: How did you conclude this using dumpspecs exactly?
knupfer has joined #nixos
<blitzclone_>
srhb: wait... I'm trying to decipher the output ;)
<srhb>
blitzclone_: On hold. :-)
<blitzclone_>
it seems march=native is dropped (as it should be). this leaves ghc. maybe ghc is generating opcodes my cpu doesn't like
<srhb>
Nice to know that stdenv isn't horribly broken anyway. :P
<blitzclone_>
I guess my atom box wouldn't have booted very far in that case ;)
thomashoneyman has joined #nixos
<srhb>
Indeed. :P
<neiluj>
hey! I've succesfully build a derivation for an ocaml library, how do I install it on my nix store?
<neiluj>
I have a result directory
dreverri has quit [Remote host closed the connection]
<DigitalKiwi>
blitzclone_: have you tried with different backends for ghc?
<c00w>
neiluj - Import it from your configuration.nix?
<blitzclone_>
DigitalKiwi: no, just using the default
<c00w>
Sorry - import the nix file that builds it from you configuration.nix?
<DigitalKiwi>
wonder if that'd make a difference
<srhb>
neiluj: (The result symlink is a link into your store, you probably meant how to install it into your user/system profile :))
<neiluj>
srhb: yes that's exactly what i'm looking for
<blitzclone_>
DigitalKiwi: I see that ghc seems to have AVX support these days. I wonder whether it is enabled by default
tbenst has quit [Remote host closed the connection]
<blitzclone_>
even modern Atoms don't have AVX
<srhb>
neiluj: The declarative way is as c00w explained. If you're okay with a bit of imperative, you can `nix-env -i result`
hmpffff has joined #nixos
sonnius has joined #nixos
<DigitalKiwi>
probably someone in #haskell would know more
<c00w>
The other fun bit is it's a library right? I don't know enough about ocaml to indicate if you have to do something special to make it usable (I know in python this is quite complicated on nix).
sonnius has quit [Remote host closed the connection]
<srhb>
c00w: Oh, good catch..
<srhb>
You probably don't want to install libraries at all
<srhb>
neiluj: No, the expression that produces it :)
<neiluj>
so it'll built it instead
<srhb>
Only if it needs to be built
fendor_ has joined #nixos
<srhb>
If it hasn't changed, the store path will be identical, so building is a no-op.
<neiluj>
okay, thanks, i try that ! :D
<evax>
Hi, my 3G usb dongle is failing to work in KDE/network-manager since the upgrade to 19.09. The error shown is `error starting PPP: Could not find "pppd" binary`
<srhb>
evax: That sounds like a bug. Looking at the network-manager package, it looks like the path to pppd is correctly passed as a mesonFlag
<srhb>
evax: Might want to report it as an issue if there's not one already.
<neiluj>
srhb: thanks, it's partially working, because I have to fix some errors in the builds
<srhb>
neiluj: So far so good :)
<neiluj>
I get this error : Package gtk+-2.0 was not found in the pkg-config search path, but I added the library to the derivation
MmeQuignon has quit [Read error: Connection reset by peer]
<clever>
neiluj: did you also add pkgconfig to the nativeBuildInputs ?
MmeQuignon has joined #nixos
<neiluj>
clever: no, but I added gtk2 to the buildInputs and it built successfully, I have to test the library know
<neiluj>
clever: what does it change?
<qubasa>
How do I cross compile uboot for the raspberrypi2? I see that there is the package ubootRaspberryPi2 but if I want to build it, it says "unsupported system"
<clever>
evanjs: you want to grep the names of the things the symlinks point to, not their contents
<DigitalKiwi>
will nix packages have to be signed on catalina or is that only for .app binaries or what?
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<evanjs>
Ah there we go lol. And yah I know. Was trying to do it with fd and stuff as well. Anyway, just that one lock
<clever>
evanjs: if you run the nix build again with -vvvvv, does it show anything more?
<evanjs>
lollllllllllllllllll
<evanjs>
download thread waiting for 10000 ms
<evanjs>
keeps printing so far
<clever>
evanjs: hide those with grep or remove a v or 2
<evanjs>
Right I mean I get to the end and that's the last thing that just prints on repeat after I hit the lock
judson has quit [Remote host closed the connection]
<clever>
evanjs: does the verbose output say which lock?
<evanjs>
Yeah, same as before, says it's locking it and then waiting on the lock
<clever>
evanjs: which thing is it locking?
<evanjs>
/nix/store/7mpikj2w5r2693axb1bygc28ygzhpb9z-channel-rust-beta.toml, which makes me think it could've been a direnv env i was using or something
<clever>
evanjs: does that appear in any other open files?
<clever>
evanjs: anything running as a nixbld user?
gxt has quit [Remote host closed the connection]
<evanjs>
ps says no
<clever>
evanjs: out of ideas then, do the microsoft thing, turn it off, then turn it back on! lol
<evanjs>
clever: it's what I've been doing lol. nix-top doesn't show anything either but I guess that's not too surprising if it's already hanging
<clever>
evanjs: id check all of the above next time it happens, before pkill'ing things
Interstitial has quit [Remote host closed the connection]
halfbit has joined #nixos
<evanjs>
post-mortem via journalctl -b-1 - Oct 30 19:50:42 nixentoo q8xq3xhgcmjh40jij280py2a7wjh9v90-unit-script-nixos-upgrade-start[25092]: warning: warning: download of 'https://static.rust-lang.org/dist/channel-rust-beta.toml' was interrupted; using cached result
<evanjs>
After stuff started shutting down. Interesting
nikivi has quit [Write error: Connection reset by peer]