<clever>
Unode: that override prefixes the interpreter and rpath with a .
jluttine has joined #nixos
<clever>
so it will look in ./nix/store/foo-glibc/lib/ and so on
<clever>
so you can run a dynamic elf with the "wrong" root, as long as you cd to the root dir first
<Unode>
clever: nix/store/4xbn31l2fr95vp9z7g7ayxzy19ywcpnd-nix-user-chroot-2c52b5f/bin/nix-user-chroot this would fail on a system without /nix/store no?
<clever>
Unode: thats what the patchelf i just linked is solving
Lisanna has joined #nixos
<clever>
its all relative to the working dir, not /
<Unode>
oh right
<Unode>
trying
<clever>
the only problems that remain afterwards, are conflicts in /etc
<clever>
you need the host /etc/resolv.conf to have working dns
<clever>
but if the host is nixos, then then host /etc/protocols is a symlink into the wrong store, and doesnt exist
<Lisanna>
anyone use NetworkManager and have tips for managing connections declaratively? As soon as I replaced the gnome-generated /etc/NetworkManager/system-connections/myconn file with an environment.etc symlink, it stopped showing up in the list
<clever>
and some haskell programs wont even know what tcp is, if /etc/protocols is missing
<clever>
Unode: `-m /home:/home -m /etc:/host-etc -m etc:/etc` and then pre-populate a ./etc dir, and your inner script can deal with merging the 2 etc's
<Lisanna>
oh, geez... nvm, it was a file permissions issue... another program that refuses to do what it's told if it has a low opinion of your permissions setup
<Unode>
clever: I usually prefer to have /nix/etc and leave /etc untouched. Is this something easy to accomodate or do binaries assume /etc too much?
<clever>
Unode: haskell programs assume /etc/protocols defines what tcp and udp are, and fail hard if the file is missing
<Unode>
tricky
<ottidmes>
Lisanna: so that approach works? that does mean you cannot add them non-decleratively, right? (I am curious as well to do so for my laptop)
<Lisanna>
ottidmes It works, you have to set the "mode" option to something that NetworkManager won't reject
<Lisanna>
You should use NetworkManager to generate the original file for you though, and then copy it into your configuration.nix
<ottidmes>
Lisanna: thanks! I will try to do so
hdeshev has quit [Quit: Leaving.]
<Unode>
clever: seems like I can't combine nix-user-chroot and NFS. It can't use a nix store located in an NFS share
<clever>
Unode: what error did it give?
<Unode>
realpath(-u): No such file or directory
<Unode>
unless I'm specifying the location incorrectly
<clever>
Unode: what is the exact command you ran?
<Unode>
./nix-user-chroot -u /share/test/nix/
<clever>
Unode: try -n rather then -u
<Unode>
same error with -n this time
judson has joined #nixos
<clever>
Unode: and are you using the version i linked above, from nix-bundle? i changed its arg parsing a good deal
<Unode>
clever: ah no, using the original.
<clever>
the original assumes the 1st arg is the location of the store
<judson>
manveru especially: I'm trying to work on developing a Ruby gem with bundix. Bundix doesn't recognize the "path" source from Bundler. I remember there was hestitation about adding it, since it's fundamentally of nix-shell only utility.... but that's pretty big.
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
boogiewoogie has quit [Remote host closed the connection]
thekolb_ has quit [Ping timeout: 256 seconds]
<exarkun22>
looking at the drv with `nix show-derivation` shows an arm host/target gcc as an input, that seems horked.
boogiewoogie has joined #nixos
<exarkun22>
but `nativeBuildInputs` says "A list of dependencies whose host platform is the new derivation's build platform"
<exarkun22>
I thought I actually understood something but apparently not.
equalunique has quit [Read error: Connection reset by peer]
equalunique has joined #nixos
thumphries has quit [Ping timeout: 252 seconds]
romanofskiWork has quit [Quit: leaving]
<exarkun22>
Making pkgs.buildPackages.gcc a buildInput seems like it might be a better thing .. but pkgs.buildPackages.gcc doesn't offer a `gcc` executable. How do I know which compiler to invoke?
<exarkun22>
Ah, CC is set in the env ... and this project's Makefile ignores it.
<{^_^}>
#50620 (by stigtsp, 2 days ago, open): perlPackages.Imager: init at 1.006
Growpotkin has joined #nixos
kaychaks[m] has joined #nixos
equalunique has joined #nixos
<Growpotkin>
Hey I ma working to dump all of my nix packages and options into FZF for a fuzzy searcher. I have packages worked out (ripping from `nix search`) I am looking for a nice solution for "Options". I made one that rips all the options from the man page, but it doesn't include modules I hav writted myself.
<Growpotkin>
I am beginning to think using Nix's XML scripts to create a cleaner solution to this whole thing.
<Growpotkin>
I've never used the XML builders though, and some initial googling hadn't turned up much of use. I figured someone might be able to point me in the right direction; or perhaps suggest a solution that I haven't thought of.
romanofskiWork has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 merged pull request #48772 → gnupg: Fix, set current tty in interactive shell → https://git.io/fxKBK
<equalunique>
Lisanna: Microsoft Exchange is proprietary software that has never been ported to Linux, so obviously not as an exchange server. Are you referring to a specific kind of integration?
<equalunique>
In any case, the most recent NixOS weekly issue did feature a GitHub repo with someone's work on building a mail server via Nix
masterdonx has joined #nixos
<Lisanna>
equalunique client .-.
<Lisanna>
i.e., you've put nixos on your work laptop, and now need to get your exchange email, calendar, contacts, etc
<simpson>
Lisanna: I'm not familiar with "equalunique". How would you do this on another Linux distro?
<samueldr>
simpson: equalunique is a user here on this irc channel :)
<gchristensen>
maybe thunderbolt has a thing? simpson: equalunique is a member of our IRC channel here :)
<Lisanna>
simpson erm
<gchristensen>
thunderbird*
<equalunique>
Never tried it. Maybe Hiri needs to be added to nixpkgs.
<simpson>
I feel your pain but don't have a NixOS solution. Best of luck.
freeman42x]NixOS has quit [Ping timeout: 272 seconds]
mekeor has quit [Ping timeout: 252 seconds]
justanotheruser has quit [Ping timeout: 264 seconds]
sigmundv has quit [Ping timeout: 245 seconds]
<clever>
Unode: check dmesg?
<clever>
exarkun22: there is a recent kernel flag to stop /dev/mem from having free reign over all ram, you would need to build the kernel without it
boogiewoogie has quit [Remote host closed the connection]
dramforever has quit [Quit: Page closed]
justanotheruser has joined #nixos
justanotheruser has quit [Quit: WeeChat 2.2]
hamishmack has quit [Ping timeout: 260 seconds]
justanotheruser has joined #nixos
Growpotkin has quit [Ping timeout: 252 seconds]
jhillyerd has joined #nixos
<delroth>
I'm looking for a way to do something like builtins.readFile, but instead of reading the file contents I want its sha1 hash. Can't seem to figure out how to get that done, anyone got an example somewhere that's close enough I could hack it to do what I want? :)
<clever>
delroth: it would be able to run crypto commands, as your user, before returning a path back to nix
<delroth>
I don't think I really need it at this point, but I'll keep it in mind :) thanks
slack1256 has quit [Remote host closed the connection]
slack1256 has joined #nixos
hamishmack has joined #nixos
ottidmes has quit [Ping timeout: 245 seconds]
ninjin has quit [Ping timeout: 256 seconds]
ninjin has joined #nixos
<jhillyerd>
when building a new package, if a program would normally install a config into /etc/X11/myprog/myconfig.conf - is that typically mapped to $out/etc/myconfig.conf - or do we retain the X11/myprog ?
<clever>
jhillyerd: i would use $out/etc/X11/myprog
<jhillyerd>
thx
jasongrossman has quit [Ping timeout: 240 seconds]
<jhillyerd>
holy poop, I think my build actually worked
alienpirate5 has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 268 seconds]
<pbogdan>
how would I debug "output: 'foo' is not allowed to refer to the following paths:"
jackdk has quit [Ping timeout: 268 seconds]
jperras has joined #nixos
alienpirate5 has joined #nixos
slack1256 has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 272 seconds]
krav1 has quit [Ping timeout: 260 seconds]
hyper_ch2 has joined #nixos
jperras has joined #nixos
romanofskiWork has quit [Quit: leaving]
reinhardt has joined #nixos
Growpotkin has joined #nixos
orivej has quit [Ping timeout: 268 seconds]
romanofskiWork has joined #nixos
jperras has quit [Ping timeout: 252 seconds]
jackdk has joined #nixos
jperras has joined #nixos
Lisanna has quit [Quit: Lisanna]
jperras has quit [Ping timeout: 268 seconds]
endformationage has quit [Ping timeout: 240 seconds]
jperras has joined #nixos
Peetz0r has quit [Ping timeout: 250 seconds]
Peetz0r has joined #nixos
jhillyerd has joined #nixos
<jhillyerd>
if "nix-store -q --referrers /nix/store/3bdcgwg2q6dr9wbwb41l5iv55qgw1nkg-imwheel-1.0.0pre12" prints no output, shouldn't sudo nix-collect-garbage -d remove it?
<jhillyerd>
oh, I should be running --roots I guess? that ouputs {memory:20}
jperras has quit [Ping timeout: 272 seconds]
mayhewluke has quit [Ping timeout: 244 seconds]
mayhewluke has joined #nixos
<jhillyerd>
guess I will try rebooting... brb
jhillyerd has quit [Quit: WeeChat 2.2]
jperras has joined #nixos
jhillyerd has joined #nixos
jhillyerd has quit [Client Quit]
jhillyerd has joined #nixos
<jhillyerd>
...that worked. I had already tried systemctl restart nix-daemon; so I'm confused where that was being cached
Rusty1 has quit [Quit: Konversation terminated!]
jperras has quit [Ping timeout: 244 seconds]
<CMCDragonkai>
I wrote a derivation that produces a symlink as its `$out`. This derivation can be used if I refer to it in my environment. However if I put it in `checkInputs` or `buildInputs` Nix complains about `bash: source: /nix/store/caw8gg9xk4m34pmj4ywx36mgl377wkj1-resnet50-2018-08-06: cannot execute binary file`
<CMCDragonkai>
Are nix store outputs designed to be always a directory or something else? Why can't they be a symlink?
<CMCDragonkai>
In fact if you just give buildInputs just a `fetchurl { ... }` it complains that the path cannot execute binary file. It seems that it buildInputs expects all derivation outputs to always be a directory or an executable.
<jhillyerd>
I thought for sure they could be more than a directory, nix pills talks about that some.
<hyper_ch2>
Mic92: do you have any idea why the pool won't get imported despite adding it to the initrd's .profile?
<Lisanna>
ok.... the answer to my question is a bit crazy
<Lisanna>
let a = "baz '${''''${foo}''}' bar";
jonreeve has quit [Ping timeout: 246 seconds]
<Lisanna>
,eval "baz '${''''${foo}''}' bar"
<Lisanna>
(wait, what was that -{^_^}- command again?)
<Lisanna>
,help
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<Lisanna>
,
<{^_^}>
Special commands: find locate tell - Commands sorted by use count, page 0 (use ,<n> to view page <n>): library tofu profiling -A dnw escape'' unfree pr escape" imperative pills unstable ask error ping pinning stateVersion allah callPackage declarative dentalplan nixlang++ overlay upgrade wololo IFD NUR channels cloudfront escape-special exec haskell help info logs loot paste runtimeDeps stuck tias timer whomademe wrapper arm bootfull context
<{^_^}>
"baz '${''''${foo}''}' bar": I can evaluate nix if you prefix your expression with "> ". Use it here only for short demos or helping others with the syntax. If you wanna spam me, do it in #bottest!
<Lisanna>
> "baz '${''''${foo}''}' bar"
<{^_^}>
"baz '${foo}' bar"
<Lisanna>
THERE
<inf>
Hey all. This is mostly a question about systemd. My background: I have nixos&libvirt-based vm hypervisor for gpu passthrough (and some other things aside) purposes. I wanted to create a service that'd make my VM(s) go to S3 sleep before host suspend using something exactly like https://wiki.archlinux.org/index.php/Power_management#Combined_Suspend/resume_service_file (but obviously rewritten in nix) - now the
<inf>
issue is that it seems that systemd does not wait until ExecStart (that I set to my bash wrapper that does virsh dompmsuspend ... and then waits until it actually is pmsuspended) finishes... What should I google to get this figured out? :P
<inf>
(I'm assuming it is not waiting, because normally bash wrapper executed alone waits for approx 2-3 seconds, but systemd suspend goes to S3 almost instantly; I'm pretty sure it is actually called because I see all the logs in journal after wakeup)
jperras has quit [Ping timeout: 250 seconds]
<inf>
disregard, I am an idiot.
jperras has joined #nixos
<inf>
didn't look into the journal hard enough.
<inf>
yep. first of all I wrongly assumed I'll have normal "root" environment (I'm very new to nixos, sorry :P) in systemd service (but it still didn't work), and then I needed Type=oneshot with ExecStartPre=..., as that'll actually block.
jperras has quit [Ping timeout: 268 seconds]
jasongrossman has joined #nixos
<inf>
yay, it works. great. as always. my problems solve by themselves...
jperras has joined #nixos
<teto>
domenkozar: how do you manage hie to pick up the nix-shell environment ? I can't get it working :s please
<{^_^}>
[nixpkgs] @matthewbauer pushed 4 commits to staging: https://git.io/fp8VJ
chimay has joined #nixos
jperras has quit [Ping timeout: 268 seconds]
jperras has joined #nixos
reinhardt has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @volth opened pull request #50871 → bash: fix typo in configureFlags → https://git.io/fp8VW
Ariakenom has joined #nixos
Lisanna has quit [Quit: Lisanna]
BertyCoX has quit [Remote host closed the connection]
<jonge>
already have to relax my sandboxing becasue of private gitlab repos and access to auth
<sphalerite>
do you know about builtins.fetchGit which can do the fetching as the user invoking the build, thus allowing private git stuff with full sandboxing?
<sphalerite>
(i.e. the fetching is just moved out of the sandbox)
<jonge>
yes, and i use that on my work laptop, but this won't work on my company hydra that builds a lot of company packages
<hyper_ch2>
Mic92: I think I have the soltuion..... the .profile is only loaded when user logs in.... so the user will then be prompted to provide keys for all encrypted datasets
<hyper_ch2>
so this is only triggered when you ssh into the initrd boot phase.... but zpool import must run always... so I just add it at postCommand = ''\nzpool import xxx\necho "zfs load-key -a .....\n''
<Phlogistique>
but the opam package does not declare the dependency to hostname
<etu>
Phlogistique: ohh
<{^_^}>
[nixpkgs] @roberth opened pull request #50875 → [WIP] nixpkgs: Begin moving to buildSystem parameter, away from crossSystem → https://git.io/fp8ya
<Phlogistique>
oof, I managed to remove the offending line and get a working shell
<Phlogistique>
well, it seems OPAM 2.0 from nixos unstable does not work at all
hedning has joined #nixos
<Phlogistique>
it runs builds in a chroot where /nix is not mounted?
<Phlogistique>
oh, I misread, it actually mounts /nix/store
<philipp[m]>
I packaged this little tool for myself: https://github.com/nawar/kodi-cli Should I PR it to nixpkgs for everyone, or not? What is the cutoff point for usefull packages in nixpkgs?
<goibhniu>
That looks handy philipp[m], I may well use it.
jperras has quit [Ping timeout: 240 seconds]
FRidh has joined #nixos
<philipp[m]>
goibhniu: I guess that's enough then :-D
<goibhniu>
\o/
<goibhniu>
NixOS is an awesome distro for Kodi <3
r5d has joined #nixos
<philipp[m]>
Can confirm. First non puropose built distro that made a pure kodi installation with auto login and all not painfull.
<philipp[m]>
To set up and maintain.
<philipp[m]>
Usually my setups broke after a few months because something changed. My kodi nix box is going strong for three years now I think.
jperras has joined #nixos
<etu>
goibhniu: indeed :-)
<goibhniu>
I have it set up for my parents with TVheadend and all that good stuff. Best PVR system ever, and (unlike Mythbuntu) I can upgrade without fear.
<etu>
I have automatic upgrades enabled of my kodi box :-)
<etu>
So I never even have to ssh to it and have things up to date:)
<{^_^}>
[nixpkgs] @FRidh pushed 496 commits to python-unstable: https://git.io/fp8dJ
_xelxebar has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @FRidh opened pull request #50876 → Staging next → https://git.io/fp8ds
asymmetric has quit [Ping timeout: 268 seconds]
<__monty__>
I have a haskell script with a nix shebang. This stopped working and I'm not sure how to fix the problem: `error: syntax error, unexpected $undefined, at (string):1:94`
<__monty__>
Afaik you can split it over as many lines as you want.
<srhb>
Something fishy with the ghcWithPackages then..
<srhb>
__monty__: Seems related to the single quotes
<srhb>
__monty__: Works with double quotes. Go figure.
<{^_^}>
[nixpkgs] @FRidh pushed 495 commits to python-unstable: https://git.io/fp8FB
<__monty__>
srhb: Hmm, should I report this somewhere?
<srhb>
__monty__: If it's a regression, yeah.
<__monty__>
srhb: Ah, NixOS/nix#2356
<{^_^}>
https://github.com/NixOS/nix/issues/2356 (by cumber, 14 weeks ago, open): nix-shell in second #! line only accepts double quotes for package expressions
<srhb>
Oh, how curious :D
<__monty__>
srhb: I still haven't been able to properly set up signature for my ssh-substituter.
<__monty__>
srhb: And meanwhile I'm getting `error: secret key is corrupt` on the client.
jperras has quit [Ping timeout: 250 seconds]
<exarkun22>
Any tricks I should know about kernel upgrades w/ NixOS or nixops?
<srhb>
__monty__: There's an --all :)
<gchristensen>
what kind of tricks are you thinking? are you anticipating problems?
<srhb>
__monty__: Why does the client even know about the secret key?
<exarkun22>
gchristensen: not anticipating, already having ;)
<gchristensen>
exarkun22: ah, let's start there, then
<avn>
exarkun22: rebuild with new kernel (`nixos-rebuild boot`) then reboot
reinhardt has quit [Ping timeout: 252 seconds]
<__monty__>
srhb: Don't know how it knows. It only has the public key.
<exarkun22>
avn: Using nixops, I hope that step would be done automatically?
<__monty__>
srhb: Ty, sign-paths isn't documented in the nix manual afaict and I'm without manpage on both boxen.
<exarkun22>
gchristensen: I switched from linuxPackages_latest to linuxPackages_rpi and `nixops deploy`'d and everything looked good (nixops said it succeeded, extlinux has the new kernel as the default entry) but after reboot, system is still on the old kernel
<exarkun22>
And maybe has rolled back to some earlier version, too? I'm not sure. But a program I deployed with nixops before the reboot is now no longer in the system path.
<srhb>
__monty__: nix subcommands are self documenting. nix sign-paths --help
<__monty__>
srhb: Should've known. Now I know I have to specify a secret key.
<exarkun22>
but maybe nixops doesn't know about kernel upgrades and is skipping some important step?
<avn>
exarkun22: I am sure, that nixops not reboot hotss automatically
<gchristensen>
exarkun22: nixops doesn't know anything about packages or anything really about the other side :) there is nothing special about kernel upgrades... did you reboot?
<exarkun22>
gchristensen: yes, manually and w/ the nixops `--force-reboot` option
<srhb>
__monty__: Any way, re. corrupt key, it sounds like something's wrong with your nix.conf on the client side, did you pastebin that somewhere?
<exarkun22>
srhb: Any hints about why nixops isn't actually upgrading my kernel? :)
<gchristensen>
exarkun22: paste the output from ls -la /nix/var/nix/profiles, and the output of ls -la /run/*-system
<Phlogistique>
I want the PATH of a the target's stdenv to be available when running my package, would "makeWrapper $out/bin/.opam-wrapped $out/bin/opam --run ". ${stdenv}/setup"' be the correct way to do that?
eeva has joined #nixos
<Phlogistique>
"makeWrapper [...] --suffix PATH : $PATH" works, but I think it would break under cross-compilation
<__monty__>
Hmm, srhb, can't seem to get any paths signed. I collected garbage because I figured maybe there was half of something left in the store somehow but it didn't help. `error: cannot calculate fingerprint of path '/nix/store/20wpnj8f7xa8yfrc1jmpxr3cgbas1yrj-acl-2.2.52' because its size/hash is not known`
<eeva>
I wondor if I should invest more time or just drop it and change gear now
<gchristensen>
eeva: not as good as nixops' AWS support
<gchristensen>
(that is all I know)
<exarkun22>
eeva: I don't know how good it is overall but I did manage to boot a GCE instance with it and run some software
<gchristensen>
exarkun22: so you've booted system-2-link but you've tried to deploy 5 times since, indicating nixops isn't updating your bootloader properly. when you set up nixops, did you copy over the complete hardware-configuration.nix?
<exarkun22>
eeva: It had some annoying limitations like being unable to resize volumes for already-existing vms. And I have no idea how it fails in all the important edge cases that always come up.
dramforever has joined #nixos
<eeva>
Hmmm, I think I'll leave it at that for now. Probably gonna go build my infra with terraform + nixos machines :>
<FRidh>
typetetris: there is a ttl when used without sha256
<typetetris>
ttl = time to live? And if I specify the sha256 will ttl be infinity (up to gc)?
revtintin has joined #nixos
<FRidh>
correct
<typetetris>
thank
<exarkun22>
Okay, fixed my kernel. Apparently I forgot to twiddle the bootable bits on the partitions after the last time I reflashed. Yay, manual steps. :)
<exarkun22>
Now, sadly, I have the rpi kernel and I still have no rpi gpio access. :(
Rusty1 has joined #nixos
<hark>
mm, so, should building packages for i686 work on a 64 bit nixos?
cyounkins has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 6 commits to haskell-updates: https://git.io/fp4UF
<typetetris>
Okay, so if I specify a `sha256` and I have a tree with that sha in my store it just ignores the file name given? Shouldn't it atleast check, wether the tree in the store was downloaded with that filename and if not redownload to see if contents of download and sha match?
<FRidh>
hark: $ nix-build -A pkgsi686Linux.python builds a 32-bit version of python
<typetetris>
So by just changing the filename in `builtins.fetchTarball` it doesn't do anything if you don't alter the sha too.
<typetetris>
Thats kind of surprising
<{^_^}>
[nixpkgs] @edolstra pushed to master « Revert "resolvconf.conf: Remove forced NSCD service restart" »: https://git.io/fp4TO
<FRidh>
typetetris: that's the case with all fixed-output derivations. The hash is the id.
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fp4Tn
reinhardt has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @rvolosatovs opened pull request #50883 → pythonPackages.simplekml: Init at 1.3.1 → https://git.io/fp4Tz
<{^_^}>
[nixpkgs] @zimbatm closed pull request #50427 → nixos: switch the package installation prefix from `nixos.` to `nixpkgs.` → https://git.io/fpG6I
zimbatm has left #nixos [#nixos]
endformationage has joined #nixos
Theuni2 has joined #nixos
<dramforever>
typetetris: I literally just used that feature
<dramforever>
nixpkgs.mathematica when trying to build depends on a derivation that literally just fails
<dramforever>
But it specifies a sha256
<dramforever>
So you can feed it the file you downloaded yourself and Nix will happily use it
equalunique has quit [Ping timeout: 260 seconds]
equalunique has joined #nixos
<__monty__>
I'm trying to sign-paths --all but run into this `error: cannot calculate fingerprint of path '/nix/store/20wpnj8f7xa8yfrc1jmpxr3cgbas1yrj-acl-2.2.52' because its size/hash is not known` Anyone have an idea of how to get around this?
hyper_ch2_ has quit [Ping timeout: 256 seconds]
<{^_^}>
[cabal2nix] @peti pushed to master « fltkhs: fix build in post-processing »: https://git.io/fp4IO
chimay has quit [Quit: WeeChat 2.3]
<aminechikhaoui>
__monty__ does nix verify <path> return anything interesting ?
<exarkun22>
how do I specify a kernel package with certain extra modules available?
alex`` has joined #nixos
<tilpner>
boot.extraModulePackages?
<exarkun22>
looks promising, thanks
vasarmilan has quit [Ping timeout: 256 seconds]
goibhniu has quit [Ping timeout: 252 seconds]
<exarkun22>
now just need to get the module I want built :)
<exarkun22>
can I take an existing kernel derivation and construct a new one just like it except with an extra module enabled?
<exarkun22>
overrideAttrs?
<exarkun22>
nope, no overrideAttrs on the kernel package
<{^_^}>
[nixpkgs] @FRidh pushed 371 commits to python-unstable: https://git.io/fp4qg
<exarkun22>
stdenv.lib.overrideDerivation?
<{^_^}>
[nixpkgs] @FRidh merged pull request #50882 → kythe: Add missing executable, fix rpath and symlink executables into bin → https://git.io/fp4JH
<{^_^}>
[nixpkgs] @FRidh pushed commit from @mpickering to master « kythe: Add missing executable, fix rpath and symlink executables into bin (#50882) »: https://git.io/fp4q6
<{^_^}>
[nixpkgs] @matthewbauer pushed 7 commits to master: https://git.io/fp4OE
<exarkun22>
ah, just by name.
<exarkun22>
now I just have to figure out what module I actually need, I suppose
tv has quit [Read error: Connection reset by peer]
tv has joined #nixos
nD5Xjz has quit [Ping timeout: 272 seconds]
<makefu>
gchristensen: just out of interest, why is the aarchbox using linux4.18 as kernelPackages but the linux4.17 kernel gets overwritten 10 lines below instead of 4.18 ?
jasongrossman has quit [Ping timeout: 264 seconds]
<gchristensen>
makefu: uhhhhhhhh........
<gchristensen>
makefu: would you believe me if I told you I'm surprised it boots at all?
<makefu>
yes, of course! that happens all the time, "how could this ever have worked?"
<{^_^}>
[nixpkgs] @FRidh pushed commit from @r-ryantm to master « kubetail: 1.6.4 -> 1.6.5 »: https://git.io/fp43R
Theuni2 has quit [Ping timeout: 268 seconds]
steshaw has quit [Quit: Connection closed for inactivity]
nD5Xjz has joined #nixos
haslersn has joined #nixos
<haslersn>
Hi, when running `nixos-rebuild switch`, I get `cannot copy /nix/store/[...]-linux-4.19.2/bzImage to /boot/kernels/[...]-linux-4.19.2-bzImage.tmp`. This is probably due to full `/boot` partition. It has only 100MB because it was created by MS Windows How can I work around this?
<samueldr>
gchristensen: looks like the hisilicon ethernet adapter thing works right on stock 4.18 then?
jperras has quit [Quit: WeeChat 2.2]
<gchristensen>
I guess? :)
<samueldr>
(and I verified the /proc/config.gz has those options at `y`, and the currently running kernel on the community box is 4.18)
<exarkun22>
haslersn: I assume you have another, larger partition on the system. You could just stop using the separate /boot partition. Let /boot live on the same partition as /.
goibhniu has quit [Read error: Connection reset by peer]
<hark>
python36Packages.boost < is that not supposed to be in here?
<timclassic>
Has anyone had luck getting xorg on NixOS on a rpi3 (aarch64) to use the official 7" touchscreen? I'm about to try building the fbturbo driver but I thought I'd ask first.
<timclassic>
My initial attempt at just using fbdev did not work.
<samueldr>
one major note about our raspberry pi images: it's using the mainline kernel, so some things work differently than when using the raspberry pi foundation's fork
<samueldr>
recently we have had a contribution enabling the aarch64 build of their fork, not sure if it can help
pita has joined #nixos
<samueldr>
they, the raspberry pi foundation, don't really support aarch64 :/
<timclassic>
To be specific, this is a 3B, not a plus
<samueldr>
(same comments apply)
drakonis has quit [Quit: WeeChat 2.2]
<timclassic>
Yes, I'm aware that we are using the mainline kernel, which while annoying is probably a good thing in the end :)
<timclassic>
That is interesting, though, maybe I'll try their kernel
<timclassic>
I do get a console display--I'm only struggling with X
equalunique has quit [Read error: Connection reset by peer]
* timclassic
would rather stick with the mainline kernel if he can make it work
<samueldr>
on HDMI, modesetting works (worked) fine for me a couple months ago
<samueldr>
though I think I had to adjust cma= on the kernel cmdline to add more memory
equalunique has joined #nixos
<timclassic>
You know, I should get HDMI working first. Then I can worry about the 7" display.
<timclassic>
(It may already work, I just haven't plugged it in yet since the console came up fine on the 7".
<timclassic>
)
<samueldr>
make sure you use: services.xserver.videoDrivers = [ "modesetting" ];
<timclassic>
samueldr: Ohh interesting. Okay, I was using fbdev. I'll try it, thanks!
<samueldr>
timclassic: you may really need to increase cma= to more than 32M, maybe 64, 128, to get X running on the vc4 modesetting driver
orivej has quit [Ping timeout: 252 seconds]
<samueldr>
and it's possible that with a puny power supply that's not delivering enough power that there may be issues, most likely is that you lose the hdmi image and get weird u-boot output instead of the expected X11 or even VT
__Sander__ has quit [Quit: Konversation terminated!]
<timclassic>
Great, thanks for the advice. I'm using the official power supply so I should be good there.
<timclassic>
I won't be able to try for a few hours, but I'll let you know how it goes!
<aminechikhaoui>
donguri weird I'm able to pull that store path http://ix.io/1u6m
Haskellfant has joined #nixos
mkoenig has joined #nixos
<__monty__>
I'm getting a "does not appear to be a binary cache" warning on my reverse proxy of cache.nixos.org. How do I go about troubleshooting this? One complicating factor is I use a toxvpn to connect to the host where the caching container is running.
cocreature has quit [Remote host closed the connection]
Haskellfant is now known as cocreature
cocreature has quit [Ping timeout: 250 seconds]
symphorien has quit [Ping timeout: 250 seconds]
andi- has quit [Ping timeout: 250 seconds]
<__monty__>
Was missing another proxy.
<{^_^}>
[nixpkgs] @Mic92 pushed to staging « buildGoPackage: remove build-time dependency on parallel (and perl) »: https://git.io/fp4Re
<__monty__>
Now I'm getting the substituter is missing signature for ... warning but for the binary cache : /
cocreature has joined #nixos
symphorien has joined #nixos
<__monty__>
Does cache.nixos.org have signatures I can get the public key for? Or do I need to disable signature checking? Or can I make an nginx reverse proxy sign cached items?
<hyper_ch>
Mic92: btw, I also learnt to how change key from file based to password prompt
<hyper_ch>
haven't tried that before
<hyper_ch>
encrypted dataset must be unlocked: zfs change-key -o keylocation=prompt -keyformat=passphrase --> then it will promt you for a passphrase to set
dramforever has quit [Remote host closed the connection]
vidbina has quit [Ping timeout: 268 seconds]
cyounkins has joined #nixos
johnnyfive has joined #nixos
drakonis1 has joined #nixos
drakonis has quit [Ping timeout: 252 seconds]
cyounkin_ has quit [Ping timeout: 240 seconds]
oida has quit [Ping timeout: 256 seconds]
freeman42x]NixOS has joined #nixos
oida has joined #nixos
sigmundv has joined #nixos
drakonis_ has quit [Ping timeout: 252 seconds]
revtintin has quit [Quit: WeeChat 1.9.1]
haslersn has joined #nixos
<haslersn>
Hi, I've got a laptop dual booting nixos and windows. The EFI partition was created by windows and has therefore only 100MB. Previously in the IRC, I got help suggesting that I should mount the EFI partition on `/boot/efi` and set `efi.efiSysMountPoint = "/boot/efi";`. I followed that advice; however, the grub config is still installed in `/boot` instead of in `/boot/efi`. Can anybody help?
fendor has joined #nixos
<hyper_ch>
what wouldn't grub be in /boot?
<hyper_ch>
that efi partition should only have like 1-2 files
elgoosy has quit [Remote host closed the connection]
jperras_ has quit [Quit: WeeChat 2.2]
<haslersn>
hyper_ch: Ah okay. Somehow it doesn't boot and I thought that was the issue.
<haslersn>
The "choose bootloader" has the entry NixOS-boot-efi, but when I choose it, the screen goes black for a bit and then the menu appears again. My config: https://pastebin.com/Xnfv10TF
<ottidmes>
hyper_ch: I have the same config, except no grub.useOSProber, grub.enableCryptodisk, and efi.efiSysMountPoint
<ottidmes>
haslersn: ^
<hyper_ch>
ottidmes: I try to avoid uefi :)
<hyper_ch>
it's just pita :)
<ottidmes>
hyper_ch: so you go legacy MBR style?
<hyper_ch>
and unfortunately the way I used it on debian, using the seperated /dev/sd9 partition as ESP doesn't work with newer zfs features like native encrypted root zfs
<haslersn>
ottidmes: So you have some other `grub.device`?
<hyper_ch>
ottidmes: yes, legacy mbr works
<ottidmes>
haslersn: nope, also "nodev"
<haslersn>
Well, the reason I use the `efiSysMountPoint` is that I don't want the kernels to be on my EFI partition, which is only 100MB big
<haslersn>
ottidmes: ^
<hyper_ch>
wouldn't it be easier to just run windows in a vm? :)
<clever>
haslersn: grub.device is only ever used for legacy booting, if your on efi, then you want grub.device = "nodev";
<haslersn>
hyper_ch: yes
<ottidmes>
haslersn: with efiSysMountPoint = "/boot"; I have it at /boot/efi/NixOS-boot/grubx64.efi
<chrisaw>
Quick question - how can I point the "nodejs" package to "nodejs-10_x" ? I'm trying to basically force nodejs-10_x as the default for nodejs on my system.
<ottidmes>
hyper_ch: I have only one UEFI device, so its still very used to MBR myself, but UEFI has not been a pain point yet, the "modern" BIOSes however are less useful to me as the old ones
<gchristensen>
ottidmes: oh! interesting, in what way?
<ottidmes>
chrisaw: you could override/overlay it, but the danger of doing so is that you will force everything that uses node to be build from source, since they are unlikely to be build with nodejs 10, and it also might cause failure since they might not be future compatible, so I cannot recommend that
ThatDocsLady has quit [Ping timeout: 252 seconds]
mayhewluke has quit [Ping timeout: 246 seconds]
<chrisaw>
ottidmes: Yeah just realised I can literally do: nodejs = super.nodejs-10_x - doh! :)
<ottidmes>
gchristensen: ehm, its plain buggy, I expect it always to behave the same way, but instead I can sometimes use the "select boot device" menu, while if I go through the complete overview and select a boot device from there, it does work without fail
<gchristensen>
ah, sure. I've seen some bugs around, too, though definitely also plenty w.r.t. older bioses
<ottidmes>
chrisaw: dont forget nodePackages, but the same warnings apply
mayhewluke has joined #nixos
<ottidmes>
gchristensen: and the menus are less clear to me, in the old BIOSes it was at least always clear to me in which main category I had to search, but some settings in the UEFI BIOS were located in weird unrelated places
<chrisaw>
ottidmes: nodePackages? Where can I find that?
<ottidmes>
gchristensen: to be fair, like I mentioned, I only have experiences with one UEFI product, so I may just have been unlucky
<gchristensen>
similarly, I suspect you've been lucky with BIOS
<gchristensen>
I really like that with efi you can enter the efi setup from a bootloader -- no longer having to remember obscure key combinations fast enough to get in to it
<ottidmes>
chrisaw: just like nodejs, so you would do: nodePackages = super.nodePackages-10_x
<chrisaw>
Ah ok, awesome - thanks!
<ottidmes>
gchristensen: maybe, I have only gone in depth with BIOSes on my own machines, both having ASUS BIOSes
<ottidmes>
gchristensen: ow, I did not know that, I still hit keys like crazy :P
haslersn has quit [Ping timeout: 256 seconds]
<gchristensen>
ottidmes: yeah, in systemd-boot you can go to the bottom, to "Firmware Setup" or something and get to it :)
<ottidmes>
gchristensen: ah, I have been using grub, so that might have been why
<gchristensen>
ah, I don't know about grub
<chrisaw>
Has anyone had any luck compiling Oni on NixOS? I've got most of the work done but annoyingly - I can build it within a nix-shell but I can't seem to build it using my overlay. Seems to run out of memory - I'm wondering if nixpkgs does something fancy in memory instead of using disk and this is causing me to run out of memory?
<ottidmes>
chrisaw: how much memory do you have? nix can be greedy
<chrisaw>
8GB on this box
<ottidmes>
chrisaw: that should be enough
<chrisaw>
Yeah, it's rather odd. Looks like a ton of node processes are using the memory though so must be caused elsewhere. It's just very odd that I can build it without nix (same box) and it builds fine. I build it within nix and it runs through all available memory and swap, then fails.
zolk3ri has joined #nixos
<{^_^}>
[nixpkgs] @hedning pushed 169 commits to gnome-3.30: https://git.io/fp4w1
<ottidmes>
chrisaw: you should keep a close watch on your memory, if it is like at 6+ and you load a lot of nixpkgs, it could very well consume the last remaining memory
<ottidmes>
chrisaw: if you dont mind sharing your package, and all you did to your overlay to make it work is changing nodejs/nodePackages to 10, I dont mind trying it on my machine (I have 24G)
<chrisaw>
ottidmes: the 10-x thing isn't needed at all but it's all good - I do have a higher spec rig - just trying to get it to build on this particular box reliably. :)
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<{^_^}>
[nixpkgs] @ttuegel pushed 2 commits to release-18.09: https://git.io/fp4rO
<ottidmes>
chrisaw: maybe experiment with some nix settings, I have no experience with out of memory errors with nix, but maybe things like lowering max jobs could reduce memory usage (I imagine, could be nonsense, like I said, no experience)
<ottidmes>
chrisaw: Or if you have /tmp on memory, then that would be the cause, which could be worked around by specifying TMPDIR
drakonis1 has quit [Read error: Connection reset by peer]
JosW has joined #nixos
drakonis1 has joined #nixos
<chrisaw>
ottidmes: I don't have /tmp in memory - did check that already :)
<clever>
chrisaw: nixos or other?
<chrisaw>
clever: nixos yep
<clever>
then its not /run/user to blame
phreedom has quit [Ping timeout: 256 seconds]
<cyounkins>
Note that /run/user/<uid> is via systemd and defaults to 10% of RAM. See logind.conf RuntimeDirectorySize
<clever>
and TMPDIR defaults to that
<clever>
but on nixos, it uses the TMPDIR of the nix-daemon proc, which is /tmp/
drakonis has joined #nixos
<nikivi>
anyone here using VS Code with Nix?
<nikivi>
I get `Formatter autopep8 is not installed. Install?` error
<nikivi>
but I have `pkgs.python36Packages.autopep8` installed with Nix
<nikivi>
I guess VS Code doesn't see it
<cyounkins>
Maybe it is using Python 2?
<clever>
nikivi: you likely need to use python.withPackages
drakonis1 has quit [Read error: Connection reset by peer]
<nikivi>
I tried `pkgs.python27Packages.autopep8` too
<clever>
the above came from a `default.nix` file i have in a random dir
<clever>
and i just run nix-build to build it
<clever>
you can also just `nix-build -E '(import <nixpkgs> { config = {}; }).python.withPackages (p: [p.pyside p.pysideTools p.twisted])'`, but then your more likely to loose the magic incantation
<nikivi>
clever okay I got it built, how do I then let VS Code know about it
<haslersn>
Now I copied /boot/grub to /boot/efi/grub and the system boots. However I can't persistently update the configuration since the changes are written to /boot/grub/grub.cfg. Is there any way to tell NixOS that the grub config shall be in /boot/efi/grub?
<clever>
nikivi: it looks like pyside might be broken, but you wanted autoped, not pyside
<ottidmes>
haslersn: You would expect an option for grub like you have for efi, or that grub used that one, curious
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
cyounkins has quit [Remote host closed the connection]
<haslersn>
ottidmes: And inside mirroredBoots, I can't set copyKernels = false since that option doesn't exist there
metastance has quit [Client Quit]
metastance has joined #nixos
<ottidmes>
haslersn: I thought those options were passed to all mirroredBoots
<haslersn>
`grub.mirroredBoots = false;` doesn't seem to affect the mirrored boots
<mekeor>
i set up nginx + phpfpm + mysql on my local nixos machine. when i use "/test/user/computer/localhost/wordpress" as services.nginx.virtualHosts.foobar.root option, then nginx and php works fine. when i use "/home/user/computer/localhost/wordpress", i get a "File not found" error through HTTP and nginx logs "FastCGI sent in stderr: "Primary script unknown"". but i had created the /test-path with exact the same directory- and
<mekeor>
file-permissions and user- and group-ownership as the /home-path! what might i be doing wrong?
<ottidmes>
mekeor: I have setup nginx phpfpm on multiple NixOS machines, and I always had to resort to a strange workaround to fix that problem, I had to bind --mount the location of the PHP files, if I do that, it works. Its one of the few bugs that I cannot make sense of, but the workaround at least works (also no idea why it works, only vaguely)
<mpickering>
Is there a way to use ldd rather than ld in a nix-shell?
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mekeor>
ottidmes: thanks! uhm... sounds strange. what do you mean by bind --mount?
<{^_^}>
[nixpkgs] @spacefrogg opened pull request #50891 → services.tinydns: Extend module with typed DNS records → https://git.io/fp4KQ
<ottidmes>
mekeor: cant argue with that, its strange and frustrating, but I eventually gave up and this worked for me, give me a sec (cooking...)
<{^_^}>
[nixpkgs] @pstn opened pull request #50892 → kodi-cli: Init at 1.1.1 → https://git.io/fp4KA
<ottidmes>
haslersn: and that does not work for you like this? Maybe try mkForce for your mirroredBoots
<haslersn>
ottidmes: It does work in principle but `nixos-rebuild switch` tries to copy the kernels to /boot/efi/kernels which is the partition that's not big enaugh.
<worldofpeace>
infinisil: Not sure what you mean. I'll be reviewing more if that's what you're at :D
<{^_^}>
[nixpkgs] @dtzWill closed pull request #48379 → cython: patch to fix w/3.7 from upstream → https://git.io/fxR25
<infinisil>
worldofpeace: I'll ask ofborg to build #50886, I was asking for if you'd want some other package to be built too, because there's a lot of rebuilds
<worldofpeace>
infinisil: Lol, I thought you were getting at something else. English is fun sometimes
ashkitten has quit [Ping timeout: 245 seconds]
asymmetric has quit [Ping timeout: 244 seconds]
ashkitten has joined #nixos
sondr3 has joined #nixos
sondr3 has left #nixos [#nixos]
sondr3 has joined #nixos
<sondr3>
hello, does anyone here use Emacs on macOS? I'm having some difficulty getting it to pick up some packages that I want to install with it (aspell primarily), I can see that they are in /nix/store/ but they aren't linked as an application and as such I cannot use them in Emacs
<asymmetric>
is there a way to avoid making this mistake? i.e. preventing nixpkgs being installed all at once?
<infinisil>
sondr3: What's the error?
<symphorien>
Normally nixpkgs does not evaluate
zolk3ri has quit [Quit: Lost terminal]
<symphorien>
So you can't install it completely
<ottidmes>
asymmetric: write a shell function that shadows nix-env, use `command nix-env` to run the actual nix-env, and add your personal checks in that function, that should do the trick
<sondr3>
infinisil: there's no error, I've listed it in my emacs.nix file, ran nix-build and nix-env to install it but aspell isn't in my $PATH, so I can't find it
<sondr3>
though I might've misunderstood the part about notmuch
<infinisil>
sondr3: Ah, I guess that example is a bit misleading. notmuch only works there because it has an emacs package included in it directly, which isn't the case with any normal package
<clever>
romildo: sounds like a normal fetchurl call
<infinisil>
So I'm just adding something to my init file (built with nix) to set the customization variable to the nix built dictionary thing
<sondr3>
infinisil: cool, I'll have a look around, though from a glance yours is way above my current understanding of Nix, is there a quicker way for me to tell Nix that my emacs.nix expression should also install aspell?
<asymmetric>
samueldr: after running `nix-env -iA hello --remove-all`, i sometimes now see this warning: trace: replace-dependency.nix: Derivation /nix/store/y46h6lbypgwdrh1ryim9acpxb4g23rbc-nixos-system-nixos-18.09.1388.03dc6471c12 does not depend on /nix/store/3kswlfsmiy4xsdz3nm3qibsvb3kvvaci-alsa-lib-1.1.6
<asymmetric>
any idea what it means?
<{^_^}>
[nixpkgs] @c0bw3b opened pull request #50896 → uwsgi: build with PCRE support → https://git.io/fp4yo
<infinisil>
sondr3: Using this as your top level expression might work `pkgs.buildEnv { name = "emacsenv"; paths = [ (emacsWithPackages ...) pkgs.aspell ]; }`
<clever>
asymmetric: do you have any overrides in config.nix?
<infinisil>
sondr3: Or actually just `{ emacs = emacsWithPackages ...; aspell = pkgs.aspell; }` works too (nix-env -i for an attrset installs every value of it)
<infinisil>
(pretty sure)
<asymmetric>
clever: yes, i have a packageOverrides, that's how i declaratively install my packages
<asymmetric>
clever: it's not mentioned anywhere, no
<jeaye>
I've just installed firefox via nix on Arch; it runs fine, except it doesn't have WebGL support. What would I need to do in order to get that? WebGL works fine in my Arch firefox, using my Arch-installed nVidia drivers.
<clever>
asymmetric: not sure then
<asymmetric>
clever: ok, i'll see if the problem persists and/or when it comes up
<asymmetric>
thx
<sondr3>
infinisil: thanks, I'll give it a whirl
<asymmetric>
got another question re: home-manager: isn't it weird that it redefines its own modules, e.g. tmux? does that not create duplication with nixos' modules?
<infinisil>
asymmetric: Sure does
elibrokeit has joined #nixos
<infinisil>
asymmetric: But there's no nice way to not do that
<infinisil>
Because NixOS and home-manager have some fundamental differences
<asymmetric>
for example?
<infinisil>
The options for services are different
WhittlesJr has joined #nixos
<infinisil>
Files can get installed to $HOME/<path> in home-manager, /etc in nixos
jtojnar has quit [Quit: jtojnar]
<infinisil>
In NixOS, system packages are in environment.systemPackages, in home-manager it's home.packages
<infinisil>
Would love for this to improve in the future, there are of course ways to fix this
<WhittlesJr>
Here's an easy one for you: how can I build a string by concatenating the results of a function called over a list? In clojure it would be: `(reduce (fn [new-str x] (str new-str "/" x)) "base" [1 2 3 4])` => "base/1/2/3/4"
<symphorien>
concatMapStringsSep iirc
<asymmetric>
infinisil: why are the options for services different though? e.g. why does HM need its own tmux module?
<infinisil>
asymmetric: There are some fundamental differences how user services and system services work. One I can think of right now is that user services can't set the user to run them
<gchristensen>
user services can have ConditionUser and ConditionGroup, but it is based on systemd rules, not nix
<WhittlesJr>
Ah, I think "foldl" is what I'm looking for, but I'll keep concatMapStringsSep in mind too. Thanks!
<{^_^}>
[nixpkgs] @c0bw3b merged pull request #50896 → uwsgi: build with PCRE support → https://git.io/fp4yo
<infinisil>
WhittlesJr: Oh and while you're here, you might want to use `foldl'` instead, it's strict and therefore usually better suited
<{^_^}>
[nixpkgs] @c0bw3b pushed to master « uwsgi: build with PCRE support (#50896) »: https://git.io/fp4Sy
<WhittlesJr>
Interesting, noted. Thanks again!
<asymmetric>
i see. is HM currently the best approach we have for a declarative ~? or are people using something else?
<asymmetric>
i'm using packageOverrides for the list of packages, but I'd like something more similar to modules