<galdian>
I want to be able to have multiple machines with the same package overides and include the packages from them in the system environment?
jrolfs has quit [Quit: WeeChat 2.0]
jperras has quit [Ping timeout: 240 seconds]
acarrico has quit [Ping timeout: 256 seconds]
<acowley>
Does anyone have any words of wisdom for working with bazel under nix? I'm finding it excruciating: it seems to work very hard to specifically counteract things nix does (e.g. it clears environment variables), and the build configuration for a project is spread indiscriminately across various templates in various directories.
blonkhart has joined #nixos
zybell_ has joined #nixos
jperras has joined #nixos
iqubic has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
srdqty has quit [Ping timeout: 246 seconds]
sgillespie has quit [Quit: leaving]
daveo has joined #nixos
iqubic has joined #nixos
jrolfs has joined #nixos
srdqty has joined #nixos
<mahalel_>
hey all, so i'm still a bit of a noob with nixos, i'm slowly building my configuration.nix file but am wondering, how can i declare configs for packages (such as my i3 config, urxvt) inside the .nix file ?
<boomshroom>
mahalel_: Do you want these configs globally, or user specific?
<gchristensen>
you can do someething like services.xserver.windowManager.i3.configFile = pkgs.writeText "i3config" ''your i3 config'';
<dhess>
gchristensen: if I recall there is a URL somewhere that publishes all the pushed channels git revs.. for example, all the revs that updated the nixos-unstable-small channel. Where is that?
<dhess>
gchristensen: ok thanks. Is the number in the 2nd column an epoch time or something?
<gchristensen>
it is the date of the commit, but should probably be the time it was bumped instead to be more useful. if I make this change, it would be stored in a different file instead of changing the format of that file.
sigmundv__ has quit [Ping timeout: 240 seconds]
simukis_ has joined #nixos
<daveo>
is there a way to ldd/patchelf binaries automatically in nixos?
simukis has quit [Ping timeout: 240 seconds]
simukis_ is now known as simukis
sigmundv has quit [Ping timeout: 248 seconds]
ericsagnes has joined #nixos
jackdk has quit [Remote host closed the connection]
jackdk has joined #nixos
astiles has joined #nixos
acarrico has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astiles has quit [Ping timeout: 240 seconds]
ryanartecona has joined #nixos
galdian has quit [Ping timeout: 260 seconds]
zybell_ has quit [Ping timeout: 248 seconds]
asuryawanshi has joined #nixos
lord| has quit [Quit: WeeChat 2.1]
lord| has joined #nixos
lord| has quit [Client Quit]
lord| has joined #nixos
endformationage has quit [Ping timeout: 240 seconds]
endformationage has joined #nixos
markus1199 has joined #nixos
<ihar>
is there a way to create an empty directory on the system? I need /exports/ for my nfs share.
mbrgm has quit [Ping timeout: 246 seconds]
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
markus1189 has quit [Ping timeout: 240 seconds]
Supersonic112 is now known as Supersonic
mbrgm has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
zybell_ has joined #nixos
xcmw has joined #nixos
nur0n0 has joined #nixos
jrolfs has quit [Ping timeout: 240 seconds]
<mahalel_>
boomshroom sorry was afk, globally is fine
iqubic` has joined #nixos
iqubic` has quit [Remote host closed the connection]
<boomshroom>
mahalel_: i3 lets you set services.xserver.windowManager.i3.configFile to set the config file and it can be generated with other functions.
<boomshroom>
mahalel_: I personally don't use those mostly because I'd rather have user configuration stay in the users home.
iqubic has quit [Ping timeout: 276 seconds]
<day|flip>
i'm with ya with user config should stay with users home. so far for me. I only had to touch simple terminal config due to how it compiles its setting and color scheme.
ericsagnes has quit [Ping timeout: 240 seconds]
fragamus has joined #nixos
lord| has quit [Quit: WeeChat 2.1]
lord| has joined #nixos
silver_ has quit [Read error: Connection reset by peer]
jon_ has joined #nixos
<mahalel_>
right
<mahalel_>
so push my .nix config to github along with my home folder configs
<mahalel_>
is the way people go about it?
<mahalel_>
how do you go about configs that live in /etc/ normally?
justan0theruser has joined #nixos
justanotheruser has quit [Ping timeout: 256 seconds]
daveo has quit [Ping timeout: 240 seconds]
<ihar>
mahalel_: everything under /etc/ is managed by nix
sir_guy_carleton has joined #nixos
<ihar>
mahalel_: if there is something custom to your setup that nix doesn't know about (for example, I have custom vpn system connections for NetworkManager specific to my work), you can set environment.etc."file/path.conf".text and dump desired file contents in the same configuration.nix file
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
xcmw has quit [Ping timeout: 265 seconds]
sanscoeur has joined #nixos
ericsagnes has joined #nixos
<mahalel_>
thats interesting ihar, i'll look into that
jperras has quit [Quit: WeeChat 2.1]
logand` has joined #nixos
logand has quit [Ping timeout: 248 seconds]
daveo has joined #nixos
<fearlessKim[m]>
anyone noticed pypi problems ? when rebuilding I get "Download error on https://pypi.python.org/simple/pytest/: [Errno -2] Name or service not known -- Some packages may not be found!"
nuncanada has quit [Read error: Connection reset by peer]
rain1 has joined #nixos
kerrhau has quit [Ping timeout: 256 seconds]
daveo has quit [Ping timeout: 248 seconds]
<jasom>
I'm having trouble with lyx; it can't seem to find any of the *.cls files so I can't compile any documents
ertes has quit [Ping timeout: 248 seconds]
judson has joined #nixos
<judson>
bcc is amazingly fussy.
<judson>
I mean, not surprising, since it really needs to build against the running kernel
<judson>
But it makes it tricky to develop against.
<adisbladis[m]>
Judson: I did some stuff with bcc a few weeks back. Ended up wrapping gcc and compiling my ebpf code in the systemd unit
zybell_ has quit [Ping timeout: 264 seconds]
AluisioASG has quit [Ping timeout: 265 seconds]
Wharncliffe has quit [Quit: Lost terminal]
* judson
cocks head in confusion
<judson>
In... systemd?
<adisbladis[m]>
Judson: Compile the ebpf code in ExecStartPre
<judson>
Huh.
<judson>
What I'm fiddling with is a small variation on trace.py for Go programs. (Turns out basing your calling conventions on Plan 9 has consequences. Who knew?)
AluisioASG has joined #nixos
<judson>
I can definitely see cases where you'd want eBPF stuff run under systemd, and building it in the unit itself makes sense.
<judson>
But it absolutely has to be the system channel for Nix, because otherwise there's a drift of the kernel version.
asuryawanshi has quit [Remote host closed the connection]
<judson>
I'm running `nix-shell -p python27 cmake llvm flex bison clang` and then `which c++` => /nix/store/gqg2vrcq7krqi9rrl6pphvsg81sb8pjw-gcc-wrapper-7.3.0/bin/c++
iqubic has quit [Read error: Connection reset by peer]
t667884 has joined #nixos
<Ralith>
`nix-shell -E` exists but I have no idea what its deal is
<boomshroom>
Ralith: nix-shell -E will evaluate a given expression and gives you an environment equivalent to what would be used to build the package the expression evaluates to.
<Ralith>
boomshroom: ah, mine wasn't working because of course you have to give a derivation a name, even if it's a throwaway
<boomshroom>
Ralith: `nix-shell "<nixpkgs>" hello` = `nix-shell -E "(import <nixpkgs> {}).hello"` Except there's more you can do with the full Nix syntax.
<boomshroom>
jasom: Which is exactly what "makeWrapper" is for.
ertes has joined #nixos
iqubic has quit [Client Quit]
<ryantm>
jasom: Yes, if it has no functionality without that dependency, it is a bug. If it does stuff without it, maybe the package is missing a configuration option.
<coorey[m]>
just replaced ubuntu with nixos... wd to all the people who made it possible (and fairly simple)
astiles has joined #nixos
<boomshroom>
coorey[m]: In place? Welcome aboard!
<Ralith>
dtz: any idea why our llvm package includes compiler-rt, rather than having it be separate, or a part of clang?
<coorey[m]>
boomshroom: from USB, formatted all the old stuff (after backup)
<boomshroom>
coorey[m]: The normal way. If I'm not mistaken, it's possible to install NixOS in-place over an existing linux distro that already has Nix installed.
asuryawanshi has joined #nixos
<coorey[m]>
boomshroom: hah, that might have been even simpler but I didn't see any reference to that approach earlier... I've still got plenty to learn
<boomshroom>
coorey[m]: That aside, I hope you're enjoying the magic of NixOS!
<coorey[m]>
boomshroom: cheers, hopefully nixos will help me with my tendency to nuke everything clean.... next step is to setup a haskell env
<boomshroom>
coorey[m]: Pro-tip: on NixOS, you don't setup global development environments. Rather, you load the latest Haskell env when working on a Haskell project, and said env only lasts until as long as the shell is open.
<coorey[m]>
boomshroom: oh definitely planning to isolate my environments. I presume I could find some sane haskell .nix environment but I'm toying with creating my own at the moment just to learn
srdqty has quit [Ping timeout: 268 seconds]
CanopusX has joined #nixos
srdqty has joined #nixos
jon_ has quit [Remote host closed the connection]
Rusty1_ has quit [Quit: Konversation terminated!]
Fare has quit [Ping timeout: 256 seconds]
sir_guy_carleton has quit [Quit: Leaving]
MP2E has joined #nixos
blankhart has quit [Ping timeout: 248 seconds]
phreedom_ has quit [Remote host closed the connection]
klntsky has quit [Remote host closed the connection]
oida has quit [Remote host closed the connection]
phreedom has joined #nixos
klntsky has joined #nixos
oida has joined #nixos
ericsagnes has quit [Ping timeout: 240 seconds]
rauno has joined #nixos
mahalel_ has quit [Ping timeout: 264 seconds]
ma27 has joined #nixos
Fare has joined #nixos
ma27 has quit [Ping timeout: 256 seconds]
hellrazor has joined #nixos
CanopusX has quit [Quit: Leaving]
Fare has quit [Ping timeout: 248 seconds]
ma27 has joined #nixos
aarvar has quit [Ping timeout: 256 seconds]
johann__ has joined #nixos
MichaelRaskin has joined #nixos
ericsagnes has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
kisik21 has joined #nixos
<kisik21>
Hello. While I understand that it is not exactly a NixOS question, but... I have two monitors - LVDS and VGA-0. Want to set VGA-0 as primary. Using slim as my display manager and i3 as window manager. No conventional desktop environment installed.
boomshroom_ has joined #nixos
ma27 has quit [Ping timeout: 256 seconds]
<boomshroom_>
kisik21: What I do is set up a configuration with arandr and copy the resulting command into the top of my i3 config.
kreetx has joined #nixos
<kisik21>
And how to make slim recognize this configuration?
<kisik21>
Or which window managers could do it?
<kisik21>
oops, display managers
jgt has joined #nixos
<boomshroom_>
kisik21: I don't think I ever told my display manager how to handle the dual monitors. They just seem to work, though not as the physical layout. I don't spent much time in the display manager so I haven't bothered to fix it.
boomshroom has quit [Quit: WeeChat 2.0]
<boomshroom_>
Anyways, I'm heading to bed soon. Good night, everyone!
<kisik21>
Good night.
ryantrinkle has quit [Ping timeout: 264 seconds]
judson has quit [Remote host closed the connection]
<hamburglar[m]>
I used to put xrandr/arandr stuff in ~/.xsession and just set up my session manually from there when I needed to set up my displays other than the default. I don't know if/what scripts get called by slim before login.
<kisik21>
Wait, what is ~/.xsession?
ma27 has joined #nixos
<kisik21>
Is it like .xinitrc, but called by display manager?
<hamburglar[m]>
yes
<typetetris>
Hi there, how do I force nix-build to really compile something and not just download its store path content from the cache?
<kisik21>
Disable substituters, i.e. binary cache
boomshroom_ has quit [Ping timeout: 260 seconds]
astiles has joined #nixos
<typetetris>
nix-store -r --check $(nix-instantiate -A <attr>) helped
<tilpner>
nix-build -A attr --check would have done the same
shikiryogy has joined #nixos
<typetetris>
`--check` isn't documented for `nix-build` (at least on my install) so I didn't tried that.
<shikiryogy>
Hi guys, using (python35.withPackages(ps: with ps; [ psutil ])) in the configuration makes "psutil" available, when I use the "python3" command. What should I install, to make it work for the "python" command? Apparently (python27.withPackages(ps: with ps; [ psutil ])) does not work
<typetetris>
Damn, it didn't redownload the source, that's what I tried to test.
<tilpner>
nix-build '<nixpkgs>' -A irssi.src --check
<typetetris>
Can I convince this to let the temporary directory lying around ?
<typetetris>
There is no build failure for me (which there should be).
<shikiryogy>
tilpner I need it for some bar for i3 to work, so I guess it should be available systemwide
<tilpner>
shikiryogy - Is it polybar?
<tilpner>
typetetris - Are you saying fetching the source should error?
<shikiryogy>
tilpner bumlbebee-status
<tilpner>
Want to share your Nix expression?
<shikiryogy>
tilpner in the global config file, in the " environment.systemPackages = with pkgs; [" part, I have "(python27.withPackages(ps: with ps; [ psutil ]))"
<tilpner>
No, I meant the one for bumblee-status. You are writing that one, right?
<tilpner>
I don't think you have to install psutil globally
kisik21 has quit [Quit: Leaving.]
johann__1 has joined #nixos
johann__ has quit [Ping timeout: 256 seconds]
<typetetris>
tilpner - Yes, because the hash should mismatch. It is this: gitlab.com did juggle around with its download routes and if I try the URL constructed by fetchFromGitLab for example procps-ng (see https://github.com/NixOS/nixpkgs/issues/39154) I get an archive containing tip of master (browser, wget, curl). But `nix-build -A procps-ng --check` seems to get the correct source (at least the NEWS file doesn't contain a mention of
<typetetris>
v3.3.14) and I don't know how. If I try to download from the URL in its output (which it claims to use with curl) I get the archive containing the next release :(
<shikiryogy>
tilpner Ah, fair point, but I didn't want to put the i3config in there, so it is the normal config file for i3. Otherwise, this is the command " status_command ~/bumblebee-status/bumblebee-status -m amixer battery cpu disk layout load memory pulseaudio rotation datetime -t powerline-greyish" which just uses modules from the package
<tilpner>
typetetris - Did you update the URL without updating the hash? Try changing one digit of the hash
ma27 has quit [Ping timeout: 240 seconds]
logand` has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<typetetris>
I only changed `fetchFromGitLab` in my nixpkgs repository, shouldn't that suffices for the derivation to be rebuilded from scratch?
<tilpner>
typetetris - What part of that did you change? If Nix finds anything with that hash already in the store, it doesn't fetch it again
<typetetris>
I changed the url `fetchFromGitLab` constructs to match the new url used by the gitlab.com UI.
<tilpner>
You still didn't say if that changed the hash
<tilpner>
You need to change the hash
<tilpner>
shikiryogy - You would need a wrapper around eithet bumblebee-status or i3, which changes some variable so that bumblebee-status can find that python package
<typetetris>
Sorry, I am dumb. I changed the hash and now it fails with a totally different hash produced, so it did fetch the wrong source ...
<typetetris>
If I fix `fetchFromGitLab` will that trigger redownloading of sources from all the gitlab packages? (As it should, they probably used the wrong source since gitlab.com changed their download routes)
<tilpner>
Not if the hashes stay the same. Nix ignores the URL after it downloaded something matching the provided hash once
<tilpner>
But it should be fine, the caches would still have the right source, it doesn't matter that it can't be fetched the same way anymore
jensens has joined #nixos
johann__1 has quit [Quit: Leaving.]
<typetetris>
I am unsure about this, if some external source (like gitlab.com) destroys reproducibility by changing what it offers for download at a certain url, you don't notice it early. Dunno wether thats good.
<tilpner>
Did they really break all download links ever?
<tilpner>
Or what did they change?
<typetetris>
They aren't that great on documentation and I am not great at reading ruby, so I can just describe, what I perceive: 1. The URL used by `fetchFromGitLab` was probably wrong to begin with, as this endpoint doesn't understand the `ref` URL paramtere, only `sha`. 2. redownloading the source of the `procps-ng` derivation by changing one digit of the hash, changed the source we got (see NEWS) file.
<typetetris>
I open a ticket for `fetchFromGitLab` as we need a decision, wether to change the endpoint used and be able to use tags / revs or just change `ref` to `sha` and fix all the packages to use the sha instead of a tag name.
<typetetris>
No. This url ignores `ref` url parameter and always yields an archive for tip of default branch which just coincidentally is v3.3.14 at the moment. Change the value of `ref` and preceive getting the same archive over and over again. Even `sha` seems to be ignored, at least by my testing in my browser.
<typetetris>
How to proceed, so we don't duplicate tickets and work?
<robstr>
Morning, I want to deploy my haskell application with nixops. My app is based an multiple modules (several cabal files), how can i make this possible ? Right now It can't find submodules
ixxie has quit [Client Quit]
johann__ has joined #nixos
<tilpner>
typetetris - I can't imagine that breakage was intentional. Maybe they'll repair that route? You can still update fetchFromGitLab to the new non-deprecated route, but all old packages should be fine if the old route regains rev fetching
<tilpner>
typetetris - What's that issue you mentioned?
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
<typetetris>
tilpner - There have been several issues at gitlab fiddling around with routes ... I just picked one, where the diff looks like it could introduce the breakage.
alex`` has joined #nixos
<typetetris>
tilpner - according to their documentation the point that `fetchFromGitLab` was broken to begin with (because of using `ref` instead of `sha`) still stands.
<tilpner>
typetetris - You showed a merge request, but earlier you were talking about "the issues for gitlab.com suggest"
day|flip has quit [Remote host closed the connection]
ertes has quit [Read error: Connection reset by peer]
ertes has joined #nixos
johann__ has quit [Quit: Leaving.]
<cocreature>
robstr: you should be able to just pass it as another argument, e.g. testApp = import ./default.nix { inherit pkgs; testapp-dep = … }
johann__ has joined #nixos
<robstr>
cocreature: ty let me try
lonokhov has joined #nixos
jwynn6 has quit [Ping timeout: 260 seconds]
<cocreature>
robstr: also if you’re trying to learn how to develop Haskell with nix, https://github.com/Gabriel439/haskell-nix is probably a better resource since oliver’s wiki isn’t kept up2date afaik
<kuri0>
since i don't really want to download 2gb (anything under 1gb is fine) and 2gb seems too much for a system without a desktop
winem_ has joined #nixos
<kuri0>
probably they include uneeded packages
jtojnar has quit [Remote host closed the connection]
johann__ has quit [Quit: Leaving.]
<kuri0>
maybe i could use nixos-install instead of those images
kreisys has quit [Read error: Connection reset by peer]
telent has joined #nixos
dan_b has joined #nixos
kiloreux has joined #nixos
seppellll has joined #nixos
<Dezgeg>
there are not, that's based on the same configuration as the minimal install cd
nD5Xjz has joined #nixos
<kiloreux>
I am trying to source the nix directory (make system aware of Nix existence) from /nix directory (instead of ~/.nix-profile) but I can't find the nix.sh file.
<fearlessKim[m]>
is it normal that I have every symlinks in /etc point at /nix/store to have 777 permissions ? Looks like it's responsible for several errors and I don't know if it's normal or if it is some side effect from my config ?
<Dezgeg>
symlinks' permissions always show up as lrwxrwxrwx
nD5Xjz has joined #nixos
<disasm>
how can I get hydra to run a shellscript and take the exit code as a build success or failure?
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
nD5Xjz has quit [Client Quit]
<LnL>
how is that different from a regular nix build?
astiles has joined #nixos
humanoyd has joined #nixos
xy2_ has quit [Read error: No route to host]
xy2_ has joined #nixos
<robstr>
Hey, while building my application I receive the failure : `Setup: o-clock.cabal: This package requires at least Cabal version 2.0` but I didn't specify the cabal version, I used cabal2nix .. Can someone help here ?
astiles has quit [Ping timeout: 276 seconds]
ma27 has quit [Ping timeout: 240 seconds]
pkill9 has joined #nixos
MP2E has quit [Remote host closed the connection]
ShalokShalom has joined #nixos
<ShalokShalom>
hi there
<unacceptable>
yo, diggity
jensens has quit [Ping timeout: 264 seconds]
<kiloreux>
LnL, I am afraid no. There's not.
<kiloreux>
I chose to extend the path to contain "/nix/var/nix/profiles/per-user/root/profile/bin/"
<LnL>
is it a multi-user install?
Neo-- has quit [Ping timeout: 240 seconds]
hellrazor has quit [Ping timeout: 248 seconds]
Neo-- has joined #nixos
hellrazor has joined #nixos
<nicl_l>
timesyncd has 100% CPU usage. Is there an NTPd that does work?
<nicl_l>
Please copy paste your configuration, if you have one.
<lassulus>
services.timesyncd.enable = true; ?
<lassulus>
ah, weird
<lassulus>
it works here
<Dezgeg>
works here too
tmaekawa has joined #nixos
justan0theruser has quit [Ping timeout: 264 seconds]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
Fare has quit [Ping timeout: 248 seconds]
ericsagnes has quit [Ping timeout: 256 seconds]
Fare has joined #nixos
Guest51829 has joined #nixos
<Dezgeg>
if by 'conntrack' you mean the single ip_vs_conn_drop_conntrack line, that is most likely just some leftover garbage in the stack trace
<Dezgeg>
you can tell that by the '?' which tells this stack frame entry is not reliable
<Dezgeg>
hmm, there is one on the RIP: line though... interesting
xy2_ has joined #nixos
<ShalokShalom>
the top lines in nix expressions count as dependencies?
<ShalokShalom>
is this the attribute name or the package name?
<clever>
ShalokShalom: attribute names
alex`` has joined #nixos
<robstr>
Hey, i still fail to build my application due to the `o-clock` haskell library, nix-build report an error that 'Setup: o-clock.cabal: This package requires at least Cabal version 2.0'
knupfer has joined #nixos
<nicl_l>
htop shows 100% CPU usage, while the constituent parts do not sum to 100%. Is there any program which reports a CPU% that is actually consistent? I am talking about the difference between an almost idle machine and 100% load.
seppellll has quit [Quit: seppellll]
<ShalokShalom>
so why does it use a complete outdated dependency
<ShalokShalom>
since a fresh version is available?
<ShalokShalom>
4.0 > 5.8
seppellll has joined #nixos
<ShalokShalom>
what is the straightforward way to rebuild a package, once I pulled the source .nix?
<mkaito>
does anyone here use tmux-resurrect? how do you handle nixos paths?
seppellll has quit [Quit: seppellll]
<ShalokShalom>
does anyone build these packages in an CI enviroment?
<ShalokShalom>
my build just failed
yrashk has quit [Remote host closed the connection]
<ShalokShalom>
bash: nix-shell: Kommando nicht gefunden.
<ShalokShalom>
command not found
<ShalokShalom>
oh wow
<symphorien>
huh. as if you didn't have nix installed
<ShalokShalom>
now, nix --version also shows nix not found
<ShalokShalom>
a few minutes before, it worked
ciastek has joined #nixos
<ShalokShalom>
this is as before, so I guess this nodejs messup still applies
<symphorien>
I don't really understand how nodejs would mess this up...
<symphorien>
what is your $PATH ?
ShalokShalom2 has joined #nixos
<ShalokShalom2>
I currently fill a Github issue
<symphorien>
is nix in ~/.nix-profile/bin ?
<ShalokShalom2>
To be precise: All other package managers, eg that one of all the different programming languages, mess up the system, yes?
<ShalokShalom2>
it is
<ShalokShalom2>
also others, such as nix-build and so on
<symphorien>
not usually. nix only touches /nix, ~
<ShalokShalom2>
12
<symphorien>
~/.nix-profile and your $PATH
<symphorien>
sorry
<ShalokShalom2>
so, a few days ago two people here explained me that this is obvious
<symphorien>
ah ok
freeman42x]NixOS has quit [Remote host closed the connection]
<ShalokShalom2>
see, how obvious it is? :D
<ShalokShalom2>
i guess you are a experienced user, according to your support here
<ShalokShalom2>
so i really consider this as a serious issue
<ShalokShalom2>
MichaelRaskin: i think you were involved
<Myrl-saki>
clever: Hey. :)
<ShalokShalom2>
can you say me anything about the compability of other package managers, such as npm and pip?
<Guest2114>
Hi everyone.
<ShalokShalom2>
since they install into the nix dir, which breaks it, correct?
<MichaelRaskin>
Is your /nix owned by root?
<ShalokShalom2>
Guest2114: hi there
<clever>
Myrl-saki: i saw what you reported earlier, and it should be fairly simple to implement, i can look into it in a bit
ShalokShalom has quit [Ping timeout: 264 seconds]
<ShalokShalom2>
no
<MichaelRaskin>
For some reason we still cannot make it default that /nix is owned by root and nix-daemon is used by default (among other things: adding nix-daemon to the list of daemons is distribution-dependent)
<Guest2114>
I want to upgrade my encrypted ZFS system to 18.03 but run into the Encrypted Dataset Format Change.
<symphorien>
ShalokShalom2: ah I see, I am used to the store being immutable even by root, so such screw ups cannot happen
<ShalokShalom2>
it is in the root group and user is my sudo account
alexteves has quit [Ping timeout: 276 seconds]
lonokhov has quit [Quit: WeeChat 1.9.1]
<Guest2114>
The wiki has a solution but I need some help with step 1: Create a custom NixOS iso with crypto stability patch applied
<ShalokShalom2>
symphorien: I am used to use thing in the default configuration
<Guest2114>
How do I create that iso?
alex`` has quit [Ping timeout: 264 seconds]
<symphorien>
ShalokShalom2: the default configuration for NixOs and non NixOS is different :)
<ShalokShalom2>
since I assume the developers have reasons to put them so
<ShalokShalom2>
ah i see
<Myrl-saki>
clever: Thanks!
<ShalokShalom2>
much more convenient :P
<ShalokShalom2>
for all the involved people, this is more cumbersome
<ShalokShalom2>
docu, devs and users
mmlb has quit [Quit: Ping timeout (120 seconds)]
<MichaelRaskin>
We managed to reach the state where default configuration is what nobody uses for long
<symphorien>
multi user install is more involved and requires root, whereas single user install only needs well a single user
mmlb has joined #nixos
tmaekawa has joined #nixos
<symphorien>
so both are legitimate
<symphorien>
for different use cases
ericsagnes has joined #nixos
<ShalokShalom2>
a sane default is gold worth
<ShalokShalom2>
MichaelRaskin: if thats the case, is it even more obvious that a dummy config by default makes a lot sense?
<hodapp>
okay, a bit confused... I just updated to NixOS 18.03, and it looks like mxnet was updated to 1.1.0 back in February or something, but 'mxnet.__version__' in Python is telling me 0.11.0
<bachp>
Hi, did somebody successfully use NixOS with AWS autoscaling groups? Maybe even with an example to point to.
<MichaelRaskin>
I think there is a config somewhere, I just _never_ used single-user installations without explicitly overriding config directory. And I can remember only one time when I used single-user installation at all
jgt has joined #nixos
thblt has joined #nixos
<clever>
bachp: ive not used it yet, but my general theory is to use nix-build to create an AMI that has your software fully configured, and upload it to aws, then configure auto-scaling to spin up that AMI
<bachp>
clever: Do you have an example how to create an ami vis nix-build?
<hodapp>
can someone else run nix-shell -p python36Packages.mxnet --command "python3 -c 'import mxnet; print(mxnet.__version__)'" and tell me the result?
<infinisil>
Oh is the PR bot dead or was it turned off?
<nicl_l>
How can I run Linux 3.X on NixOS 18.03?
<MichaelRaskin>
infinisil: I would also consider a terminal case of backlog
<gchristensen>
infinisil: turned off for now ...
<bachp>
clever: Another way that seems to work is to just provide a configuration.nix as user data and the new instance will then automatically configure itself. A bit more overhead to provision but it let's me reuse the already existing ami
<hodapp>
what am I missing here... I just checked NixOS 18.03's GitHub, and it's pulling from refs/tags/1.1.0 of incubator-mxnet, which I just checked has 1.1.0 in its libinfo.py
<gchristensen>
nicl_l: I don't think we have one
<clever>
bachp: id consider that a waste of resources, aws may also not wait for the machine to configure itself before trying to have it serve traffic
<srhb>
hodapp: Maybe we should check if they moved the tag.
<infinisil>
I see, well I guess I need to do it myself then
<srhb>
And also, check our source to see what libinfo says
<hodapp>
srhb: how would it still be using an older tag in such a case?
<srhb>
hodapp: Because our hash didn't change
<srhb>
hodapp: So it grabs the older 1.1.0 tag from the cache
<nicl_l>
gchristensen: but is there also no way to just specify a kernel.org git version and get that built?
<srhb>
hodapp: And that appears to be what is going on. Messing up the hash gives me an error that the real hash is 138di308s6bwlh7na40mgq2kjrk5x1pf03jcw4yvazpbwb4lpbmm, but the derivation says 1qgns0c70a1gfyil96h17ms736nwdkp9kv496gvs9pkzqzvr6cpz
raynold has quit [Quit: Connection closed for inactivity]
<hodapp>
ugh, I see
<srhb>
hodapp: Moreover it doesn't build with the new 1.1.0 tag.
<srhb>
So that's fun.
<srhb>
I had kubernetes pull this same stunt on me. I just love it when people treat tags as "haha I have no idea" :P
<bachp>
clever: I agree it is not the most efficient but if you rarely need to scale it might be OK
jonjitsu has joined #nixos
<srhb>
hodapp: Hmm, actually, maybe they are blameless
<srhb>
More indirectoin! verifiedSrc = hash src arbitrarylist
<symphorien>
ShalokShalom2: in nixpkgs
<ShalokShalom2>
ok fine
<gchristensen>
srhb: :D
<srhb>
Of course, that fixes nothing :P
thblt has quit [Ping timeout: 260 seconds]
<ShalokShalom2>
well, mono is no compiler
<ShalokShalom2>
while in this category
<infinisil>
For anybody that needs zfsUnstable in the latest nixos-unstable to build, cherry-pick this commit: 6b796a9c23db8cbb3065ffdd20c1a53fd86de9a6
lord| has quit [Quit: WeeChat 2.1]
daveo has quit [Quit: WeeChat 2.0]
nD5Xjz has joined #nixos
<ShalokShalom2>
well, haskell and rust under tools instead
winem_ has quit [Quit: No Ping reply in 180 seconds.]
<ShalokShalom2>
and qtcreator is also here in development/tools, while other IDEs are in applications/editors
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srhb>
ShalokShalom2: Allowed yes, but the existence of top-level/all-packages.nix sort of makes that sort of bikeshedding more or less needless.
<srhb>
If you feel it's important you can definitely PR it and try to convince someone to merge it. :)
<ShalokShalom2>
since I as a newbie am confused, is this all but a bikeshedding
<ShalokShalom2>
thanks a lot
<srhb>
ShalokShalom2: That's the kind of arguments that should weigh something in the PR. :-)
<ShalokShalom2>
first impression counts
<srhb>
Absolutely.
<srhb>
Don't mind me, I'm just a jaded pragmatist. :P
<srhb>
ShalokShalom2: fwiw I think a PR for each logical unit moved is most palatable (at least if I were the reviewer)
<angerman>
nix doesn’t have some short circuiting does it? `{ x = 1; }.y ?? 0`
<srhb>
or ?
krey has joined #nixos
<infinisil>
Indeed: { x = 1; }.y or 0 => 0
<angerman>
Hmm great :-)
<angerman>
i did try || and variations, never tried `or` :(
rauno has joined #nixos
<angerman>
thanks!
nD5Xjz has quit [Ping timeout: 268 seconds]
xcmw has joined #nixos
kiloreux has quit [Read error: Connection reset by peer]
kiloreux_ has joined #nixos
nD5Xjz has joined #nixos
<srhb>
ShalokShalom2: I think your issue #2094 is still completely indecipherable. Can you give us some output before and after whatever you did (along with the instructions for whatever you did) and show what the actual problem is? :)
<srhb>
Basically, a reproducible case along with instructions on what to do to conclude that there's a problem.
ma27 has quit [Ping timeout: 255 seconds]
nD5Xjz has quit [Ping timeout: 264 seconds]
coot has joined #nixos
<Akii>
what do I need to have a remote nix channel on git in a private repository?
<srhb>
Akii: Do you really need a channel?
<nicl_l>
nix search mono | grep -A 3 NET# returns in 0.13s a useful answer, so I think the "how do we find a package"-problem has been solved.
<Akii>
srhb okay to put it differently; I've a haskell project in a private git and want to run `nixos-rebuild switch --upgrade` and it should install that package or upgrade it
<Akii>
that is my ultimate goal
<Akii>
everything else is just impractical
<Akii>
the derivation file is generated by cabal2nix and should be under version control and not part of the config of the server
<srhb>
Akii: Okay, I don't know how to do it with channels, sorry.
<Akii>
well do you know how to do it without channels? :D
<Akii>
I just want my private set of nixpkgs so to say; no idea if that requires a channel or not
<srhb>
I tend use a script to update some file with the HEAD revision and use builtins.fetchGit :)
<Akii>
sounds like a workaround
<srhb>
I prefer explicitly moving commits.
<srhb>
So not to me
<srhb>
Channels are heresy
<srhb>
:-)
<Akii>
I'd go as far as to say I don't even care what revision it is, just take master and somehow figure out if it was updated
<srhb>
Ick!
<srhb>
:p
<srhb>
You can get lots of nondeterminism by not using hashes in the new fetchers in Nix 2.0
<Akii>
nix-env -i git
<Akii>
that's what I want where git is my own package
patrl has quit [Quit: WeeChat 1.9.1]
<Akii>
heck I'd even add version numbers
jgt has joined #nixos
<Akii>
I don't need this over complicated stuff around all that
kiloreux_ has quit [Remote host closed the connection]
ckauhaus has quit [Quit: Leaving.]
jperras has joined #nixos
<Akii>
looks like this goes into the right direction
kiloreux_ has joined #nixos
Rusty1_ has joined #nixos
<Akii>
waaait a second nix copy --to ssh://machine nixpkgs.hello
<Akii>
wat
<Akii>
could it be this simple?
<srhb>
If it is I clearly did not understand your question.
<Akii>
nah, I bet nix copy only works for the same architecture
jgt has quit [Read error: Connection reset by peer]
<Akii>
probably
<hyper_ch2>
so, been running rss2email now for few weeks on nixos... works really nice :)
scode has quit []
<Akii>
srhb the question is simply this: I want to be able to execute `nix-env -i myhaskellpackage` and it should install myhaskellpackage. That's it
scode has joined #nixos
<Akii>
the source and config are on a private git
<srhb>
Akii: Stick it in an overlay, use builtins.fetchGit
<hodapp>
srhb: thanks for filing that issue; I was about to myself but was busy with other things
<hodapp>
still trying to understand exactly what happened here
<srhb>
hodapp: The version was bumped, but the src has was not. So really, we're still on (an awkwardly named) 0.11
<nicl_l>
srhb: does nix 2.0 implement private git authentication?
hamishmack has joined #nixos
<nicl_l>
srhb: this didn't work in 1.*.*.
<hodapp>
srhb: does changing that hash & adding perl resolve it?
<srhb>
hodapp: It builds at least.
<hodapp>
srhb: I'll try it out myself with some actual code
<srhb>
hodapp: Cool :)
<srhb>
I have to get ready for work, so didn't have time for PR
ma27 has joined #nixos
seppellll has joined #nixos
kisik21 has quit [Ping timeout: 240 seconds]
kisik21 has joined #nixos
<hodapp>
srhb: no worries, you already filed the issue for me :) if this build works and the code runs I'll do a PR
<hodapp>
though... would this PR be applicable mostly just to 18.03 since most likely in master someone's going to upgrade MXNet to something newer than 1.1.0?
<srhb>
hodapp: The broken commit that says we have 1.1.0 is in all branches I think.
<srhb>
hodapp: So it should be backported, or rolled back on nixos-18.03
<srhb>
hodapp: Oh, sorry, that wasn't quite your question. I think it's applicable to master as well. We shouldn't lie about the version :)
<zybell_>
Akii:configure roots ssh to use master connection then sudo ssh github in one terminal will enable you to nix-env -i in the other.
rauno has quit [Ping timeout: 260 seconds]
xcmw has quit [Ping timeout: 248 seconds]
<Akii>
zybell_ wat
<Akii>
roots ssh
<Akii>
master connection
<Akii>
wat
<srhb>
No need, builtins.fetchGit runs git as the invoking user.
<srhb>
zybell_: This still isn't necessary for builtins.fetchGit if you're evaluating it as the user that already has ssh access.
<Akii>
well there is also fetchPrivateGit or smth
<srhb>
please note that fetchgit and builtins.fetchGit are not the same things.
leat has quit [Ping timeout: 240 seconds]
frostspanner has quit [Quit: Page closed]
<srhb>
And fetchPrivateGit is like fetchgit, and requires the workarounds that zybell_ is mentioning.
johann__ has joined #nixos
<Akii>
okay
<Akii>
that is
<Akii>
strange but if it works i'll take it
<zybell_>
You cant get at a private git without the key, or it wont be private anymore.
infinisil has quit [Quit: Configuring ZNC, sorry for the join/quits!]
infinisil has joined #nixos
<Akii>
I've a deployment key of course
leat has joined #nixos
<Akii>
and I think the ssh-agent should run by now
<Akii>
that's all ok; is there a way to just ignore this sha hash thing?
<zybell_>
And the key has to find its way to the *used* ssh instance. That can be done either by ssh-agent or by master connection. Master connection is easier to setup, but somewhat unmaintained by github.
nix-learner has joined #nixos
<Akii>
it's not on github
<Akii>
but that shouldn't matter, right
<nix-learner>
Hi, I have a question on using command line of nix, such as nix, nix-store.
<nix-learner>
The question is, I want to install a package into my local nix store using the binary cache on hydra. I just want to experiment with a package, not messing with building or the nix expressions that build a package.
<nix-learner>
I know how to do this, based on the instructions on hydra.nixos.org.
<nix-learner>
Say, to install device drivers, I can do the following:
<nix-learner>
This is as suggested on hydra.nixos.org. Now my question is, how to download a single package, add it to the nix store, without going through nix-env?
bmpvieira has quit []
<nix-learner>
That is, how to just download a package, without installing it into my user profile (user environment)?
<srhb>
nix-learner: nix-build is usually the easiest way
johann__ has quit [Quit: Leaving.]
bmpvieira has joined #nixos
<srhb>
nix-learner: nix-build '<nixpkgs>' -A attr.path.of.package
<srhb>
Oh and add --no-out-link or you'll get a result symlink in CWD
<nix-learner>
Thanks for the reply.
tmaekawa has quit [Ping timeout: 248 seconds]
<zybell_>
Akii:If its your own server you can support masterconnection by special scripts, but if you got ssh-aget running already I would stay with it because its the preferred solution anyway.
kisik21 has quit [Quit: Quit]
<nix-learner>
I don’t that nix-build fits my use case.
<srhb>
nix-learner: Why?
<Dezgeg>
nix-store -r /nix/store/ign8y8jipam9cjfpbcbfgbzprqkj3k2b-mesa-noglu-17.3.6 also works if you really want to access by the filename
Fare has quit [Ping timeout: 260 seconds]
<nix-learner>
The reason being that, I actually want to install a package from a channel (say, nixos-18.03) different from the one I am normally using (nix-unstable) in nix-env.
<srhb>
nix-learner: Ah okay. What Dezgeg said then
lo_mlatu has joined #nixos
<srhb>
nix-learner: Or just specify another channel name in the angle brackets
<srhb>
If you have it setup.
<nix-learner>
Thanks for the help. Let me check if `nix-store -r` works.
<nix-learner>
Regardless of whether `nix-store -r` works... I tried using `nix-build` with a version of nixpkgs pinned to an older git hash (not tracking nix-unstable), because I want an older version of the device drivers. When I tried `nix-build`, I think it could work in principle, but the build was taking too much memory (> 5G, because I killed the job) that
<nix-learner>
my machine might be able to handle.
tazjin has quit []
tazjin has joined #nixos
<srhb>
nix-learner: Then it wasn't cached, presumably.
<nix-learner>
Yes, very likely it is not cached.
gaqzi has quit []
gaqzi has joined #nixos
<srhb>
zybell_: Why would you need master connection or ssh agent?
<srhb>
(You don't, just trying to understand why you think so.)
<nix-learner>
Thanks for everyone. nix-store -r is what I wanted.
nix-learner has left #nixos [#nixos]
<zybell_>
to get the auth info securely to the ssh that is run by git.
<nikivi>
to update nix from 1.11.16 to 2.0 on macOS I just install nix again from the official site?
<srhb>
zybell_: If you're running nix-build, say, as your user, then it'll just look at ~/.git/ or whatever :)
<srhb>
Er, ~/.ssh
ma27 has quit [Ping timeout: 255 seconds]
Guest37084 has quit []
Guest37084 has joined #nixos
<zybell_>
of course i assume that the deployment key is password protected.
<srhb>
OK, then it makes sense. :)
butchery has joined #nixos
<dtz>
nix-learner: FWIW when copying paths Nix 2.0 has some memory usage problems that have been fixed-- will be in next update. Might help with what you're experiencing, just a heads-up :)
nuncanada has joined #nixos
<butchery>
hey, I'm having trouble upgrading to 18.03, can't download the NVIDIA drivers?
<hodapp>
butchery: does it appear to just be stuck?
ma27 has joined #nixos
<butchery>
no it fails with error: cannot download NVIDIA-Linux, etc, but I can reach the URL nixos-rebuild lists that it's trying just fine
<hodapp>
srhb: well, trying the changes you mentioned and while it seems to work without CUDA I get http://lpaste.net/2993780256160088064 if I enable it
<hodapp>
big surprise, CUDA broke shit. again.
<hodapp>
I am trying to make sense of wtf this error even means
nD5Xjz_ has joined #nixos
nD5Xjz has quit [Ping timeout: 276 seconds]
<srhb>
hodapp: I didn't see that on 18.03
Fare has joined #nixos
<hodapp>
srhb: but did you build with CUDA support enabled?
<hodapp>
blargh. I guess I need to go remember how to tear this build apart so I can go look at what CMake is complaining about
edofic has joined #nixos
christiaanb has quit []
christiaanb has joined #nixos
smola has quit []
<hodapp>
this is just really confusing to me because the builder is hardly passing anything at all to it, unless there is just tons and tons of magic going on in the CMake build
smola has joined #nixos
<gchristensen>
BlessJah: were you telling me about using the spotify web interface?
<hodapp>
if I don't even add CUDA dependencies into buildInputs, but I simply leave off "-DUSE_CUDA=OFF" in cmakeFlags, the build fails with the same error
<hodapp>
because of course it's a fucking CUDA issue
butchery has joined #nixos
<dtz>
lol
seppellll has quit [Quit: seppellll]
Fare has joined #nixos
johann__ has joined #nixos
ma27 has joined #nixos
<butchery>
the nvidia binary download thing seems to have been fixed by restarting network service, no clue what happened
<butchery>
since I could curl the url myself but nixos-rebuild couldn't?
<hodapp>
I feel like I ran into something very similar when upgrading
<gchristensen>
sometimes the DNS resolver gets confused and caches problems, which for some reason can manifest differently for the nix-daemon than users
<telent_>
complete tangent, but if anyone's interested in nixwrt it's now at the point where (1) it's running in flash on my test router; (2) there's a reasonably complete qemu target
<kreisys>
Is there any way to see what the hydra evaluator is doing?
<kreisys>
I mean while it's still evaluating
ryantrinkle has joined #nixos
<kreisys>
afterwards I know there's a link to the log somewhere in the UI
<hodapp>
telent_: the GL-Inet GL-MT300A, does that have exposed pins already present on the board for serial? such that I don't need to tack tiny wires onto it or anything
<Ralith>
dtz: hey, any idea why our llvm package has compiler-rt inlined into it?
<Ralith>
dtz: it's breaking asan use, and talking to the llvm folks confirms that it should really be installed as part of clang (and perhaps also available separately), not as part of llvm
pie_ has quit [Ping timeout: 240 seconds]
<sphalerite>
telent_: awesome!! Also nice to see you on the IRC :D
seppellll has joined #nixos
astiles has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
rizary has quit []
rizary has joined #nixos
<lassulus>
how do I get 2048_in_terminal inside a nix-shell?
astiles has quit [Ping timeout: 248 seconds]
<dtz>
Ralith: hmm, lemme think. For my own work I just "caved" and build everything in one giant package since that's what upstream supports most directly/consistently (esp at any given SVN revision hehe)
mounty has quit [Ping timeout: 260 seconds]
mightybyte has joined #nixos
<mightybyte>
Why would nix-shell build more things than nix-build?
<Ralith>
dtz: if there's no good reason (and nobody beats me to it) I'll factor it out into a separate package, and modify the clang build to copy that output fully into itself, on approx. tuesday
<Ralith>
fedora's building compiler-rt standalone so I imagine it works okay
<shlevy>
Oh god that was a long time ago
<shlevy>
if it works now great
hyper_ch2 has quit [Ping timeout: 260 seconds]
<hodapp>
telent[m]: thanks, I'll check it out
<dtz>
teehee
<telent[m]>
Having previously broken (I think) my tl-wr842 trying to solder on a serial connector, am well up for klutz-proof target devices
<dtz>
commits from yester-year return to haunt
<hodapp>
telent[m]: that looks like a wonderfully cheap router though. I was at a job where we used a $15 TP-Link router for everything but that was horribly limited
<Ralith>
shlevy: compiler-rt is currently installed as part of llvm-the-library, whereas for *san to function correctly (at least with libc++) it must be installed as part of clang; if the only reason for the current state of affairs was standalone build brokenness, great, I'll fix it
<dtz>
Ralith: j/w what do you mean re:asan not working-- I thought it worked? Does it not? :(
blankhart has joined #nixos
<Ralith>
dtz: it works in gcc, I *think* it works in clang/libstdc++, it *may* work in trivial cases of clang/libc++, it absolutely does not work in advanced cases because the headers that define its API are not in the search path
<shlevy>
Ralith: I think that's the only reason, yeah
<dtz>
(I.. have used it to build Nix + handful of nix deps, maybe I have some magic somewhere I've forgotten was needed....)
<dtz>
but okay
<Ralith>
various important libraries also end up somewhere funny but I have no idea how magic clang is about finding those
<Ralith>
dtz: using libc++?
<Ralith>
I think if you use libstdc++ it gets the gcc stuff
astiles has quit [Remote host closed the connection]
<Ralith>
and even then you may be getting away with it if the library search is sufficiently magical and you don't use the API
<dtz>
I thought using both, although I might have needed to limit the dimensions I was testing-- if you mean it reports wrong/false-positives than maybe I did see that in one configuration or more
astiles has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
<dtz>
(although I'm happy to see this split up more, so no worries)
<Ralith>
no, I mean does not build
<Ralith>
the header is the proximate issue if you're using the API, which you may not be
<Ralith>
would cite details but gtg for now, can elaborate more next week
coot has quit [Quit: coot]
astiles has quit [Ping timeout: 260 seconds]
Ralith_ has quit [Ping timeout: 255 seconds]
pkill9_ is now known as pkill9
<dtz>
ahh okay no I was just using, like, -fsanitize=address lol
mounty has joined #nixos
coot has joined #nixos
ma27 has joined #nixos
TweyII has quit [Ping timeout: 246 seconds]
ryanartecona has quit [Quit: ryanartecona]
ertes has quit [Ping timeout: 248 seconds]
alexteves has joined #nixos
butchery has quit [Remote host closed the connection]
asuryawa_ has quit [Remote host closed the connection]
zybell_ has quit [Ping timeout: 276 seconds]
ryanartecona has joined #nixos
jperras has quit [Quit: WeeChat 2.1]
xcmw has joined #nixos
Tucky has quit [Remote host closed the connection]
<Ralith>
dtz: yeah, the API comes up when you want custom allocators or fancy stack shenanigans to work with it gracefully
<Ralith>
slightly esoteric but very important if you want your most sensitive code to be sanitized
seville has joined #nixos
ma27 has quit [Remote host closed the connection]
ertes has joined #nixos
ma27 has joined #nixos
xcmw has quit [Ping timeout: 248 seconds]
knupfer has joined #nixos
hellrazor has quit [Quit: WeeChat 2.1]
astiles has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Alling has joined #nixos
<Alling>
How do I make my AirPods work on NixOS with Gnome? I get this error in the journal when I try to connect to them: "a2dp-sink profile connect failed for 24:F6:77:E3:5E:B3: Protocol not available". Seems to have something to do with Pulseaudio. :D
<Alling>
gchristensen: I'll have a look! Just gonna reboot.
Alling has quit [Client Quit]
xeji has joined #nixos
astiles has quit [Remote host closed the connection]
acarrico has joined #nixos
astiles has joined #nixos
alex`` has joined #nixos
jmeredith_ has joined #nixos
<lo_mlatu>
Hello everyone, I want to use pandoc-crossref, but build failed, said pandoc should >= 2.1.3, how do I fix it?
astiles has quit [Ping timeout: 248 seconds]
Fare has quit [Ping timeout: 240 seconds]
Guest51829 has quit [Ping timeout: 260 seconds]
<BlessJah>
gchristensen: nope, wasn't that ottidmes or adisbladis[m]?
<gchristensen>
oh maybe so
Fare has joined #nixos
<Fare>
MichaelRaskin, so I lost anything you may have told me since my last message
teej has quit [Quit: Connection closed for inactivity]
Guest51829 has joined #nixos
winem_ has joined #nixos
sanscoeur has joined #nixos
ThatOtherGuy has quit [Ping timeout: 248 seconds]
jgt has joined #nixos
zduch4c has joined #nixos
<zduch4c>
is it safe to delete .nix-defexpr & .nix-profile in my ~?
<srhb>
zduch4c: I'm not sure what you mean by that. Do you mean "will they be recreated next time I do X?" and in that case, which X are you thinking of?
<zduch4c>
srhb: i dont like having a cluttered ~, and that directory and file are there. I was wondering if deleting them would do any bad to my system
<srhb>
zduch4c: Well, you won't have anything from your profile on $PATH anymore, for instance.
<srhb>
And you probably won't be able to use your channels.
<srhb>
zduch4c: (So no, it's not safe.)
alex`` has quit [Ping timeout: 265 seconds]
<zduch4c>
thanks srhb
asuryawanshi has joined #nixos
<ShalokShalom2>
srhb: "Basically, a reproducible case along with instructions on what to do to conclude that there's a problem."
zduch4c has quit [Client Quit]
<ShalokShalom2>
What in specific is unclear?
<srhb>
ShalokShalom2: All of it. I have no idea what you, what you expected to happen and what broke.
<srhb>
what you did*, what you expected, what broke
Fare has quit [Ping timeout: 248 seconds]
TweyII has joined #nixos
infinisil has quit [Quit: Configuring ZNC, sorry for the join/quits!]
asuryawanshi has quit [Ping timeout: 240 seconds]
alex`` has joined #nixos
infinisil has joined #nixos
vandenoever has quit [Ping timeout: 265 seconds]
seanparsons has quit [Read error: Connection reset by peer]
<ShalokShalom2>
There is a clear step by step guide
<ShalokShalom2>
If not you, I am sure somebody else is able to follow it
<srhb>
ShalokShalom2: You would probably get better responses if it were clear to more people, but that's up to you. :)
jperras has joined #nixos
infinisil has quit [Client Quit]
<ShalokShalom2>
Its very simple: Once any user of any other OS installs a package with npm, pip and similar tools, is every single symlink within Nix unusable
<srhb>
ShalokShalom2: What symlinks, for instance? How do I reproduce this?
judson has joined #nixos
<ShalokShalom2>
ALL
<srhb>
ShalokShalom2: When you say "Nix" do you mean /nix/store ?
<ShalokShalom2>
As mentioned four times now
<ShalokShalom2>
I mean /nix, as already mentioned
TweyII has quit [Ping timeout: 256 seconds]
infinisil has joined #nixos
<ShalokShalom2>
Do you read the issues, which you criticise?
<srhb>
ShalokShalom2: I know you think you're being clear, but you really aren't and being obnoxious about it will not help you solicit help. :)
TweyII has joined #nixos
<srhb>
You could start, for instance, by adding a symlink to the issue, showing what it looks like before things break and what it looks like after things break.
<srhb>
It would also help if you tell people specifically what packages to try to install. That is, the actual commands. People will be more likely to test it then.
<ShalokShalom2>
All the people who responded to me previously, are very aware of this issue
infinisil has quit [Client Quit]
<ShalokShalom2>
And as already stated: For a lot of them, it is actually no issue :)
<ShalokShalom2>
So they know exactly, what happens
<ShalokShalom2>
Nix breaks when any other package manager does something in /nix
<ShalokShalom2>
This is well known
<ShalokShalom2>
And again: It is completely unrelated, which package you install
rauno has joined #nixos
winem_ has quit [Ping timeout: 240 seconds]
xAFFE has left #nixos ["Error from remote client"]
<gchristensen>
soon, the default installer on Linux and Mac will be with a daemon, which protects against package managers editing in /nix/store
<ShalokShalom2>
Which is the very reason, why I spell: Use this package manager by installing any package.
<srhb>
OK, up to you :)
<ShalokShalom2>
Fine ^-^
<ShalokShalom2>
gchristensen: So, they will simply put an error message?
infinisil has joined #nixos
infinisil has quit [Remote host closed the connection]
<ShalokShalom2>
When some package tries to edit something in /nix/store?
<ShalokShalom2>
except the official nix ones, of course
<LnL>
the /nix/store is readonly
<ShalokShalom2>
well, obviously not
<ShalokShalom2>
LnL: I guess this counts on NixOS
<ShalokShalom2>
I am on KaOS
<ShalokShalom2>
I simply use your package manager
seanparsons has joined #nixos
unacceptable has quit [Quit: ZNC 1.6.4 - http://znc.in]
<gchristensen>
with the new installer, /nix/store is only writable by root, fixing most of the problems where npm / pip install to /nix/store
<LnL>
it's readonly everywhere, but on nixos it's a readonly mount for even more protection
<ShalokShalom2>
Oh I see.
<gchristensen>
the old installer set it up without the daemon, which allows the user who uses it to directly write to the store
<ShalokShalom2>
LnL: So, how do I break the system then?
ciastek has quit [Quit: Connection closed for inactivity]
<ShalokShalom2>
By installing something with npm, for example
<ShalokShalom2>
If its readonly
<LnL>
what kind of install is this?
<gchristensen>
srhb: for back story, on a daemonless install, if you installed pip from nix then ran `pip install ...` pip would install to /nix/store/...
<judson>
Using nix-shell in one of my projects, I'm getting this message: warning: dumping very large path (> 256 MiB); this may run out of memory. I sort of recall seeing that in the builders somewhere, but I'm wondering what's causing that? It seems to be new, after updating my channels recently. Is this related to the "what's pulling in the world?" thing that Eelco talks about so much?
infinisil has joined #nixos
<gchristensen>
ShalokShalom2: please run `nix-shell -p nix-info --run "nix-info -m"` and pastebin the esults
<ShalokShalom2>
gchristensen: There is no symlink for nix-shell anymore ;)
<ShalokShalom2>
And I already uninstalled nix and deleted /nix
lo_mlatu has quit [Ping timeout: 260 seconds]
<ShalokShalom2>
Let me reinstall
infinisil has quit [Client Quit]
<gchristensen>
ShalokShalom2: install nix a specific way:
zybell_ has joined #nixos
<ShalokShalom2>
ok
ryanartecona has quit [Quit: ryanartecona]
<gchristensen>
oh, the new installer isn't released yet
<LnL>
ShalokShalom2: if it's a single user install the store is owned by your current user, so if a program just ignores the write bit it can still change it
<LnL>
eg. cp won't work but cp -f will
<ShalokShalom2>
The default install is always a single user install
<ShalokShalom2>
well, npm works for sure :D
<ShalokShalom2>
gchristensen: Which one do you mean?
<ShalokShalom2>
2.0 is new, iirc?
<ShalokShalom2>
Or do you mean a minor release of it?
<gchristensen>
Nix 2.0.1's installer provides a flag to use a daemon install
<ShalokShalom2>
[19:17] <ShalokShalom2> And I already uninstalled nix and deleted /nix
<ShalokShalom2>
thanks a lot
hakujin has joined #nixos
<gchristensen>
ShalokShalom2: being rude won't get you very far
<ShalokShalom2>
gchristensen: I guess there is a prerelease?
xeji has quit [Quit: WeeChat 2.0]
<gchristensen>
there isn't
<drakonis>
chill out dude
<ShalokShalom2>
gchristensen: I consider it as rude to get ignored for one time after the other
<drakonis>
is this your first time on irc?
<ShalokShalom2>
No
<drakonis>
then chill out a bit
blankhart has quit [Ping timeout: 240 seconds]
<gchristensen>
ShalokShalom2: I'll PM you.
jperras has quit [Ping timeout: 268 seconds]
astiles has joined #nixos
<infinisil>
Huuuuh, why do I get "connection refused" when doing `ssh localhost` in the new nixos-unstable? :/
<nicl_l>
infinisil: is there a test for that in the release channel?
<Ralith>
Judson: I usually see that when I have src set to nonnull in the shell derivation, which isn't generally useful
<srhb>
infinisil: What does localhost resolve to?
<infinisil>
nicl_l: probably not
jperras has joined #nixos
kim0 has quit [Quit: Connection closed for inactivity]
<Ralith>
not sure why it arises, but just set src to null and it will likely go away
<infinisil>
srhb: I'd think 127.0.0.1, i haven't done any weird hosts stuff
<symphorien>
Judson: usually src=./. where . contains big files
<infinisil>
I already booted into an older eneration, can't verify rn
rauno has joined #nixos
<srhb>
infinisil: I've had this happen with ipv6 resolution, hence the question
<nicl_l>
The answer as to what "localhost" means is so complicated that an RFC was written to fix the problem by a Google engineer.
<nicl_l>
That provides all just the justification I need to never refer to "localhost" as such. It's just asking for trouble. It's like running Gentoo :P
<clever>
infinisil: do ssh -v localhost
taktoa has joined #nixos
<Ralith>
Judson: I often have a shell derivation defined by overriding the package derivation to null out src and add some tools/env vars/etc
<gchristensen>
a directory name in Linux can contain anything except a null byte and a /, right?
<infinisil>
I'll have a closer look once i fixed my openssh not starting due to a typo in the config :)
<Dezgeg>
gchristensen: correct
<gchristensen>
Safe (tm) -- thanks Dezgeg!
jgt has quit [Ping timeout: 240 seconds]
seppellll has quit [Quit: seppellll]
<slabity[m]>
Is there any documentation on the internals of NixOS? I'm looking for what happens on a step-by-step level when I call `nixos-rebuild`
<slabity[m]>
I'm interested in making a 'Linux From Scratch' manual that integrates Nix to make it easier for people to build.
<pmade>
With all of the bikeshedding going on over encrypting files in the nix store, how are people working around this? In other words, without builtins.encryptString, is there a way to shell out and encrypt a string before it goes into the nix store?
<srhb>
slabity[m]: nixos-rebuild is a quite short shell script. It might be worth going through it and asking questions to the specific steps that are not clear :)
seanparsons has quit [Read error: Connection reset by peer]
<slabity[m]>
srhb: Oh, okay. I did not realize it was a shell script.
<srhb>
slabity[m]: No, I was surprised that first time as well. :D
lo_mlatu has joined #nixos
<srhb>
slabity[m]: From your scope I guess activate might be the most interesting part.
Alling has joined #nixos
<srhb>
slabity[m]: (Which is also in a shell script, switch-to-configuration)
<Alling>
gchristensen: bluetoothd[608]: connect error: Permission denied (13) kernel: Bluetooth: Inquiry failed: status 0x0c bluetoothd[608]: connect error: Too many levels of symbolic links (40)
<srhb>
Oh, no, that;s perl
jgt has joined #nixos
<srhb>
Still quite readable :)
<Alling>
gchristensen: Bit hard to post journal output here but ... I have no luck with bluetoothctl either ... "Failed to connect: org.bluez.Error.Failed"
asuryawanshi has joined #nixos
unacceptable has joined #nixos
seppellll has joined #nixos
<ShalokShalom2>
gchristensen: What is the reason to prefer a non-daemon installation?
<ShalokShalom2>
So, eg why set an optional flag for the daemon, instead of installing it by default
<gchristensen>
I have no reason to prefer a non-daemon instnallation
seanparsons has joined #nixos
<gchristensen>
ah
<symphorien>
ShalokShalom2: if you are not root
<ShalokShalom2>
Do you see any technical reason for it?
<gchristensen>
2.0.0 was released non-daemon, so changing the installer so drastically in a point release is too fast
<ShalokShalom2>
Oh I see
<gchristensen>
2.1.0 will default to daemon
<ShalokShalom2>
I am interested to ship packages with Nix to our community
<ShalokShalom2>
And I am very interested into a setup that avoids this issue with the symlinks
<ShalokShalom2>
I guess there are other benefits as well?
<ShalokShalom2>
Root is totally fine
<ShalokShalom2>
So, can I simply change the 2.0.1 flag to install the daemon by default?
<ShalokShalom2>
for myself
Lisanna has joined #nixos
<Ralith>
BlessJah: these seem like problems with sh being stringly typed, more than anything
jmeredith_ is now known as jmeredith
<Lisanna>
if I'm using types.submodule with mkOption outside of NixOS, what function do I pass a value of that type through to have it typecheck it and process defaults?
<zybell_>
Alling:It is because the kernel devs choose to check for looping in symlink resolution,which is ok,but instead of (ch)using the correct 1step2step resolution they set hard limits as well iteratively as recusively. Where especially the recursive limit (8 iirc) is set ridicuosly low.
<Alling>
zybell_: How does that relate to connecting a pair of AirPods? ^^'
jgt has quit [Ping timeout: 256 seconds]
<BlessJah>
Ralith: actually it's POSIXs exec family that's stringly typed, as well as C (and arguments to main)
<Ralith>
BlessJah: C is not stringly typed, no; I would certainly recommend care when processing arguments, but it is not difficult to avoid shell processing, which leaves few gotchas
<rain1>
are these problems fixable?
TweyII has quit [Ping timeout: 265 seconds]
seppellll has quit [Quit: seppellll]
ryanartecona has joined #nixos
<BlessJah>
Ralith: I meant char** argv is stringly
<rain1>
yes there's no difference between flags, paths and text that you give to a command line
<rain1>
that's why they can get mixed up or misinterpreted, like a file name starting with -
<judson>
Thanks, Ralith and symphorien. That was exactly my problem.
humanoyd has quit [Quit: WeeChat 2.1]
pie_ has joined #nixos
<ShalokShalom2>
I follow the install instruction by running the install script and creating the dir in /
<ShalokShalom2>
now, this dir is empty and the tutorial seems to assume that there is data in
<ShalokShalom2>
I can remind that I have to run any other command before, while this seems not to be part of the tutorial yet?
<ShalokShalom2>
something with adding a mirror server or so?
Fare has joined #nixos
<zybell_>
Alling:If you run a distribution that depends heavily on symlinks (as nixOS) you should be aware of the limitations and assumptions. Maybe you need to recompile the kernel with higher limits,maybe nixos needs to patch the kernel to make the limit configurable, maybe replace a symlink to a symlink with a hardlink to that symlink. Idk the sitution, but the (unix)socket of the bluezd seems to be safely locked behind to many symlinks in its
<zybell_>
dirname.
<ShalokShalom2>
ah, channels, right
drakonis has quit [Read error: Connection reset by peer]
<gchristensen>
seems weird, because I use bluez and bluetooth headphones just fine in a2dp mode
<ShalokShalom2>
cool, nix-channel: command not found
<ShalokShalom2>
once again :D
lo_mlatu has quit [Ping timeout: 248 seconds]
<Dezgeg>
actually the "Too many levels of symbolic links" might not refer to symbolic links at all but to whatever the bluetooth layer uses the error code ELOOP for
<ShalokShalom2>
reinstalled a third time, works now, thanks
<Dezgeg>
which seems very likely given that google gives non-NixOS results about the exact same error
xcmw has joined #nixos
kisik21 has joined #nixos
<Dezgeg>
case HCI_REPEATED_ATTEMPTS: return ELOOP;
alexteves__ has quit [Ping timeout: 265 seconds]
alex`` has quit [Ping timeout: 276 seconds]
xcmw has quit [Ping timeout: 240 seconds]
<hodapp>
"No matching distribution found for numpy<=1.13.3,>=1.8.2 (from mxnet==1.1.0)" uhhh... cool. guess I'll go pin a bunch of versions because some library felt the need to stick upper bounds on things
xcmw has joined #nixos
<zybell_>
Dezgeg:If the prog came to the point having a connect with bluezd I would entertain a bluetooth-related reason for this error. But since the program fails the connect (see next error)I would assume more probability for a filesystem-related cause.
<Dezgeg>
no
<kisik21>
My xfce4-panel cannot save its config for some reason. Config directory is clearly writable. But when I try to save, it says "(xfce4-panel:16025): xfce4-panel-CRITICAL **: panel-application.c:1250 (panel_application_save): expression 'XFCONF_IS_CHANNEL (channel)' failed.", and shows an empty panel after reload, meaning it does not save the configuration layout.
<Dezgeg>
it's bluetoothd which printed the "Too many levels of symbolic links" error to the log
<kisik21>
What do you think about it?
<hodapp>
hmm, if I have something made with buildPythonPackage can I override 'version' and 'src' easily or must I copy the entire derivation?
<hodapp>
all I'm trying to do is knock numpy a few versions back so this other package quits bitching...
<zybell_>
I had read it to be the client. Sorry that I missed it.
astiles has quit [Remote host closed the connection]
xcmw has quit [Ping timeout: 240 seconds]
MP2E has joined #nixos
nicl_l has quit [Ping timeout: 260 seconds]
Fare has quit [Ping timeout: 264 seconds]
<srid>
how do I replace hibernate with suspend on lidclose? (chrome misbehaves after wakeup from hibernate)
<Alling>
zybell_: Should I really [be aware of the limitations and assumptions] though? While interesting, I would not consider such knowledge about the Linux kernel and NixOS something I expect an end-user to possess. Recompiling the kernel with a modified symlink depth limit sounds difficult even to me, and I am not a complete noob. Hm. I wonder why this is not mentioned in the wiki about Bluetooth. Shouldn't pretty much everyone have the sam
<foldingcookie>
Alling: yeah, I have a hard time believing symlink depth is your problem
<Alling>
foldingcookie: I'm more inclined to suspect some kind of permissions issue.
<elvishjerricco>
Alling: FWIW, i recommend blueman for bluetooth stuff. bluetoothctl technically worked, but gave me a lot of UX issues (like the error you received) that were difficult to work around. blueman-manager is a GUI that does roughly the same thing
<hodapp>
does NIX_CFLAGS_COMPILE apply only to C code? I am trying to figure out the 'right' way to add a compile-time flag for stdenv.mkDerivation
<hodapp>
and haven't the slightest idea where to look up something like this
lo_mlatu has joined #nixos
<hodapp>
but the code is, I believe, both C and C++ in this CMake build
ertes has quit [Ping timeout: 240 seconds]
<symphorien>
hodapp: you can export NIX_DEBUG=1 to see what the wrapper really adds
<Alling>
elvishjerricco: Thanks! I would prefer to be able to use Gnome's Bluetooth GUI though. Do you think that would be possible?
asuryawanshi has quit [Remote host closed the connection]
<elvishjerricco>
Alling: No idea, sorry
asuryawanshi has joined #nixos
<hodapp>
symphorien: NIX_DEBUG=1 appears to have done absolutely nothing
sigmundv has quit [Ping timeout: 260 seconds]
<hodapp>
and this build has to go through a bunch of CUDA bullshit before it even gets to the "real" C++, it looks like
<symphorien>
hodapp: is the build intercepting stderr ?
<hodapp>
symphorien: I have no idea, it's just a CMake build
<hodapp>
all I know about it is that it's a fucking train-wreck
<hodapp>
and it is for some unknown reason completely failing to point the resultant library at libomp.so
<symphorien>
hum I don't speak cmake unfortunately
<hodapp>
is there any sort of idea where libomp.so is supposed to be in a system?
<symphorien>
nix-locate says llvmPackages.openmp.out 870,752 x /nix/store/l59pmfwgfx0xldzmd4ywzwmyc8m5ppnc-openmp-5.0.1/lib/libomp.so
ma27 has quit [Ping timeout: 276 seconds]
<hodapp>
hmmmm
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
<hodapp>
the CMake build claims it already found OpenMP 4.5 and I don't have that package installed
alex`` has joined #nixos
s33se has joined #nixos
s33se has quit [Client Quit]
kisik21 has joined #nixos
<kisik21>
How to disable xfdesktop in xfce+i3 session?
<clever>
hodapp: nix doesnt care about what is "installed" currently
<hodapp>
clever: not sure why that's relevant
alex`` has quit [Ping timeout: 246 seconds]
<clever>
hodapp: nix will autoamtically fetch openmp and provide it to the build
<clever>
and it wont be visible as installed from outside the build
<hodapp>
clever: this doesn't explain why libomp.so is nowhere present on my system
Izorkin_ has joined #nixos
<clever>
and you searched all of /nix/store/?, maybe the cmake test for it is faulty
<hodapp>
yes, I searched all of /nix/store
<clever>
check the cmakelists.txt source to see how its finding openmp
alex`` has joined #nixos
<hodapp>
whatever "find_package(OpenMP REQUIRED)" is
kisik21 has left #nixos [#nixos]
<tokudan[m]>
seems that hydras disk is full: VBoxManage: error: VMDK: cannot write compressed data block in './nixos-18.03.132082.bca05472a77-x86_64-linux-disk001.vmdk' (VERR_DISK_FULL) (from https://hydra.nixos.org/build/73015232/nixlog/1)
Izorkin has quit [Ping timeout: 256 seconds]
<clever>
tokudan[m]: page wont load, postgresql error, likely due to low disk space, lol
<tokudan[m]>
i can reload the page just fine
Izorkin_ has quit [Ping timeout: 248 seconds]
lo_mlatu has quit [Ping timeout: 240 seconds]
obadz- has joined #nixos
kreisys has quit [Read error: Connection reset by peer]
obadz has quit [Ping timeout: 240 seconds]
obadz- is now known as obadz
trcc has joined #nixos
<trcc>
anyone got a link to a basic haskell project setup with nix?
spear2 has joined #nixos
ottidmes has joined #nixos
Sonarpulse has quit [Ping timeout: 264 seconds]
fragamus has joined #nixos
astiles has joined #nixos
arianvp2 has joined #nixos
<arianvp2>
what is the difference between `pkgs.fetchurl` and `builtins.fetchurl` ?
<ShalokShalom2>
hi there
vandenoever has quit [Read error: Connection reset by peer]
<ShalokShalom2>
i see it is common to upload new versions of a software, instead of replacing the previous one
<ShalokShalom2>
does this count in the infinity?
<ShalokShalom2>
or simply so long as other packages point to it as a dependency?
<ShalokShalom2>
and I suggest to name the initial package also with the version number, since otherwise is it very likely, that newbies choose the oldest one
<MichaelRaskin>
The attribute without version is for the version we are least scared to use by default.
<MichaelRaskin>
As a dependency for other builds.
frank87 has quit [Remote host closed the connection]
astiles has quit [Ping timeout: 264 seconds]
frank87 has joined #nixos
<MichaelRaskin>
arianvp2: I think the builtin is considered to fetch in evaluation-time, so it can optionally fetch without pre-specifying the hash.
<MichaelRaskin>
If I remember correctly
<judson>
Huh. I'm trying to set up a shell.nix for iovisor/bcc. It seems that {pkgs ? import <nixpkgs> {}}: isn't enough - there's no "kernel" attribute on that pkgs.
<judson>
Do I need to specify the system or something?
<judson>
Also: looking forward to the problem that I need the pkgs to be the current NixOS pkgs, not my user channel.
<MichaelRaskin>
What is kernel? there is linux_latest
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
kiloreux_ has quit [Quit: Leaving]
<judson>
I started by copying the default.nix from os-specific/linux/bcc ... so whatever that means by kernel?
<ShalokShalom2>
boah, again:
<ShalokShalom2>
➜ nixpkgs git:(master) ✗ nix-build . -A fsharp41
<ShalokShalom2>
zsh: command not found: nix-build
<clever>
Judson: kernel packages have to be loaded by a special function in all-packages.nix
robstr has quit [Quit: WeeChat 1.9.1]
<ShalokShalom2>
i did not touch anything now, simply installing nix through your script
<clever>
Judson: and that function is ran on each kernel version, to generate a package set that compiles the same module against several kernels
<judson>
clever, bcc isn't a module, but it has to build against kernel functions.
<clever>
its probably making use of similar features
ryanartecona has quit [Quit: ryanartecona]
vandenoever has joined #nixos
<clever>
grep all-packages.nix to see where its loaded
<clever>
and what arguments are given to it
Sonarpulse has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
<judson>
it's within linuxPackagesFor = kernel: lib.makeExtensible (self: with self; {
<ShalokShalom2>
MichaelRaskin: least scared?
<ShalokShalom2>
mono 4.0 is from 2015
simukis has quit [Quit: simukis]
<ShalokShalom2>
i would be very scared, using this :D
kreisys has joined #nixos
alex`` has quit [Quit: WeeChat 2.1]
ryanartecona has joined #nixos
ottidmes has quit [Quit: WeeChat 2.0]
brodul has quit [Remote host closed the connection]
ryanartecona has quit [Client Quit]
<judson>
Okay, that was easier than I imagined.
orivej has joined #nixos
<ShalokShalom2>
So, is there a standard, when removing a package?
<arianvp2>
MichaelRaskin: ah I see
<arianvp2>
thanks
<ShalokShalom2>
To default to a package which is not maintained since years and contains known security holes is proabably a less ideal situation
astiles has joined #nixos
<infinisil>
I have this rather easy PR of mine which fixed a type to enable you to override the environment of a systemd service
<gchristensen>
woodson: ok, it looks like your profile is at /nix/var/nix/profiles/default but your profile is trying to use profiles/woodson. that is strange. can you ls -la /home/woodson/.nix-profile/etc/profile.d/nix.sh and also cat /home/woodson/.nix-profile/etc/profile.d/nix.sh
<woodson>
ls -la /home/woodson/.nix-profile/etc/profile.d/nix.sh <-- outputs
<woodson>
ls: cannot access '/home/woodson/.nix-profile/etc/profile.d/nix.sh': No such file or directory
<gchristensen>
ah of course it would
<woodson>
gchristensen: I dont remember removing it...
lo_mlatu has joined #nixos
astiles has quit [Remote host closed the connection]
<gchristensen>
woodson: can you paste the contents of ~/.bash_profile ~/.bash_login ~/.profile
<ottidmes>
random-nixor: although I am not aware of any reflection support like that, you could probably achieve your goal with some tricks and by leveraging the module system.
<guest39621>
is that how you upgrade to nix 2.0 as well?
<guest39621>
I can't figure out how to upgrade on mac os
<ottidmes>
woodson: considering that I would definitely try reinstalling, with --daemon set as above
krey has joined #nixos
<ottidmes>
gchristensen: if you keep what is in /nix/store but remove the rest, this would remove the db as well, is nix than smart enough to reuse what was still in /nix/store?
<gchristensen>
the installer insists quite strongly you delete it all
<woodson>
it seems to have download correctly
<woodson>
but then failed at the end
<woodson>
For some reason, $NIX_REMOTE is set. It really should not be set
<woodson>
before this installer runs, and it hints that Nix is currently
<woodson>
installed. Please delete the old Nix installation and start again.
ma27 has joined #nixos
<ottidmes>
woodson: I would first try and purge all existing Nix stuff from your system, all .nix-* folders in both your user and root and remove /nix, and then make sure you start a clean shell (no outdated env vars), and then try reinstalling
blankhart has joined #nixos
<woodson>
ottidmes and as long as the store is there
<woodson>
I wont lose my previous env?
<ottidmes>
woodson: hmm, then you would not want to remove /nix, that is where everything is stored
<ottidmes>
woodson: problem is, considering you had permission errors and other stuff happening inside /nix, this might also mean that if you keep it, the problems might persist
<ottidmes>
woodson: but you could of course first try keeping /nix but still removing the rest (the nix stuff in /home/* and /root)
<ottidmes>
woodson: You could also try and creating a tarball of your current stuff first
Fare has joined #nixos
justanotheruser has joined #nixos
ocharles has quit [Ping timeout: 256 seconds]
<Rusty1_>
woodson: does id show you as in nixbld group?
<woodson>
Rusty1_, sorry whats that ?
das_j has joined #nixos
<Rusty1_>
in a terminal type: id, does nixbld group list?
<Rusty1_>
if i read the installer output , it looks like a group is created, wondering if its still there and you're in it
<das_j>
Hey everyone, I'm currently trying to write a module with an attribute set of strings. So the type for the option is lib.types.attrsOf lib.types.string. However, when trying to assign something to the attribute set, I get an error message because it seems like the option is not defined.
<ottidmes>
so if the building of the stuff in your /nix/store took very long, or you have a slow connection, you could do: https://nixos.org/nix/manual/#ssec-copy-closure to export the closure of your profile to some file, to import after you did a fresh install
<gchristensen>
woodson: (the nixbld group is created for multi-user only, and no regular users should be in nixbld)
<gchristensen>
Rusty1_: (the nixbld group is created for multi-user only, and no regular users should be in nixbld)
<ottidmes>
das_j: I think string was deprecated and is now str
guest39621 has quit [Quit: Page closed]
<das_j>
ottidmes: Thanks, but the problem persists even with str :/
<woodson>
where is this nixbld group?
<woodson>
I dont see it
<ottidmes>
das_j: yeah I checked, its just mentioned as a comment above string, its still there, string concatenates, while you normally would want just a single string of lines type
<ottidmes>
woodson: that is used as the build user in a multi-user setup, but the normal nix outside NixOS defaults to a single user setup, so it should be normal that you do not have it
<das_j>
ottidmes: So you mean I should use lib.types.attrsOf lib.types.lines instead?
<mpickering>
How can I specify a package set for why-depends to use?
<ottidmes>
das_j: sorry, of=or, but about your problem, your definition is correct, but you probably use it wrong
<das_j>
I'll just create another gist
<ottidmes>
das_j: please do, because this is not enough info, I am afraid
<ottidmes>
das_j: huh, yeah that is not going to work, so options is like config, so if you define something inside options like you do with domains, you could set the option via config.domains (i.e. a direct correspondance between options.domains), you probably want to have options.certs = { ... } so that you can set certs = { ... } in your config
<dtz>
YAAAYYYY 2.0.1
<dtz>
haha
<dtz>
:D:D:D
<gchristensen>
do the dance, dtz
<ottidmes>
das_j: remember that the module system has multiple ways of defining a module and that if you have a config of { certs = { ... }; } this is implicitly converted to { config = { certs = { ... }; }; }
* dtz
does the Nix dance
* dtz
lambda lambda lambda ~o~
<dtz>
good thing we sorted that out before the release
<dtz>
else I'd be doing the wrong dance, like a chump!
<dtz>
teehee
<krey>
where do the Xorg logs live on NixOS?
<ottidmes>
krey: /var/log/x-0.log
<das_j>
ottidmes: I updated the gist again, this is the full code I have, certs is just a submodule. It seems correct this way, because I can set domains, but cannot set execPost
<das_j>
So I suspect the attrs
<krey>
ottidmes: I don't have that one. I guess it's /var/log/X.bumblebee.log instead?
<ottidmes>
das_j: execPost should be at efcloud = {
<das_j>
Oh well
<das_j>
Looks like I am blind :/ Thank you so much!
<das_j>
It seems to work now
woodson has quit [Ping timeout: 248 seconds]
<ottidmes>
das_j: No problem, but some tips, if you want the merge policy to be an error if defined twice, you should use str, or if you want to merge them with a newline, you should use lines, and I would use with lib; and in api with types;
<ottidmes>
krey: Not sure, could it be that it depends on the display manager? I am using lightdm. Anyway, if you check the log it should probably have some info in it to determine if it indeed is the correct log
<das_j>
ottidmes: Yes, I wasn't aware of the lines type. And yes, with lib; would probably make my life easier
Coherentfox has joined #nixos
<Lears>
How can GTK applications have their fonts configured on NixOS? I thought they were supposed to use fontconfig in the absence of gnome, but I'm seeing some awful subpixel rendering that's supposed to be disabled.
<Lears>
Turning it off in lxappearance doesn't work either.
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
<Ralith>
applications may vary; termite is respecting my fontconfig, at least
<das_j>
Another question, how can I make a unit automatically start on configuration change without adding it to a target?
<das_j>
Do I need to use an activation script for that?
astiles has quit [Read error: Connection reset by peer]
<Lears>
Geh, I just realised I had Xft.rgba: rgb in my ~/.Xresources... Looks like GTK was reading from that.
<ottidmes>
kerrhau: found it, it should be in SDL2.out
<ottidmes>
kerrhau: I approached it as follows, googled libsdl2 found the actual name of the lib file "libSDL2-2.0.so" and then ran `nix-locate lib/libSDL2-2.0.so`
day|flip has joined #nixos
Lisanna has quit [Remote host closed the connection]
xcmw has joined #nixos
<kerrhau>
ottidmes: hm, now I know where it is, the problem is getting sbcl/emacs to recognize it
<ottidmes>
kerrhau: I don't use emacs, is it about emacs the program, or some emacs package, if its the former I might help you, if its the latter, you will have to ask others
<kerrhau>
it's not about emacs itself but sbcl (the common lisp repl)
<kerrhau>
or rather, a common lisp repl
chisui has joined #nixos
kai_w_ has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
kai_w has quit [Ping timeout: 256 seconds]
<krey>
my opengl stopped working after upgrading to 18.03. glxinfo "couldn't find RGB GLX visual or fbconfig"
<krey>
any ideas on debugging this?
<ottidmes>
kerrhau: Can't you just use wrapProgram? Or what is your problem / what do you try to achieve? I checked, and sbcl is already packaged, so I assume you use something in the REPL that is using that particular library. You could also probably use nix-shell for this.