zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adetokunbo has quit [Quit: This computer has gone to sleep]
Erasmus has joined #nixos
<rotaerk>
hmm I see 'kakoune-unstable' was renamed to 'kakoune', and I see the latter if I `grep -nr kakoune` from within /nix/var/nix/profiles/per-user/root/channels/nixos
<rotaerk>
but if I nix-env -qa, it still shows kakoune-unstable
<rotaerk>
what am I likely failing to do?
mabel has joined #nixos
polman has joined #nixos
<{^_^}>
[nixpkgs] @bendlas pushed to master « chromium: disable vaapi support »: https://git.io/fjkzv
drakonis_ has joined #nixos
drakonis2 has joined #nixos
init_6 has joined #nixos
<rotaerk>
I feel like at some point I tried to bypass channels and manually manage a local clone of nixpkgs ... but I don't see how that would've been setup to be used
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjkzT
<rotaerk>
I just noticed that, while root had nixos-unstable-small as a channel, my main user did not. I just added it (called nixos) and then did nix-channel --upgrade nixos
m0rphism has quit [Ping timeout: 255 seconds]
drakonis_ has quit [Ping timeout: 250 seconds]
<rotaerk>
but then when I nix-env -qa, I get: warning: name collision in input Nix expressions, skipping '/home/rotaerk/.nix-defexpr/channels_root/nixos'
mbrgm has quit [Ping timeout: 255 seconds]
mbrgm_ is now known as mbrgm
<rotaerk>
ah; I see... that's just from having a nixos channel on both users
<samueldr>
it's probably unwise to have a channel named `nixos` as your used, as it could cause confusion given that the system is built using root's `nixos` channel (by default)
<rotaerk>
yeah
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #58599 → [19.03] nixos/rename: drop system.nixos.{stateVersion, defaultChannel} → https://git.io/fjkzt
<rotaerk>
I'm just kind of confused as to why nix-env isn't seeing the package that exists in /nix/var/nix/profiles/per-user/root/channels/nixos
evanm has quit [Ping timeout: 256 seconds]
<rotaerk>
seeing some older version
init_6 has quit [Read error: Connection reset by peer]
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<rotaerk>
ah, interesting. if I nix-env -qa from root, I see the new packages; if I do so from my main user, I see the old one
<mightybyte>
Anyone know how I can debug remote builder that's not working? I verified that I can indeed connect to the builder, ping-store works, and I'm using -vvvvv but I don't see any useful information for debugging this problem.
<{^_^}>
[nixpkgs] @samueldr pushed 2 commits to release-19.03: https://git.io/fjkzC
iyzsong has joined #nixos
jluttine has quit [Ping timeout: 250 seconds]
orivej has quit [Ping timeout: 245 seconds]
Fare has quit [Ping timeout: 255 seconds]
<rotaerk>
oh ... my /boot is full. even if I clear out all the old stuff from /boot/kernels, `nixos-rebuild boot` seems to recreate it all and fill it up
jluttine has joined #nixos
<clever>
rotaerk: you need to nix-collect-garbage some profiles (-d or --delete-older-than) to stop nixos-rebuild from copying them back
<rotaerk>
ah
erictapen has quit [Ping timeout: 268 seconds]
erictapen has joined #nixos
silver has quit [Read error: Connection reset by peer]
npmccallum has quit [Quit: npmccallum]
shabius_ has joined #nixos
npmccallum has joined #nixos
<rotaerk>
clever, that changed the error; after garbage collecting everything older than 60 days, I then ran nixos-rebuild boot, and I get: Died at /nix/store/3bsj5f8g24849rk71l0gvbqjrxqmhynr-install-grub.pl line 33.
<rotaerk>
after it's attempting to updatte the GRUB 2 boot menu
<clever>
rotaerk: do you still have free space on /?
jluttine has quit [Ping timeout: 250 seconds]
shabius has quit [Ping timeout: 258 seconds]
<rotaerk>
oh, deleting the contents of /boot/kernels fixed that error
<rotaerk>
think I'm good now; thanks... time to reboot and see if it worked
<rotaerk>
bleh. even after getting the nixos-rebuild to work properly, I still don't see the latest packages when I run nix-env from my non-root user
<clever>
rotaerk: nixos-rebuild will never affect nix-env
<clever>
rotaerk: nix-env's versions depend on when you last did nix-channel --update
<elvishjerricco>
mightybyte: Maybe strace the nix process and see what it's trying to do, then try to duplicate that manually?
<elvishjerricco>
strace has become a good friend of mine recently :P
<mightybyte>
elvishjerricco: Oh, good idea. I was really helping nix would just tell me.
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjkzr
<elvishjerricco>
mightybyte: Yea it's odd that it's not giving you feedback. Whatever it ends up being, I'd file a bug report with nix
npmccallum has quit [Quit: npmccallum]
<rotaerk>
clever, I see. well I just ran `nix-channel --update nixos`, and nix-env -qa still lists kakoune-unstable
<rotaerk>
while if I run nix-env -qa from root, it lists kakoune
<rotaerk>
(the latter being newer)
npmccallum has joined #nixos
<rotaerk>
I have no channels setup for my non-root user
<clever>
rotaerk: as a non-root user, `ls -l ~/.nix-defexpr/channels*/*` into a pastebin
<rotaerk>
is there a good paste site that you can paste to from a shell, now that ptpb.pw is gone
<gchristensen>
ix.io
<rotaerk>
ty
<gchristensen>
but, caution: I know some people have lost their jobs accidentally pasting secrets to it
init_6 has joined #nixos
<rotaerk>
heh
<mabel>
I'm trying to package an OSS project that requires cmake. I have the derivation set up, but configure fails because the project requires cmake to be built with CMAKE_USE_OPENSSH
<mabel>
that derivation builds, but it doesn't seem to have cmake openssh support.
init_6 has quit [Read error: Connection reset by peer]
<mabel>
did I do something wrong? is that not how you're supposed to set cmake settings?
<rotaerk>
clever, there you go; and yeah, I keep forgetting about gist
<clever>
rotaerk: yeah, only root has a channel, and the channel is called nixos, so both users should agree, baring overrides
<clever>
rotaerk: does ~/.nixpkgs/config.nix or ~/.config/nixpkgs/config.nix exist?
tmaekawa has quit [Ping timeout: 245 seconds]
thc202 has quit [Ping timeout: 268 seconds]
<rotaerk>
ohh, there we go... yes, both do
<rotaerk>
and I have something mapping 'kakoune' to 'kakoune-unstable' in the latter...
<clever>
rotaerk: and does either override the version of the package in question?
<rotaerk>
lol
Fare has joined #nixos
<rotaerk>
I thought I had set something like that up, but I forgot where it was... I didn't see it in ~/.nixpkgs/config.nix, and forgot ~/.config/nixpkgs/config.nix existed
<rotaerk>
what's the difference between the two?
<clever>
rotaerk: ~/.config/nixpkgs/config.nix is the new path and has priority
<clever>
it got moved to conform to the XDG? standard
init_6 has joined #nixos
<rotaerk>
ah; I'm going to delete the other to prevent it from distracting me
<rotaerk>
thanks a bunch
<mightybyte>
elvishjerricco: Oops, I can't. I'm on mac.
<elvishjerricco>
mightybyte: Ah, macOS does have dtrace, but I've never been able to figure out how to use it
<elvishjerricco>
supposedly it's as good as strace though
<mightybyte>
lol
<clever>
elvishjerricco: just run execsnoop as root, thats enough for this debugging
<clever>
no args needed
<clever>
opensnoop is the other pre-made tool for it
<elvishjerricco>
clever: How do you use execsnoop to spawn the command you want to to snoop on?
init_6 has quit [Read error: Connection reset by peer]
<elvishjerricco>
AFAICT it just snoops for other running process of a given command
<clever>
elvishjerricco: execsnoop shows you what was ran, then try manually running the same thing in a terminal
<elvishjerricco>
clever: Ahh, so it doesn't show you the syscalls?
<clever>
elvishjerricco: i think it will only show syscalls related to executing things
Ariakenom has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @groodt closed pull request #58557 → bazel: 0.22.0 doesn't build in Darwin sandbox → https://git.io/fjTA2
Fare has quit [Ping timeout: 246 seconds]
<mightybyte>
elvishjerricco: Oh, figured it out. I forgot that I'm still running the nix daemon on this machine.
<elvishjerricco>
mightybyte: What does that have to do with it?
ym555 has quit [Ping timeout: 245 seconds]
tdbgamer has joined #nixos
<mightybyte>
That means that it's trying to SSH to the remote build machine as root instead of my user.
<mabel>
any idea what I should do to get around CMAKE_USE_OPENSSH not being supported?
<mabel>
oh gosh... it looks like this build system relies almost entirely on downloading all its dependencies during make
<mabel>
it's a "SuperBuild" sort of build
Supersonic has quit [Ping timeout: 258 seconds]
<clever>
mabel: thats very anti-nix!
<mabel>
it is! I'm not sure if it's even possible to package this for Nix
<clever>
mabel: just rewrite the cmake file!
<mabel>
it's an open-source DICOM medical imaging viewer, and I'm hoping to use it to see my brain scan results
<mabel>
it's a pretty huge repository, and I don't know cmake, so I don't think that's viable for me
<clever>
mabel: cmake is pretty simple, the harder part is knowing enough c/c++ to re-assemble things
<samueldr>
have you checked whether the intel vs. modesetting X driver works better?
<gchristensen>
yea
<gchristensen>
it doesn't :/ I've moved to sway which makes 4/4 of my regularly used graphical programs worse, but it hotplugs properly.
<samueldr>
turns out the solution to my bad tearing was to go back to the intel (SNA?) driver
<samueldr>
I say "back", but AFAIUI it's still developed
everybodyHertz has joined #nixos
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjkgz
<gchristensen>
ok, past my bed time. g'night, and congratulations :)
<mabel>
ok, think I found a way to disable their "superbuild" thing
<mabel>
if not I guess I can always rewrite their whole build system like @clever said and include it as a patch file
<everybodyHertz>
I'm having some trouble with a GCE deployment in nixops: any time I attempt to deploy, it runs into 4 async exceptions- each of which references a project that is not the project defined in my .nix files (it's just some string of numbers, so I have no clue where it came from)
<infinisil>
If i add -lcurses it can't find -lcurses
drakonis_ has joined #nixos
silver_hook has quit [Ping timeout: 244 seconds]
Fare has quit [Ping timeout: 246 seconds]
<infinisil>
groodt: Well I'm going to bed now. For the future, if you ask for something regarding a PR, always post a link to it. If I knew which PR I could've started an ofborg build by now.
<slack1256>
Well I am not scratching my head too :-(
<groodt>
infinisil It would be awesome if you could kick this one
<slack1256>
What I am guessing is that as this package is not autoconf based, the configurePhase isn't setting some environment variables and that is tripping ld
marusich has quit [Remote host closed the connection]
slack1256 has quit [Remote host closed the connection]
mojjo has joined #nixos
<mojjo>
in the build process of a derivation I'm doing some HTTP calls, could not solve this in a more pure way for now. Worked in 18.03, does not in 18.09 even though `nix.sandbox = false` is set. any objections?
domogled has joined #nixos
<mojjo>
I mean `nix.useSandbox`
i1nfusion has quit [Remote host closed the connection]
i1nfusion1 has quit [Remote host closed the connection]
i1nfusion has joined #nixos
i1nfusion1 has joined #nixos
<Ralith>
infinisil: when he comes back, you should tell him all he needed to do was slap `-lncurses` on the end of the g++ invocation
<Ralith>
no env vars needed, nix does that behind the scenes
i1nfusion1 has quit [Remote host closed the connection]
i1nfusion has quit [Remote host closed the connection]
ddellacosta has quit [Ping timeout: 268 seconds]
i1nfusion has joined #nixos
i1nfusion1 has joined #nixos
<Ralith>
when in doubt, look at what the actual lib<thing>.so files your dependency supplies, or ask pkg-config
lord| has quit [Quit: WeeChat 2.4]
<infinisil>
Ralith: I'm the one who asked for that :)
<infinisil>
Wow, yeah that worked :O
<Ralith>
all the better!
<infinisil>
Ralith++
<{^_^}>
Ralith's karma got increased to 2
<Ralith>
in stdenv, "g++" is actually a shell script that digs around for all the proper nix env vars and splices together a command line for the real thing
<infinisil>
But why do I still need to provide -lncurses?
<infinisil>
Couldn't it take care of that too?
<Ralith>
the shell script's function is to emulate an environment where all of your buildInputs are installed into the compiler's search path; being in the search path does not necessarily mean you want to actually link the thing
<Ralith>
for example, ncurses itself provides many different libraries, and you don't want all of them at once
<Ralith>
this is not uncommon
lord| has joined #nixos
<Ralith>
additionally, the ordering of `-l` wrt. itself and other options can be significant
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vk3wtf has quit [Ping timeout: 245 seconds]
Fare has joined #nixos
linarcx has joined #nixos
ng0 has joined #nixos
jomik has joined #nixos
__monty__ has joined #nixos
linarcx has quit [Ping timeout: 250 seconds]
<jomik>
Hey guys. I have a bit of an issue with `toINI` - I am trying to make a configuration for i3blocks, the order of the sections in the file matter, but `toINI` outputs the sections alphabetically, due to attribute sets being sorted by keys, I guess. How can I get them in the order I want?
<jomik>
... I guess I could prefix the names with a number, or something, but is there a better way, so that it would be easy to reorder too.
linarcx has joined #nixos
wolfman154 has joined #nixos
wolfman154 has quit [Client Quit]
<__monty__>
jomik: Maybe do several toINI calls and append the results?
<betawaffle>
how should i go about moving the current contents of /nix to a new partition? do i need to boot a live system, or can i do it from a system that's running out of /nix?
zupo has joined #nixos
<gchristensen>
live system would certainly be the easiest and safest
<betawaffle>
and is there anything special i need to do to make sure that new partition is mounted correctly on boot?
<betawaffle>
(since nixos will literally need it to boot)
<gchristensen>
the way I'd go about it is: boot the nixos installer, mount your root partition to /mnt, mount your new nix store to /mnt/nix2, rsync or whatever everything over, delete /mnt/nix, remount the nix partition to /mnt/nix, edit /mnt/etc/nixos/hardware-configuration.nix to have the new /nix filesystem represented, then run nixos-install
orivej has quit [Ping timeout: 245 seconds]
<betawaffle>
k, and one final question... the standard nixos live environment doesn't seem to work for me. so how do i go about creating a new one that works?
<gchristensen>
hehe, what needs to change about it?
<betawaffle>
(i'm not sure what's broken about it. all i know is the on-disk nix system boots just fine)
<betawaffle>
so basically, how can i compare the two to find what's missing?
<gchristensen>
we can diff the derivations of your system vs. the ISO. get the derivation (drv) of the iso: nix-instantiate ./nixos/release.nix -A iso_minimal.x86_64-linux and then of your system: nix-store --query --deriver /run/current-system
<gchristensen>
nix-shell -p nix-diff and then nix-diff /nix/store/ddzzvx8jf4ipps5vv2r89hyf94012ibd-nixos-system-Petunia-19.03beta171840.23fd1394dc6.drv /nix/store/c41spmriwqw5ihbamzhf6qjaki0gp8gm-nixos-minimal-19.03beta130979.gfedcba-x86_64-linux.iso.drv
<gchristensen>
this might not be 100% what you want, but hopefully it'll be close
<jomik>
__monty__: Yeah, I guess I'll have to do that ^^ Thank you.
Anton-Latukha has joined #nixos
ng0 has quit [Quit: Alexa, when is the end of world?]
<{^_^}>
flatpak/flatpak.github.io#325 (by das-g, 2 weeks ago, open): Setup on NixOS: Use option services.flatpak.enable
Ariakenom has quit [Ping timeout: 246 seconds]
gagbo has quit [Ping timeout: 246 seconds]
<tilpner>
Looks fine
<das-g[m]>
Thanks!
aanderse-work has quit []
<sgronblo>
can I get nix to show me which config file is used?
Glider_IRC has joined #nixos
jomik has quit [Quit: WeeChat 2.4]
imdoor has joined #nixos
<laalf>
is plasma-discover packaged anywhere? it has flatpak support so it would make some sense to package
<tilpner>
sgronblo: While doing what?
<betawaffle>
gchristensen: so i always forget the right rsync options. any tips for this? also, my /nix partition already has nix stuff in it, should be fine, right?
<betawaffle>
my plan is to be able to share /nix with multiple OSes
<betawaffle>
thought that would be problematic for gc, right...
<gchristensen>
I imagine it could be possible if the GC roots were managed very carefulyl
<gchristensen>
but I'm not sure what that'll look like for day to day use
<betawaffle>
i'm mainly going to be using nixos anyway
<sgronblo>
tilpner: i was trying to find something like nix show-config that would show me where it expects to find the config file on my system
<betawaffle>
oh... and i'll want to share /home too
<betawaffle>
so that may simplify things a bit?
<tilpner>
sgronblo: That depends on which config file you're talking about. Your NixOS config, or your nixpkgs config?
<sgronblo>
but i just assumed the manual was correct in the end and put some content in ~/.config/nix/nix.conf which seemed to work
<tilpner>
sgronblo: The former defaults to /etc/nixos/configuration.nix but is override by the NIX_PATH entry nixos-config
<sgronblo>
tilpner: im running macos on my laptop here and taking my first stumbling steps in trying out nix
<tilpner>
Oh
<tilpner>
That should be ~/.config/nixpkgs/config.nix
b has joined #nixos
<sgronblo>
https://nixos.org/nix/manual/#sec-conf-file i followed this page which mentions "The user configuration file $XDG_CONFIG_HOME/nix/nix.conf, or ~/.config/nix/nix.conf if XDG_CONFIG_HOME is not set."
<sgronblo>
btw, is nixos commonly used with docker?
endformationage has joined #nixos
Ariakenom has joined #nixos
<manveru>
sgronblo: which way around? :)
erictapen has quit [Ping timeout: 245 seconds]
thedavidmeister has quit [Quit: WeeChat 2.4]
<manveru>
docker on nixos, very much, but nixos in docker, not so
<manveru>
sgronblo: also, nix/nix.conf is the nix config (for the nix executable), while nixpkgs/config.nix is the nixpkgs config (for the package collection)
drakonis_ has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
drakonis_ has joined #nixos
erictapen has joined #nixos
shabius has joined #nixos
meck has joined #nixos
<typetetris>
hmm, i only get ipv6 addresses via network manager ..
<Church->
Could you need nothing else!
<{^_^}>
[nixpkgs] @jluttine opened pull request #58617 → josm: fix support for kendzi3d plugin → https://git.io/fjkoS
<immae>
Hey there! Is anyone at ease with bundler applications? (specifically, rails) I’m trying to fix a derivation that used to work in branch 18.09 and failed in 19.03 . At build time, "bundle" commands run alright and it builds fine, but at runtime (in systemd services) the same command with the same dependencies fails. It’s a derivation for diaspora (
<immae>
https://git.immae.eu/?p=perso/Immae/Config/Nix.git;a=tree;f=nixops/modules/websites/tools/diaspora;hb=7ac9bef4930a10101f02cbfdc4c75351e98553d6 ). I don’t find examples to find how things should be done properly
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
barrel has quit [Ping timeout: 246 seconds]
jasongrossman has quit [Remote host closed the connection]
knupfer has quit [Quit: knupfer]
<pie_>
is it possible to have two configurations for the same interface in networkmanager?
knupfer has joined #nixos
knupfer has quit [Client Quit]
<betawaffle>
gchristensen: are any nixos modules included implicitly? (ie. still present if you have a blank configuration.nix)
Erasmus has quit [Read error: Connection reset by peer]
zupo has joined #nixos
<mojjo>
hi! I'm trying out stack2nix, works until now. However, when building the generated nix file, every package is built from scratch. Is there a way to use already built packages?
sophiag has joined #nixos
Erasmus has joined #nixos
<pie__>
i keep forgetting how to do this, how do i make a shell.nix that gives me some packages in my environment?
<teto>
I am trying to do remote builds and I don't know why I keep having "Host key verfication error"; I did remove it with ssh-keygen -R , stopped the agent etc. Do I have to add the host key in /etc/ssh/ssh_known_hosts, isn't ~/.ssh/known_hosts enough ?
erictapen has joined #nixos
civodul has joined #nixos
wolfman154 has joined #nixos
<wolfman154>
Any one on?
<simpson>
Yes, but that's probably not your actual question.
ancarda has left #nixos [#nixos]
Erasmus has quit [Quit: BBL]
<samueldr>
teto: remote builds might happen under the root user if you're using the nix daemon
<wolfman154>
simpson: Cool, I wasn’t if this irc sees traffic during the weekend. I have some confusion about the home manager, https://github.com/rycee/home-manager , in the ‘graphical services’ section does it mean: in order for the services to be started automatically I need to remove xserver from my global configuration(configuration.nix) and only use xsession in my home manager, I am installing and s
<wolfman154>
etting up xmonad so I want to make sure I am doing this correctly?
<teto>
samueldr and nix would not ask me if I trust the remote user (I just checked, my root has an empty known_hosts)
<simpson>
wolfman154: I don't think so, but I've never used home-manager.
<samueldr>
I'm not sure, but I think it will not pass through the usual ssh questions; I know I ssh'd in my remote builder before first building, to have the remote key, but am unsure if it was truly required, but I assume so
<teto>
wolfman154: you still have to enable xserver, but the windowmanager config should be in home-manager I think
<teto>
samueldr:yep that was it. For some reason I thought that nix would use my user know_hosts because I have a gpg-agent. I think because it solved builtins.fetchGit for private repos but the nix-daemon works differently
<samueldr>
sadly, I know just enough to say "it might be using root's things" but not enough to know better about the rest :)
<samueldr>
though great to see this resolved
<wolfman154>
teto: thanks for the tips but windowManager.default = “xmonad”; Is not recognized by home-manager (undefined error) ?
<samueldr>
> “xmonad”
<{^_^}>
error: syntax error, unexpected $undefined, at (string):230:1
<samueldr>
> "xmonad"
<{^_^}>
"xmonad"
<samueldr>
check your quotes
<teto>
samueldr <3
<teto>
<3 samueldr
<{^_^}>
samueldr's karma got increased to 64
<samueldr>
unexpected $undefined is largely caused by sneaky characters looking like they belong, not actually belonging
<samueldr>
like this
<samueldr>
> 1 + 1
Erasmus has joined #nixos
<{^_^}>
error: syntax error, unexpected $undefined, expecting ')', at (string):230:2
imdoor has quit [Quit: imdoor]
<samueldr>
see those spaces? they're " " and not " " :) (non-breaking space vs "regular" spaces)
wfranzini has quit [Remote host closed the connection]
<wolfman154>
I pasted it straight from Haskell.org and it’s telling me windowManager defined in home.nix does not exist?
wfranzini has joined #nixos
xqsl has joined #nixos
<teto>
wolfman154: man home-configuration.nix, it's xsession.windowManager
<wolfman154>
teto: without default?
<teto>
it's a thing of beauty to compile while my cpu remains at 0%. IS there an option to have the build keep going even if I lose the connection ? my connection is super flaky as I am traveling
<teto>
wolfman154: look at the manpage I gave you, you will see all the available options
<teto>
just enable should be enough to have a barebone xmonad
<teto>
I mean xsession.windowManager.xmonad.enable = true;
<samueldr>
teto: I think the official word is "no" but my experience seems to be "sometimes when it flakes out it continues building"
<samueldr>
teto: but by "no", I mean "there is no support", pretty sure they wouldn't mind if there was a way to do it added to nix
<wolfman154>
thanks , I need to fix the syntax
<wolfman154>
teto++
<{^_^}>
teto's karma got increased to 1
<wolfman154>
samueldr: ++
<wolfman154>
samueldr++
<{^_^}>
samueldr's karma got increased to 65
<{^_^}>
[nixpkgs] @veprbl pushed commit from @LinArcX to master « behdad-fonts: init at v0.0.3 (#58497) »: https://git.io/fjk6D
<colemickens>
Clear Linux uses AutoFDO for profile-based optimizations. Is this something NixOS could do and/or has anyone looked at including the Clear Linux patches in NixOS?
<colemickens>
wolfman12345[m]: idk if it's the official gate, but there is a 19.03 milestone on GitHub with a number of open issues.
b has quit [Quit: Lost terminal]
cswl has joined #nixos
<samueldr>
colemickens: it shouldn't be what stops the release, as many of these were brought over from 18.09, and the same from 18.03 to 18.09
<colemickens>
okay, is there a better answer for the question of "when" or "what is blocking" it then?
<colemickens>
(is there a release wg, maybe I should lurk in -dev more)
<samueldr>
release wg?
<justanotheruser>
I thought #nixos was the dev channel? alis shows no nixos-dev
<simpson>
"release wig" probably
<colemickens>
wg = working group
<samueldr>
ah
<colemickens>
justanotheruser: I'm in #nixos-dev, idk?
<samueldr>
channels listing services from freenode have issues listing all channels in freenode apparently
<{^_^}>
boogiewoogie: Just ask your question. It's the best way to know if anybody can help. Or look at other ways of getting in touch with the Nix community here: https://nixos.wiki/wiki/Get_In_Touch
<samueldr>
boogiewoogie: depending on the question, sometimes non-users might be able to help
<samueldr>
AFAIUI this is the server part for riot-web and not the app
<boogiewoogie>
oh yeah, that makes a lot of sense
wolfman154 has joined #nixos
wolfman154 has quit [Client Quit]
Erasmus has joined #nixos
<betawaffle>
in the partitioning part of the nixos manual, is there a reason we create the boot partition last, as opposed to first?
<betawaffle>
i've seen that elsewhere, but i just assumed you'd create partitions in the order they are on disk
<eyJhb>
Have anybody else have trouble with matplotlib and showing images? (plt.show()), no errors or anything. Just no drawings
<gchristensen>
betawaffle: I agree, it would be really nice to update that
justanotheruser has quit [Ping timeout: 246 seconds]
<samueldr>
betawaffle: to keep /dev/sda1 and /dev/sda2 the same for both legacy bios and EFI instructions
<samueldr>
gchristensen: nothing to fix otherwise the manual will get harder to follow :/
<betawaffle>
ok, so not actually that important if i know what i'm doing
<gchristensen>
ah
<samueldr>
it will become a mess of "if you are using bios boot, use /dev/sda1 or with EFI boot, use /dev/sda2"
justanotheruser has joined #nixos
<samueldr>
an alternative would be to always make a partition for a /boot partition, but it wasn't part of the original instructions
tomberek has joined #nixos
<samueldr>
(and is _not_ required with NixOS)
<samueldr>
betawaffle: exactly
<samueldr>
betawaffle: those instructions are "known good instructions", but they are more guidance than truth
<betawaffle>
i'm trying to decide how i want to partition the 1tb nvme in my new laptop
<samueldr>
betawaffle: "how" how?
<betawaffle>
such that i don't lock myself into any particular decision
<samueldr>
if you intend to only run nixos, you might want to do it simply with one partition for everything, and one for ESP
<samueldr>
even having the swap as a swap file (except if your FS cannot)
slack1256 has joined #nixos
<betawaffle>
i'm not necessarily going to use nixos for everything, i may want to have other oses installed
<samueldr>
if you intend to use zfs all bets are off
<samueldr>
right
<tomberek>
Can the new nix do shebang-style nix-shell functionality? My intent it to be able to use the statically compiled Nix by matthebauer instead of requiring a full installation.
<samueldr>
you could always use an LVM PV as a portion of your drive, set the nixos root partition in there, and if you ever need to increase its size, another PV can be created anywhere on the disk, even out of order, to extend the volume group (I might have messed the LVM terms)
<betawaffle>
ehh, nah
<samueldr>
:)
<samueldr>
at one time in the past it was useful for me; before nixos, I had this laptop with its original windows 8 install resized; needed to expand the linux system; removed the windows partition, made a new lvm PV before the existing one, expanded the volume group and partition, so the end of it was physically before the start
<slack1256>
tomberek: yep, read the manpage to see how
<{^_^}>
slack1256: 11 hours, 25 minutes ago <infinisil> Ralith was able to help me, all that was needed is -lncurses, because ncurses provides a libncurses.so file, *not* libcurses.so, this now works: https://gist.github.com/Infinisil/fa3016416a6fa4430c50d9ac3c7dd3c9
Erasmus has quit [Read error: Connection reset by peer]
<tomberek>
slack1256: i'm aware of nix-shell's ability to do this, but i'm not sure about the "nix" executable itself
<slack1256>
I see
<samueldr>
pretty sure it doesn't have the feature, grepping the source code for shebang only refers to nix-shell things
<gchristensen>
nix-shell is it
<samueldr>
the `nix` porcelain is AFAIK, not yet ready to be used as plumbing
<samueldr>
ready as in "with a stable API", it shouldn't cause any issues in using it except for (unlikely?) breakage along the way
<tomberek>
yeah... that's what i thought. But i'm trying to modify static-nix to bundle nix-shell instead of nix.... just an experiment to implement a dependency installing interpreter without requiring nix installation.
Erasmus has joined #nixos
<slack1256>
infinisil: haha we were so close. Tbh the tinytretris README.md told us to link against -lcurses .
<samueldr>
that would be amazing :)
<samueldr>
tomberek: especially if it would somehow read the script as an appended thing to the binary?
<samueldr>
(nerd snipe ahoy)
<infinisil>
slack1256: Apparently some distros link curses -> ncurses
<infinisil>
But some don't
Jackneill has quit [Remote host closed the connection]
<slack1256>
So the confifurePhase set up the environment varibles so -L and -I on g++ weren't neccesary, nice!
<slack1256>
*s/fure/gure/
wfranzini has quit [Remote host closed the connection]
<Ralith>
configurePhase wasn't doing anything at all there, the environment setup is more fundamental than that
<samueldr>
(that's some hardcore nerd sniping here)
<tomberek>
yeah, i'm seeing hnix do it's thing and seems a large endeavor. I have been building my go experience lately, but writing a compiler in one is beyond my current ability. I'd start out with some hacky method first.
<{^_^}>
[nixpkgs] @volth opened pull request #58631 → djview: fix mozilla plugin path → https://git.io/fjkPW
ru_horlick has quit [Quit: Connection closed for inactivity]
<samueldr>
mightybyte: it will use the right builder for the platform you're building for
<everybodyHertz>
hey all- anyone online at the moment that has some experience with nixops and GCE?
shabius has joined #nixos
knupfer has quit [Remote host closed the connection]
<mightybyte>
samueldr: What if I want to build for another platform? Or multiple platforms?
<samueldr>
nix-build . -A hello --option system x86_64-darwin IIRC
<gchristensen>
just --system x86_64-darwin
cswl has quit [Quit: Connection closed for inactivity]
<gchristensen>
(I think?)
<mightybyte>
Can you do multiple at once?
<sphalerite>
,ask everybodyHertz
<{^_^}>
everybodyHertz: Just ask your question. It's the best way to know if anybody can help. Or look at other ways of getting in touch with the Nix community here: https://nixos.wiki/wiki/Get_In_Touch
Shouou has joined #nixos
slack1256 has quit [Remote host closed the connection]
<everybodyHertz>
sphalerite: heh, fair enough- I've got a nixops deployment that is running into issues provisioning to GCE. More specifically, I get 4 async exceptions each time. All of them reference 'project=<numbers>' (where <numbers> is a string of numbers that I don't recognize) which is strange considering all of my debugging so far indicates the value at run time should be 'nix-cloud' (name of my GCE project)
rembo10 has joined #nixos
vendicta has quit [Quit: leaving]
knupfer has joined #nixos
anon has joined #nixos
<everybodyHertz>
If it provides any context, I'm using the .json key generated for a service account in a project and before I started anything (even copying the image into my storage bucket), I did a quick `nix-env -i google-cloud-sdk` and `readlink -f ./key.json | gsutil config -e` (otherwise I kept getting weird auth/signing issues)
<gchristensen>
wolfman154: probably, stick around a while longer and you're more likely to get the help you need
<sphalerite>
wolfman154: we have a number of xmonad users. You may want to A, describe your problem in more detail (how does xmonad --recompile fail?), and B, stick around and wait for a while (I'd suggest 6 hours at least) to see if anyone can help.
<{^_^}>
nixops#767 (by jbgi, 1 year ago, open): Azure deployment should allows use of private IP for deployment/ssh.
<{^_^}>
nixops#221 (by joamaki, 4 years ago, closed): Option to use private ip address with EC2
<sphalerite>
everybodyHertz: that sounds really cool. While I don't think I can help you, I appreciate that you're doing this! everybodyHertz++
<{^_^}>
everybodyHertz's karma got increased to 1
zupo_ has joined #nixos
zupo has quit [Ping timeout: 245 seconds]
<everybodyHertz>
sphalerite: many thank yous, kind sir. Gonna keep posting context (booting up my work laptop now to get to the deets) to see if it connects any dots out there =D
knupfer has quit [Remote host closed the connection]
<everybodyHertz>
sphalerite: or madame <- ugh- pronouns and gender politics in a modern age... I don't disagree, but I have to catch myself
Fare has quit [Ping timeout: 255 seconds]
<gchristensen>
thank you for trying, everybodyHertz :)
<wolfman154>
I was wondering if you guys could try out my home-manager configuration from those two links to see if you get the same error?
vk3wtf has joined #nixos
<everybodyHertz>
not that I'm asserting there's only a binary of genders (oh god- I'm shuting this down...)
<gchristensen>
best not to try and get in to the details of it
<everybodyHertz>
:+1:
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
<wolfman154>
I am installing xmonad in home-manager, I am stuck at xmonad-recompile
<gchristensen>
everybodyHertz: to clarify: NixOS's community is open and friendly and supportive of people regardless of gender and pronouns, however you and I and IRC are probably not the right people to be having the conversation on our own. The important part for you and I is to try to do the best we can to be inclusive, and I appreciate your attempt to be inclusive
<manveru>
wolfman154: "Error detected while loading xmonad configuration file: /home/tjg/.xmonad/xmonad.hs"
<manveru>
wolfman154: does that file exist?
<{^_^}>
[nixpkgs] @romildo closed pull request #52403 → [WIP] deepin: updates, new packages and fixes → https://git.io/fpN7E
<wolfman154>
manveru: when I created it using touch it said it was in the way so I remit and nw it’s throwing another error?
<wolfman154>
Removed it
<wolfman154>
Typo
<manveru>
well, home-manager probably tries to create it, but you reference it with `config = .xmonad`, so it tries to read from there first...
Fare has joined #nixos
<everybodyHertz>
gchristensen: lol- many thanks. It started as genuine concern and then spiraled into what I hope came off as a bit of a verbal farce (tho now I'm hoping wasn't too tone deaf as to offend)- either way: back to nix =P
<manveru>
home-manager will never overwrite existing files, and if you have no existing configuration, i'd just remove that line
<gchristensen>
<3
<everybodyHertz>
so if it provides additional context, the project mentioned in the async errors is 1078724259120
<everybodyHertz>
I tried looking at the details for a project of that name, but as suggested by the error message, I'm not allowed (that's not my project's name, so that makes sense)
<rycee>
wolfman154: The config option should be set to the path of your xmonad.hs file. For example, in my configuration I have `config = ./dotfiles/xmonad.hs;`
<wolfman154>
manveru: doesn’t ~/.xmonad mean home/usr? And so you’re saying it would be best to remove config = ~/.xmonad ?
<everybodyHertz>
I've tried grepping for that string of numbers in the deployment files, the $out files for the compiled nixops I'm using (with the private ip considerations for GCE), and the --debug output, but bupkis =/
<Shouou>
How do I satisfy the pip 'Could not find a version that satisfies the requirement protobuf==3.0.0b2' error with a Nixpkg? Does the package name just have to match?
<wolfman154>
rycee: well where is xmonad.hs, I thought when I recompile in that area this file would be automatically built ?
<Shouou>
(and version)
<wolfman154>
Dir instead of area
mmlb9774508 has joined #nixos
apaul1729 has joined #nixos
anon has quit [Quit: Lost terminal]
<wolfman154>
Shouou: was that message for me?
<Shouou>
wolfman154, oh no, just a continuation of my own message
<rycee>
wolfman154: I'm not certain I follow completely but ~/.xmonad should be a directory that does not contain xmonad.hs. When you do `home-manager switch` it will link the xmonad config file you specified into ~/.xmonad and trigger a rebuild/
Fare has quit [Ping timeout: 255 seconds]
<apaul1729>
so i'm trying to update a nixpkg for macOS (https://github.com/libguestfs/hivex). it's an ocaml project that also uses perl bindings that get written under `result/lib`. what's the proper way to wrap the results in `bin/` with the proper PERL5LIB path?
<rycee>
In my case `readlink .xmonad/xmonad.hs` answers /nix/store/kk1fwg801ijx7w26xk70471xgqwpi7xh-home-manager-files/.xmonad/xmonad.hs
<rycee>
apaul1729: The best way is to use the makePerlPath function. I'll look up an example…
<rycee>
apaul1729: But that assumes the Perl bindings get installed nicely as their own packages.
<apaul1729>
right. can i not just wrap it to the result's lib/ dir?
<rycee>
apaul1729: Yeah, you might succeed with something like `--set PERL5LIB $out/lib/blah/blah`
<{^_^}>
[nixpkgs] @aszlig pushed to master « chromium/updater: Fix usage of insecure MD5 hashes »: https://git.io/fjkXX
<wolfman154>
manveru: I removed the config = ~/.xmonad line and it works, xmonad is finally recompiling, thanks
<apaul1729>
ah i see
<wolfman154>
manveru++
<{^_^}>
manveru's karma got increased to 6
goibhniu1 has joined #nixos
<apaul1729>
rycee would it be better to just make a perlModule out of the lib folder in/during the derivation somehow?
<rycee>
apaul1729: How is the perl module built? Using Build.PL or something like that?
<rycee>
(or Makefile.PL)
<wolfman154>
Do I create my own xmonad.hs or does xmonad automatically do this when I recompile?
<rycee>
wolfman154: You need to provide an xmonad.hs configuration file through the config option. Home Manager does not attempt to generate an xmonad configuration file.
<apaul1729>
rycee i'm actually not sure, this is just a dependency of other stuff i'm building. let me take a look
<wolfman154>
rycee: thanks for the tip
<wolfman154>
rycee++
<{^_^}>
rycee's karma got increased to 1
<wolfman154>
rycee: noob question where would be the best location to create this file
<rycee>
wolfman154: I have my HM configuration in a git repo. Inside there I have a directory called `dotfiles`. In there I have my xmonad.hs
<rycee>
So I end up with `config = ./dotfiles/xmonad.hs;` in my xmonad HM configuration.
<everybodyHertz>
yeah, I'm at a loss for now... print() debugging around the connect() method didn't even clarify- still printed my project name (the one I wrote into the .nix file), but the async errors all still fail due to an access error on project 1078724259120
<everybodyHertz>
gonna hit up amine-chikhaoui tomorrow methinks
<rycee>
apaul1729: I had a look at the existing hivex package in Nixpkgs and it seems to install the Perl module. So you should be able to wrap the program using `--set PERL5LIB "$out/${perlPackages.perl.libPrefix}"`
<rycee>
apaul1729: Is hivexregedit the program that needs wrapping?
<emily>
hexa-: I have the Cloudflare Python hook for dehydrated half
<emily>
packaged locally.
<emily>
still haven't gotten around to setting it up :/
<hexa->
emily: ah, I wanted to host everything locally, rfc2136 :)
vk3wtf has quit [Ping timeout: 246 seconds]
<hexa->
I am a dehydrated user myself on other systems, but lego seems to be a good acme implementation in general
<emily>
ah, that's slightly too hardcore for me hehe
<emily>
I'd be fine with lego too, dehydrated just seemed easier to get working at a pinch
ng0 has quit [Quit: Alexa, when is the end of world?]
<emily>
I'd love to see someone improve the acme module
<apaul1729>
rycee yeah it's hivexregedit
<apaul1729>
it fails out with `cant locate Win/Hivex.pm in @INC` . trying a build with your last suggestion
<apaul1729>
oh hey that seemed to work
<apaul1729>
ah now i see what libPrefix is
<apaul1729>
i couldn't figure out the proper path to use beforehand
i1nfusion1 has quit [Remote host closed the connection]
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #nixos
i1nfusion1 has joined #nixos
kleisli has quit [Client Quit]
kleisli has joined #nixos
kleisli has quit [Client Quit]
<{^_^}>
[nixpkgs] @FlexW opened pull request #58635 → cask: init at 0.8.4 → https://git.io/fjk1l
kleisli has joined #nixos
kleisli has quit [Client Quit]
<worldofpeace>
,locate bin/locale-gen
<{^_^}>
Couldn't find in any packages
<clever>
,locate bin locale-gen
kleisli has joined #nixos
<clever>
the bot has a weird syntax
<{^_^}>
Couldn't find in any packages
<everybodyHertz>
,?
<worldofpeace>
I've noticed bin/ getting more results though
<clever>
and that doesnt seem to be anywhere obvious
<clever>
,locate bin/hello
<{^_^}>
Found in packages: hello, mbedtls, perkeep.bin, gitlab-runner.bin, haskellPackages.hello
<clever>
worldofpeace: ah, maybe its been improved since i last saw the weirdness
<worldofpeace>
clever: Perhaps, though infinisil still tries both :)
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<samueldr>
worldofpeace: ,locate bin/hello is like bin/hello*, while ,locate bin hello is like bin/hello$
<samueldr>
hm, like ^bin/hello$*
<samueldr>
so yeah, bin/hello might find bin/hello-world
<infinisil>
worldofpeace: clever: `,locate bin <name>` searches for exactly $out/bin/<name>, whereas `,locate bin/<name>` is just a path search for bin/<name> anywhere in the path, so this include things that wouldn't be in PATH too, but just happen to have bin/<name> in the path
<worldofpeace>
Now it all makes sense.
<clever>
ahh
<infinisil>
Who needs docs when you can ask me right!
<infinisil>
/s
<worldofpeace>
exactly, much faster than reading :)
dejanr has quit [Ping timeout: 245 seconds]
slack1256 has quit [Ping timeout: 250 seconds]
_linarcx has joined #nixos
linarcx has quit [Ping timeout: 245 seconds]
goibhniu2 has joined #nixos
yourhandle is now known as ErAsMuS
wolfman154 has joined #nixos
goibhniu1 has quit [Ping timeout: 246 seconds]
gagbo has joined #nixos
kvda has joined #nixos
vk3wtf has joined #nixos
_linarcx has quit [Quit: WeeChat 2.4]
invokesus has quit [Ping timeout: 256 seconds]
cryptomonad has joined #nixos
das_j has quit [Remote host closed the connection]
<rhitakorrr>
Hey folks - was wondering if anyone could help me figure out what's going wrong here (or point me in the right direction).
<rhitakorrr>
Trying to install some Ruby packages, I'm getting:
<rhitakorrr>
"builder for '/nix/store/[...]-ruby2.6.1-tzinfo-1.2.5.drv' failed with exit code 1"
<rhitakorrr>
Some ways above that, "ERROR: While executing gem ... (Gem::InvalidSpecificationException)"
<samueldr>
which channel/branch of nixpkgs? (and revision?) additionally, one of the ruby package failing
<rhitakorrr>
The exact revision is 5082ab8335be9a0895ca78fe1ae81a5a186ae4a4
pie__ has quit [Ping timeout: 258 seconds]
mabel has joined #nixos
<rhitakorrr>
I've tried a couple now with similar results. The tzinfo package always seems to fail as of trying to update to Ruby 2.6.x.
fendor has quit [Read error: Connection reset by peer]
<rhitakorrr>
Was previously on Ruby 2.5.x
mabel has quit [Changing host]
mabel has joined #nixos
tmaekawa has joined #nixos
<mabel>
hey, this is a noob question, but I copied a file from nixpkgs (vtk/default.nix -> vtk.nix off-tree) and tried to use callPackage ./vtk.nix {}; to invoke it
<samueldr>
sorry, I'm a bit unimaginative, what good example ruby package rhitakorrr?
<mabel>
it complains that I am missing Cocoa
<mabel>
vtk.nix indeed takes the attribute { Cocoa } in its args.... but it does not require Darwin
<samueldr>
that's from pkgs/top-level/all-packages.nix which github think is too big to be able to link to :/
<manveru>
rhitakorrr: hmm, that's interesting :)
<mabel>
samueldr: oh! thank you!
<rhitakorrr>
samueldr: Do you mean an example which causes the error?
<samueldr>
yes :)
<samueldr>
the only thing off the top of my head using ruby is redmine, which apparently uses 2.4
<samueldr>
or uh, nix-top, which apparently uses 2.5 on the revision you said
* samueldr
forgot about his own thing
alex`` has quit [Quit: WeeChat 2.4]
<rhitakorrr>
Hmm... the issue is specifically appearing in my personal project. I could try to make a minimal example in a gist if that helps?
Shouou has left #nixos ["Leaving"]
<manveru>
i reproduced it already
<manveru>
something in rubygems must've changed :(
<manveru>
time to go source diving...
apaul1729 has quit [Remote host closed the connection]
jbgi has joined #nixos
<rhitakorrr>
Thanks, manveru - I'm not quite familiar enough with Nix to debug this sort of thing myself :/
<mabel>
bleh. my machine is running a high fever and I'm not sure what's wrong with it. I thought it was a thermal grease issue but I reapplied yesterday
<manveru>
rhitakorrr: seems like gemspec got stricter...
<manveru>
i'm wondering if this gem even builds on other platforms
acham has joined #nixos
<acham>
Yo, I'm trying to prepare a package, "github.com/apenwarr/redo" and noticed it works in an unreleased git version, but not in the latest tag.
<acham>
Is that okay? what should I put in the version field?
<mabel>
I plug those into fetchFromGitHub, and it *fails*, saying that the hash was not as expected
<mabel>
this must be a bug in nix-prefetch-git, right?
ErAsMuS is now known as erasmus
jasongrossman has joined #nixos
jbgi has quit [Ping timeout: 245 seconds]
<samueldr>
mabel: no, it's more of a mismatch in expectations
<samueldr>
fetchFromGitHub will not use git* when fetching, it will use the archive download
<timclassic>
I can't seem to override the openssh parameter to the nixops package. `nixops = super.nixops.override { openssh = openssh-other; };` gives me `anonymous function at ... called with unexpected argument 'openssh'`.
<samueldr>
and it will hash the extracted contents (since archives files could change)
<samueldr>
mabel: the "*" was that when using deep cloning it will go back to using git
<samueldr>
,tofu mabel
<{^_^}>
mabel: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<timclassic>
There seems to be a layer of indirection when constructing the nixops package, where the nixops default.nix uses another `callPackage` to a generic.nix -- could this be the reason `.override` is not working?
<samueldr>
when you're pretty confident in the supply chain, TOFU is generally the easier way to handle hashes within nix
<{^_^}>
[nixpkgs] @andrewchambers opened pull request #58640 → redo-apenwarr: init at unstable-2019-03-12 → https://git.io/fjkMw
<rhitakorrr>
manveru: It's working :)
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #58641 → gnome3.mutter328: use gnome-3-28 branch → https://git.io/fjkMK