toppler has quit [Read error: Connection reset by peer]
<superbaloo>
hardened is the one from nixpkgs, but with apparmor disabled (I could have just made the change in my nixfile I guess, but ...
<superbaloo>
I have a couple of commits to push to nixpkgs too
<superbaloo>
fixing deps here and there
<clever>
superbaloo: looks like a fairly basic cross-compile setup, last i heard, most packages broke with that, but it sounds like the recent nixpkgs has improve things
<clever>
i should give things another spin
<superbaloo>
nixpkgs has improved recently
rajivr___ has joined #nixos
<superbaloo>
and I'm compiling without X
<superbaloo>
which helps
<superbaloo>
I had to fix two packages that still pulled X
mexisme has joined #nixos
<superbaloo>
let's find the power supply for the rpi4 now ...
<superbaloo>
not sure where I stored this thing
<clever>
superbaloo: oh, that reminds me, you may want to also look into the nix copy flags...
<jophish>
infinisil: Thanks for the hie packaging!
<infinisil>
:D
toppler has quit [Read error: Connection reset by peer]
toppler has joined #nixos
xwvvvvwx has joined #nixos
xwvvvvwx- has quit [Ping timeout: 268 seconds]
<slack1256>
Can you point me to the latest blogpost for hie-on-nix?
m0rphism has quit [Ping timeout: 268 seconds]
ericsagnes has quit [Quit: WeeChat 2.6]
niso has quit [Ping timeout: 268 seconds]
<dsx>
clever: I'll run it from boot.initrd.network.postCommands hook
toppler has quit [Ping timeout: 250 seconds]
<clever>
dsx: if you reference a script in the nix store, nix will just include it in the initrd automatically
<dsx>
There is boot.initrd.prepend, but it requires me to pack my files into pre-built initrd «layer»
<clever>
dsx: you dont have to do a thing
nuncanada3 has quit [Quit: Leaving]
<dsx>
Hm. I'll try that. Thanks!
<clever>
dsx: thats both good (makes it trivial to use) and bad (you could make a mistake, and add 2gig to the initrd)
<dsx>
clever: is there a way to easily add file to store?
<dsx>
>add 2gig to the initrd
<clever>
dsx: ${./foo.sh} in a nix script
<dsx>
sounds like a plan!
kleisli has quit [Ping timeout: 268 seconds]
toppler has joined #nixos
toppler has quit [Read error: Connection reset by peer]
silver has quit [Read error: Connection reset by peer]
<samueldr>
is it possible to get the config values of `system.activationScripts` before apply has been applied?
<samueldr>
I want to consume a configuration.nix's configurations, not transform them so there's no issues with recursion AFAICT
niso has joined #nixos
ericsagnes has joined #nixos
dansho has joined #nixos
felixfoertsch23 has joined #nixos
toppler has joined #nixos
toppler has quit [Read error: Connection reset by peer]
dansho_ has quit [Read error: Connection reset by peer]
<jophish>
and thanks, domenkozar[m] for cachix!
toppler has joined #nixos
Mr_Keyser_Soze has quit [Ping timeout: 250 seconds]
Mr_Keyser_Soze has joined #nixos
felixfoertsch has quit [Ping timeout: 265 seconds]
wfranzini has quit [Remote host closed the connection]
toppler has quit [Read error: Connection reset by peer]
wfranzini has joined #nixos
mexisme has joined #nixos
kleisli has joined #nixos
thc202 has quit [Ping timeout: 250 seconds]
<jophish>
infinisil: looks as though the hie-bios revision isn't present in mpickering's repository any more, so the build of hie with the hie-bios fails
<infinisil>
Or something like that, I don't see a force push in the PR, so it should still be referenced
ebzzry has quit [Ping timeout: 276 seconds]
<jophish>
looks like it's the revision mentioned in the submodule of hie
<infinisil>
Ah yeah
toppler has quit [Read error: Connection reset by peer]
toppler has joined #nixos
<infinisil>
jophish: Do you have the all-hies cachix configured? I have that version cached so I could upload it quickly to get it working
<jophish>
infinisil: yeah I do. That'd be great but only if it's no trouble
<samueldr>
figured out I can reconstitute the attrset by merging all attrsets in `system_eval.options.system.activationScripts.definitions`
* infinisil
tries
toppler has quit [Ping timeout: 240 seconds]
toppler has joined #nixos
<infinisil>
jophish: Okay try it now
<infinisil>
samueldr: I really wish apply wouldn't be used for this kind of thing
<samueldr>
infinisil: what's the right usage for apply?
<samueldr>
activationScripts are quite old, could it be baggage from the initial implementation?
<infinisil>
samueldr: It's very rarely the right thing to use, but there are some cases where it's nececessary, trying to think of them..
<samueldr>
yeah, I figured from my usage that it's likely rarely the right thing to use
<samueldr>
but I don't have a gut feeling as to when it should be used
waleee-cl has quit [Quit: Connection closed for inactivity]
toppler has quit [Ping timeout: 268 seconds]
<infinisil>
samueldr: One is with path options that should never end up in the Nix store. In that case one can do `apply = toString`, which ensures that the option value never gets used without toString'ing it first
<samueldr>
right
toppler has joined #nixos
<samueldr>
I imagine if you had an attrset of paths to be toString'd you'd likely keep them in the same shape (as an attrset) rather than apply them to whatever form you need in the end
<samueldr>
as to not be rude for users of the values?
<infinisil>
Another is to escape infinite recursion for values that need to depend on themselves, e.g. for an `attrsOf` option to have an attribute depending on another attribute
<infinisil>
samueldr: Yeah probably
<jophish>
infinisil: hmm, didn't seem to have made a difference
<infinisil>
jophish: Can you run `nix-store -r /nix/store/hji603fygfz3a5kkkkzwrf3cfgjpj9d6-haskell-ide-engine-eb3d32e` successfully?
<clever>
and these files are what hold the cache about the caches
<infinisil>
negative-ttl, makes sense
growpotk- has joined #nixos
<clever>
if you delete them, it will re-check things
drakonis has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
<clever>
infinisil: fun fact, nix disables some sqlite safeties when interacting with those files (at least in the old days), to make it perform faster
<infinisil>
clever: jophish: Or actually `--option narinfo-cache-negative-ttl 0` should work too
<clever>
infinisil: an improper shutdown of my rpi corrupted those caches, causing all nix options on the rpi to fail
<clever>
i learned about the cache caches, because they broke :P
<infinisil>
Nasty stuff :/
drakonis has joined #nixos
<{^_^}>
[nixpkgs] @endgame opened pull request #71068 → haskellPackages.rank2classes: not broken → https://git.io/JelpQ
<jophish>
thanks clever and infinisil! I've got the hie-bios version now :)
<infinisil>
Nice :D
mexisme has quit [Ping timeout: 246 seconds]
drakonis_ has quit [Ping timeout: 276 seconds]
toppler has quit [Read error: Connection reset by peer]
drakonis has quit [Ping timeout: 250 seconds]
drakonis_ has joined #nixos
drakonis has joined #nixos
drakonis__ has joined #nixos
toppler has joined #nixos
toppler has quit [Read error: Connection reset by peer]
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
drakonis_ has quit [Ping timeout: 265 seconds]
toppler has joined #nixos
toppler has quit [Read error: Connection reset by peer]
<Squarism>
How do I copy files in my "package description" default.nix?
shibboleth has quit [Quit: shibboleth]
wedens has joined #nixos
growpotk- has quit [Ping timeout: 240 seconds]
boxscape has quit [Ping timeout: 240 seconds]
toppler has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
spacefrogg has joined #nixos
toppler has joined #nixos
toppler has quit [Ping timeout: 265 seconds]
boxscape has joined #nixos
toppler has joined #nixos
toppler has quit [Read error: Connection reset by peer]
toppler has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
toppler has joined #nixos
ebzzry has joined #nixos
toppler has quit [Ping timeout: 264 seconds]
toppler has joined #nixos
rajivr___ has quit [Quit: Connection closed for inactivity]
Ariakenom_ has quit [Read error: Connection reset by peer]
felixfoertsch23 has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
nornagon has joined #nixos
<nornagon>
are there any systemd units that are using the new confinement stuff? I can't seem to find any by grepping for `confinement`...
<nornagon>
cc aszlig :)
toppler has quit [Ping timeout: 240 seconds]
<aszlig>
nornagon: right now there are none IIRC
<nornagon>
any particular reason for that? i'm trying to mentally place systemd's confinement stuff in relation to docker/lxc/etc
<nornagon>
it seems like systemd can do most of the stuff that docker can, sandboxing-wise, and it's surprising to me that people aren't using it for that more?
<Ashy>
hmm, how do i include protobuf3_5 in a derivation properly?
<Ashy>
trying to package up a binary from a deb that needs libprotobuf.so.15 patchelf'd in
<aszlig>
nornagon: but yeah, the goal is to add it to more nixos services, just didn't have the time yet to do it
<nornagon>
aszlig: awesome, thanks for the example. I'm new to nixos so still figuring stuff out... i'm trying to understand how it automatically figures out what packages to include based on the `ExecStart` line
<aszlig>
nornagon: it uses the runtime closure of what you specify there
<aszlig>
if additional packages are needed for runtime, you can use confinement.packages to add it to the chroot
<nornagon>
yeah... but ExecStart is a command-line string right? how does that get resolved to a package in the store?
toppler has joined #nixos
<clever>
nornagon: ExecStart is a path to a binary in the store
<clever>
it will basically just `nix-store -qR` that binary
<clever>
nornagon: that second string, has some invisible data attached to it, saying it depends on hello-2.10.drv
<nornagon>
whoa, that i did not realise
<clever>
any time you concat 2 strings, the context is merged
<nornagon>
ahhhhhh
<clever>
and if you grab a sub-section of any string, you get the entire context
<nornagon>
so the "${coturn}" bit in that example is what brings the context along
<clever>
yeah
<nornagon>
that's the bit i was missing. thanks.
<clever>
when you pass such a string to stdenv.mkDerivation, nix uses the context to know what you depend on
<nornagon>
neat!
<clever>
and what it must build first
<clever>
and there are other utils to list the context, for things like confinement
<clever>
or tar file generation
<danderson>
anyone know of a nixos service that has a <name> and generates multiple systemd services for different instances of itself? I need to write support for pppd, which spawns one daemon per connection.
<clever>
danderson: create a foo@.service, and then several foo@bar.service things, and it will spawn several instances of foo@.service, with %i filled in with bar
<tdeo>
any committer around to check out #70978/#70979? program is completely non-functional until it's updated
Rusty1 has quit [Quit: Konversation terminated!]
toppler has joined #nixos
toppler has quit [Ping timeout: 265 seconds]
toppler has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
toppler has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
toppler has joined #nixos
toppler has quit [Read error: Connection reset by peer]
endformationage has quit [Ping timeout: 240 seconds]
Okinan has quit [Quit: Konversation terminated!]
slack1256 has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 240 seconds]
toppler has joined #nixos
toppler has quit [Ping timeout: 246 seconds]
palo1 has joined #nixos
toppler has joined #nixos
palo has quit [Ping timeout: 240 seconds]
palo1 is now known as palo
toppler has quit [Ping timeout: 268 seconds]
toppler has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
toppler has joined #nixos
toppler has quit [Read error: Connection reset by peer]
zupo has joined #nixos
toppler has joined #nixos
dansho has quit [Quit: Leaving]
toppler has quit [Ping timeout: 240 seconds]
revtintin has joined #nixos
toppler has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
toppler has quit [Ping timeout: 250 seconds]
toppler has joined #nixos
o1lo01ol1o has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
o1lo01ol1o has quit [Ping timeout: 268 seconds]
toppler has joined #nixos
drakonis__ has quit [Quit: Leaving]
<CMCDragonkai>
Weird situation. On NixOS installing on a new machine (macbook pro), everything works as usual using the nixos install USB. Using `zpool status` shows that zpool can import by /dev/disks/by-id/... properly. Then when restarting into the newly installed disk, on stage 1 boot, zpool cannot find the disk. I reboot into the installation USB, and I can run `zpool import` and see that the pool is importable by the by-id.
<CMCDragonkai>
But for some reason stage 1 boot cannot find the zpool device. How can this be possible?
toppler has quit [Ping timeout: 268 seconds]
aiverson has quit [Remote host closed the connection]
rauno has quit [Ping timeout: 245 seconds]
kleisli has quit [Ping timeout: 268 seconds]
<wedens>
have you tried using /dev/disk/by-uuid?
<wedens>
I'm not sure how stable by-id is
toppler has joined #nixos
toppler has quit [Ping timeout: 250 seconds]
Heirlung- has quit [Read error: Connection reset by peer]
toppler has joined #nixos
Heirlung has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
Havvy has joined #nixos
toppler has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
toppler has joined #nixos
o1lo01ol1o has joined #nixos
toppler has quit [Ping timeout: 265 seconds]
toppler has joined #nixos
o1lo01ol1o has quit [Ping timeout: 240 seconds]
toppler has quit [Ping timeout: 240 seconds]
toppler has joined #nixos
toppler has quit [Ping timeout: 250 seconds]
asymptotically has joined #nixos
toppler has joined #nixos
cjpbirkbeck has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
<cjpbirkbeck>
hello, i trying to install nixos on a laptop, but the nixos-install says my boot drive is the right uefi format
[Leary] has joined #nixos
<cjpbirkbeck>
although i followed the formating instructions in the manual.
<cjpbirkbeck>
note im using sda1, not sda3, but that shouldn't change things, right?
Lears has quit [Read error: No route to host]
toppler has joined #nixos
Lears has joined #nixos
[Leary] has quit [Read error: No route to host]
<cjpbirkbeck>
nevermind, for my mistake, i think
xfix has joined #nixos
toppler has quit [Read error: Connection reset by peer]
toppler has joined #nixos
init_6 has quit [Read error: Connection reset by peer]
toppler has quit [Ping timeout: 240 seconds]
<MarcWeber>
GPT + efi boot + elite book -> menu appears, but doesn't boot. Does anybody have experince whether changing efi boot settings would make a difference ?
toppler has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
toppler has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
<ivan>
MarcWeber: did you turn secure boot off?
toppler has joined #nixos
<ivan>
hmm, you get the boot menu with systemd-boot listing configurations?
<Squarism>
I just wiped /nix/store
<Squarism>
When I installed nix again it now gives this on a "nix-build"
<Squarism>
error: getting status of '/nix/store/dic3xnm2jajsnkb072dv2pswg3ffy6sv-source"
toppler has quit [Ping timeout: 240 seconds]
toppler has joined #nixos
ottidmes has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
toppler has joined #nixos
idf has joined #nixos
<evils>
squarism maybe you need nixos-install?
<Squarism>
i wiped /nix now
<Squarism>
see how that goes
toppler has quit [Ping timeout: 240 seconds]
knupfer has joined #nixos
toppler has joined #nixos
aswanson has quit [Quit: WeeChat 2.4]
cjpbirkbeck has quit [Quit: Quitting now.]
toppler has quit [Ping timeout: 265 seconds]
toppler has joined #nixos
<Squarism>
is there a way to see all dependencies used by a certain default.nix file?
toppler has quit [Ping timeout: 264 seconds]
toppler has joined #nixos
tobiasBora has quit [Ping timeout: 265 seconds]
toppler has quit [Ping timeout: 265 seconds]
toppler has joined #nixos
<wedens>
any reason I can't use override on src defined using fetchFromGitHub?
<danderson>
I'm hitting an infinite recursion when I include it in my nixos configuration, and the trace doesn't help me figure it out at all :/
toppler has joined #nixos
revtintin has quit [Quit: WeeChat 1.9.1]
<danderson>
anyone with nix experience see what my problem is? I've been staring at this too long :(
orivej has joined #nixos
<evils>
danderson: i'm no expert, but you've got one too many close parentheses?
toppler has quit [Ping timeout: 245 seconds]
<evils>
nvm
<wedens>
`name = mkDefault name;`
<danderson>
that's a verbatim steal from another nixos module - but removing it doesn't help, anyhow
<wedens>
what's the scope of RHS `name` here?
Boomerang has joined #nixos
<danderson>
that should be referencing the input attrset to the submodule, above. It's a pattern I got from etc.nix, for defining submodules by name.
<danderson>
but again, removing any mention of name still results in an infinite recursion, so I'm thinking there's something more fundamental that I'm missing.
toppler has joined #nixos
m0rphism has joined #nixos
<danderson>
in particular, using enabledConfigs seems to be what triggers the infinite recursion. And I don't get why, because again this is a structure I took directly from etc.nix, and it seems completely happy there.
chloekek has quit [Ping timeout: 265 seconds]
niksnut has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
<gudea[m]>
hi, could someone point me to the configuration.nix option for system wide openssl settings?
toppler has joined #nixos
<gudea[m]>
it happens that my alma mater’s imap server only supports tlsv1 and openssl now defaults to min. 1.2
<gudea[m]>
on other distros this is usually done by editing /etc/ssl/openssl.cnf
noudle has joined #nixos
marusich has quit [Remote host closed the connection]
toppler has quit [Ping timeout: 250 seconds]
toppler has joined #nixos
cjpbirkbeck has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
<cjpbirkbeck>
hello, anybody there? i've installed nixos on my laptop, but the ethernet doesnt seem to work
toppler has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
<aszlig>
nornagon: yeah, it uses the full string context (as in all store paths that are part of the string)
<ivan>
cjpbirkbeck: anything at the end of journalctl -b when you plug it in?
<aszlig>
nornagon: ah, never mind, clever already answered this (thanks)
toppler has joined #nixos
<aszlig>
clever++
<ivan>
cjpbirkbeck: is this some weird ethernet that needs firmware blob?
klntsky has quit [Remote host closed the connection]
klntsky has joined #nixos
<cjpbirkbeck>
ivan: journalctl -b doesnt seem to give any about networking. it's a thinkpad t430, so ... maybe to your second question?
toppler has quit [Ping timeout: 240 seconds]
toppler has joined #nixos
zupo has joined #nixos
Dagger has quit [Excess Flood]
<ivan>
cjpbirkbeck: I see a lot of people complaining about ethernet port not working with the docking station for your laptop
hmpffff has joined #nixos
<ivan>
cjpbirkbeck: does ifconfig list an ethernet interface?
Dagger has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
<ivan>
I have to go but I was going to maybe suggest hardware.enableAllFirmware = true; if it's missing
<ivan>
hopefully someone else can help
toppler has joined #nixos
Havvy has quit [Ping timeout: 245 seconds]
Boomerang has quit [Ping timeout: 240 seconds]
Havvy has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
isHavvy has joined #nixos
Havvy has quit [Ping timeout: 268 seconds]
isHavvy has quit [Ping timeout: 265 seconds]
toppler has joined #nixos
fusion809 has joined #nixos
toppler has quit [Ping timeout: 250 seconds]
asheshambasta has joined #nixos
asheshambasta has quit [Remote host closed the connection]
toppler has joined #nixos
ris has joined #nixos
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
toppler has quit [Ping timeout: 245 seconds]
toppler has joined #nixos
philmacfly has joined #nixos
<philmacfly>
Good day, I wanted to know how to setup gns3-server with nixos as a service?
toppler has quit [Ping timeout: 268 seconds]
toppler has joined #nixos
byrn_ has joined #nixos
knupfer has quit [Remote host closed the connection]
<jophish>
tilpner: yeah, that was my first though, but even then vim should try the other backup locations
<jophish>
from strace there are two different things going on
tmaekawa has quit [Ping timeout: 268 seconds]
toppler has joined #nixos
<jophish>
without nix-shell it's unlink/rename/openat, but in the shell it's unlink/chmod/chown/chmod/openat
<jophish>
it looks as though libuv is choosing a different path
mabel has joined #nixos
mabel has joined #nixos
mabel has quit [Changing host]
<mabel>
hey all. I am trying to set up VFIO passthrough for one of two NVidia cards to my VM. how do I blacklist the nvidia driver for only one card?
<mabel>
I did some digging and learned about "unbind", which is the standard way of doing it on other linuxes, and boot.initrd.preDeviceCommands, which seems to be a way to run commands before stage 1
<mabel>
should I add the unbind call in there? I'm scared
<mabel>
or maybe add a udev rule?
toppler has quit [Ping timeout: 240 seconds]
<mabel>
ah, services.udev.extraRules?
<pbb>
it might also be possible to tell the driver to only bind to one specifi device
<pbb>
actually, you want to set up the vfio-pci driver to take control of the card before your host graphics driver does that
<pbb>
you can put vfio_pci in your initrd, that will make it load first
<pbb>
this is how it is described in the ArchWiki too
<mabel>
but won't it take over both devices unless it knows better?
<pbb>
will tell vfio-pci to only bind to the card you want to pass through (if you put the correct id there)
knupfer has joined #nixos
<mabel>
oh, excellent. and it'll do so before nvidia eats the cards? or should I put vfio_pci in initrd to make it load first?
byrn has quit [Client Quit]
<pbb>
yes, exactly
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mabel>
ahh, makes sense.
byrn has joined #nixos
<pbb>
good luck, these things are fun :)
<mabel>
ahh yes. the computer equivalent of taking the engine block out to install nitrous
<tilpner>
pbb: See nixos/nixos-homepage /Makefile
<mabel>
thank you pbb
<tilpner>
jophish: You can also diff the output of env
<pbb>
tilpner: thanks
toppler has joined #nixos
byrn has quit [Client Quit]
byrn has joined #nixos
<jophish>
tilpner: using the env from within the shell doesn't seem to make a difference!
byrn has quit [Client Quit]
<jophish>
and likewise, using the non nix-shell env in a shell still faile
zupo has joined #nixos
<tilpner>
jophish: I can't do more than guess from over here
<mabel>
hrm. they're both showing the same ID (10de:1b06), unless I'm mistaken
cosimone_ has joined #nixos
cosimone_ has quit [Client Quit]
toppler has quit [Ping timeout: 268 seconds]
byrn has joined #nixos
<jophish>
Thanks for the suggestions, tilpner, I was using this channel as a rubber duck. I didn't mean to be demanding! :)
toppler has joined #nixos
byrn has quit [Client Quit]
* tilpner
quack
byrn has joined #nixos
<mabel>
hey pbb, after reading the arch tutorial, it looks like the "ids" field is for vendor:device pair. since I have two cards of same model, they're both 10de:1b06, so I'm not sure how further to disambiguate them. they're both at different bus ports and IOMMU groups obviously
<mabel>
oh, nvm. there's a "Special procedures" section on the Arch page for dealing with this kind of scenario
toppler has quit [Ping timeout: 245 seconds]
byrn has quit [Client Quit]
toppler has joined #nixos
byrn has joined #nixos
<mabel>
bad news is that it requires a script, so I'll probably have to use that initrd.preDeviceCommands
toppler has quit [Ping timeout: 268 seconds]
akaWolf has quit [Ping timeout: 240 seconds]
akaWolf has joined #nixos
<mabel>
okay, trying it, wish me luck. using postBootCommands and that script to override
mabel has quit [Quit: WeeChat 2.6]
ebzzry has quit [Ping timeout: 240 seconds]
mabel has joined #nixos
mabel has quit [Changing host]
mabel has joined #nixos
<mabel>
it worked! ahahaha yes
<mabel>
bah, though it didn't get the sound card for some reason
<cjpbirkbeck>
systemd-boot will show any new generations past the second
toppler has joined #nixos
toppler has quit [Ping timeout: 265 seconds]
<mabel>
yeah, this is really bizarre. I look at the driver_override for the sound chip on the card, and the contents are literally (null)
toppler has joined #nixos
<mabel>
but the contents for the GPU itself is vfio-pci like expected
<mabel>
something had to have overwritten it
gjabell has joined #nixos
<gchristensen>
note: can't create trash directory: creating directory '/nix/store/trash': No space left on device oops
<gjabell>
anyone know if it's possible to have a default option based on another option in the same config?
<MichaelRaskin>
gchristensen: btrfs?
<gjabell>
ie if option a is set but not b, make b's default value "${a}/b"
<gchristensen>
zfs
<MichaelRaskin>
Does it have a notion similar to rebalancing?
<gchristensen>
hmmm I don't think so
toppler has quit [Ping timeout: 240 seconds]
<cjpbirkbeck>
can you install nixos on uefi with grub instead of systemd-boot?
<infinisil>
gjabell: Yeah, use `b = mkDefault config.a` in the config section
toppler has joined #nixos
gila has joined #nixos
<gjabell>
Thanks, do you know how it works with sets? (Ie is there a way to reference the value of the current set rather than the top-level config)
clever has quit [Ping timeout: 240 seconds]
<MichaelRaskin>
gchristensen: This is one of the reasons I like stricter-than-needed limits on FS sizes (that I can relax if needed to gain maneouver options)
<infinisil>
gjabell: An example?
<gchristensen>
MichaelRaskin: yeah, I'm learning that lesson now :P it would be nice to have a good list of best practices
sylvblck is now known as sylv-io
toppler has quit [Ping timeout: 265 seconds]
<MichaelRaskin>
Oh well, for me it comes pretty automatically with the trivial practice recommended by Torvalds: do not do rampant layering violations. LVM2 kind of naturally nudges you to allocate how much space is needed per FS and have a reserve to change your mind.
<gjabell>
If config.users defines a set of name => set mappings such that each user has an option for passwordHash or passwordHashFile, how to make the default value of
toppler has joined #nixos
<gjabell>
passwordHashFile some operation of that user's passwordHash value
sylv-io has quit [Quit: bye]
<gjabell>
Ie config.users.*.passwordHash and config.users.*.passwordHashFile
<gjabell>
infinisil: ^
byrn has quit [Quit: WeeChat 2.6]
fendor has joined #nixos
<MichaelRaskin>
gchristensen: I have seen this link, not sure there's much interesting there
<gchristensen>
MichaelRaskin: your comment about layering violations is what made me think about it
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<MichaelRaskin>
Yeah, they could have two-phase updates with LVM2 snapshots ten years ago
Havvy has joined #nixos
xfix has quit [Ping timeout: 265 seconds]
<infinisil>
gjabell: Hm that's possible but why do you need that? Setting either option works for setting the password already
<aanderse>
😲 ubuntu zfs on root? oh that would make my life in the future easier...
<MichaelRaskin>
gchristensen: as for «back» — I never went completely away from GitHub issue discussions; it's kind of random which weekends I log in to high-trafic channels like #nixosp
toppler has quit [Ping timeout: 240 seconds]
slyfox has left #nixos ["bye"]
<MichaelRaskin>
aanderse: until kernel manages to break ZFS in a subtle way
<gjabell>
infinisil: not necessary but it makes later operations cleaner since there's guaranteed to be a password file rather than having to check each time
xfix has joined #nixos
toppler has joined #nixos
<infinisil>
gjabell: Ah I see that makes sense. Would be cool if the module did that already
<aanderse>
MichaelRaskin: yeah that would be an absolute disaster
<gjabell>
infinisil: seems like it's an easy case with the mkDefault you posted earlier, but I'm not sure how it works for nested sets
<infinisil>
gjabell: You can do this with something like `options.users.users = mkOption { type = loaOf (submodule ({ config, ... }: { config.passwordFile = mkDefault (pkgs.writeText "pw" config.password); })); }`
toppler has quit [Ping timeout: 264 seconds]
xfix has quit [Ping timeout: 268 seconds]
mmlb has quit [Ping timeout: 252 seconds]
<MichaelRaskin>
aanderse: well, Ubuntu tieing features it could implement on LVM2 to the use of non-mainlined FS is a recipe for disaster, if it happens the outcome is only a matter of time
<gchristensen>
I think the money in ZFS is too great for such an outcome (LLNL, Canonical)
<MichaelRaskin>
Well, upstream kernel Officially Doesn't Care About ZFS Liability
<aanderse>
well they're talking about supporting desktop linux at work so i'm building an image based on 18.04 LTS and i still have some horribly unresolved problems which would be solved very nicely if ubuntu had nice zfs on root integration
<gjabell>
infinisil: thanks! I'll play around with that and see if I can get it working
o1lo01ol1o has joined #nixos
dycan has joined #nixos
is_null has quit [Ping timeout: 268 seconds]
toppler has joined #nixos
<wedens>
aanderse: just curious, what kind of problems?
<LnL>
gchristensen: hmm that tagged me :)
o1lo01ol1o has quit [Ping timeout: 268 seconds]
<aanderse>
wedens: when users make something blow up :)
<jophish>
hmm, looks as though a file created in nix-shell has permissions 644 and one created outside is 664
<wedens>
aanderse: so, you want zfs snapshots?
<aanderse>
wedens: yeah, that would be the ideal solution
<aanderse>
well....
<aanderse>
i mean the ideal solution would be a fleet of desktop nixos ;-)
<aristid1>
has anybody seen this error? "error: cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': Connection refused
toppler has quit [Ping timeout: 240 seconds]
<aristid1>
"
aristid1 is now known as aristid
<LnL>
gchristensen: saw your tweet about ubuntu rollback, pretty cool that they where able to implement it using snapshotting
<aanderse>
but that wouldn't work out very well, practically speaking
toppler has joined #nixos
<MichaelRaskin>
aanderse: why LVM2 snapshots are not enough?
<jophish>
yeah, what's this about: rm a; touch a && stat -c %A a && rm a && nix-shell -p --run "touch a" && stat -c %A a
<wedens>
lvm snapshots are not as reliable as native fs snapshots
<jophish>
or more simply I think: umask && nix-shell -p --run umask
dycan has quit [Remote host closed the connection]
<aanderse>
MichaelRaskin: yeah, i'll probably go that route and it will work well enough... but ❤️ zfs, and yeah, what wedens said
cosimone has joined #nixos
<aanderse>
if ubuntu is doing zfs snapshots they'll integrate it with the boot loader and system updates
<aanderse>
it would be one of those nice "out of the box" experiences i can imagine
<MichaelRaskin>
I would say snapshots might be more efficient on FS level, but unlike mirroring I would expect LVM2-level snapshots to be more reliable
<jophish>
tilpner: Looks like it's a umask issue
toppler has quit [Ping timeout: 240 seconds]
feep_ has joined #nixos
feep has quit [Disconnected by services]
<MichaelRaskin>
aanderse: yeah, Ubuntu doing the wrong thing might make the wrong thing short-term cheaper to use than the right one
feep_ is now known as feep
<jophish>
but why does nix-shell change umask?
<asymmetric>
when i switch from 19.03 to 19.09, my wireless interface gets renamed from wlp3s0 to wlan0, and wireless networking (via iwctl) stops working
<asymmetric>
aren't predictable interace names the future? how come i get wlan0?
<aanderse>
i've never used lvm for snapshots before, so maybe i'll discover there is nice boot loader integration and things aren't as bad as i assume. maybe i'm just horribly spoiled by zfs+nixos ;-)
cjpbirkbeck has quit [Quit: Quitting now.]
<tilpner>
asymmetric: Are you using networking during stage1?
toppler has joined #nixos
<asymmetric>
tilpner: not that i know of. how would i check?
<tilpner>
You would probably know if you are
<MichaelRaskin>
aanderse: … and NixOS boot integration is not actually FS-dependent
<asymmetric>
i'm not doing anything extraordinary with networking, other than not using NM at all and only using iw
<tilpner>
And it would be weird to use a wireless interface during stage1
<aanderse>
MichaelRaskin: i use zfs snapshots for mutable data only because nixos takes care of everything else more than adequately... so yeah, comparing apples to oranges a little bit here
<LouisDK>
But I get this error: syntax error, "unexpected '=', expecting ';', at /home/louis/nixpkgs/pkgs/applications/video/mythtv/default.nix at line 33." - which I find strange since the line is ending with ";".
<tilpner>
LouisDK: Replace with (lib.optional enable-xvnctrl nvidia-x11)
<alexarice[m]>
the `=` shouldn't be there
<tilpner>
And (lib.optional !enable-xvnctrl "--disable-xvnctrl")
<infinisil>
tilpner: Needs more parens
toppler has quit [Ping timeout: 276 seconds]
<LouisDK>
tilpner: what even more?
toppler has joined #nixos
<tilpner>
infinisil: Where?
<tilpner>
LouisDK: I didn't say to add more of anything
<alexarice[m]>
LouisDK: You will need to put lib in the function arguments at the top
<tilpner>
LouisDK: You can use stdenv.lib, or add lib into your function header at the top of the file
toppler has joined #nixos
<philmacfly>
I'm right now failing to get the "gns3-server" running as a service in nixos, can anyone help me with that?
chloekek has joined #nixos
<infinisil>
philmacfly: It's best to state the problem upfront
alexherbo2 has joined #nixos
<infinisil>
No idea about that service myself
<LouisDK>
error: anonymous function at /home/louis/nixpkgs/pkgs/applications/video/mythtv/default.nix:1:1 called without required argument 'nvidia-x11', at /home/louis/nixpkgs/lib/customisation.nix:69:12
infinee_ has joined #nixos
toppler has quit [Ping timeout: 265 seconds]
<LouisDK>
Should I put nvidia-x11 in that file and wouldn't that cause problems if you were to build without xnvctrl support?
knupfer has quit [Ping timeout: 245 seconds]
infinee has quit [Ping timeout: 240 seconds]
<philmacfly>
infinisil: my problem is that I dont know how to start it as a service in nixos as "services.gns3-server.enable = true" because im getting "The option services.gns3-server does not exist"
<philmacfly>
the package name is gns3-server
<alexarice[m]>
philmacfly: There is no service defined for that by the looks of it
<infinisil>
philmacfly: Yeah you'll have to define one yourself
smatting has joined #nixos
toppler has joined #nixos
<philmacfly>
alexarice[m]: infinisil How would I do that?
<infinisil>
philmacfly: Look how other services use `systemd.services.*` to define them
<alexarice[m]>
philmacfly: then add the path of your module to `module-list.nix`
asymptotically has quit [Remote host closed the connection]
asymptotically has joined #nixos
<infinisil>
alexarice[m]: That's only if they want to do a PR, but services can be defined without changing nixpkgs too
<alexarice[m]>
philmacfly: What I said only really applies if you want to upstream the pr
<alexarice[m]>
infinisil: you got there first
<philmacfly>
ok thanks ill have a look into it
toppler has quit [Ping timeout: 250 seconds]
toppler has joined #nixos
smatting has quit [Ping timeout: 245 seconds]
toppler has quit [Ping timeout: 265 seconds]
Swant has quit [Quit: Gone to IKEA]
<LouisDK>
tilpner, infinisil: any idea about this:
<LouisDK>
error: anonymous function at /home/louis/nixpkgs/pkgs/applications/video/mythtv/default.nix:1:1 called without required argument 'nvidia-x11', at /home/louis/nixpkgs/lib/customisation.nix:69:12
toppler has joined #nixos
<LouisDK>
Should I put nvidia-x11 in that file and wouldn't that cause problems if you were to build without xnvctrl support?
LouisDK has quit [Remote host closed the connection]
<wedens>
I have `vaapiIntel` in `hardware.opengl.extraPackages`, but `vainfo` fails with `libva error: /usr/lib/dri/i965_drv_video.so has no function __vaDriverInit_1_0`. how do I fix that? I'm on 19.09
o1lo01ol1o has joined #nixos
<philmacfly>
infinisil: would I just change the shiped nix conf or would I put it somewhere else
toppler has quit [Ping timeout: 240 seconds]
<alexarice[m]>
philmacfly: Depends what you are trying to do
<infinisil>
philmacfly: You can define a systemd.services.* in your configuration.nix
<philmacfly>
alexarice[m]: mainly I wanna use gns3 ;)
<philmacfly>
infinisil: ok thanks
<alexarice[m]>
philmacfly: I would follow infinisil's advice and not bother making a module and just add stuff to your `configuration.nix` in that case
<philmacfly>
alexarice[m]: ok thanks
<alexarice[m]>
LouisDK: The only `nvidia_x11` I can find are kernel drivers, is that really what you're trying to add as a buildInput?
<LouisDK>
alexarice[m]: If I do "nix search nvidia-x11" I get: nixpkgs.linuxPackages.nvidia_x11 (nvidia-x11) - does this means that nvidia-x11 is just a group and I shuld specify a package instead?
<alexarice[m]>
LouisDK: `callPackage` only finds top level packages I think
<LouisDK>
alexarice[m] is nixpkgs.linuxPackages.nvidia_x11 a top level packages or?
<alexarice[m]>
LouisDK: If you really want to import it I think you should replace `callPackage ... { }` by `callPackage ... { nvidia_x11 = linuxPackages.nvidia_x11; }`
o1lo01ol1o has quit [Ping timeout: 264 seconds]
<alexarice[m]>
LouisDK: no
<alexarice[m]>
LouisDK: it's nested in `linuxPackages`
philr has quit [Ping timeout: 240 seconds]
szyk has joined #nixos
<alexarice[m]>
LouisDK: I still don't think you really want to add this as a buildInput though
<philmacfly>
just one last thing: But that tells me that the gns3-server package is not well maintained
<alexarice[m]>
philmacfly: I don't know anything about this software so can't really comment
<alexarice[m]>
LouisDK: I don't know, no other package imports `nvidia-x11`
Guest93436 has quit [Client Quit]
gila has joined #nixos
<philmacfly>
alexarice[m]: Long story short "GNS3" is the gnu network simulator and its a graphical tool to simulate complex networkes with switches, server etc. The gns3-server enables you to run the server without ui on a powerfull server and then connect to it via the ui tool
minall has quit [Ping timeout: 268 seconds]
<alexarice[m]>
philmacfly: I meant I can't really comment on whether it is well maintained. A module would only be there if someone had put the effort into making one and pushing it to nixpkgs
<adisbladis>
wedens: Hmm, you shouldn't even _have_ a /usr/lib/dri/i965_drv_video.so
<adisbladis>
Unless you're on non-nixos
<wedens>
adisbladis: sorry. I mean /run/opengl-driver/...
<adisbladis>
wedens: I have seen your exact issue before but I can't for the life of me remember what the cause was...
<adisbladis>
(according to my understanding libva will attempt every known symbol name in succesion until it finds a compatible abi?)
is_null has joined #nixos
toppler has quit [Ping timeout: 265 seconds]
<adisbladis>
So you'll _always_ see 1_0 if every other symbol version fails
toppler has joined #nixos
gila has joined #nixos
acarrico has quit [Ping timeout: 276 seconds]
toppler has quit [Ping timeout: 240 seconds]
ConsumeristProvo has joined #nixos
<wedens>
adisbladis: yes, I have a hybrid graphic, but dGPU is disabled in bios
<ConsumeristProvo>
hello
Heirlung has quit [Ping timeout: 268 seconds]
<ConsumeristProvo>
I'm trying to compile a program that uses SDL2_ttf using nix-shell, but upon compilation I get tons of errors saying the SDL_ttf.h file cannot find SDL.h. What gives?
toppler has joined #nixos
<ConsumeristProvo>
this is the error:
<ConsumeristProvo>
/nix/store/az6kzml7li3d3k0w182kkd366cb68bkh-SDL2_ttf-2.0.14/include/SDL2/SDL_ttf.h:34:10: fatal error: SDL.h: No such file or directory
<wedens>
adisbladis: and vainfo fails with non-zero code and errors, so I doubt it's non-critical in this case
<ConsumeristProvo>
anyone can help? I googled a bit and found that I can use nix-env with "sdlEnv", but that doesn't seem to work on 19.03. I'm using the command "nix-shell -p SDL2 SDL2_ttf" and then running make on the program.
simukis__ is now known as simukis_
toppler has quit [Ping timeout: 240 seconds]
is_null has quit [Ping timeout: 240 seconds]
toppler has joined #nixos
is_null has joined #nixos
ATuin has joined #nixos
ATuin has quit [Client Quit]
toppler has quit [Ping timeout: 240 seconds]
is_null has quit [Ping timeout: 265 seconds]
is_null has joined #nixos
toppler has joined #nixos
<arianvp>
Qt apps stopped working for me on gnome since 19.09
<arianvp>
in some cases
<arianvp>
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
<arianvp>
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
<arianvp>
Aboted (core dumped)
toppler has quit [Ping timeout: 264 seconds]
<fusion809>
Hi, in a NixOS 19.09 VirtualBox VM I get this error when running nixos-install: https://imgur.com/a/rrTwJUw. I've re-run nixos-install a few times and every time I get the same error. Whenever I try to boot my installation I get a blackscreen with a cursor blinking (and that doesn't change after waiting for 10 mins). Here's my configuration.nix file: https://gist.githubusercontent.com/fusion809/b4ccbea27078067eea8c3651c801753a
ConsumeristProvo has quit [Ping timeout: 265 seconds]
orivej has joined #nixos
<fusion809>
Tried removing OS prober line from configuration.nix and re-running nixos-install, and while the command completed without error, it still fails to boot correctly.
<alexarice[m]>
arianvp: which app? Qt infrastructure changed between 19.03 and 19.09 and the derivation likely needs updating
is_null has quit [Ping timeout: 240 seconds]
<infinisil>
Aleksejs: You mean 19.09?
<Aleksejs>
no, I'm still on 19.03, I'm slow to update on my work PCs
<arianvp>
alexarice[m]: hedgewars
toppler has quit [Ping timeout: 264 seconds]
<alexarice[m]>
arianvp: I'll take a look
<alexarice[m]>
arianvp: Think this was fixed after the 19.09 split off. Will ask for a backport
toppler has joined #nixos
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
lukash_ has joined #nixos
<avn>
Folks, anyone use docker and userns-remap within nixos?
toppler has quit [Ping timeout: 240 seconds]
<lukash_>
hello, I've just installed nixos (into a btrfs subvolume), still on my other system when I do nixos-enter, the default profile doesn't exist and I have no clue what to do
clever has joined #nixos
<ornx>
i have my nixpkgs (stable/release and unstable/master) in a git repo on my hard disk (so i dont use channels (i dont think??)), so to do eg nix-shell i have to do -I nixpkgs=/path/to/localrepo -I unstable=/blah/blah etc, is there some way to set these as environment variables (or set my nix channel to use the local repos) or something, so i dont have to pass those flags to nix-env/nix-shell et al every time i want to use them?
<Aleksejs>
I'm trying to "yarn add usb" and I'm getting an error "../libusb/libusb/os/linux_udev.c:40:10: fatal error: libudev.h: No such file or directory". What package should I install?
toppler has joined #nixos
<ornx>
libraries dont get added to the normal default shell
<clever>
Aleksejs: you should use `nix-shell -p udev`
<Aleksejs>
clever: I have udev in my configuration.nix
<clever>
Aleksejs: installing it wont add the headers, only nix-shell can do that
<Aleksejs>
ah
<Aleksejs>
it helped, thanks
<nornagon>
if you have multiple packages on your system that provide the same binary (e.g. java), how do you switch which one you get when you type "java" on the shell?
__monty__ has joined #nixos
WilliButz has quit [Quit: WeeChat 2.6]
<clever>
nornagon: only add one of them to systemPackages, or add zero, and use nix-shell to pick one as-needed
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<nornagon>
i'm unfamiliar with nix-shell, something like `nix-shell -p jdk11_headless`?
<wedens>
your nixpkgs are probably older than that
freeman42x has joined #nixos
<wedens>
`gdk-pixbuf` is the new name
<ornx>
ahhhhhhhh
<ornx>
thats odd though because ive definitely done a git pull much more recently than from five months ago...
<lopsided98>
The PR wasn't merged to staging until the end of July, and didn't get into master until the next staging merge
<clever>
lukash_: did you use strace -f?
<ornx>
ah now i see
<samueldr>
there's also the fact that the "check" and "real" eval disables aliases
<evanjs>
Alright... not entirely sure what's going on... but I'm suddenly getting `nix: src/libexpr/attr-set.hh:54: void nix::Bindings::push_back(const nix::Attr&): Assertion `size_ < capacity_' failed.` on my desktop
<clever>
evanjs: got a backtrace?
<evanjs>
clever: yeah it was happening with `nix-eval` so I tried with `nixos-rebuild --show-trace` but that killed gdm.... let me try in a vterm or screen or something
<evanjs>
Wait... crap. nixos-rebuild works fine... >_>
<clever>
evanjs: id give memtest86 a pass
dycan has joined #nixos
toppler has joined #nixos
<evanjs>
clever: x_x wait really, you think it might be memory related?
<clever>
evanjs: that could explain random crashes in many programs
gxt has quit [Remote host closed the connection]
gxt has joined #nixos
<cjpbirkbeck>
systemd-boot isn't adding any more entries on its list and i can't replace it with grub and nothing i do seems to fix anything
<clever>
cjpbirkbeck: is /boot mounted?
<cjpbirkbeck>
no, and trying to mount then running nixos-generate-config does seem to work
<cjpbirkbeck>
i'm using efi, btw
<clever>
cjpbirkbeck: if /boot isnt mounted, then you wont be updating the boot config
<clever>
cjpbirkbeck: how does it not work when you run nixos-generate-config?
<evanjs>
clever: it's just `nix <cmd>` that breaks things AFAICT
<evanjs>
`nix-cmd`s work fine
szyk has joined #nixos
<clever>
evanjs: but you can use the other commands to get nix-info, to run that for the ticket
toppler has quit [Ping timeout: 268 seconds]
<nornagon>
... would it be crazy to use unionfs-fuse to create a union fs for a specific systemd unit while it's running? e.g. ExecStartPre = "+unionfs /some/dir.top=RW:/some/dir.bottom=RO /some/dir.unified" and ExecStopPost="+umount /some/dir.unified"
<clever>
nornagon: you can do that with fileSystems.
<nornagon>
:o
<evanjs>
clever: Oh, sure, I was already manually constructing that
<clever>
nornagon: finding an example...
<nornagon>
background is that i'm running a service (minecraft) that likes to scribble all over its directory and i wanna isolate the changes it makes during runtime from the base file set
<nornagon>
clever: thanks!!
<evanjs>
clever: ahhhh derp. I don't _need_ to do that. Well, that makes things easier :P
dycan has quit [Remote host closed the connection]
<clever>
cjpbirkbeck: try removing this line, boot.loader.efi.efiSysMountPoint = "/boot/efi";
<clever>
cjpbirkbeck: thats only to be used if the fat32 is mounted at /boot/efi
<nornagon>
clever: this example mounts at boot, is that right?
<clever>
nornagon: yeah
<clever>
nornagon: you can use the normal options = [ "noauto" ]; to prevent that
<nornagon>
kk. i guess there's no special reason for me not to do that, but i was imagining mounting it when the service was started and unmounting on service stop
<evanjs>
clever: seems like it's something from 2.3 -> 2.3.1 *shrugs* -- /nix/store/l4zaz0z1x9w549xj0m0y9a2p8fik2w8a-nix-2.3/bin/nix works fine. Anybody else on nix*-unstable experiencing broken nix commands?
toppler has quit [Ping timeout: 240 seconds]
<clever>
nornagon: systemd also has a requires mounts for option
<clever>
nornagon: this tells systemd to not start the service until the given fs has been mounted
<clever>
nornagon: not sure if that will force-mount it (ignoring noauto), or it will just block the service from starting
<cjpbirkbeck>
clever:okay, that finally seems to have fixed it
<clever>
cjpbirkbeck: it sounds like the bootloader was configured wrong, so all reboots where causing a rollback
<clever>
cjpbirkbeck: which undid the effects of fixing /boot
toppler has joined #nixos
Standa[m] has joined #nixos
<evanjs>
clever: whatever. I'm going in. If edolstra or somebody doesn't beat me too it.
toppler has quit [Ping timeout: 268 seconds]
toppler has joined #nixos
byrn has quit [Quit: WeeChat 2.6]
toppler has quit [Ping timeout: 240 seconds]
toppler has joined #nixos
chloekek has quit [Ping timeout: 240 seconds]
<clever>
evanjs: 2.3.1pre6936_61e8162 passes here
<evanjs>
clever: how did you test the compiled program? I must've run configure or something wrong
<evanjs>
I just nix-shell'ed, ./bootstrap, configure, make
selfsymmetric-mu has quit [Remote host closed the connection]
infinee_ has quit [Quit: Leaving]
<clever>
evanjs: both nix-build and configure+make result in a working binary, for `.../nix run nixpkgs.hello -c hello`
Okinan has joined #nixos
toppler has quit [Ping timeout: 265 seconds]
zupo has joined #nixos
toppler has joined #nixos
<j4m3s__>
Hi ! I'm trying to install nixos on my laptop, with full disk encryption, but grub tries to mount partition that is in the encrypted part... Even though I have preLVM = true; enableCryptoDisk etc... Any ideas ?
<evanjs>
clever: Mmkay it works after I actually create+chmod+chown /usr/local and install there :P
<evanjs>
clever: anyway, looks like that's ref 61e81621?
<clever>
j4m3s__: do you have a plaintext /boot ?
<evanjs>
ah I see it now. Annoying the abbreviations are one char different
<j4m3s__>
nope, /boot is inside my root partition which is encrypted
<clever>
j4m3s__: then grub must open the encrypted disk to find the kernel/initrd, and preLVM wont have any impact until after that step
<j4m3s__>
yep, but how do I tell grub that ?
<j4m3s__>
Since it's on the EFI partition and there's no grub.cfg lying around
<clever>
j4m3s__: where is the EFI part mounted to?
toppler has quit [Ping timeout: 264 seconds]
<j4m3s__>
/boot/EFI
<clever>
j4m3s__: and youve set boot.loader.efi.efiSysMountPoint ?
<clever>
that flag just sets an env var before running install-grub.pl
<clever>
and nothing in nixpkgs checks that var
<evanjs>
on a less bug-related note, does anybody know how I could better stay up to date in terms of linux kernels while also locking myself to the latest kernel that has a corresponding VBox binary available on cachix?
<evanjs>
Like if I wanted 5.2 or 5.3 but didn't want to build VBox myself _every_ time I upgrade
<clever>
j4m3s__: ah, that env var is a direct option for grub
<clever>
evanjs: either your own, or file a pr to nixpkgs, to hydra.nixos.org could pre-build it
<j4m3s__>
clever: so what should I do ? pass it to nixos-install as env ? (does that even work?)
<clever>
j4m3s__: setting the nixos option will pass that env var to grub for you
<evanjs>
clever: oooo that's a thought. Didn't think of the latter option. Would be interesting if I could set that up but also get autoUpgrade to work in sync with it. i.e. "Don't try to build this from source if it's not available as a binary"
cosimone_ has joined #nixos
<clever>
evanjs: thats what channels do
cosimone has quit [Ping timeout: 250 seconds]
toppler has quit [Ping timeout: 264 seconds]
<clever>
evanjs: the channel doesnt update until hydra has at least tried to build every single package
<o1lo01ol1o>
I'm trying to debug a driver problem; given a paritially functional clean install of 19.09, what's the cleanest way to get to 17.09?
<clever>
evanjs: so if the package is in the release.nix, the channel wont update until hydra has tried (but a failure still counts)
<clever>
o1lo01ol1o: most of the time, you can just change the nix-channel, `nixos-rebuild boot`, and reboot
<evanjs>
`32 revisions left to test` -- oh boy. Only 5 steps though
<o1lo01ol1o>
clever: that's what i've done but it looks like my nvidia (titan black; series 700) drivers are still borked. Guess I'll try 16
<j4m3s__>
clever: thing is I already had enableCryptodisk to true and it doesn't work
toppler has joined #nixos
<o1lo01ol1o>
just wanted to be sure that changing the channel was sufficient
<clever>
o1lo01ol1o: usually is
<j4m3s__>
clever: It tries to mount a disk by its lvmid (which I have not precised in the conf), and fails because it is on the encrypted disk
<clever>
j4m3s__: then something else must be wrong with the cryptodisk setup, are you using luks?, hmmm, maybe grub doesnt understand lvm on luks?
<j4m3s__>
I'm using luks yep
<gchristensen>
btw {^_^} got real sick last night. they'll be back soon :)
cosimone_ has quit [Client Quit]
<j4m3s__>
grub normally works with lvm or luks, why should it with both ? x)
<j4m3s__>
shouldn't*
knupfer has joined #nixos
cosimone_ has joined #nixos
<clever>
j4m3s__: would need to run tests in a vm to see if it does or doesnt work
<clever>
gchristensen: that reminds me, my entire house just dropped off the face of the internet, while out for thanks giving
cosimone_ has quit [Client Quit]
asymptotically has joined #nixos
<j4m3s__>
mmm it works, because my current pc has it and it works. and it also is running nixos x)
<clever>
gchristensen: all vpn's that connect out are mia, the public ip doesnt respond
<clever>
j4m3s__: how do the configs between the 2 differ? can you give more info like the lsblk of both?
<j4m3s__>
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
<j4m3s__>
sda 8:0 0 931.5G 0 disk
<j4m3s__>
├─sda1 8:1 0 500M 0 part /boot/EFI
<j4m3s__>
└─sda2 8:2 0 931G 0 part
toppler has quit [Ping timeout: 240 seconds]
<j4m3s__>
└─root 254:0 0 931G 0 crypt
<j4m3s__>
├─vg-swap 254:1 0 8G 0 lvm [SWAP]
<clever>
,pastebin j4m3s__
<j4m3s__>
└─vg-root 254:2 0 923G 0 lvm /
<j4m3s__>
sr0 11:0 1 1024M 0 rom
<j4m3s__>
y
<clever>
,paste
<j4m3s__>
ups
<samueldr>
clever: the bot isn't there for a short while longer :)
<clever>
gchristensen: ah, still not fixed?
abathur has joined #nixos
cosimone has joined #nixos
cjpbirkbeck has quit [Quit: Quitting now.]
<arianvp>
Why didn't 19.09 switch to Linux 5.4 ?
<srhb>
arianvp: Because it's not LTS. Or at least it wasn't at release time.
toppler has joined #nixos
<srhb>
It's not even released yet, even...
<clever>
j4m3s__: and what about the 2nd machine?
cosimone has quit [Client Quit]
<j4m3s__>
i'm doing the pastebin so it's clearer
<arianvp>
Oooh
<arianvp>
Haha that explains
<samueldr>
_latest continues pointing to the latest stable
<j4m3s__>
(note that the second lsblk is from the iso)
<gchristensen>
clever: yeah.... it was broken by a full disk and failed writes, then rabbitmq failed, and then recovery failed.
LouisDK has joined #nixos
<clever>
gchristensen: ouch
<clever>
gchristensen: in my case, its much more of a mystery, the entire network is just offline, including the router, so i have no way to debug anything!
nexgen has quit [Quit: Leaving]
<gchristensen>
yep. had to delete some state. ouch!
<clever>
its nixos, what do you even need state for? :D
<gchristensen>
hehe
<gchristensen>
persistent messages :)
drakonis has joined #nixos
toppler has quit [Ping timeout: 265 seconds]
NoctisLabs has quit [Quit: WeeChat 2.6]
drakonis_ has quit [Ping timeout: 252 seconds]
toppler has joined #nixos
wfranzini has quit [Remote host closed the connection]
<samueldr>
services.journald.extraConfig = ''\nSystemMaxUse=2048M\n'' # <- I have something similar in my configurations
wfranzini has joined #nixos
<samueldr>
though I instead have maxUse computed as the smaller between a 64th of the rootfs or 4GB; rootfs size is a custom configuration I use to set similar automatic maximums
<samueldr>
not sure if in your case the journal was absurdly huge :)
Mr_Keyser_Soze has joined #nixos
ZerataX has joined #nixos
toppler has quit [Ping timeout: 265 seconds]
<LouisDK>
I still get "error: anonymous function at /home/louis/nixpkgs/pkgs/applications/video/mythtv/default.nix:1:1 called without required argument 'nvidia_x11', at /home/louis/nixpkgs/lib/customisation.nix:69:12" while trying to build: error: anonymous function at /home/louis/nixpkgs/pkgs/applications/video/mythtv/default.nix:1:1 called without required
wedens has quit [Quit: Connection closed for inactivity]
mexisme has joined #nixos
toppler has quit [Ping timeout: 264 seconds]
LouisDK has joined #nixos
<LouisDK>
I have to combine these two call packages: mythtv = libsForQt5.callPackage ../applications/video/mythtv { }; mythtv = callPackage ../applications/video/mythtv { libXNVCtrl = linuxPackages.nvidia_x11.settings.libXNVCtrl; };
<jntd>
srhb: I'm thinking in something like services.collectd.package, but security.wrappers returns a set with a path and a string and there is no mention to the wrapped bin.
<LouisDK>
- in all-packages.nix
jasom has joined #nixos
toppler has joined #nixos
aswanson has joined #nixos
<danderson>
So I asked 12h ago, but perhaps more experts are around now... I'm writing a module for pppd, which supports defining multiple connections. I'm hitting an infinite recursion, and I don't understand how to fix it. Any nix experts around who can help me understand?
Fare has quit [Read error: Connection reset by peer]
<danderson>
I'm quite a nix noob, so I've been taking inspiration from etc.nix and a few other simple modules, to figure out how to do this. But clearly I've got it wrong still.
growpotk- has joined #nixos
risson has quit [Quit: Pouet. WeeChat 2.6]
<clever>
danderson: you cant set config directly to the result of mkMerge, because they you cant depend on any part of config
<clever>
danderson: you need to break it up into parts, like i did in the weechat.nix example
<clever>
danderson: the problem, is that it must know every attribute of config.<?> before it can give you the value of config.networking.pppd
<aswanson>
I'm getting a strange error when running `nixos-rebuild switch`, after the step `Updating GRUB 2 menu` : `Died at /nix/store/<hash>-install-grub.pl line 33`. I assume something is missing/broken under /boot but I don't know what
<danderson>
aaah
<clever>
danderson: and it cant know what your mkMerge returns, until it knows what config.networking was
cosimone has quit [Quit: Quit.]
<danderson>
okay. So, I have to give it enough information to know that I'm only setting environment.etc and systemd.*
<clever>
danderson: but if you instead config.environment = mkMerge ... ; config.systemd = mkMerge ...;
toppler has joined #nixos
<clever>
danderson: then it can figure out what your doing later, and not cause recursion
<danderson>
okay, I see now. I was assuming nix's lazy eval was more clever than it is
<danderson>
that makes sense now. Thank you!
doublex has joined #nixos
<danderson>
and yes, the systemd service is all kinds of broken, because I wasn't sure how to express "please just do the equivalent of `systemctl enable pppd@foo.service`, don't actually write a new unit file"
<danderson>
but I can iterate on that in my system, once the module actually builds.
jntd has quit [Remote host closed the connection]
risson has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
LouisDK has quit [Remote host closed the connection]
<LouisDK>
I have to combine these two call packages in all-packages.nix:mythtv = libsForQt5.callPackage ../applications/video/mythtv { };mythtv = callPackage ../applications/video/mythtv { libXNVCtrl = linuxPackages.nvidia_x11.settings.libXNVCtrl; };
cosimone has joined #nixos
evanjs has joined #nixos
cosimone has quit [Client Quit]
toppler has quit [Ping timeout: 240 seconds]
Fare has joined #nixos
<freeman42x>
any easy fix for this? <<error: attribute 'unmarkBroken' missing, at /home/neo/Sources/miso-jsaddle/sample-app/shell.nix:9:14>>
<infinisil>
freeman42x: You're probably using a nixpkgs version where this hasn't been added yet, it's a recent change
<infinisil>
You can define it yourself in a surrounding `let in` or so as a workaround
<freeman42x>
infinisil, oh, I see
<freeman42x>
infinisil, I am using 19.03
toppler has joined #nixos
Ariakenom has quit [Quit: Leaving]
<freeman42x>
oh 19.09 has been released, I can upgrade OS I guess
WilliamHamilton has joined #nixos
<danderson>
clever: fantastic, my module builds now! Thanks so much for walking me through that.
<danderson>
transient error with a segv in the error path?
<danderson>
either that or check your RAM for errors
Mr_Keyser_Soze has quit [Ping timeout: 264 seconds]
<WilliamHamilton>
I'm looking for a wifi card to use with NixOS; is there something I should know (incompatibilities, etc)? I'd choose a Asus PCE-AC55BT probably
<danderson>
for hardware support, nixos isn't significantly different from other linux distros, so the main thing to check is linux kernel support
<danderson>
if whatever card has a driver that supports the common 80211 frameworks in the kernel, it should mostly just work
selfsymmetric-mu has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
<danderson>
a quick google tells me that particular card is actually just an Intel wifi chipset under the hood. Intel chipsets are well supported on linux, so it should be fine
<WilliamHamilton>
danderson thank you very much!
<danderson>
for nixos specifically, make sure you enable the option to install proprietary firmwares in your system
<danderson>
intel wifi chips need the kernel to load a firmware blob into them when they start up, so you need to tell nixos to dump those firmware blobs into the filesystem at the standard location
<danderson>
not sure which, but I'd start with `hardware.enableRedistributableFirmware = true`
toppler has joined #nixos
<danderson>
and see how things go from there
<WilliamHamilton>
duly noted, thanks! :)
<hpfr[m]>
I tried getting distributed builds to work but couldn’t, but now I can’t rebuild to turn off the distributed builds because rebuild still tries and fails to connect to the build server. How can I force a local rebuild so I can turn it off?
liamdiprose has joined #nixos
fendor_ has quit [Ping timeout: 268 seconds]
Fare has quit [Read error: Connection reset by peer]
endformationage has quit [Ping timeout: 265 seconds]
<freeman42x>
I thought it was the nodejs one but I tried the 10 and 12 version and it still does not build
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<infinisil>
freeman42x: Well it says "../src/fibers.cc:741:43: error: no matching function for call to 'v8::Value::ToNumber()'", so maybe it wants nodejs8
<manveru>
v8 is the name of the engine, no relation to the version number
toppler has quit [Ping timeout: 265 seconds]
<infinisil>
Oh, never mind then
<manveru>
still might be a version issue though :)
<freeman42x>
the thing is, I can't just remove nodejs since I need it for Electron
<freeman42x>
is there a way to just tell it to use the nodejs from 19.03? v11 worked fine
toppler has joined #nixos
wfranzini has quit [Remote host closed the connection]
drakonis has quit [Ping timeout: 240 seconds]
wfranzini has joined #nixos
<manveru>
yeah, you'll have to import nixpkgs from 19.09
o1lo01ol1o has quit [Ping timeout: 268 seconds]
<freeman42x>
manveru, how do I do that only for that package?
<freeman42x>
I'm assuming the nodejs build is the issue... not sure though
<fresheye1>
I don't see any work around for sshServe not working
<fresheye1>
other than abandoning it for the moment
toppler has joined #nixos
ng0 has quit [Quit: Alexa, when is the end of world?]
<clever>
fresheye1: what did the nix-store -r over ssh return?
<clever>
fresheye1: you never answered that question
o1lo01ol1o has joined #nixos
Zer0xp has quit [Ping timeout: 264 seconds]
toppler has quit [Ping timeout: 268 seconds]
<pikajude>
i'm on the edge of my seat
br_ has quit [Ping timeout: 240 seconds]
<hpfr[m]>
tilpner: —builders “” doesn’t work. I have builders-use-substitutes on as well
toppler has joined #nixos
<pikajude>
oh, i had no idea about that option
<pikajude>
that's perfect!
mabel has quit [Quit: WeeChat 2.6]
toppler has quit [Ping timeout: 240 seconds]
Fare has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
Fare has quit [Read error: Connection reset by peer]
toppler has joined #nixos
inkbottle has quit [Ping timeout: 240 seconds]
inkbottle has joined #nixos
xfix_ has joined #nixos
drakonis_ has joined #nixos
<hpfr[m]>
tilpner: —option builders “” —option substituters “” worked
drakonis has quit [Ping timeout: 240 seconds]
<hpfr[m]>
Why is —option not in man nixos-rebuild
<clever>
hpfr[m]: In addition, nixos-rebuild accepts various Nix-related flags, including --max-jobs / -j, --show-trace, --keep-failed, --keep-going and --verbose / -v. See the Nix manual for details.
<clever>
hpfr[m]: its part of this clause
toppler has quit [Ping timeout: 240 seconds]
<hpfr[m]>
Yeah, I just saw that and assumed that was the case
<hpfr[m]>
Anyway, I guess remote builds are working but the substituters aren’t
<clever>
hpfr[m]: are all substituters reachable?
<clever>
hpfr[m]: what does it hang on if you use -vvvv ?
<freeman42x>
how can I find out what package needs this package to be installed? `builder for '/nix/store/7lb1phyrf62scp1v0950f47vm51cl1l4-node-azure-cli-0.10.20.drv' failed with exit code 1`
toppler has joined #nixos
br_ has joined #nixos
<clever>
fresheye1: nix tells you, on the like immediately after that one
<hpfr[m]>
clever: I don’t have time to check right now unfortunately but thanks for the tip, I will post later if I have time to try it
<danderson>
Removing the conditional in `wantedBy` makes the error go away, which just leaves me confused. cfg.autostart is a bool, and afaict I'm not defining sets anywhere in here.
<danderson>
and again the trace just shows things failing somewhere in the bowels of nix, rather than pointing to something in my own module.
toppler has quit [Ping timeout: 240 seconds]
<danderson>
The trace does show that it's failing while evaluating my `wantedBy` attribute, so that's consistent... I just don't get what it's trying to tell me.
br_ has quit [Ping timeout: 268 seconds]
<clever>
danderson: that error makes no sense to me either, but i would try `= lib.mkIf cfg.autoStart [ "multi-user.target" ];`
toppler has joined #nixos
<danderson>
clever: I grepped for other wantedBy uses in nixpkgs, and found that some other packages implement this conditional with: `wantedBy = optional cfg.autostart "multi-user.target";`. So I did that, and it works now.
<danderson>
so... ???
<danderson>
hmm, although I say "it works", but the unit doesn't exist or start despite autostart being true...
<clever>
danderson: does the file exist in /etc/systemd/system/ ?
<danderson>
oh, wait, I'm an idiot. I'm not setting the options any more, so obviously there's nothing to create.
<danderson>
(I removed `networking.pppd.centurylink` from my configuration.nix while debugging)
<clever>
danderson: you can also do `nix repl '<nixpkgs/nixos>'` and then eval any option you want, to see what is set to what
<clever>
they should all be under config
<danderson>
okay, `optional` actually results in the same error. More confusing, `mkIf cfg.autostart ["multi-user.target"]` results in a different error: "error: ‘mkIf’ called with a non-Boolean condition"
<danderson>
so... cfg.autostart is apparently not a bool... But it is though :(
feep_ has joined #nixos
feep has quit [Disconnected by services]
toppler has quit [Ping timeout: 268 seconds]
<danderson>
oh, oh!
<danderson>
missing `mkOption` in the definition of autostart.
<danderson>
so it's just a random attrset, not an option. Derp.
<clever>
danderson: ah, yep, that will do weird things
<clever>
danderson: lib.mkEnableOption may also interest you
toppler has joined #nixos
<fresheye1>
I wish I knew what happened that caused this sshServe race issue to surface
<fresheye1>
because its just as consistently broken now as it was consistently working yesterday
toppler has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos
toppler has joined #nixos
alexherbo261 has quit [Ping timeout: 240 seconds]
mjsir911 has quit [Quit: Goodbye, World!]
mjsir911 has joined #nixos
o1lo01ol1o has joined #nixos
alexherbo261 has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ornx>
i just had a problem where an invalid icon-theme.cache was installed to my nix profile
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<ornx>
because the store is read only (obviously), how do i actually fix this?
WilliamHamilton has quit [Ping timeout: 260 seconds]
br_ has joined #nixos
<ornx>
i "fixed" it by coping the whole icons directory to ~/.local and deleting the offending cache, but ideally i would like to fix the actual problem and generate a valid icon-theme.cache that contains all of the icons i have installed
toppler has quit [Ping timeout: 240 seconds]
toppler has joined #nixos
<clever>
ornx: only systemPackages via configuration.nix supports running commands after merging, to update such caches
<ornx>
ah...
<clever>
ornx: you could manually implement it if you make your own drv with buildEnv and a post command, and then put everything with icons into that buildEnv
<clever>
then install just that with nix-env
br_ has quit [Ping timeout: 268 seconds]
toppler has quit [Ping timeout: 276 seconds]
ddellacosta has quit [Ping timeout: 250 seconds]
<ornx>
ill probably just put a sticky note on my monitor that says "remember to copy icons to ~/.local after install" :P
<ornx>
but thank you anyway
ddellacosta has joined #nixos
m0rphism has quit [Ping timeout: 268 seconds]
<ornx>
is running commands after merging via nix-env something that is intended to be supported ever?
<{^_^}>
[nixpkgs] @aanderse pushed 2 commits to release-19.09: https://git.io/Je8ml
jimmyeatworld has quit [Ping timeout: 265 seconds]
br_ has joined #nixos
toppler has joined #nixos
<Ralith_>
argh how the crap do I get home-manager to update
<Ralith_>
keeps freaking out about "attribute 'vte-ng' missing," which supposedly a recent commit to master fixed but nothing I do seems to actually install that commit
Ralith_ has quit [Remote host closed the connection]
lukash_ is now known as lukash_|away
toppler has quit [Ping timeout: 240 seconds]
br_ has quit [Ping timeout: 268 seconds]
Ralith_ has joined #nixos
<Ralith_>
I think it's stuck in some cache somewhere but nuking ~/.cache/nix does no good