<clever>
the listOf is just a function that gives a merge function, that can join things
<krey>
clever: my mind is totally blown
<krey>
clever: but say I wanna set my nix_path
<krey>
clever: in a way that overwrites any previous settings
<krey>
clever: completely
<krey>
clever: do I mkForce then?
<clever>
mkForce again
<clever>
yep
* krey
's head just blew off
davidlt has quit [Ping timeout: 240 seconds]
<krey>
clever: ok, so I just tried it
<krey>
clever: and it doesn't quite work
<krey>
clever: the default nixPath isn't added in, unless I leave it empty
<clever>
mkForce will also delete the defaults
<krey>
clever: yeah, but I didn't mkForce
<clever>
oh, and also, the default value is a bit special
<clever>
and setting it to anything will also wipe the default
nh2 has joined #nixos
d-fish has quit [Quit: Konversation terminated!]
<krey>
clever: is it possible to get the default value?
<clever>
options.nix.nixPath.default
<clever>
and add options to the module args on line 1
<infinisil>
krey: I think i told you this earlier today as well
jrolfs has quit [Ping timeout: 240 seconds]
<infinisil>
or maybe not, could've been somebody else
<krey>
infinisil: oops, I don't think it was me, but could've been
<infinisil>
Ah yeah it was phry, the similar looking name confused me
nh2 has quit [Ping timeout: 240 seconds]
blankhart has joined #nixos
Wharncliffe has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer closed pull request #37403 → Apple SDK: bump to 10.12 → https://git.io/vxGhJ
<krey>
clever, infinisil; it's kinda weird, though. since config is already recursive, couldn't you make the defaults the base case?
<infinisil>
krey: i don't get what you mean
<clever>
thats done by setting nix.nixPath in the nix module, rather then setting the default
<clever>
its mostly up to whoever wrote the module that defines the option
<infinisil>
Ah, yeah but also
jrolfs has joined #nixos
kerrhau has quit [Ping timeout: 240 seconds]
<infinisil>
config is the fully evaluated config, if you set some option it's set in config
<infinisil>
So if you were to do `foo = [ config.foo bar ];` then you get `foo = [ config.foo bar bar ] = [ config.foo bar bar bar ] = ... `
iyzsong has joined #nixos
<infinisil>
It's recursive
sigmundv_ has joined #nixos
<abathur>
I'm having a little trouble figuring out why something I'm trying to build is having trouble identifying a dependency (specifically, mysql)
<clever>
abathur: run nix-store -q --tree on the .drv file, then search for mysql with /
<abathur>
probably just a simple gap in my understanding, but it looks like both lib and include are properly getting passed along as flags, so it might just be that the software's method of searching for mysql isn't compatible with the way nix is doing it, or I need to be specifying something specific
<abathur>
weird moment when I'm googling a compile problem further down the chain
maximiliantagher has quit [Ping timeout: 264 seconds]
<abathur>
and the only google result is a gist I completely forgot about posting 4 months ago, before I was running nixos...
<clever>
lol
<clever>
i have googled problems before, found a stack overflow, and an acceptable answer, that i had already upvoted....
Jackneilll has joined #nixos
ChongLi has quit [Read error: Connection reset by peer]
ChongLi has joined #nixos
nocoolnametom has quit [Ping timeout: 256 seconds]
nocoolnametom has joined #nixos
<abathur>
my favorite is googling something that brings back 1-3 pages of results, with all of the non-spam links already clicked
taktoa has quit [Remote host closed the connection]
Jackneillll has quit [Ping timeout: 240 seconds]
acarrico has joined #nixos
taktoa has joined #nixos
shachaf has quit [Ping timeout: 256 seconds]
<abathur>
got it to build by disabling the "format" hardening flag; on a scale of one to bad, how bad?
<clever>
abathur: depends on what triggered the warning, what was the error without that setting?
<abathur>
not still in scrollback as an error, but this is the equivalent warning:pkg-mysql.c:328:5: warning: format not a string literal and no format arguments [-Wformat-security]
<abathur>
meh, missed: errorf(err_string);
shachaf has joined #nixos
<clever>
ah, so it was basically printf(variable1);
<clever>
and potentialy, if an attacker can control that variable, he can exploit the machine
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chisui has quit [Ping timeout: 260 seconds]
sigmundv_ has quit [Ping timeout: 240 seconds]
maximiliantagher has joined #nixos
mbrgm has quit [Ping timeout: 256 seconds]
xcmw has joined #nixos
<dmj`>
maybe I could convert the yaml to json
mbrgm has joined #nixos
<dmj`>
before calling fromJSON
maximiliantagher has quit [Ping timeout: 264 seconds]
<gchristensen>
dmj`: convert all your yaml to json and just use json instead, it'll be simpler and your yaml parser will still work.
<gchristensen>
I can provide a fromYaml function but it'll only work on a VERY SPECIFIC subset of the yaml standard
<Fare>
how stable is 18.03 these days?
<gchristensen>
it is beta
<dmj`>
gchristensen: I hate writing yaml, but love reading it
<gchristensen>
fromYaml = builtins.fromJSON
davidlt has quit [Ping timeout: 240 seconds]
<dmj`>
:)
maximiliantagher has joined #nixos
<dmj`>
nix-repl> builtins.fromJSON "stack.yaml"
<dmj`>
error: unrecognised JSON value
<dmj`>
:(
orbekk has joined #nixos
<gchristensen>
fwiw I'm not making a joke
<gchristensen>
config your yaml to json, save it in the stack.yaml file, it'll work a treat
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil>
gchristensen: A yaml parser that only works on a subset of yaml can't really be called a yaml parser though :)
<kerrhau>
how do you use nix-env do install from an overlay?
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<dmj`>
gchristensen: not sure how to “config yaml to json”, you mean just rename, or find a subset that works? FWIW I’m using an object, the haskell yaml pkg can convert between the two, I might make a helper utility to do this `main = interact (pack . encode . fromJust . decode . pack)`
<dmj`>
s/pack/unpack
<gchristensen>
no, JSON is valid YAMLR
<gchristensen>
YAML
<gchristensen>
so you can just put straight JSON in your stack.yaml and it'll work
<infinisil>
kerrhau: put the overlay in ~/.config/nixpkgs/overlays/foo.nix then you can use its stuff like normal with nix-env
<kerrhau>
hm, it's in .../overlays/nixpkgs-kerrhau/
<kerrhau>
is there any special setup I have to do to make nix-env recognize it?
<{^_^}>
[nixpkgs] @thoughtpolice opened pull request #37722 → preview: add Shenandoah GC to jdk packages, by default → https://git.io/vxBRV
<infinisil>
kerrhau: it won't work nested like this
n0qqe has joined #nixos
<kerrhau>
ah
Zer000 has joined #nixos
<infinisil>
Oh actually it might, checking
<kerrhau>
moving it out worked, so it might not
<infinisil>
Yeah i checked, it doesn't
<infinisil>
Oh hold on
<infinisil>
It should work if the overlay file is in ~/.config/nixpkgs/overlays/nixpkgs-kerrhau/default.nix
<infinisil>
kerrhau: Can you confirm that?
noqqe has quit [Ping timeout: 276 seconds]
n0qqe is now known as noqqe
<kerrhau>
infinisil: yup, works
<infinisil>
Nice
<Fare>
that feeling when chrome persistently stops working :-(
xodbox[m] has joined #nixos
<Fare>
chromium is obviously not deterministic and replayable
<{^_^}>
[nixpkgs] @dtzWill closed pull request #37718 → gettext: fix dep on libiconv w/musl → https://git.io/vxBGt
<dmj`>
gchristensen: oh, I see, yea. I’d like to have it actually be yaml since its easier to read, but I digress
<marusich>
Can Nix create a custom Docker base image of NixOS (not just a collection of packages, but the entire OS and its entire init system and the services it would normally start)?
orivej_ has quit [Ping timeout: 264 seconds]
maximiliantagher has quit [Remote host closed the connection]
<tA63>
Trying to play with Home Manager, I have it writing my .config/bspwm/bspwmrc, and I have in my main configuration.nix the option set to have bspwm's config file set to that same file. but the changes arent taking affect
<tA63>
What should I double check?
ZaraChimera has joined #nixos
ZaraChimera has left #nixos ["Counting Tribbles."]
<pxc>
so I think I broke NixOS on one of my machines a little bit after a strange power event. Nix was broken, too (SQLite database corruption), but I fixed that. nixos-rebuild still doesn't work
<fisher_f>
Hi! I'm installing nixos using the tutorial that has "blogged" in the title. I've booted into nix on my computer and I can't run systemctl start display-manager
<fisher_f>
Says: Unit display-manager.service not found.
<unlmtd>
fisher_f (IRC): did you enable the x server?
<unlmtd>
or is this the live cd?
<unlmtd>
maybe you didnt get the graphical version
<fisher_f>
I haven't enabled the x server
<fisher_f>
It's not the live-usb
<fisher_f>
I have setup the partitions, and booted correctly
coconnor has quit [Remote host closed the connection]
blahdodo has joined #nixos
Lisanna has quit [Ping timeout: 240 seconds]
aarvar has quit [Ping timeout: 248 seconds]
blahdodo has quit [Client Quit]
phry has quit [Ping timeout: 246 seconds]
davidlt has quit [Ping timeout: 264 seconds]
blahdodo has joined #nixos
blahdodo has quit [Quit: Bye bye]
robstr has joined #nixos
orivej has joined #nixos
phry has joined #nixos
blahdodo has joined #nixos
fiddlerwoaroof has quit [Ping timeout: 276 seconds]
Lears has joined #nixos
<fisher_f>
After changing my configuration (I added Firefox to system packages), and running nixos-install, do I have to reboot before the changes take effect?
woboats has quit [Ping timeout: 252 seconds]
woboats has joined #nixos
tA63 has joined #nixos
FRidh has joined #nixos
<Dirt[m]>
In my experience you generally don't have to reboot. You should be able to launch firefox after a `nixos-rebuild switch`.
<Dirt[m]>
I'm not entirely sure if your desktop environment would immediately detect a .desktop entry, though, but you could check if it worked by trying to launch firefox from shell.
xAFFE has joined #nixos
xAFFE has left #nixos ["Error from remote client"]
hariel has joined #nixos
blankhart has joined #nixos
Lears has quit [Remote host closed the connection]
Arcaelyx has joined #nixos
tA63 has quit [Ping timeout: 246 seconds]
jrolfs has joined #nixos
boomshroom-away has quit [Quit: WeeChat 2.0]
marusich has quit [Quit: Leaving]
jrolfs has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @peterromfeldhk opened pull request #37727 → nodePackages_8_x.swagger: init at 0.7.5 → https://git.io/vxBVK
<{^_^}>
→ 4aaf23a6 by @lsix: qgis: 2.18.16 -> 2.18.17
<{^_^}>
→ 9eaefb20 by @gebner: Merge pull request #36311 from lsix/update_qgis
<etu[m]>
typetetris: There's a fetchFromGitlab I think :)
<typetetris>
It is really tiresome to search, as the support code is in the same tree structure as the call sites :( So I can't just grep for the definition ...
<benny>
how is it determined how often an unstable release ISO is built? I see the stable is <24h old whereas the unstable release is 20 days old
<typetetris>
How are those package setup hooks used? https://nixos.org/nixpkgs/manual/#ssec-setup-hooks I need the autoconf one, as the package I am dealing with, doesn't provide a configure script with the archive download from gitlab :(
<{^_^}>
[nixpkgs] @globin pushed 2 commits to release-18.03: https://git.io/vxBK4
<{^_^}>
→ 4a34e749 by @globin: python.pkgs.pygtail: init at 0.8.0
<{^_^}>
→ 0058e51c by @globin: python.pkgs.logster: 7475c53822 -> 1.0.1
ilyaigpetrov has joined #nixos
<typetetris>
ok `declare -f` seems helpful
<benny>
symphorien: that overview is very nice
knupfer has joined #nixos
alex`` has joined #nixos
<typetetris>
ahh, you put the autoreconfHook into nativeBuildInputs, not autoconf
<symphorien>
yes sorry if it was not clear
vcunat has joined #nixos
asuryawanshi has joined #nixos
logzet has joined #nixos
<typetetris>
argl, the package isn't usable with the autoreconfHook out of the box. It provides autogen.sh where it uses autoconf and the like ...., but that is insistent on being called in the src dir :(
<symphorien>
can you cd to the correct directory before the hook is called ?
<symphorien>
for example preConfigure = '' cd src; '';
hariel has quit [Ping timeout: 264 seconds]
hariel has joined #nixos
<typetetris>
at least within the nix-shell, that is read-only ?
<symphorien>
what do you mean ?
deepfire has quit [Ping timeout: 256 seconds]
<typetetris>
I do `nix-shell -A <packagename> .` in a clone of nixpkgs, and do `unpackPhase; cd $src` -> puts me in a directory in the nix store. If I call `autoreconfHook` or `autogen.sh` I get read-only errors ...
thefloweringash has quit [Ping timeout: 246 seconds]
<typetetris>
yeah, I didn't get that. So `nix-build` does that in some temporary directory I guess .
<typetetris>
Is there a small writeup, which tools works where and what the nixpkgs standard tools do?
<symphorien>
not sure
<symphorien>
if you pkg compiles quickly, only using nix-build might be less error prone
<symphorien>
for example you can easily try the install phase in nix-shell
<typetetris>
hmm, so If I call autogen.sh it brings up the same errors as autoreconfHook, `AC_MSG_ERROR` possibly undefinded or some such .. maybe I missed some nativeBuildInput? ACLOCAL_PATH does contain paths with automake and so.
<symphorien>
sorry no idea. I don't know how autoconf works
ylwghst has quit [Remote host closed the connection]
hotfuzz has joined #nixos
hotfuzz_ has quit [Ping timeout: 240 seconds]
thefloweringash has joined #nixos
<typetetris>
If I use fetchFromGitLab do I still have to provide meta.homepage ? (I see in the source of fetchFromGitLab, that it does something with meta.homepage, but I don't get, how it could possibly alter an attribute of a set, where it is just a value expression to the key "src".)
<typetetris>
fetchFromGitLab doesn't set meta.homepage in the package derivation, as I expected ... perhaps it is just the meta.homepage of the src derivation it fiddles with.
<typetetris>
:( `nox-review` doesn't work, cause `pkgs/tools/misc/colord/default.nix` contains garbage at my current checkout which is from today, can anyone help?
<gchristensen>
typetetris: does `git status` show anything changged about that file?
<{^_^}>
[nixpkgs] @TomSmeets opened pull request #37730 → Add a derefPath function that copies a path to the store → https://git.io/vxB1H
<typetetris>
nope.
<Armael>
I want to add a slightly complex shell as a cron job; how can I do that? Is there a way of dumping some text from configuration.nix to a shell script somewhere, then referencing it?
<typetetris>
I changed `maintainers/maintainer-list.nix` does that make nox-review rebuild everything?
<phry>
I'm just debugging something in home-manager... I have a config option of type.loaOf that I'm passing an array. They are calling builtins.attrValues on that. That seems to reorder the list in some way. Can you tell me what the right method would be for it NOT to reorder the list?
<rycee>
And the numbering should make the ordering the same as in the original list.
slyfox has quit [Ping timeout: 264 seconds]
ottidmes has joined #nixos
<phry>
rycee: I'd like to reproduce that, but how did you get the hmConfig variable?
alex`` has quit [Ping timeout: 276 seconds]
<rycee>
phry: Sorry. Something like `hmConfig = import [path to home manager]/modules { configuration = import [path to home.nix]; pkgs = import <nixpkgs> {}; }` should work.
<rycee>
In nix-repl.
<phry>
ah, thx
logzet has quit [Remote host closed the connection]
acarrico has quit [Ping timeout: 264 seconds]
ashgillman has quit [Ping timeout: 248 seconds]
blankhart has quit [Ping timeout: 240 seconds]
<typetetris>
gchristensen: There is no nixStable2 mentioned in the actual master of nixpkgs. My boxes (out of date) channels don't know about it either.
<rycee>
phry: And you can run `lib.mapAttrs (n: v: v.host) hmConfig.config.programs.ssh.matchBlocks` to check which attribute name correspond with which host.
John882 has joined #nixos
Ross has quit [Ping timeout: 264 seconds]
nallar is now known as Ross
<phry>
rycee: I think that explains it... :/
<phry>
rycee: any idea to prevent that?
<typetetris>
still downloading, already trying that, but have to wait a bit, bad internet here.
<rycee>
Ah, exciting :-)
<phry>
xD
<phry>
at least it explains the seemingly ordered unordered order I was getting ^^
<rycee>
I think that'll need to be fixed in the module library. Seems like unintended behavior.
<phry>
so I found a nix bug? exciting indeed
raynold has quit [Quit: Connection closed for inactivity]
<typetetris>
gchristensen: ok, now it is running.
<typetetris>
Can someone help me, how I can get nix 2 on a 17.09 nixos box? Or is it discouraged?
<rycee>
phry: I think so but I might have completely misunderstood the use of loaOf. I'm checking in #nixos-dev :-)
<typetetris>
Ok, got "too many heap sections: .." now.
<phry>
rycee: okay, please keep me in the loop if you learn something new.
jophish_ has joined #nixos
GiGa|Laptop has joined #nixos
jophish_ is now known as Guest73894
<phry>
rycee: should I open an issue with the home-manager github repo on this?
GiGa|Laptop is now known as GiGa|Laptop^
<phry>
for documentation
<GiGa|Laptop^>
hello
<GiGa|Laptop^>
trying to do a "nixos-rebuild switch --upgrade" but just get told "warning: unknown setting 'signed-binary-caches'"
<GiGa|Laptop^>
I've been away for 2 weeks so I'
<rycee>
phry: Yeah, please do. I'll probably in turn open a ticket on Nixpkgs but its good to keep track of :-)
<GiGa|Laptop^>
*I've not changed the config...
<GiGa|Laptop^>
any ideas please?
<GiGa|Laptop^>
(I'm on unstable{
<GiGa|Laptop^>
})
<{^_^}>
[nixpkgs] @shlevy pushed to master « riscv-pk: Set platforms properly »: https://git.io/vxByT
<ndrei>
GiGa|Laptop^: I goes away once you upgrade to unstable and the nix-daemon restarts
<GiGa|Laptop^>
typetetris: None of the files do
<ottidmes>
GiGa|Laptop^: You should be able to safely ignore it, or you could set nix.requireSignedBinaryCaches = false; but be careful, you are very unlikely to want to have that in the long run, since in 18.03 this setting will result in the new setting, require-sigs, to be said to false!
<phry>
patrl: you should not call npm install yourself. within the derivation, you have no internet connection. node2nix should do all the downloading for you and you should assume everything is already installed from there on
<phry>
oh rycee, I've got another one for you before I forget it xD
<phry>
when I use zsh with home-manager, I cannot use nix-replo before seting NIX_REMOTE=daemon manually. am I missing a point or is that material for another github issue? ^^
<phry>
*nix-repl
<GiGa|Laptop^>
typetetris: Good point!
<patrl>
@phry thanks. I'm not calling npm directly - the fact that npm is trying to install packages means that the generated node-env.nix file doesn't specify all the dependencies I guess :(
<phry>
patrl: as far as I know there are many problems with post-install scripts in npm packages that try to download additional stuff. but I don't know much more about that, sorry.
GiGa|Laptop^ has quit [Quit: Leaving]
<phry>
fpletz: are you here right now and could potentially give some advice on node2nix to patrl?
<typetetris>
GiGa|Laptop^: as reasoning: even if screen or tmux get upgraded, the user environment you are using, shouldn't be upgraded, only because you upgrade the system, so the old screen/tmux should stick around and even if your client crashes, this user still has the old version of the client arount, able to connect to the old tmux/screen server which is hopefully still running.
<patrl>
@phry no worries, thanks anyways!
<rycee>
phry: Hmm, I can't help much with zsh but I assume NIX_REMOTE is something that should be set by the system zsh configuration.
<phry>
rycee: if I'm not using home-manager, it is.
gchristensen has left #nixos ["WeeChat 1.9.1"]
gchristensen has joined #nixos
<rycee>
infinisil: Maybe you know how the NIX_REMOTE variable is set in zsh on hm?
<rycee>
phry: Hmm again. I think there is something screwy going on with the zsh configuration on NixOS but I've never actually gone to the bottom of it ( mainly since it doesn't affect me as bash user ;-) ).
<rycee>
phry: But with NIX_REMOTE I'm not certain. Seems like something that still would be set.
<phry>
rycee: I don't think that issue relates to me. I've been using zsh as my default shell (with users.extraUsers.phry.shell = "/run/current-system/sw/bin/zsh" ) for about a year now. just getting problems since I changed to home-manager
<phry>
rycee: so I guess home-manager doesn't load some /etc/profile-like file that it usually should load
<rycee>
phry: Maybe. Though I would guess, that it works a bit like Bash in that ideally you shouldn't have to source any system configuration from your user configuration.
<phry>
rycee: usually not. I guess I'll do some digging :)
<rycee>
phry: Please open a ticket for it and cc infinisil and uvNikita, maybe they have some better insight than my uninformed ramblings :-)
davidlt has joined #nixos
<{^_^}>
[nixpkgs] @LnL7 pushed to master « qscreenshot: fix darwin build »: https://git.io/vxB9c
<phry>
rycee: will do :)
<{^_^}>
[nixpkgs] @LnL7 pushed to release-18.03 « qscreenshot: fix darwin build »: https://git.io/vxB90
<polytux>
the best part with logging in to IRC and starting to ask the question is that I normally figure out the issue when asking the question, so thanks for the help! :D
ndrei has quit [Remote host closed the connection]
ndrei has joined #nixos
acarrico has joined #nixos
ndrei has quit [Read error: Connection reset by peer]
<fearlessKim[m]>
how can I search for a substring with nix ?
asuryawanshi has joined #nixos
vaninwagen has quit [Quit: Connection closed for inactivity]
aarvar has joined #nixos
chisui has quit [Ping timeout: 260 seconds]
<ottidmes>
fearlessKim[m]: Nix should really have a richer string library, but maybe builtins.match work for you (it does have to match the whole string though)
ndrei has joined #nixos
<ottidmes>
I does one change the metric of a network interface? I know I can do it with tools like `ip`, but is there some existing way to configure this? I looked at the options page, but could only find a metric for the default gateway
ndrei has quit [Remote host closed the connection]
<fearlessKim[m]>
ottidmes: ty
ndrei has joined #nixos
ndrei has quit [Remote host closed the connection]
ndrei has joined #nixos
knupfer has quit [Ping timeout: 240 seconds]
ndrei has quit [Remote host closed the connection]
ndrei has joined #nixos
timon37 has joined #nixos
vidbina has joined #nixos
goibhniu has joined #nixos
Synthetica has quit [Quit: Connection closed for inactivity]
<thblt>
I may be tired, but I can't find the way to run a nix-shell from a different nixpkgs than the system-wide one (context: my program requires CMake >= 3.9; NixOS 17.09 comes with 3.8).
<vidbina>
I just noticed nixos-18.03-small is trailing nixos-18.03... shouldn't nixos-18.03-small be ahead? Or do I misunderstand the idea behind the -small branches?
<vcunat>
vidbina: technically there's nothing preventing the situation
<vcunat>
though it happens rarely, I believe
<vcunat>
They are implemented basically as independent channels.
davidlt has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @dezgeg pushed 4 commits to release-18.03: https://git.io/vxBdw
<{^_^}>
→ 75276115 by @dezgeg: OVMF: Reformat a bit for readability
<{^_^}>
→ 7a79af0b by @dezgeg: edk2: Reformat a bit for readability
<{^_^}>
→ ad57d1ec by @dezgeg: edk2, OVMF: Build on aarch64
<vidbina>
vcunat: so it's not that changes are merged into x-small first and then only merged from x-small into x?... workflow-wise?
Ariakenom has joined #nixos
fiddlerwoaroof has joined #nixos
<vcunat>
vidbina: it's the same git branch
<vcunat>
that's not it
<vcunat>
the jobsets on Hydra that control when channels bump are independent for the two
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
<vcunat>
so it isn't guaranteed that all commits that get evaluated on the big one get also evaluated on the small one
<vcunat>
or that some transient errors temporarily block one of them
nuncanada has joined #nixos
fisher_f has left #nixos ["liteIRC for Android"]
ndrei has quit [Remote host closed the connection]
ndrei has joined #nixos
ndrei has left #nixos [#nixos]
<vidbina>
vcunat: ahhhh... thanks for clarifying. Where can I read more about the Hydra jobsets? I only read the section about the stable/unstable/small channels in the NixOS manual (ch 4) but that doesn't mentioned how these channels are managed.
ma27 has quit [Ping timeout: 240 seconds]
ndrei has joined #nixos
erictapen has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @sephalon opened pull request #37732 → pcsc-scm-scl011: init at 2.09 → https://git.io/vxBFn
<aminechikhaoui>
thblt: you could just do nix-shell -I nixpkgs=/path/to/local/nixpkgs
ndrei has quit [Remote host closed the connection]
<thblt>
aminechikhaoui: thanks!
ndrei has joined #nixos
acarrico has quit [Ping timeout: 276 seconds]
maximiliantagher has joined #nixos
goibhniu has quit [Ping timeout: 246 seconds]
ndrei has quit [Remote host closed the connection]
<{^_^}>
→ 3131daac by @dezgeg: nixos/tests/installer: Give eval failure on unsupported boot methods
<{^_^}>
→ a6425fc6 by @dezgeg: ghc: Disable on AArch64
abathur has joined #nixos
jrolfs has joined #nixos
ndrei has joined #nixos
xcmw has joined #nixos
maximiliantagher has quit [Ping timeout: 256 seconds]
ndrei has quit [Remote host closed the connection]
fendor has joined #nixos
ndrei has joined #nixos
<polytux>
I have a few services in a container, but they are complaining that no timezone is set which seems to be correct when checking with timedatectl. I've added the normal timezone configuration to the container definition, but it still isn't set after rebuilding. anyone else using containers who've seen (and solved) this issue?
blankhart has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @BjornMelgaard opened pull request #37737 → safeeyes: init at 2.0.2 → https://git.io/vxBhJ
asuryawanshi has quit [Ping timeout: 246 seconds]
knupfer has quit [Ping timeout: 240 seconds]
templis has quit [Read error: Connection reset by peer]
leat has joined #nixos
boomshroom has joined #nixos
<boomshroom>
Hello!
<boomshroom>
I'm trying to build the RedoxOS toolchain and binutils is complaining that the target has too many arguments. Is it possible for me to override the default target parameter?
ndrei has joined #nixos
chessai has joined #nixos
polytux has quit [Ping timeout: 260 seconds]
ndrei has quit [Remote host closed the connection]
CrazedProgrammer has quit [Ping timeout: 246 seconds]
ndrei has joined #nixos
Myrl-saki has quit [Ping timeout: 240 seconds]
argo has quit [Ping timeout: 265 seconds]
<Guest87673>
Does anyone have pointers about producing a reproduction (or something...) for Nix 2 problems
Guest87673 is now known as judson
<judson>
That's me with Nix 2 woes
<judson>
I've reported an issue on the repo. The most attention it got was Eelco saying "I can't reproduce this"
<judson>
Which isn't surprising: with whatever is peculiar to my machine (and at least one other), the symptom is "can't install anything"
ndrei has quit [Read error: Connection reset by peer]
ndrei has joined #nixos
joelpet has joined #nixos
<ottidmes>
judson: More info is needed, could you post the results of nix-info?
ndrei has quit [Remote host closed the connection]
<ottidmes>
judson: And could you post a link to the issue?
ndrei has joined #nixos
<vcunat>
there's probably something special installed in your nix-env
<vcunat>
(at least that was my feeling)
alex`` has quit [Quit: WeeChat 2.0.1]
<boomshroom>
Does Nix not support newlib as a libc?
leothrix has joined #nixos
<judson>
nix-info is sort of what I need - I'm not at that machine at the moment. Will be momentarily on Sunday and I'll attach the issue there.
<judson>
LnL: won't be useful, as the affected system is not the one I'm on at the moment.
<etu[m]>
Nooo, my kodi-ffmpeg on my rasperry pi doesn't hit the binary cache :(
<judson>
ottidmes: I have uninstalled 2 with 1.11.
<etu[m]>
So slow
<judson>
Can the two versions not co-exist? There was an exhortation to install it and try it out in the talk...
<ottidmes>
judson: So if you check the version of nix-daemon, does it report 1.11 now?
<judson>
I'll bet it would, since I installed nix 2 with nix-env in my normal user account.
<ottidmes>
judson: No, the nix is forward compatible with regards to the data, but not the processes, so nix-daemon 1.11 cannot work with nix 2.0
zybell_ has quit [Ping timeout: 264 seconds]
<judson>
Okay. So it's not a casual change to make. But it soundn't be a concern if I upgrade to 18.03, since then it'll be all Nix 2 all the time.
<ottidmes>
judson: Yeah, you would need to upgrade everything to 2.0 or stay at 1.11, mixing causes problems
<ottidmes>
judson: But don't update to 18.03 just yet, wait for the official release, otherwise you are guaranteed to run into yet other problems (there are still a few serious issues that need fixing)
<judson>
That sets my mind at ease. The talk that Eelco gave at NixCon(?) suggested that it was a thing you could just try out.
<judson>
Oh, I'm happy to wait for the official release. I just didn't want to brick my system when it happened.
ma27 has quit [Ping timeout: 246 seconds]
<ottidmes>
judson: You can, if you were just running Nix (not NixOS), you could safely upgrade to 2.0, and if you run NixOS, you should have upgraded via nix.package = ...;
<judson>
Right, that makes sense.
<ottidmes>
judson: So it should be easy enough to fix, just purge your custom nix installs from all your nix-env's and keep at 1.11 or upgrade to 2.0, I believe the latest 17.09 version has pkgs.nixStable2 that you could use for nix.package
<judson>
Still a great deal more stable than e.g. updating python on Gentoo :)
<judson>
That might be cool.
<judson>
I'll want to do that after a clean reboot, so that Nix2 is an isolated change I think.
kp__ has joined #nixos
<judson>
I've also noticed some weirdness in the output - looks like just terminal glitching.
<ottidmes>
judson: That is caused by the version mismatch of the processes
<ottidmes>
judson: Older nix-daemon with newer other nix(os) binaries
ma27 has joined #nixos
<judson>
Now I'm all excited to get home and try it out. I suppose I could switch on my travel machine now...
<{^_^}>
[nixpkgs] @knedlsepp opened pull request #37738 → glyr: enable darwin build → https://git.io/vxRet
paraseba has joined #nixos
ndrei has quit [Remote host closed the connection]
ndrei has joined #nixos
zybell_ has joined #nixos
<lejonet>
Anyone here that have setup opencl env on nixos? Can't really find how to do that
johnw has joined #nixos
Myrl-saki has joined #nixos
abrar has quit [Quit: WeeChat 2.0]
<ottidmes>
I thought I could use avahi to resolve the hosts in my LAN by name, is there even such a thing? `avahi-browse -a` gives me only my local machine, printer, and chromecast. Currently I just use static IPs as much as possible and store them as part of my NixOS configuration, so I can generate a hosts file, ssh config, etc.
jmc_fr has joined #nixos
abrar has joined #nixos
hotfuzz_ has joined #nixos
<jmc_fr>
Hello. Problem with redshift : when I change a parameter (example : services.redshift.temperature.night = newvalue) and the nixos-rebuild switch, it does not take effect. How to get the effect ?
<{^_^}>
[nixpkgs] @globin pushed to master « grpcio: use protobuf3_5 »: https://git.io/vxRvV
cx405 has joined #nixos
<cx405>
Hi all! I noticed that I have multiple mesa-no-glu libraries (3, three) when upgrading. How can one find out the reason why they were pulled? Thanks!
<jmc_fr>
no this doesn't work ... any other idea ?
maximiliantagher has quit [Remote host closed the connection]
acarrico has joined #nixos
maximiliantagher has joined #nixos
<ottidmes>
jmc_fr: home-manager probably provides you with something that does what you want
fendor has quit [Ping timeout: 276 seconds]
<jmc_fr>
ottidmes: thks, going to have a look
<ottidmes>
To answer my own question, I have to either install mDNS on all my machines (e.g. provided by Avahi on Linux), or I have to have a powerful enough router (which I don't), or I have to setup a local machine, that is always on, to become a local DNS server
ma27 has joined #nixos
ixxie has joined #nixos
<alhariel>
how do i list my graphic drivers?
argo has joined #nixos
<krey>
does pkgs "remember" what attrSet it was called with? e.g. pkgs = import <nixpkgs> { stuff = in-here; }
<{^_^}>
→ a6942651 by @ryantm: mediainfo: 17.12 -> 18.03
<{^_^}>
→ 25653abc by @Mic92: Merge pull request #37676 from ryantm/auto-update/mediainfo
fendor has joined #nixos
<elvishjerricco>
krey: I think that's what `(import <nixpkgs> {}).config` is
<ottidmes>
krey: You can follow this yourself, <nixpkgs> gets evaluted to whatever value nixpkgs has on NIX_PATH, in my case to my local nixpkgs checkout, /wheel/fork/nixpkgs, so it calls /wheel/fork/nixpkgs/default.nix (if you import a dir, it tries to load dir/default.nix), there it loads pkgs/top-level/impure.nix, which provides default values and then calls pkgs/top-level/default.nix, and so on, but if you look the
<ottidmes>
values get propagated pretty far, but I do not see any way to get back the original values you supplied
fpletz has quit [Remote host closed the connection]
<pxc>
so I never followed up in-channel because I was watching a movie and I wasn't all that worried about the situation
<{^_^}>
[nixpkgs] @globin pushed 2 commits to release-18.03: https://git.io/vxRUd
<{^_^}>
→ 85d5fdce by @globin: protobuf3_5: init at 3.5.1.1
<{^_^}>
→ bdac630c by @globin: grpcio: use protobuf3_5
<pxc>
but last night after my system rebooted after an unexpected zap between me and a USB port
<pxc>
I still kind of can't believe how gracefully NixOS handled it
maximiliantagher has quit [Ping timeout: 240 seconds]
<pxc>
the SQLite database was hosed; all I had to do was delete it
<pxc>
and there were some bad paths in /nix/store, which `nix-store --verify --check-contents` faithfully reported, and which `sudo nix-collect-garbage` fixed
<typetetris>
I did an upgrade of my box ot 18.03pre and now `nix-repl` complains with `error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied`. How can I get it back working?
<pxc>
I guess the system went down when it was still building nixos-rebuild
<elvishjerricco>
typetetris: Dunno. FWIW, 18.03 has Nix 2.0, which has `nix repl`, which obsoletes `nix-repl`
<pxc>
anyway kudos; NixOS devs and contributors in the channel should be proud
<pxc>
elvishjerricco: yeah, if you have Nix 1 and Nix 2 installed on the same system, Nix 1's `nix-env` also doesn't work with the same message
<typetetris>
ah ok
<elvishjerricco>
Ah. typetetris do you have a `nix` in your nix-env?
<thoughtpolice>
mpickering: I can't build on macOS, but as Borg seems to have stepped in and given it the clear, it LGTM.
<pxc>
typetetris: use `nix-repl` instead, and maybe think about getting that copy of nix1 which provides `nix-repl`, wherever it is, off your system :-)
<pxc>
sorry I said the opposite of what I meant because I'm an idiot
<pxc>
use `nix repl` instead. lol
<elvishjerricco>
nix1 doesn't provide nix-repl. nix-repl was a standalone package
<{^_^}>
[nixpkgs] @thoughtpolice pushed 2 commits to master: https://git.io/vxRTU
<{^_^}>
→ 46a90e32 by @mpickering: clipper: init at 6.4.2
<mpickering>
thoughtpolice: It builds for me on macOS, not sure what the problem would be
reinzelmann has joined #nixos
<mpickering>
thanks
<{^_^}>
→ 1e0a60b7 by @mpickering: open-orienteering-mapper: init at 0.8.1
<thoughtpolice>
mpickering: I meant "I don't have macOS, so I couldn't test it even if I wanted" :)
<mpickering>
oh right ha
vidbina has joined #nixos
<mpickering>
It problem works on linux as well but I didn't test on it
<mpickering>
*probably
<Baughn>
The newest stable Linux kernel breaks my mouse. How neat.
krey has quit [Quit: Lost terminal]
<Baughn>
... It's probably not the kernel.
maximiliantagher has joined #nixos
pie_ has joined #nixos
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
Dirt[m] is now known as sorbet
<typetetris>
The package `watch` provides the tool with the same name from the procps package (last updated 2008 or something). There also is the `watch` tool in procps-ng, which is actively maintained. nox-review tells me, nothing changes, if i simply delete watch. Is there some reason why there is stiff this very old package lying around?
ndrei has quit [Remote host closed the connection]
blankhart has joined #nixos
<srhb>
typetetris: Probably just because it never broke...
<rotaerk>
hmm yea HUnit fails if I enable executableProfiling, though it's not failing to build but to run tests/HUnitTestBase.lhs
<typetetris>
srhb: Should such a thing be actively removed or is the usual thing to let it lying around? (There isn't even a bug tracker any more for it.)
<srhb>
typetetris: I think it would probably be good to remove it :)
<srhb>
Stable software is fine, but things that are superceded less so.
<srhb>
Also sourceforge *shudder*
<pxc>
it's so strange to me, sometimes I still forget
<joepie91>
SourceForce: Only Barely Better Than Nothing At All
<pxc>
when I was growing up, and still a Windows user, SourceForge was like my go-to. And there was an element of trust, too
vidbina_ has joined #nixos
<srhb>
pxc: Same for me. Long gone those days, though. :)
<pxc>
and because I use adblock everywhere, I only recently learned that many people now actively avoid it or tell others to, because they sell the same kind of sketchy 'DOWNLOAD NOW' ads as you might find on cnet's mirrors :-(
<pxc>
I miss the old SourceForge
<infinisil>
Oh my god i just discovered the worst packaged package in nixpkgs
<srhb>
infinisil: That sounds like a challenge. :P
fpletz has joined #nixos
<infinisil>
srhb: It won't be much of a challenge once you see that one
<srhb>
I am intrigued!
<pxc>
srhb: yep. At least it's only a matter of nostalgia. F/OSS life is better than ever :-D
<pxc>
infinisil: is it my fault? ;-)
<infinisil>
pxc: it is not
<pxc>
phew
<infinisil>
We can blame garbas because he merged it (without even looking at the code), hold on linking to it
justan0theruser has quit [Ping timeout: 240 seconds]
<infinisil>
gchristensen: If it can be done without problems and in a couple lines then ok sure
fpletz has quit [Quit: ^D]
<typetetris>
hydra for staging says: "Package ‘procps-3.3.12’ in /nix/store/gi71gymiiqbbfnx7ypi3l5qsk4vbq20w-source/pkgs/os-specific/linux/procps-ng/default.nix:26 is not supported on ‘x86_64-apple-darwin’, refusing to evaluate.", dunno where this is coming from, as default.nix doesn't mention linux or darwin, maybe it is from the path in the repo of default.nix?
fendor has quit [Ping timeout: 246 seconds]
<clever>
typetetris: does hydra say anything else on nearby lines?
<typetetris>
the line above is "in job ‘docker-gc.x86_64-darwin’:" and then it goes on about allowBroken
justanotherus3r has joined #nixos
<mpickering>
The platforms attribute says "linux + cygwin"
<clever>
typetetris: it sounds like docker-gc somehow depends on procps-ng
John882 has quit [Ping timeout: 260 seconds]
<clever>
typetetris: so now try to nix-build docker-gc on darwin and see what happens
<clever>
nix-instantiate pkgs/top-level/release.nix -A docker-gc.x86_64-darwin
<clever>
i think
argo has quit [Ping timeout: 265 seconds]
<clever>
i can also reproduce that issue on a random rev of nixpkgs i jsut happened to have checked out
<clever>
and now i can just --show-trace it
<clever>
while evaluating 'makeSearchPathOutput' at /home/clever/apps/nixpkgs/lib/strings.nix:94:42, called from /home/clever/apps/nixpkgs/pkgs/applications/virtualization/docker/gc.nix:23:28:
<ottidmes>
Does anyone know a better Wake-on-LAN package on NixOS than the wol package? It does not allow sending packages to IPs outside the LAN (sure, its in the name), but most often I want to wake up some machine external to my LAN. I am using some Android app right now, which works, but I would love to also have a equivalent on my other machines
<clever>
and git blame reveals that one line was modified a few months ago
<clever>
he simply cleaned the code up, it was already "wrong"
<rotaerk>
figured it out; HUnit has a test that fails when profiling is enabled (and it should be a fixable problem); but the workaround is if enableExecutableProfiling = true, set doCheck = false
<clever>
typetetris: and further checks with `git log --patch` reveal, docker-gc has been broken on darwin from the very first version
argo has joined #nixos
<vidbina_>
Since it's weekend, and I figured I have some time to spare to attempt an upgrade to 18.03 but am running into some roadblocks. During a nixos-rebuild test my system logs me out and ends up unresponsive. Excerpt of journalctl's output at https://gist.github.com/vidbina/91aaba02581e9a175ca6f953b0c1c029
<clever>
vidbina_: can you also gist your configuration.nix file?
<typetetris>
clever: ok thanks, but does procps-ng really not build on darwin?
humanoyd has quit [Quit: WeeChat 2.1]
<clever>
typetetris: most of the tools within it rely on /proc files to work, and darwin doesnt use the same api there
<clever>
vidbina_: the journal in that gist looks mostly like a normal reboot
<LnL>
there's a package under the darwin attribute that has ps
simukis has joined #nixos
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
<alhariel>
is there a list of valid values for services.xserver.videoDrivers?
paraseba has joined #nixos
argo has quit [Ping timeout: 265 seconds]
jrolfs has quit [Ping timeout: 264 seconds]
<ottidmes>
alhariel: radeon amdgpu ati_unfree vesa noveau nvidia (on top of my head), not sure where the complete list is
argo has joined #nixos
<alhariel>
changing this probably needs a restart to take effect right?
<ottidmes>
alhariel: at least a restart of the display-manager
<ottidmes>
alhariel: but often you also use some kernel params in combination with your driver, so I always just reboot
<alhariel>
i have a hybrid intel/radeon, not sure how to configure this
<alhariel>
i set it to [ "intel" "amdgpu" "ati" "modesetting" ]
<alhariel>
not even sure what that last one is
raynold has joined #nixos
vidbina has quit [Remote host closed the connection]
<clever>
modesetting is a more generic one that uses kernel drivers
<Profpatsch>
gchristensen: There was some problem with jing. At least for the module system it was not used because it has too many dependencies I think.
<ottidmes>
alhariel: pretty sure ati should be ati_unfree
<Profpatsch>
Anyway, good night
<alhariel>
ok
krey has quit [Remote host closed the connection]
<alhariel>
ive thrown in a "radeon" for good measure
<ottidmes>
alhariel: As in, I have been trying to get it to work with my radeon, tried all I could find, and I only have ati_unfree amdgpu (and its pro version, not worth the trouble though) radeon and vesa in my list of tried drivers
<ottidmes>
alhariel: who all worked to some degree, I only got it to work properly with ati_unfree unfortunately
<alhariel>
i see
<alhariel>
should i include vesa also?
<gchristensen>
Profpatsch: because it is too heavy for nixos releases or something, but it can be used at dev time :)
<ottidmes>
alhariel: It defaulted to vesa when it crashed amdgpu in my case, but its performance was horrible, I think it is similar to modesetting, not enough knowledge about them to tell you anything about them though
<ottidmes>
infinisil: What were those .awk files used for? You seem to just have removed them. Is trans the de-factor name used? Why remove the aliases? Is the manpage and stuff still present (not sure if that gets copied by default)?
<infinisil>
ottidmes: The makefile properly packaged the multiple awk files into a single executable
<infinisil>
ottidmes: And no idea why the initial packager added these aliases, they are not official whatsoever
<infinisil>
trans is what the binary should be called
<zybell_>
alhariel:modesetting means 'Do read config file, do what it says' vesa means 'Do read vga bios, do what it says'. In other words if these sources are unreliable you're hosed!
<infinisil>
ottidmes: manpage still works no problem
<infinisil>
gchristensen: Can anybody ask borg to build something now?
<zybell_>
If lsusb says (Config1:HID Mouse)(Config2:Proprietary)(Config3:HID Joy+Mouse) and systemd chooses Conf1 who is to blame?
<Baughn>
I would be fine with that.
<gchristensen>
infinisil: any nixpkgs contributor cann
<infinisil>
Nice
<Baughn>
The problem is that it chooses Conf3, and then proceeds to tag the input device as *only* a joystick, dropping the 'mouse' attribute on the floor.
<flokli>
Baughn: can you try if this fixes it for you, and add a PR to 18.03 branch?
<Baughn>
Sure.
<flokli>
The referred commit is the one that seems to fix it in upstream systemd
<flokli>
(see upstream issue)
<Baughn>
This patch seems like it disables half my buttons...
<zybell_>
In the referred commit another commit is referred, which seems the root cause of all.
fendor has quit [Ping timeout: 256 seconds]
Lears has joined #nixos
vidbina has joined #nixos
<zybell_>
The idea of that commit seems to be a mouse that is a joystick too can't exist.
ixxie has joined #nixos
blankhart has joined #nixos
<zybell_>
either that commit is interpreted as meaning: because we (should) allocate a second device node for a device that has a second function and move all this over. But then that patch is incomplete.
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zybell_>
Or that commit is interpreted: We would never support such evil contraptions. Then that patch must go.
alex`` has quit [Ping timeout: 240 seconds]
xcmw has joined #nixos
ixxie has quit [Ping timeout: 240 seconds]
alhariel has quit [Ping timeout: 276 seconds]
<zybell_>
s/seems to be/seems to be:/
<zybell_>
^^^
coot has quit [Quit: coot]
MP2E has joined #nixos
hiratara has quit [Ping timeout: 240 seconds]
coot has joined #nixos
hiratara has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Arcaelyx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xcmw has joined #nixos
vidbina has quit [Ping timeout: 240 seconds]
LysergicDreams has quit [Ping timeout: 246 seconds]
ndrei has quit [Remote host closed the connection]
<ottidmes>
What is the difference between `builtins.hasAttr s set` and `set ? "${s}"`, is the latter just considered bad form (not idiomatic Nix), or is there nothing against it?
ndrei has joined #nixos
snail-eyes has joined #nixos
<ottidmes>
boomshroom: No idea, I just saw it being defined there plenty of times when doing a quick search in nixpkgs, so I thought that is where they might be overriding it
<ottidmes>
boomshroom: did you look at ffmpeg and its crossAttrs, no idea what that does, just seems relevant
orivej has quit [Ping timeout: 264 seconds]
<boomshroom>
ottidmes: It looks as though that's setting `--target_os`, no `--target`.
<etu[m]>
Hmm, I have NixOS on a raspberry pi 3 and would like to add `display_rotate=3` to /boot/config.txt, is there some nice way in nix to make sure a line exists in a file?
kmicklas has quit [Ping timeout: 276 seconds]
ma27 has quit [Ping timeout: 276 seconds]
aarvar has quit [Ping timeout: 276 seconds]
<ij>
Why's «networking.wireless.enable = true» incompatible with «networkmanager.enable = true»? I wanted to compile the installation-cd-base.nix module with network manager and it failed because of this incompatibility.
<boomshroom>
looks like configurePlatforms is what I want.
<symphorien>
you can replace nixos-unstable by nixos-18.03 if you want
<ottidmes>
boomshroom: As in, what you tried to package already exists?
<boomshroom>
It seems using configureFlags works, but configureFlagsArray doesn't.
<boomshroom>
ottidmes: I meant that that package seemed to be doing the same thing I was, but in reality it wasn't.
<snail-eyes>
symphorien: thanks a lot. Followed the instructions for subscribing to an unstable channel then got this: https://pastebin.com/pnDNd8vv
<symphorien>
ah, nix2 is necessary to parse recent nixpkgs
<snail-eyes>
!nix2
<symphorien>
so put in your configuration.nix something like:
<snail-eyes>
thought I could try not asking you what nix2 is lol
<symphorien>
nix.package = pkgs.nixUnstable;
<symphorien>
(typing it on top of my head)
<snail-eyes>
should that go anywhere in particular?
<snail-eyes>
i'll give it a try
<symphorien>
then rebuild, you will get warnings because nix2 is only moderately happy with a nix 1 daemon
<symphorien>
then systemctl restart nix-daemon
<ottidmes>
snail-eyes: I you have a recent 17.09 checkout, you might prefer: nix.package = pkgs.nixStable2; instead
<symphorien>
and you will run full nix2
<snail-eyes>
symphorien: thanks, trying... Currently rebuilding and getting the following: `warning: unknown setting 'signed-binary-caches'`
<symphorien>
you can ignore it
<symphorien>
(as far as I know)
<boomshroom>
Quick question: Nix uses crossSytem to set the target for compilers, and the host for everything else. Is it possible to build a compiler to run on a foregn system?
<ottidmes>
snail-eyes: You should be able to safely ignore it, or you could set nix.requireSignedBinaryCaches = false; but be careful, you are very unlikely to want to have that in the long run, since in 18.03 this setting will result in the new setting, require-sigs, to be said to false!
<snail-eyes>
symphorien: got it, thanks. I think I rebuilt in the past two weeks but nevertheless having added that line currently in the process of a substantial rebuild.
<snail-eyes>
ottidmes: thanks!
<snail-eyes>
seems a little dangerous not to require sigs?
<ottidmes>
snail-eyes: yep, hence my warning, either ignore the current warning: unknown setting 'signed-binary-caches', or disable requiring sigs, which right now (on 17.09) disables the setting which generates the warning, but if you move to 18.03 or unstable, you would not want to have that attribute set anymore, since then it will also disable require sigs
<boomshroom>
Sweet! Binutils: built! Next up: freestanding GCC.
leotaku has joined #nixos
<snail-eyes>
symphorien: have run `systemctl restart nix-daemon` and I am being asked whether to run the op as root or user. Does it matter?
<symphorien>
user won't work, I guess
<snail-eyes>
ottidmes: I'll happily ignore the warnings in exchange for requiring sigs :). thanks for the explanation!
maximiliantagher has quit [Remote host closed the connection]
<snail-eyes>
symphorien: thanks thats what I thought, was confused why I was even being given the option
<snail-eyes>
symphorien: works! successfully found Signal. appreciate your time!
<ottidmes>
snail-eyes: setting nix.requireSignedBinaryCaches = false; while you are on 17.09 (with nix 2.0) is not unsafe, only if you think you will forget about it when upgrading to 18.03, then you'd better just get used to seeing the warnings (not so bad, should not be much longer now until 18.03 is out)
<snail-eyes>
ottidmes: got it, thanks!
maximiliantagher has joined #nixos
<snail-eyes>
symphorien: Can I not install unstable packages declaratively by putting them in my `configuration.nix`?
<snail-eyes>
i.e. do I need to install them imperatively?
<leotaku>
snail-eyes: user should work, as long as you are in wheel/have sudo privileges, you can generally prefix systemctl commands with sudo to avoid the prompt
<snail-eyes>
leotaku: right I was about to ask that. Makes sense, thanks!
<symphorien>
snail-eyes: you can do it declaratively, I think the faq contains the correct snippet
<snail-eyes>
symphorien: silly me, thanks!
<ottidmes>
snail-eyes: I just made a systemctl function that checks if --user is passed, then it calls it unchanged, and otherwise calls it with sudo, so I can just forget about it
<symphorien>
the idea is that the default nixpkgs is imported as pkgs, here you need let pkgs2 = import <channel-name> {}; in to import the alternative channel
<symphorien>
then install pkgs2.signal instead of pkgs.signal