<nur0n0>
does anyone know how to get systemd and nix to play nicely? I know nixos can hook into systemd, but I'm trying to get it to work the other way around because I'm running nix alongside Arch. I tried a naive approach using nix-shell, but nix-shell assumes that environment variables such as NIX_PATH are set (?).
<nur0n0>
for completeness: I'm trying to run emacs in daemon mode on startup, but emacs is managed by nix
jophish has quit [Ping timeout: 255 seconds]
jophish has joined #nixos
<{^_^}>
[nixpkgs] @jwiegley closed pull request #40738 → rabbitmq_server: Don't use getconf optimization on non-Linux systems → https://git.io/vppmr
<{^_^}>
[nixpkgs] @xeji opened pull request #40801 → nixos/dnscrypt-proxy: fix apparmor profile and test → https://git.io/vph8T
xy2_ has quit [Ping timeout: 240 seconds]
sanscoeur has quit [Remote host closed the connection]
Sonarpulse has joined #nixos
orivej has joined #nixos
silver_ has joined #nixos
MP2E has joined #nixos
griff_ has quit [Quit: griff_]
camsbury has quit [Ping timeout: 276 seconds]
<justanotheruser>
"No matching distribution found for bs4 (from requests-html==0.9.0)" here is requests-html.nix https://hastebin.com/raw/usibogitoh
<{^_^}>
[nixpkgs] @disassembler pushed 2 commits to master: https://git.io/vph4C
<{^_^}>
→ f434c71d by @worldofpeace: antibody: init at 3.4.6
<{^_^}>
→ be5e8faa by @disassembler: Merge pull request #40742 from worldofpeace/antibody
markus1189 has quit [Ping timeout: 240 seconds]
<nur0n0>
infinisil: only gone momentarily! (I was forced to disconnect) but I'm all ears if you have some advice on the systemd thing
<nur0n0>
although it seems like systemd really does not want me to do what I'm trying to do (maybe there's a good reason)
<infinisil>
nur0n0: It should work if you set NIX_PATH correctly
<infinisil>
That is, running emacs in a nix-shell in systemd
<drakonis>
folks, anyone running windows 10 right now?
<drakonis>
is it updated to the latest version?
<drakonis>
because i need to mount the ntfs partition and it is read only despite hibernation being disabled
<justanotheruser>
"No matching distribution found for bs4 (from requests-html==0.9.0)" I have the buildInput beautifulsoup4, so I'm not sure why it's complaining. Here is requests-html.nix https://hastebin.com/raw/usibogitoh , here is the full output https://hastebin.com/raw/anemabovup
<infinisil>
drakonis: Do you have ntfs in your boot.supportedFileSystems?
<infinisil>
I think that's needed for it to not be readonly
<drakonis>
no i don't
<drakonis>
i have to check though
Have-Quick has joined #nixos
<drakonis>
fast startup is off
<drakonis>
tbh
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Have-Quick has quit [Client Quit]
<drakonis>
i wish i knew that was a thing
Supersonic112 is now known as Supersonic
<drakonis>
so much left to be desired in the new user experience
<drakonis>
even though i'm not new
<nur0n0>
infinisil: I think that's what I was trying to do: https://pastebin.com/TfEyZqK7. but running `systemctl start emacs` still complains that NIX_PATH is not set.
<infinisil>
Well did you set NIX_PATH?
<nur0n0>
I did not. I'll just set it manually through `Environment=` :D
<nur0n0>
I was just worried it might not be the most robust solution, but it will do
griff_ has joined #nixos
<nur0n0>
This might be a good sign to move completely to NixOS too
<drakonis>
NixOS is a strange strange place
<drakonis>
full of wonderful and strange little things
<drakonis>
like an variable for supported filesystems
<infinisil>
nur0n0: NIX_PATH is arguably the most important setting for Nix, it's the gateway to pretty much everything
<{^_^}>
[nixpkgs] @knedlsepp opened pull request #40802 → gitAndTools.git-dit: Fix darwin build → https://git.io/vph4H
MP2E has quit [Remote host closed the connection]
<nur0n0>
infinisil: that's why I was wary of setting it manually, but the nix.sh file only appears to set it once. and the only channel I currently use is nixpkgs, so I think I'll be ok setting it manually
ertes has joined #nixos
<nur0n0>
drakonis: that's the impression I got, it was a little overwhelming to dive into: hence my current setup
<drakonis>
it is and we always need more people to improve the curve
ryantrinkle has quit [Ping timeout: 256 seconds]
lassulus has joined #nixos
ronAm has quit [Quit: Page closed]
lassulus_ has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @orivej opened pull request #40803 → swift-im: init at 4.0.2 → https://git.io/vphBI
acarrico has quit [Ping timeout: 268 seconds]
baconicsynergy has joined #nixos
mrkgnao has joined #nixos
<drakonis>
infinisil, err actually it wouldn't mount at all would it?
<infinisil>
Not sure what you mean
<drakonis>
i have the ability to mount already but it mounts as read only
<drakonis>
not having ntfs in the supported filesystems list wouldn't allow it to mount at all
<infinisil>
But you probably know everything there already
<drakonis>
yeah well, i already do
<drakonis>
i'll probably update windows to the next major version
<lopsided98>
The kernel has a read only driver built in for NTFS, but adding NFTS to supportedFilesystems (probably, I haven't checked the code) enables NTFS-3G, the read/write FUSE driver
<samueldr>
ntfs-3g is already used for `ntfs` when type = "ntfs"
<samueldr>
drakonis: (sorry, "have you tried turning it off and on again" moment) have you verified fast startup is turned off still? there was a user the otherday who sweared it was (it wasn't) possibly turned back on after an update
<samueldr>
(I wrote up the wiki page infinisil linked after helping, the journalctl bit was key in verifying that yes the disk was unclean)
<dmj`>
anyone use cargo2nix
<drakonis>
i have
<drakonis>
its still off yeah
<drakonis>
i do think it must be unclean
<samueldr>
(for gathering data about your situation if you end up fixing it) do you get the same message?
<drakonis>
i have to force repair
raynold has joined #nixos
<drakonis>
i'll let you know once my round of video games is over
<drakonis>
should be 10 minutes
schoppenhauer has quit [Ping timeout: 260 seconds]
schoppenhauer has joined #nixos
dbmikus has joined #nixos
<drakonis>
gonna upgrade the system first
<drakonis>
to avoid everything breaking a second time
sigmundv has quit [Remote host closed the connection]
nur0n0 has joined #nixos
sbdchd has joined #nixos
<sbdchd>
Hello, I am trying to make a `nix-shell` always result in the default.nix config being pure.
<sbdchd>
Normally I can call nix-shell --pure, but is there anyway to just have pure enforced by default?
justanotheruser has quit [Ping timeout: 260 seconds]
sbdchd has quit [Remote host closed the connection]
sbdchd has joined #nixos
Have-Quick has joined #nixos
sbdchd has quit [Ping timeout: 260 seconds]
robstr has joined #nixos
<tfc[m]>
hey there, when i use `cabal2nix --shell ...` and then use `nix-shell`, i see that it does not install cabal. i don't see any parameter that lets cabal2nix add cabal-install as adependency. do i need to add this by hand or is there something else wrong?
MP2E has joined #nixos
Huddo121 has quit [Remote host closed the connection]
Taneb has joined #nixos
simukis has joined #nixos
ckauhaus has joined #nixos
knupfer1 has joined #nixos
spear2 has quit [Ping timeout: 248 seconds]
knupfer has quit [Ping timeout: 255 seconds]
knupfer1 is now known as knupfer
ckauhaus has quit [Remote host closed the connection]
<srhb>
tfc[m]: If it's not actually required for the package, it won't get added. You can add it by hand or let it impurely seep in from your own environment.
<srhb>
tfc[m]: What do you need it for? Do you know that we don't use cabal-install in the builder?
<tfc[m]>
srhb: oh i see. so the idea is "what's not needed for nix-build is not required by the package. and if you need cabal for development purposes, you are a developer and developers install cabal"? i wonder why that is, because nix-build seems to get cabal from somewhere, too?
<tfc[m]>
srhb: oh so you _dont_ use cabal in the builder? what is used instead?
<srhb>
tfc[m]: Well, not cabal-install. Try runhaskell Setup.hs --help
<srhb>
We interface with Cabal-the-library through there. :)
<tfc[m]>
srhb: oooh i see. but that is not what i would use in the nix-shell, or would i?
rihards has joined #nixos
<srhb>
tfc[m]: Lots of people do use cabal-install in their shells afaik. It's up to you though, just presenting the rationale for why it's not there (and not needed from a builder perspective) :)
<tfc[m]>
ok i just see that it has a lot of useful commands, practically all i would need. now i am a bit irritated because i never knew of this. :D
<srhb>
Yeah it leads to all sorts of funny questions like "what even IS cabal-install" :-P
<tfc[m]>
srhb: i always developed using haskell stack. now i am learning about cabal2nix, nix in general etc. etc. because i have a complicated service that is developed in haskell. we currently use docker to set it up, but i see enormous potential in nixOS for the same purposes.
<tfc[m]>
so i am currently going through "how to set up hydra", "how to package my haskell apps for nixos", "how to create a service in nixOS from my apps" etc.
<tfc[m]>
often my problem is that i already approach it with "wrong" assumptions so i am looking for how to do things although completely different ways are the suggested ones.
<srhb>
tfc[m]: I definitely know this feeling!
<srhb>
tfc[m]: Just hanging out in this channel can rub off some good hints. :-)
ckauhaus has joined #nixos
mrkgnao has quit [Ping timeout: 260 seconds]
<tfc[m]>
srhb: yes i got a lot help here already. awesome community.
<srhb>
tfc[m]: Deploying haskell applications on NixOS is sort of ridiculously easy compared to the docker shenanigans. Though even docker used with nixpkgs is a lot better than the regular docker tools.
<tfc[m]>
srhb: yes, and i really like this "one config to rule them all" approach. i want a "no manual steps" configuration for our app deployment, and with docker we certainly don't have that.
<srhb>
Right. :)
<tfc[m]>
i do especially have to fight this through on nix alone because my colleagues are not convinced of nixOS, yet. but a proof of concept setup with our apps will certainly be convincing.
ckauhaus has quit [Ping timeout: 240 seconds]
<srhb>
tfc[m]: fwiw my experience is that setting up the full thing can be really convincing, managed to convert $oldjob at least. :)
<srhb>
There are still rough edges, but I've seen no better alternative.
<tfc[m]>
the best thing is that running `nix-build` on your package locally is already a good simulation for what will happen in the CI.
<tfc[m]>
so no more "git push and hope that the CI will like it this time" any longer...
<srhb>
tfc[m]: Yep, that's definitely one of the biggest wins.
<srhb>
Much less "works for me, but..."
<srhb>
:)
<tfc[m]>
yeah. another thing that i always wished for was "well how to simply set up this complicated project that consists of python-, ruby- and whatnot packages without forgetting some dependency again?"
<tfc[m]>
even if each individual scripting environment comes with its own package manager, you have to install those manually and worry about if they install packages locally or tamper the whole system
<Myrl-saki>
srhb: tfc[m]: FWIW, Nix can be daunting to other people.
<tfc[m]>
Myrl-saki: yes, i have seen my colleagues not liking the fact that they would have to learn the nix expr language. i think their thinking is "so i have to learn another language for just another package manager?"
<{^_^}>
[nixpkgs] @xeji pushed to release-18.03 « nixos/cjdns: fix service for i686 (#40740) »: https://git.io/vphaE
ckauhaus has joined #nixos
<Myrl-saki>
Oh cool.
<Myrl-saki>
Apparently the recursion checker is an actual feature of Nix and not of Nixpkgs.
roconnor has quit [Remote host closed the connection]
roconnor has joined #nixos
ckauhaus has quit [Ping timeout: 268 seconds]
<frank87>
Is somebody using dysnomia for backup purposes?
LoneTech has joined #nixos
stumble has joined #nixos
<frank87>
Disnix looks a little deserted. Is that true?
<ixxie>
frank87: I don't think its abandoned; it is still being developed and I believe it is even used in production by Sander. It is however not one of the more widely adopted of Nix technologies.
<ixxie>
Nix > NixOS > NixOps > Hydra > Disnix if I had to guess the user count
<frank87>
It's nice it manages the app-data
<tfc[m]>
when i want to read about funcitons like `pkg.writeFile` and `pkg.writeConfig`, where are they even defined? i am currently browsing through nixpkgs but i am lost.
<frank87>
App data is a source of debris on the system.
<frank87>
Tfc[], arent those buildin in nix?
<tfc[m]>
frank87: are they? well i don't really care but i want to look at documentation
<frank87>
Search the nix-documentation.
<tfc[m]>
nope, nothing
<LoneTech>
I'm trying to install glash-ghc 0.99 from nixpkgs, but clash-prelude fails its test suite unable tom import Clash.Prelude, Clash.Explicit.Prelude and Clash.Explicit.Testbench. guessing there's something peculiar about how the test bench is run for clash-prelude. not sure how to proceed
asuryawanshi has joined #nixos
stumble has quit [Remote host closed the connection]
<frank87>
Sorry, I can't help
<frank87>
Wait a few monent, maybe some expert is leaching...
<tfc[m]>
ixxie: ok that gives me a little bit of a hard time _really_ understanding what they do as i am currently trying to define a system service with a custom application and i am just looking at other services to get inspired how to do it
asuryawa_ has joined #nixos
<ixxie>
tfc[m]: unfortunately the best documentation for the library functions is generally the source-code itself
<ixxie>
there are probably other reference articles somewhere that may have useful info
<tfc[m]>
thank you
asuryawa_ has joined #nixos
michas_ has joined #nixos
asuryawanshi has quit [Read error: Connection reset by peer]
asuryawa_ has quit [Remote host closed the connection]
stumble is now known as jasongrossman
asuryawanshi has joined #nixos
jasongrossman has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
ckauhaus has joined #nixos
gm152 has joined #nixos
jasongro` has joined #nixos
jasongro` has quit [Client Quit]
jasongrossman has joined #nixos
pi3r has quit [Ping timeout: 260 seconds]
jasongrossman has quit [Client Quit]
asuryawanshi has quit [Read error: Connection reset by peer]
knupfer has quit [Ping timeout: 256 seconds]
ckauhaus has quit [Ping timeout: 276 seconds]
b has quit [Quit: Lost terminal]
gm152 has quit [Quit: WeeChat 1.6]
<{^_^}>
[nixpkgs] @vcunat pushed commit from @ttuegel to release-18.03 « Merge #37636: wrapFirefox: update icon location »: https://git.io/vphVS
ryantrinkle has quit [Ping timeout: 260 seconds]
jasongro` has joined #nixos
orivej has joined #nixos
mahalel_ has quit [Remote host closed the connection]
jasongro` has quit [Client Quit]
jasongrossman has joined #nixos
<nyanloutre[m]>
Hello, does anybody know why the Firefox icon isn't showing in my KDE menu ?
<{^_^}>
[nixpkgs] @Mic92 opened pull request #40806 → nixos/ids: information when to use static uids/gids → https://git.io/vphwY
goibhniu has joined #nixos
thc202 has joined #nixos
griff_ has joined #nixos
broccoli has quit [Ping timeout: 260 seconds]
<aminechikhaoui>
tfc[m]: I don't think there is such packages, where did you find those ? maybe it's wrapper functions ?
<LoneTech>
nyanloutre[m]: apparently it wasn't added with xdg-desktop-menu or some such. it's just a missing shortcut though, since I installed firefox I can start it by entering its name and pin it in the taskbar.
<tfc[m]>
aminechikhaoui: i found everything in pkgs/build-support/trivial-builders.nix now.
broccoli has joined #nixos
<nyanloutre[m]>
@freenode_LoneTech:matrix.org: OK, that's not a big deal anyway. I just wanted to be sure it wasn't a mess on my side 🙂
<{^_^}>
→ 6e222ef4 by @lopsided98: tmon: fix missing libgcc_s.so required by pthreads
<{^_^}>
→ f814d8ff by @Mic92: Merge pull request #40799 from lopsided98/tmon-lib-gcc-s
<LoneTech>
the thing is, that sets one variable, LANG. it refuses to consider options like english in Sweden. I'd like to have LC_MESSAGES differ from LC_PAPER etc
<charleshd>
LoneTech: I think you can set up that yourself without using config.i18n but using environment.sessionVariables
<LoneTech>
possibly
<charleshd>
something like environment.sessionVariables = { LANG = ""; LC_MESSAGES = stuff; … };
<Myrl-saki>
Is there a nixops option that uses the deploying machine as the cache?
raynold has quit [Quit: Connection closed for inactivity]
<charleshd>
Myrl-saki: I'm not sure I understand what you want
<Myrl-saki>
charleshd: Rather than the deployed machines pulling from cache.nixos.org
<Myrl-saki>
charleshd: They will pull from the deploying machine.
MP2E has quit [Remote host closed the connection]
asuryawanshi has quit [Ping timeout: 256 seconds]
mrkgnao has joined #nixos
<thblt>
I have a strange issue with the Mozilla Firefox overlay. It's correctly installed (I think), my clone is in sync with origin/master, but when I nix-shell -p pkgs.latest.firefox-bin, it fails with stack overflow (possible infinite recursion)
<thblt>
Since I updated to 18.03, I have been unable to use the overlay, in .nixpkgs/config.nix nix-env just complains that "latest" isn't defined.
<{^_^}>
→ c0e2f7bb by @pijul: buildRustCrate: add extraLinkFlags parameter
<{^_^}>
→ aa1d7961 by @pijul: curl-sys: fix linking against zlib
<{^_^}>
→ 9d3693bd by @Mic92: Merge pull request #40808 from Mic92/rust-curl-sys
michas_ has quit [Ping timeout: 256 seconds]
<LoneTech>
plasma has its own set of complex settings in Personalisation -> System Settings. Where it insists en_GB is Americal English. and lists that as the only language, too. strange.
<charleshd>
wow
Ariakenom has joined #nixos
<charleshd>
can't help you on that, I'm not using plasma, does plasma configuration override what you set as env variables ?
<LoneTech>
yep
<adisbladis[m]>
charleshd: Most DEs do something similar
<adisbladis[m]>
Since they offer their own configuration tooling
<LoneTech>
so without me having touched or seen those settings, it saved the locale I had when I logged in sometime in the past
<charleshd>
ok seems fair. Well can't you setup what you want through Plasma configuration utility ?
<LoneTech>
maybe. a touch strange that it has only one inaccurate language in there though
<LoneTech>
guess I'll dig for that option elsewhere
<fgaz>
Is there a way to violate `nix-shell --pure`'s purity for a single package?
<fgaz>
The reason being that I use powerline-go and in a `nix-shell --pure` my prompt breaks
ryantrinkle has joined #nixos
<LoneTech>
does this system have kde but none of the l10n packages?
<fgaz>
putting `alias powerline-go=/run/current-system/sw/bin/powerline-go` works but it's a bit ugly
<fgaz>
putting it in my bashrc*
broccoli has quit [Ping timeout: 240 seconds]
magnetophon has joined #nixos
<manveru>
fgaz: i use direnv for that
<manveru>
it reads out the env vars from nix-shell and sets them when you enter a directory, so you keep your original shell
<manveru>
though i guess that's not really pure :)
<fgaz>
well, neither is my solution :)
broccoli has joined #nixos
<adisbladis[m]>
fgaz: `nix-shell --pure` implies no locales
<adisbladis[m]>
fgaz: Ahh. Your situation makes sense since powerline-go is no longer in path.
<adisbladis[m]>
My solution would probably be to use home-manager to manage my prompt settings and put the full store paths of whatever tooling I depend on
ckauhaus has joined #nixos
<adisbladis[m]>
Or just assume that powerline-go is in /run/current-system/sw/bin and hard-code that path
<fgaz>
I already use homeshick to manage my dotfiles, so home-manager is not an option
<{^_^}>
[nixpkgs] @Ma27 opened pull request #40810 → nixos/xsslock: wait until `pgrep xlock` succeeds → https://git.io/vph6c
taylskid has joined #nixos
rauno has quit [Ping timeout: 240 seconds]
ckauhaus has joined #nixos
ckauhaus has quit [Ping timeout: 255 seconds]
broccoli has joined #nixos
<nyanloutre[m]>
I am trying to build a python library (btchip) but I get errors about a 'ui' module (shipped with the python library). I think it's because the build path is not the active path and it's not in the PATH environment variable. What would be the best way to handle this ?
<nyanloutre[m]>
maybe a patch that just add a dot so it search in the same directory ?
maingo has quit [Quit: Connection closed for inactivity]
<LnL>
at what point does this fail?
rauno has joined #nixos
<rauno>
Hi all
<rauno>
Is there a azure image for 17.09 or it should be create manually ?
<nyanloutre[m]>
LnL: I am using buildPythonPackage and it might not be totally clear to me on how it works
<{^_^}>
[nixpkgs] @Pneumaticat opened pull request #40814 → helmfile: init at 0.16.0 → https://git.io/vphPw
<rauno>
ryantm, and i specify the version how ?
<manveru>
rauno: that's based on your nixpkgs version
<rauno>
ah yes, okay
<rauno>
i
<rauno>
i'll retry
<rauno>
ah an another thing
<manveru>
so something like `NIX_PATH=nixpkgs=path-to-17.09:.`
<rauno>
i'm somewhy getting : warning: unknown setting 'signed-binary-caches' and error: cannot open connection to remote store 'daemon': current Nix store schema is version 10, but I only support 7
<rauno>
probbaly some mismatching versions ?!
<manveru>
yeah, seems like a mismatch between nix1/nix2
<rauno>
nix2 is from which nixos version?
<rauno>
17.09 has nix1, right ?
<manveru>
18.03 uses nix2
<manveru>
is there a reason you want to stick with 17.09?
<rauno>
well i have some of the system on 17.09
<manveru>
because you can also selectively use packages from specific nixpkgs versions while keeping the 18.03 base
<{^_^}>
[nixpkgs] @Pneumaticat opened pull request #40815 → yarn: use nodejs 8.x → https://git.io/vphPF
<rauno>
so i could install 18.03 and then switch to my own nixpkgs repo ?
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @euantorano to master « nim: 0.17.2 -> 0.18.0 (#40556) »: https://git.io/vphPp
<rauno>
18.03 didnt install somewhy, i'll try 17.09 for now and probably need to upgrade everything at some point
<manveru>
i usually do this to get things from unstable for example
<LoneTech>
I'd like to install clash-ghc 0.99.1, which is referenced in the nixpkgs git, on my nixos 18.03. adding the channel referred to 0.99 though, and clash-prelude doesn't pass its tests.
<rauno>
by the way, any tips on how to move old environments of nixos to nixops ?
<LoneTech>
stackage2nix also doesn't seem to be installable
jasongrossman has quit [Ping timeout: 240 seconds]
<rauno>
manveru, somewhy im still seeing that nixops reports: setting state version to 16.09
camsbury has joined #nixos
Mateon3 has joined #nixos
ThatPako has joined #nixos
Mateon1 has quit [Ping timeout: 256 seconds]
Mateon3 is now known as Mateon1
<ThatPako>
How do I enable the ibus-daemon thingy at boot?
<ThatPako>
I already have ibus as inputMethod in my i18n
<manveru>
ThatPako: depends on your WM
<manveru>
i have `ibus-daemon --xim &` run after login
<manveru>
so if you stick that into your ~/.xprofile it should work
<ThatPako>
ohhh, I thought nixos would do that automatically
shymega has left #nixos ["WeeChat 2.1"]
<clever>
rauno: the stateversion is based on the image nixops first booted the machine with, and in general, it should only be changed when reinstalling, enless your prepared to deal with the migrations
<rauno>
ahh okay, makes sense then
<infinisil>
,stateVersion
<{^_^}>
Setting stateVersion to the latest release doesn't update anything and can only break your setup at best. If you want to regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually upgraded with the new value
<rauno>
damn i have many questions today :) how can i downgrade nix ?
<rauno>
probably need to downgrade it to nix1 on nixops machine, otherwise it will fail again
<infinisil>
Why?
<rauno>
i think it wont work when i deploy 17.09 with nixops to remote machines, or will it ?
<infinisil>
Nix itself doesn't have much influence on that, it's nixpkgs/nixops that does
<rauno>
will see in any minute if it finishes
<rauno>
previously i had issued with schema versions
ckauhaus has joined #nixos
olto has quit [Read error: Connection reset by peer]
olto has joined #nixos
ckauhaus has quit [Ping timeout: 260 seconds]
coot has joined #nixos
Dezgeg has quit [Ping timeout: 240 seconds]
rauno has quit [Ping timeout: 264 seconds]
emmanuelrosa has joined #nixos
camsbury has quit [Ping timeout: 264 seconds]
ixxie has quit [Ping timeout: 260 seconds]
aarvar has joined #nixos
<{^_^}>
[nixpkgs] @dezgeg opened pull request #40817 → Unify some shell init logic with Nix's nix-profile.sh.in → https://git.io/vphM0
rauno has joined #nixos
acarrico has joined #nixos
thblt has quit [Remote host closed the connection]
ckauhaus has joined #nixos
thblt has joined #nixos
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos
ckauhaus has quit [Remote host closed the connection]
<magnetophon>
My /nix/store/ is way bigger than expected: 62G with only a few generations and nothing in my profile, at least nothing that's old and pulls in a lot. I have optimized and 34G is in .links
alex`` has quit [Quit: WeeChat 2.1]
<magnetophon>
I do have quite a few pkgs installed: 3*GHC, 2*go and a clang being te biggest ones
<clever>
that ghc is needed by the current nixos version, so you cant easily get rid of it
<clever>
try a different copy of ghc
<magnetophon>
though the biggest 5 pkgs are less than 5G, so uninstalling a few isn't gonna change much. ist there a way to check if there is something wrong with the amount of storage i'musing?
<clever>
how many system links exist in /nix/var/nix/profiles/ ?
<magnetophon>
clever: 3
<clever>
magnetophon: when is the last time you ran a GC?
<magnetophon>
today, I did "nix-collect-garbage --delete-older-than 10d"
<clever>
ah
<clever>
one min
<clever>
magnetophon: how many things in `ls -l /nix/var/nix/gcroots/auto` ?
<magnetophon>
clever: 6
<clever>
this all seems pretty low, lets hunt down those 2 other GHC's and see what happens when they are gone
<clever>
you may have simply ran a nix-build in that directory and forgotten to delete result
<clever>
/root/.dot/zprezto/.zprezto/result is from `nixos-rebuild build` you simply forgot to delete result
<magnetophon>
clever: very likely, since I didn't know I was supposed to delete it!
<clever>
nix wont garbage-collect the build until you delete the result link
<emmanuelrosa>
Hi, I've been getting the warning "warning: Nix search path entry '/home/emmanuel/.nix-defexpr/channels' does not exist, ignoring" when using Nix. It's true, "channels" is not there. But I don't know why it's looking for that path.
<bhipple[m]>
Are $out directories meant to be dr-x permissioned? I'm looking at rebuilding texlive-2017, and I see it's trying to patch $out/some/script.sh, but failing to rm and replace it because both the file and dir are read-only.
<bhipple[m]>
If I try to chmod u+rwx the dir and file, it fails to do so. Any recommendations?
<magnetophon>
clever: thanks! I really should read the manual one of these days...
<clever>
bhipple[m]: that tends to be a result of copying files from an input, you just need to chmod -R +w $out
<clever>
emmanuelrosa: thats safe to ignore, its just a $NIX_PATH entry looking for anything you may have added with nix-channel
<deanman>
Hey guys, is it normal after a nix install to require a `chmod u+x .nix-profile/etc/profile.d/nix.sh` to be able to use the CLI tools ?
<bhipple[m]>
clever: hmm that's what I thought, but `chmod +w $out/specific/file/i/need` fails; I'll try the `-R` and see if that helps
<clever>
bhipple[m]: you have to also +w the directory the file is in
<bhipple[m]>
(building in NixOS with sandboxes enabled)
<clever>
and the directory that directory is in
<clever>
and the directory that directory is in
<clever>
and the directory that directory is in
<clever>
in reverse order
<bhipple[m]>
Ahh, I did the first two but not the rest. That's probably it :D
<bhipple[m]>
Thanks!
<clever>
chmod -R is recursive, so you just point it at the root and it does it all
<obadz>
gchristensen: got a good rust workflow on nix? with atom+rls maybe?
balsoft has joined #nixos
<MichaelRaskin>
Is it the first time I see the same line repeated three times in a row in IRC, and actually all three copies are necessary?
numerobi1 has joined #nixos
<bhipple[m]>
deanman: It should "just work" without needing a chmod on NixOS. `nix.sh` exports some env vars (PATH) to reach the daemon and tools but on NixOS I think it should be system installed, no?
<clever>
probably, check what each result points to and decide if you want to keep it or not
xy2_ has quit [Ping timeout: 256 seconds]
balsoft has quit [Quit: balsoft]
<crystalgamma[m]>
I'm currently trying to bootstrap NixOS on POWER, and to do so I built Nix on Ubuntu. When I now invoke any nix-* program I get the following error:
<crystalgamma[m]>
terminate called after throwing an instance of 'nix::Error'
<crystalgamma[m]>
what(): not an absolute path: 'yes'
<crystalgamma[m]>
any idea where that might come from?
balsoft has joined #nixos
<clever>
crystalgamma[m]: try running it under strace to see what its doing, or add -vvvv to the nix command
<sphalerite>
I want to patch dillo so that it will find the SSL certs, what path should I make it look in? It currently looks in /etc/ssl/certs which doesn't seem to exist on nixos.
iyzsong has quit [Read error: Connection reset by peer]
<Dezgeg>
I think you need an equals sign somewhere
<Dezgeg>
--with-store-dir=~/nix-store
<clever>
Dezgeg: i also suspect the state and log dir have to be set correctly
<Dezgeg>
crystalgamma[m]: ^
<crystalgamma[m]>
I'll try that :)
<Dezgeg>
I would add them to --build= and --host= as well
<sphalerite>
I don't think autotools is picky about that
<Dezgeg>
though I'm not sure why you'd need them anyway if you're not cross-compiling
<Dezgeg>
IIRC it is picky
griff_ has joined #nixos
<Dezgeg>
I'm quite sure it interpreted "--with-store-dir" as "--with-store-dir=yes"
<clever>
ah, i can see how that would happen
endformationage has joined #nixos
<crystalgamma[m]>
I used --build and --host because those prefixes are otherwise empty and so it could not detect the targets by itself
<Dezgeg>
huh
magnetophon has quit [Read error: Connection reset by peer]
<sphalerite>
POWER is fairly obscure :p
<crystalgamma[m]>
I don't think that is an architecture problem, just an OS problem :)
the_real_plumps has joined #nixos
<crystalgamma[m]>
with the new ./configure args I suddenly get 'recipe for target 'doc/manual/manual.xmli' failed' on make
baconicsynergy has joined #nixos
AstroBadger has quit [Remote host closed the connection]
<manveru>
clever: btw, i got openssl to build static only, had to change makeStaticLibraries to pass only a flag called "no-shared" :)
<manveru>
i wonder how we'd teach nixpkgs about such thing
<manveru>
+s
<clever>
manveru: id just make a normal override on openssl, to do that
<makefu>
anybody knows the current status of the nodejs modules? i tried node-red but it fails to build due to `node-pre-gyp` not being available , full log: https://paste.krebsco.de/btYjVms2/+inline
<clever>
makefu: have you tried yarn2nix?
orivej has joined #nixos
<manveru>
clever: like adding a static output?
<manveru>
or a derivation flag
<clever>
manveru: or just apply the same override your modified makeStaticLibraries was doing
<Dezgeg>
I guess the openssl derivation itself should check for dontDisableStatic
<clever>
but having a static output on the derivation in nixpkgs would help
<clever>
then its available in the binary cache, and people can easily choose to use it
<Dezgeg>
every user needs to manually put openssl.static to buildInputs then, though
<Dezgeg>
so I'm not really sure what's the best way
<{^_^}>
[nix] @dezgeg opened pull request #2170 → Expand tilde to home directory in NIX_PATH → https://git.io/vphdp
implicitdiff has joined #nixos
<sphalerite>
so netsurf is its own little package set with some particularities — it's built with netsurf = recurseIntoAttrs (let callPackage = newScope pkgs.netsurf; in rec { … };
nuncanada2 has joined #nixos
<sphalerite>
there's no way to get into the fixpoint introduced by that rec, is there? I want to override the ui attr :/
<nikivi>
I get this error `Missing write access to /nix/store/lb3c2bs4hphvh0sg3zdn8pz5kqxyd3ll-nodejs-9.11.1/lib/node_modules` when trying to install a tool
<clever>
and -i -g wont ever work in nix
<nikivi>
clever what do you mean?
<clever>
nikivi: it tries to install into the nix store, which is immutable
<nikivi>
so how do I install node modules globally?
<nikivi>
node2nix?
<clever>
package them properly with nix
<nikivi>
I hope it's automatable otherwise it seems tedious to do it for all global npm modules
<phry>
I'm just intalling a new machine and I'm having problems with EFI. I have a GPT table and a partition (second, first was already taken) of type EF00 with a vfat partition on it that I mounted as /boot.
<phry>
My BIOS won't recognize the hdd as EFI-bootable. am I missing something?
<phry>
(also, the nixos installation created an EFI folder on said disk... eveything *looks* fine...)
<{^_^}>
[nixpkgs] @ElvishJerricco opened pull request #40824 → Dont test enclosed exceptions → https://git.io/vphAq
<phry>
though I have to say that the contents seem a bit different from my other PC's /boot/EFI... it contains only a folder named "grub" with a "grubx64.efi"
<clever>
phry: what does efibootmgr say?
<clever>
[root@system76:~]# efibootmgr -v
<clever>
BootCurrent: 0003
<clever>
Boot0003* UEFI OS HD(1,GPT,27c99b08-455d-4dfe-a44f-6150cbc09ef8,0x800,0x100000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
<leotaku>
infinisil: thx
iqubic has quit [Remote host closed the connection]
baconicsynergy has quit [Quit: Leaving]
<clever>
phry: the uuid of the FS and the path to the .efi has to be configured in the bios, using tools like efibootmgr
<phry>
clever: isn't that usually done by nixos-install?
<clever>
phry: yeah
<clever>
phry: but you can also use efiboormgr to view the config, to see if its set right
<Myrl-saki>
nix-repl> let f = ({x, y}: { inherit x; inherit y; }); updateFunction = f: xs: { ... }@args: (f args) // xs; in updateFunction f {z = 5;} {x = 1; y = 2;}
<phry>
it lists some drives, but only the "Built-in EFI Shell" and my USB stick are marked with a *, which I guess tands for EFI-enabled
<Myrl-saki>
Is `updateFunction` in the stdlib?
<clever>
phry: look at the BootOrder field to see what is enabled
<Myrl-saki>
I tried using `f // {x = y;}` and it doesn't work, as expected.
<phry>
hard drives are at part 4 in the boot order, all hard drives as seemingly one entry
<leotaku>
The nixpkgs Rust guide tells me that I should first build a Rust package with an incorrect sha256 and then get the correct one from the error. However calling the any package without its correct cargo sha leads to Rust/Cargo erroring and not showing me the correct sha. What am I doing wrong?
<phry>
I just noticed that my boot config looks completly differnet from my ususal boot config.. I think I'll have to tinker there
<clever>
leotaku: can you pastebin the entire output when the hash is wrong?
<phry>
clever: comparing to my other config, I did not have boot.loader.canTouchEfiVariables set to true - but after setting it to true and doing another nixos-install, the output of efibootmgr -v still looks the same. am I on the right track or is this a cold trail?
<clever>
leotaku: that error doesnt have anything to do with the hash being right or wrong
<infinisil>
clever: leotaku: I'm having the same issue with building alacritty
<infinisil>
Rust broken again :(
<clever>
phry: that is the right track
<infinisil>
I'm using latest nixos-unstable
pxc1 has joined #nixos
<phry>
clever: should that output look differently after nixos-install or just at the next reboot?
<clever>
phry: after nixos-install it should update
<leotaku>
clever: well, it only happens when the hash is wrong though, thats why I'm confused
<gchristensen>
obadz: I just use cargo until it is time to package it
<leotaku>
infinisil: I'm also on unstable
<phry>
clever: then I'm still missing a piece to my puzzle :/
<phry>
I tried boot.loader.systemd-boot instead of grub2, but that fails with "Failed to create EFI Boot variable entry: No such file or directory". Googling reveals that that might happen if not booted from EFI, but I have /sys/firmware/efi and am booting in UEFI-only mode so that should not be the case :/
<leotaku>
Any chance I can get a correct hash for cargo without having to build the package?
<leotaku>
As I have said everything works as long as that hash is correct.
<fragamus>
hey I need the simplest way to get haskell platform on nixos - nothing fancy needed
<fragamus>
just a way to compile and run a bit of haskell
blankhart has quit [Quit: WeeChat 1.9.1]
ixxie has quit [Ping timeout: 256 seconds]
<infinisil>
leotaku: Your hash is probably wrong then, that doesn't make sense
adamt has joined #nixos
<infinisil>
leotaku: But now I'm building alacritty with #40808 applied and it seems to work, this should also fix your ripgrep build
<phry>
clever: solved it by manually creating the entry *yay* - aparrently, my 18.03 iso was outdated and that bug was known and already fixed. didn't even know that there were rolling iso's (although it makes sense)
<adamt>
Hiya. I'm trying to build custom netbootable images. I see that i can generate the initrd with system.build.netbootRamdisk and squashfs with system.build.squashfsStore, but what can i use to generate a file with the kernel?
<{^_^}>
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
<infinisil>
,help leotaku
<{^_^}>
leotaku: 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
<clever>
adamt: rescue_boot just sticks the "netboot" kernel+initrd into /boot and gives them a menu option
<catern>
hey #nixos, what is the best way to package things in Rust these days?
<infinisil>
So if somebody's gonna ask why some rust package fails to build in latest nixos-unstable, I can just ,rust them
<Unode>
clever: that particular use-case sounds more like a bug, but yeah, I know what you mean.
<leotaku>
infinisil: oh, neat
<catern>
a way to package things in Rust that is acceptable in Nixpkgs, that is
<Unode>
clever: any clue if it's possible to change that without forcing a login/logout or system reboot?
<clever>
Unode: yeah, cache-miss combined with async loading of fonts, causing it to load the same font 2000 times
<adamt>
clever: Thanks, i'm looking at things now, but I can't keep up with all your suggestions. ^^
<clever>
Unode: its only set when you drop root to your user, so you need to either logout and back in, or "exec sudo -i" then "exec sudo -u clever -i" which re-applies what your user should have
<clever>
Unode: but i couldnt get chrome to run in that situation
<clever>
or -I nixpkgs=https://github.com/nixos/nixpkgs/archive/8bce347f02f6bd606ec1822f0ba9b94d7f139071.tar.gz
asuryawanshi has joined #nixos
<catern>
infinisil: okay, so I guess people like carnix? I'll just use carnix then
<Unode>
clever: the sudo trick only affects new shells. Sounds like a reboot/logout is in order.
<leotaku>
clever: ok, thats straightforward. I forgot you can just point the path to an archive thx
<clever>
Unode: yeah
<adamt>
clever: But yeah, I know how netbooting works, i'm "just" trying to migrate our current setup for creating unattended installers (as a live iso) to creating everything needed for use with netboot :-)
pxc1 has quit [Ping timeout: 265 seconds]
<clever>
adamt: my netboot_server is probably the best example then, since it also shows how to configure it under nixos, and includes justdoit
<clever>
adamt: justdoit is a script i wrote for helping with installs, and with a slight tweak, can be an unattended installer
<clever>
adamt: you literally run "justdoit" as root, and your done
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adamt>
clever: I'll look forward to comparing your method to our for doing it. Currently we build a live iso that contain a derivation that is nixos-install'ed into the target system at boot. It works, but it's a bit hackish. :-)
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<adamt>
drakonis: You need to be violent when managing many hosts. You can't afford to cuddle with the cattle. :p
<clever>
adamt: of note, you can replace boot.php with any server-side scripting of your choice, lookup the mac addr in a database, then decide if it should boot the local hdd or boot nixos netboot
<adamt>
I'm a bit annoyed with the ipxe guys, the haven't tagged anything since 8 years back, when it was still called gPXE, and the current master fails to build. *mumble mumble.*
mbrgm has quit [Ping timeout: 240 seconds]
<gchristensen>
obadz: here is a simple one, if the system has less than 8G memory, abort startup of the `mass-rebuilder` binary
<gchristensen>
adamt: but master is always releasable, says them :)
<adamt>
clever: I'll look at the history of this channel if I end up needing it. :P
<drakonis>
is this module not available?
<drakonis>
hmm
<drakonis>
woops it isn't available
<drakonis>
i wonder why
<obadz>
gchristensen: lemme have a look
<adamt>
gchristensen: Yeah, well, maybe they don't consider it a release critical bug if the code doesn't compile. :p
<gchristensen>
:) I agree, I too wish it was tagged.
leotaku has quit [Ping timeout: 260 seconds]
<drakonis>
hmm, is it explained how to pull from a local repository?
mbrgm has joined #nixos
<srhb>
drakonis: See the log for 52f21069d0495b4ea216909f9624d12cffe55fdf to see why it was disabled
<drakonis>
ie: i'm managing a copy of the main nixpkgs repository and i still want to pull from the cache
asuryawanshi has quit [Ping timeout: 268 seconds]
<drakonis>
ah i see
<adamt>
srhb: Btw., remember we mentioned nixdeploy using the wrong pkg-set? Jth found the same bug in the isomaker. :p
<drakonis>
nobody fixed that yet?
<srhb>
drakonis: If you don't do anything special with the very lowest dependencies in the trees, you'll get cache benefits no matter from whence you pull the nixpkgs source.
<srhb>
drakonis: Nope.
<srhb>
adamt: I mentioned that!
<srhb>
adamt: So refound is the right word :P
<srhb>
adamt: But ugh.
<adamt>
srhb: It doesn't count! People don't have to remember anything when being social and drinking. :-)
<srhb>
Fair, fair...
<drakonis>
hmm, i can set it as a channel, right?
<srhb>
drakonis: I... Don't think so?
<srhb>
drakonis: But you can just plop it on your NIX_PATH with nixpkgs=/path/to/checkout
<srhb>
drakonis: And then git rid of your channelss.
ckauhaus has joined #nixos
<obadz>
gchristensen: and you set OPENSSL_LIB_DIR / OPENSSL_INCLUDE_DIR etc ?
<drakonis>
hmm
<drakonis>
its not permanent is it?
<gchristensen>
obadz: no, just add openssl.dev and pkgconfig to buildInputs of my shell.nix
<srhb>
drakonis: Depends how you do it.
<srhb>
drakonis: I have mine set in nix.nixPath, so for me it's quite permanent.
<adamt>
srhb: Do you mind if we take over https://github.com/NixOS/nixpkgs/pull/31123 to get it moving again? Or do your current employer plan on migration to this wonderful piece of software in the future? :P
bobvanderlinden_ has joined #nixos
fearlessKim[m] has joined #nixos
joh[m] has joined #nixos
<srhb>
adamt: Haha! I already asked Erik to please take it off my hands. I'm not going to touch it. :P
<srhb>
With a six foot... etc.
<srhb>
Oh wait, it's a five foot pole, six feet under. Idioms, man...
timclassic has joined #nixos
oknf[m] has joined #nixos
dywedir[m] has joined #nixos
hedning[m] has joined #nixos
y0no[m] has joined #nixos
<adamt>
srhb: I'm pretty sure he got a sudden unset of alzheimers that made him forget all about that.
<adamt>
srhb: It's a 10 foot pole
<srhb>
How surprising!
<srhb>
Damn.
<srhb>
Thanks :P
<adamt>
srhb: And 11 foot if playing munchkin. :P
cornu[m] has joined #nixos
Drakonis[m] has joined #nixos
card[m] has joined #nixos
aniketd[m] has joined #nixos
<adamt>
srhb: What about the PR that moves gitlab secrets out of the nix store? Did Erik forget about that as well?
<srhb>
Ah, no, that's me essentially giving up on getting it merged because it's so fugly.
Deleh[m] has joined #nixos
uvnikita[m] has joined #nixos
neecro[m] has joined #nixos
Bugworm[m] has joined #nixos
jack[m] has joined #nixos
comphez[m] has joined #nixos
<srhb>
I've rebased it too many times by now...
<adamt>
srhb: Ok, we'll figure out what to do then, since we obviously need the functionality one way or the other.
kainospur[m] has joined #nixos
YegorTimoshenko[ has joined #nixos
<srhb>
It should be a more or less clean rebase, so you CAN just use it.
edef[m] has joined #nixos
thra11[m] has joined #nixos
johnhamelink[m] has joined #nixos
AlanPearce[m] has joined #nixos
nyanloutre[m] has joined #nixos
Obscurity[m] has joined #nixos
crystalgamma[m] has joined #nixos
reactormonk[m] has joined #nixos
nh2[m] has joined #nixos
fogbugz123[m] has joined #nixos
aiyubkhan[m] has joined #nixos
<srhb>
I've been fiddling with using "external stores" for secrets, but I've got nothing ready to show yet.
<srhb>
I don't think the encryption story is likely to move soon.
edef[m] has quit [*.net *.split]
hedning[m] has quit [*.net *.split]
dotlambda has quit [*.net *.split]
jD91mZM2 has quit [*.net *.split]
thblt has quit [*.net *.split]
b has quit [*.net *.split]
kreisys has quit [*.net *.split]
hl has quit [*.net *.split]
jameshjacksonjr[ has quit [*.net *.split]
primeos_ has quit [*.net *.split]
Maxdamantus has quit [*.net *.split]
troydm has quit [*.net *.split]
aw has quit [*.net *.split]
spacefrogg has quit [*.net *.split]
MarcWeber has quit [*.net *.split]
Mic92_ has quit [*.net *.split]
commander has quit [*.net *.split]
hydraz has quit [*.net *.split]
seanparsons has quit [*.net *.split]
fogbugz has quit [*.net *.split]
liff has quit [*.net *.split]
cruxeternus has quit [*.net *.split]
admin[m]3 has quit [*.net *.split]
saschaveres[m] has quit [*.net *.split]
gudea[m] has quit [*.net *.split]
nickdshsadhkas[m has quit [*.net *.split]
patrl[m] has quit [*.net *.split]
kitten[m] has quit [*.net *.split]
hw9891[m] has quit [*.net *.split]
dylanjust[m] has quit [*.net *.split]
techtangents[m] has quit [*.net *.split]
bionicmac[m] has quit [*.net *.split]
nocent has quit [*.net *.split]
spawnthink[m] has quit [*.net *.split]
mirlur[m] has quit [*.net *.split]
Elephant454[m] has quit [*.net *.split]
nmikhailov[m]1 has quit [*.net *.split]
leons has quit [*.net *.split]
lycium[m] has quit [*.net *.split]
ConorCurry[m] has quit [*.net *.split]
bbigras-- has quit [*.net *.split]
primeos[m] has quit [*.net *.split]
herzmeister[m] has quit [*.net *.split]
tilpner has quit [*.net *.split]
bollu has quit [*.net *.split]
suvash_away has quit [*.net *.split]
fogbugz has joined #nixos
commander has joined #nixos
MarcWeber has joined #nixos
cruxeternus has joined #nixos
Maxdamantus has joined #nixos
primeos_ has joined #nixos
<adamt>
srhb: Feel free to share any progress if you need testers. :-)
spacefrogg has joined #nixos
Xal has quit [Ping timeout: 240 seconds]
dotlambda has joined #nixos
<srhb>
Will do.
troydm has joined #nixos
Xal has joined #nixos
liff has joined #nixos
hydraz has joined #nixos
hydraz has quit [Changing host]
hydraz has joined #nixos
Mic92_ has joined #nixos
jD91mZM2 has joined #nixos
aw has joined #nixos
bollu has joined #nixos
suvash_away has joined #nixos
<srhb>
At the moment I'm just happy I don't have to deal with secrets at all. :P
<srhb>
Knock on wood etc.
b has joined #nixos
smichel17 has joined #nixos
thblt has joined #nixos
tilpner has joined #nixos
M-Dan has joined #nixos
Pneumaticat has joined #nixos
seanparsons has joined #nixos
Rick[29SMPittsbu has joined #nixos
peel[m] has joined #nixos
devr[m] has joined #nixos
octalsrc[m] has joined #nixos
regulus_ has quit [Ping timeout: 240 seconds]
joncfoo has quit [Ping timeout: 240 seconds]
jmorriss[m] has joined #nixos
demyan[m] has joined #nixos
regulus_ has joined #nixos
joncfoo has joined #nixos
smichel17 has quit [Client Quit]
Minijackson[m] has joined #nixos
spawnthink[m] has joined #nixos
serentty[m] has joined #nixos
ConorCurry[m] has joined #nixos
attero has joined #nixos
lycium[m] has joined #nixos
grumblr has joined #nixos
dylanjust[m] has joined #nixos
grumble has quit [Quit: Just imagine, if we found aliens who have their own version of the internet, they'd probably have some hella dank memes to share.]
grumblr is now known as grumble
admin[m]3 has joined #nixos
M-manveru has joined #nixos
leons has joined #nixos
SamuelEvans-Powe has joined #nixos
kitten[m] has joined #nixos
ProofTechnique[m has joined #nixos
Elephant454[m] has joined #nixos
patrl[m] has joined #nixos
saschaveres[m] has joined #nixos
nickdshsadhkas[m has joined #nixos
nmikhailov[m]1 has joined #nixos
gudea[m] has joined #nixos
techtangents[m] has joined #nixos
mirlur[m] has joined #nixos
nocent has joined #nixos
hedning[m] has joined #nixos
hw9891[m] has joined #nixos
bbigras-- has joined #nixos
<{^_^}>
[nixpkgs] @dotlambda opened pull request #40831 → youtube-dl: use toPythonApplication → https://git.io/vpjeK
edef[m] has joined #nixos
asp_ has joined #nixos
bionicmac[m] has joined #nixos
aaronc[m] has joined #nixos
hl has joined #nixos
primeos[m] has joined #nixos
herzmeister[m] has joined #nixos
jameshjacksonjr[ has joined #nixos
davidar has joined #nixos
dispanser has joined #nixos
<adamt>
srhb: Seems like somebody else already upgraded the zabbix client (https://github.com/NixOS/nixpkgs/pull/39925) -- I can't say I'm sad about missing out on the opportunity. :P
pi3r has joined #nixos
leotaku has joined #nixos
<srhb>
adamt: Yes, they sent me an email to ask about it. Zabbix the package is super simple to deal with. The module should be rewritten. To be fair it's probably super easy as well. It's a pretty forgiving C-application. But then there's the PHP...
<srhb>
Which I honestly don't know enough about to really know what the Right Way^tm is.
<srhb>
My knowledge is like 17 years out of date for that purpose. :P
<adamt>
srhb: I'm sure you could quit haskell and start doing php work instead. It's practically the same thing, i've heard.
phreedom has quit [Remote host closed the connection]
<adamt>
srhb: But yeah, the module (and default version) really need to be updated in master before 18.09, so we can get rid of all that zabbix < 3.x cruft.
<{^_^}>
[nixpkgs] @xeji pushed commit from @Ma27 to master « nixos/xsslock: wait until `pgrep xlock` succeeds (#40810) »: https://git.io/vpjvf
<srhb>
adamt: Agreed. That's also a reason I postponed it, 2.x was losing support (finally) :-)
pi3r has quit [Ping timeout: 245 seconds]
<srhb>
Though to be fair there's no active maintainer on the module currently, so anything goes.
jD91mZM2 has quit [Quit: WeeChat 2.0]
<adamt>
srhb: But if rewriting the module for 18.09, making the default version something new... Wouldn't it be required to also provide a way of migrating from the current 1.8 to 3.x?
<dispanser>
quick question: I need to execute code in powerManagement.powerUpCommands that depends on awk, but it's not in the path at that point. Any best practices?
<srhb>
adamt: Zabbix will self migrate the database stuff (as long as you're using postgres) so that's a non-concern. The only non-trivial bit is making the web interface work. Eg. server stuff.
<srhb>
adamt: An entirely different approach would be to nuke the server from orbit, or at least factor the agent module out entirely. That's the really important bit anyway.
<dispanser>
currenctly, my first line in powerUpCommands is 'export PATH=$PATH:${pkgs.gawk}/bin'
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « trackballs: 1.3.0 -> 1.3.1 (#40829) »: https://git.io/vpjvl
<adamt>
srhb: It's actually quite impressive if v3.x can migrate a v1.8 database without problems.
<srhb>
Honestly they do the core work really, really carefully.
Have-Quick has quit [Quit: Have-Quick]
<srhb>
But if I were you (plural) I'd focus on the agent. It's not like you're using the server.
<srhb>
It is handy for testing the agent though...
<adamt>
It's also kinda halfassed to only do the agent
<srhb>
Well, don't let me discourage quality if you're that conscientious. :D
<adamt>
What's so hard about the PHP-part? Integrating with the system apache?
<srhb>
I don't think it's really *hard*, I just don't feel comfortable opening that can of worms without more knowledge of how to do "modern php"
<srhb>
adamt: I think the old module does some semi-scary symlink stuff to the php root, but meh, it's probably fine.
Maxdamantus has quit [Ping timeout: 268 seconds]
<srhb>
(as in, apache just points to some store path that itself is a symlink to another store path)
<adamt>
It's really neat that modules try to use the system apache, and really clean in an old-school kind of way. Personally I would just have spun up an extra webserver of sorts on a new port, making it standalone.
leotaku has quit [Ping timeout: 245 seconds]
<srhb>
Yeah, you're right. I hadn't thought of it like that.
<adamt>
Now that zabbix probably isn't used that much it might be an acceptable solution, but I imagine a change like that in general might cause some sort of uproar.
vaninwagen has joined #nixos
<adamt>
One could go a step further and turn all those modules into using standalone servers, and then just using something like nginx to reverse proxy to them. It would probably be much easier to deal with on all levels, but obviously also require more ressources on the system.
<srhb>
adamt: I think that's a quite viable approach.
<srhb>
adamt: And I'd feel much safer doing that, because then I don't have to worry about interactions, and the nginx module is extremely extensible wrt. proxying (though still relies on a global instance)
<obadz>
gchristensen: looks like we don't have nightly in nixpkgs?
<gchristensen>
obadz: no idea, I've never used nightly
<srhb>
obadz: rust nightly? You can use the mozilla overlay for that iirc.
<obadz>
atom-ide-rust requires rls-preview which requires nightly… one of these nix rabbit holes that never ends…
<adamt>
srhb: Yeah, the proxy would still be global. We could make it on by default, but easy to disable. But yeah, especially not worrying about interactions, or several modules using the same access logs, or w/e, would be nice.
<srhb>
Speaking of rust, does anyone know how easy/difficult it is to link against musl instead of glibc for recent versions?
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos
phreedom has quit [*.net *.split]
klntsky has quit [*.net *.split]
oida has quit [*.net *.split]
ixxie has joined #nixos
katyucha has joined #nixos
phreedom has joined #nixos
ckauhaus has quit [Ping timeout: 260 seconds]
<adamt>
If i try to just build the netboot attribute of nixos/release.nix, it fails because it can't build it for aarch64-linux. How do i make it build it for only x86_64-linux?
<{^_^}>
[nixpkgs] @xeji pushed commit from @peterhoeg to master « 0ad: 0.0.22 -> 0.0.23 (#40807) »: https://git.io/vpjf7
<clever>
adamt: what helps to figure this out, run "nix repl release.nix" then eval netboot
<clever>
and you should see its a set containing every arch
ixxie has quit [Ping timeout: 245 seconds]
<adamt>
gchristensen: Yeah, maybe. :-) But the docs would then have to be updated each time a new arch is added. Could of course add a tip like what clever just said
acarrico has quit [Ping timeout: 260 seconds]
<ij>
How much time would it take to build all the packages of some desktop system?
oida has joined #nixos
<MichaelRaskin>
system as in «x86_64-linux»?
<MichaelRaskin>
Or a configuration with KDE and LibreOffice and Chromium?
<adamt>
Regarding the netboot-attribute creating everything needed. I can see a squashfs is built, but i can't figure out where it ends up. The kernel and initrd ends up in the result-dir, but not the squashfs, and it isn't referred in the ipxe script.
<MichaelRaskin>
(in both cases: too long)
<MichaelRaskin>
A few weeks on a single core even for the second one. (Multicore, and maybe even multiple builder boxes, can help)
<gchristensen>
adamt: lucky you, I've been knee deep in that for a week
<Unode>
ij: depends how fast is your machine. but hours to days. less than a week unless your machine is 10+ years old in which case how long it takes might be the least of your concerns :)
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « worker: 3.15.0 -> 3.15.1 (#40820) »: https://git.io/vpjJW
<ij>
Unode, No, I haven't seen any of that. Just trying to get some sense of it.
<MichaelRaskin>
And single-core build is a pessimistic case, but hard to say waht is a reasonable power level to expect
<Unode>
ij: it depends what you want to have on the system. Obviously the more stuff the longer it takes to compile. Then some packages are particularly tough. For instance libreoffice alone can take 3+ hours.
aszlig has joined #nixos
<nixosnewbie>
hi all, I got my machine in a weird state and looking for pointers how to debug. when I run nixos-rebuild switch, I get: rm: cannot remove '/nix/store/9sj6qp97pi3gfdawg92xs94w4lpqmp4k-postgresql-and-plugins-10.1/bin/pg_config': Permission denied
<nixosnewbie>
builder for '/nix/store/jw4cjhgcjsv7hp91vmyshl51pvqd35d5-postgresql-and-plugins-10.1.drv' failed with exit code 1
<adamt>
Just don't try to build openoffice on a host with 256MB of ram, and a disk doing ~20MBps. Oh those lovely gentoo days in my youth.
Mateon1 has quit [Ping timeout: 260 seconds]
<Unode>
adamt: back then libreoffice wasn't as bad as it's today :). Speaking only about compilation time, not features.
<clever>
adamt: i once had trouble linking firefox on gentoo, ld alone needed > 3gig of ram, and it was a 32bit machine
acarrico has joined #nixos
<ij>
Unode, Cool. I would like to see more build times.
<Unode>
doesn't hydra provide this info?
<ij>
i was gonna…
<MichaelRaskin>
Hydra publishes some data, but interpreting it is also an art
<ij>
Why are the release-18.03:nixpkgs-chromium builds on hydra so fast? (9secs for most)
<MichaelRaskin>
Because they have zero actual build steps?
<Unode>
massive caches under it I guess.
<adamt>
gh0st[m]: I see. my initrd is also 9MB larger than the squashfs i got, so you're totally right.
<MichaelRaskin>
Or maybe an update to wrapper
<LnL>
hydra counts per job, so it might have already been built by another
<adamt>
clever: Ouch.
<nixosnewbie>
any reason that running nixos-rebuild switch should not be able to rm a previous package ?
<Unode>
nixosnewbie: what filesystem format?
<clever>
nixosnewbie: its not a previous package that its trying to remove
<nixosnewbie>
ext4, pretty vaniilla install using the GUI .iso downloaded from nixos
<gchristensen>
for one building should never _ever_ touch existing packages
<ij>
LnL, So probably not an easy job to find the right/long one?
<nixosnewbie>
clever, thanks, so how can I troubleshoot it ?
<LnL>
nixosnewbie: I'm pretty sure it's just trying to remove something in the new package not the original one
<clever>
nixosnewbie: need more context around the error
<Unode>
ij: the best estimate you'll get is hours to days. Some packages are outliers (libreoffice, chrome(ium), firefox, thunderbird, pandoc (due to dependencies), ...)
aarvar has quit [Ping timeout: 260 seconds]
<ij>
okay, sounds good
<LnL>
ij: yeah, have you looked at the build steps?
<Unode>
ij: but if you want a minimal X (without a fancy window manager) you should be able to get it under a day.
<nixosnewbie>
clever, how to get more detail to troubleshoot this?
<Unode>
I'd say...
<clever>
nixosnewbie: pastebin more of the output around the error
<adamt>
ij: Also reduce the number of kernel modules that are build, building the default nixos kernel takes ages because it includes almost everything.
<nikivi>
And it says I should install https://github.com/svanderburg/node2nix. However it's really weird because I can't install node2nix because it's only installable through npm
<nikivi>
Which I can't use because it messes with Nix
<nixosnewbie>
clever: plain postgres worked, so now I will check on the plugins
<nikivi>
What do you use to search both stable and unstable packages? I use https://nixos.org/nixos/packages.html now but didn't know it doesn't search all available packages
<ij>
tilpner, That means it's soon about to be in a release?
cnidario has joined #nixos
<tilpner>
nikivi - I use zsh tab completion and sometimes ripgrep on nixpkgs master
<tilpner>
ij - Not really, unless someone backports it
<ij>
not the 18.03 release, but *a* release in future
<tilpner>
ij - You can use it on a stable release today, as you can mix channels freely
<tilpner>
But I wouldn't call 18.09 "soon", so no
<nikivi>
I just grepped through nixpkgs with ripgrep and `nodePackages_6_x.create-react-app` as query and got 0 matches
<nikivi>
or unstable stuff is not under master
<adamt>
"boss, i'm blocked until 18.09 is released, so i'm going on a long vacation" :-)
<tilpner>
nikivi - You want to search for just create-react-app
<nikivi>
how do I install it with Nix? I tried: `nix-env -iA nixpkgs.nodePackages_6_x.create-react-app.name` and that failed
<clever>
nixosnewbie: what name does nix-channel --list say the channel is?
<tilpner>
As I said, it's on nixos-unstable. Are you using that channel?
<tilpner>
And the .name part was for the nixbot, which somemhow ignored me :/
<{^_^}>
[nixpkgs] @xeji merged pull request #40749 → vim_configurable: unpin from old lua 5.1 → https://git.io/vppK5
<tilpner>
(Leave it off for installation))
<{^_^}>
[nixpkgs] @xeji pushed commit from @bhipple to master « vim_configurable: unpin from old lua 5.1 (#40749) »: https://git.io/vpjUK
<nikivi>
tilpner I have no channels setup I believe. I just installed Nix with the provided bash script and installed commands I needed with `nix-env -iA nixpkgs.`
<clever>
nikivi: that sets up channels automatically
balsoft has quit [Read error: Connection reset by peer]
<nikivi>
but for that I had to remove Nix and install it again it said
<clever>
nikivi: as root, do nix-channel --update
balsoft has joined #nixos
<nixosnewbie>
but that had gotten messed up from my experimenting, and I had to reset it. so I am sure I gummed up a few things. at some point my NIX_PATH was blank, so that was fun
<nikivi>
I got `warning: name collision in input Nix expressions, skipping '/Users/nikivi/.nix-defexpr/channels_root/darwin'`, hope that's okay
<nikivi>
and another `warning: name collision in input Nix expressions, skipping '/Users/nikivi/.nix-defexpr/channels_root/nixpkgs'`
<clever>
nikivi: you added the channel nixpkgs twice
<nikivi>
but it did install it, thanks
<LnL>
that means you both have a nixpkgs channel for root and your current user
emmanuelrosa has quit [Quit: Leaving.]
<steell>
anyone know how to get fetchFromGithub fetch from a specific branch? not sure how to convert the branchname to the "rev" argument / if that's the right thing to do
<nikivi>
LnL but I have not explicitly did anything to set that up I believe, is this normal?
<nixosnewbie>
clever: what do I do if I see a lot of symlink collisions. e.g. collision between `/nix/store/mpkggbg4r6hvp7i1firbyr9xmi37vp28-postgresql-9.6.6-man/share/man/man7/ALTER_TYPE.7.gz' and `/nix/store/aqcnmzyfavifmmk9f9dm390klcwq083l-postgresql-10.1-man/share/man/man7/ALTER_TYPE.7.gz'
<LnL>
fetching a branch isn't stable
<LnL>
but you can use a commit that's not on master
<nixosnewbie>
maybe I had timescaledb also uncommmented and that confliected with postgresql. but I would think not, as it is an extension to postgresql
asuryawanshi has quit [Ping timeout: 260 seconds]
<nixosnewbie>
no, even when I comment out timescaledb and comment out some other random package, leaving only postgresql, I still get the collision with "old" postgresql 9.6.6 and postgresql 10.1
<clever>
nixosnewbie: dont add postgress to the systemPackages
<nixosnewbie>
I'd like to just get rid of all the 9.6.6 postgres files, but the nix store is read only
<clever>
nixosnewbie: line 34 installs one version, and line 62 installs a second version
<clever>
nixosnewbie: and your only going to break things if you try to manually delete files
<nixosnewbie>
clever: ahhhh. so services.postgresql ... package = pkgs.postgresql100 actually installs a package.
<clever>
nixosnewbie: its the .enable that actually installs it
<clever>
and the .enable installs the version you put in package
<nixosnewbie>
clever: got it! Thanks, this is definitely important. not what I expected, and somehow I had overlooked that info if it even existed in the documentation
<nixosnewbie>
what about postgresql extensions like timescaledb postgis etc. do they go in sytemPackages ?
<clever>
nixosnewbie: i'm guessing they have to go into plugins, and the service will install the combined set
drummeur has joined #nixos
<nixosnewbie>
clever: ok makes sense. this at least gives me a better direction to try things out.
<nixosnewbie>
and at some point I'll actually get my postgres overlay + extensions working. frustrating.
<drummeur>
hey, I have a quick question about configuring grub---I should be using a .nix file (or in my configuration.nix) instead of modifying the grub settings directly, right?
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @r-ryantm to master « xonsh: 0.6.3 -> 0.6.4 (#40821) »: https://git.io/vpjTp
<clever>
nixosnewbie: you can also try turning plugins on one by one
<nixosnewbie>
clever: yes. but I had 2 things preventing that: 1. I had put postgresql into systemPackages; 2. the plugins I wanted were in master and not in 18.03, which led me on my so far unsuccessful goose chase to creating an overlay
<drakonis>
bgamari, a better question, do we have things like subpackages?
leotaku has joined #nixos
<drakonis>
so an multi versioned package can have all of its packages moved into that
<drakonis>
including bindings
<nixosnewbie>
clever: thanks. that link discusses installing into user environment. I want to run postgresql extensions that are in master in production, but have production otherwise stay on 18.03
<drakonis>
the solution is more layers of misdirection
<drakonis>
:V
<nixosnewbie>
and want to run and install into system rather than user env
<drakonis>
indirection rather
<clever>
nixosnewbie: you can set .package to point to the postgress from unstable, and also use the unstable versions in the plugin list
<nixosnewbie>
clever: that makes sense. so what is the threshold for moving to an overlay vs a few pinned ones using unstable ?
<clever>
nixosnewbie: the only thing special that an overlay gives you, is letting you inject your new versions into the main pkgs set
<clever>
nixosnewbie: but since the service has a .package setting, you can skip that if you want to
<nixosnewbie>
clever: ok. I will check it out. if it works then I'm happy to use it!
daveo has joined #nixos
katyucha has quit [Ping timeout: 245 seconds]
leat has quit [Ping timeout: 264 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mahalel_ has joined #nixos
mahalel_ has quit [Client Quit]
mahalel_ has joined #nixos
drummeur has quit []
acarrico has quit [Ping timeout: 245 seconds]
vaninwagen has quit [Quit: WeeChat 2.1]
<crystalgamma[m]>
what's an 'emulation' in the context of bintools? I'm getting errors because it does not know the correct one for ppc64le …
leat has joined #nixos
kreetx has quit [Ping timeout: 268 seconds]
<nixosnewbie>
clever: just fyi. I double checked the nixos manual in both section 6 package management, and section 19, Postgresql. neither one mentioned the subtlety that one should *not* add postgresql to sytemPackages.
<nixosnewbie>
I wanted to make sure I had not missed something. I am trying to use the documentation and resources as much as possible but apparently I have hit 2 areas of weak documentation. Postgres system package and overlays.
<infinisil>
Are you sure it's exiting? The zsh it starts will look the same as your original shell
<nikivi>
I am on darwin (macOS) if that makes a difference
<nikivi>
infinisil I think you may be right. I use https://github.com/sindresorhus/pure as my prompt so when I run zsh inside nix-shell, the nix-shell prompt goes away
elasticdog has joined #nixos
<nikivi>
so I assume it quit but I guess it just changed prompt and I have no idea if I am inside nix-shell or my normal env
<infinisil>
:/
<infinisil>
probably you have a really high value when you do `echo $SHLVL`
ryantrinkle has quit [Read error: Connection reset by peer]
<nikivi>
have 8
<infinisil>
and you can just check with `echo $IN_NIX_SHELL`