gchristensen changed the topic of #nixos to: NixCon 2018 CfP is now open! https://nixcon2018.org/ || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon
timokau has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/c6bf57f58cf (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
hakujin3 has joined #nixos
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/89ff9f94b67 (from 89 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
hakujin3 has quit [Ping timeout: 240 seconds]
<clever> Dedalo: ah
<elvishjerricco> Or maybe is it possible to make NetworkManager work with networking.useDHCP? Frankly, I have no idea how these things work so I'm not sure if that's nonsense or not :P
timaaarrreee has joined #nixos
alexteves has quit [Remote host closed the connection]
<Dedalo> clever how can I change the terminal font size? I have tried to change Lat2-Terminus16 to Lat2-Terminus20, did a reboot, but the font is the same
slack1256 has joined #nixos
thc202 has quit [Ping timeout: 256 seconds]
<clever> Dedalo: ive never really messed with the console font, i just enable xorg or use ssh from a client with xorg
<{^_^}> [nixpkgs] @samueldr merged pull request #44683 → vips: 8.6.4 -> 8.6.5 → https://git.io/fNyQy
<{^_^}> [nixpkgs] @samueldr pushed 2 commits to master: https://git.io/fNdRn
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fNdR4
puck has quit [Quit: *eh*]
puckipedia has joined #nixos
Denommus has joined #nixos
puckipedia is now known as puck
<{^_^}> [nixpkgs] @samueldr merged pull request #44686 → sigil: 0.9.9 -> 0.9.10 → https://git.io/fNy56
<{^_^}> [nixpkgs] @samueldr pushed 2 commits to master: https://git.io/fNdR9
<{^_^}> [nixpkgs] @samueldr closed pull request #44738 → nwjs: 0.23.6 -> 0.32.0 → https://git.io/fNSdx
<{^_^}> [nixpkgs] @samueldr merged pull request #44691 → setbfree: 0.8.5 -> 0.8.7 → https://git.io/fNyFF
<{^_^}> [nixpkgs] @samueldr pushed 2 commits to master: https://git.io/fNdRp
adamantium has joined #nixos
<adamantium> Hi , i am thinking about moving over to nix one of my machines, but I'm a zfs-on-root user and am wondering how that is going for you guys? I noticed the guide says also to use legacy mountpoints, why?
<infinisil> adamantium: Because NixOS likes to manage every mountpoint on its own, which isn't possible with the special zfs mounting, so you need the legacy one which can be in full control of nixos
<infinisil> Mainly due to systemd or so
<infinisil> Ah right, the ordering of the mount points has to be correct, which isn't possible otherwise
<clever> infinisil: with nixos-unstable, there are now systemd units to discover and obey mountpoint=, but it doesnt work for the rootfs
<infinisil> adamantium: zfsonlinux/zfs#7329
<adamantium> mmm
<{^_^}> https://github.com/zfsonlinux/zfs/pull/7329 (by aerusso, 20 weeks ago, merged): systemd.mount integration
<adamantium> So it is still a work in progress i take it
<clever> yeah, those
<clever> but that cant deal with the rootfs and /nix/
<adamantium> Now, personally I put all my zfs root boot environments automatically listed on my grub menu
<adamantium> I wonder, this could conflict with nixos grub menu nix pkg manager featuyres
<clever> nixos generates its own grub config
<clever> but you could chainload a different grub on another drive, with its own config
<adamantium> I suppose it would be safe though to append to that menu? it'll just get rewritten by nixos everytime it does something to it?
<clever> you need to use configuration.nix to define what to append/insert
<adamantium> clever: very nice, thank you for showing me how you add additional entries, i wonder how hard it would be to script that section to detect and auto generate entries
<adamantium> I already have a bash script I use to generate my stanzas
<clever> adamantium: you would need to heavily modify the grub setup in nixpkgs
<clever> adamantium: nixos will run this script, to scan /nix/var/nix/profiles/system* and generate the grub config
<clever> adamantium: lines 50/51 and others come from configuration.nix, and thats how the entra entries get in
<adamantium> See I don't want to fight with the system either .. .Hmm
<clever> adamantium: you could also modify your script to create a grub-extra-entries.cfg, and then just use extraEntries = "source grub-extra-entries.cfg";
<clever> then nixos ignores the extra file, and grub sources it
<adamantium> YES
<adamantium> That's all my little script does, generate a list of stanzas
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/89ff9f94b67 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<adamantium> Thanks clever, something for me to think about now.
<adamantium> Any idea, how many people run zfs on root around here, is it common, or only a handful of folks
<clever> adamantium: i run zfs on all of my machines, and Dedalo just did a zfs install
<clever> adamantium: this is a bash script generator i made, that will automate an entire zfs based install: https://github.com/cleverca22/nix-tests/blob/master/kexec/justdoit.nix#L49
<adamantium> hehe
<Dedalo> adamantium yes I did, clever has been really helpful
<clever> adamantium: and there is https://nixos.wiki/wiki/NixOS_on_ZFS
<Dedalo> adamantium I have a readme that I have written with all the passages I have done to install on a Lenovo X1 Carbon
<adamantium> are the docs for zfs on root current
<clever> i believe so
<adamantium> you'd be surprised some projects
<adamantium> ;)
<Dedalo> clever which is the difference to installa packages using `nixos-env -i` and adding them to the `configuration.nix` file?
<Dedalo> *install
<clever> Dedalo: nix-env -i will add it to ~/.nix-profile, and it wont update on its own, so you can wind up with something years out of date
<clever> Dedalo: systemPackages in configuration.nix will be updated to the current nixpkgs every time you nixos-rebuild
<clever> in general, i try to use systemPackages for everything, but if i'm just testing something short-term i use `nix run` or `nix-env -i`
<adamantium> See, as a gentoo / funtoo user, the ideas of nix can be appealing sometimes.
<adamantium> I just want to set stuff and forget stuff sometimes.
<clever> the atomic nature of systemPackages is also a double-edged sword
<Drakonis> ^
<clever> on the plus side, everything updates at once
<Drakonis> you might want to relocate that to home manager
<clever> on the minus side, everything updates at once, and 1 thing breaking stops you from doing any updates
<Drakonis> ^ that sucks
hakujin3 has joined #nixos
<Drakonis> word of advice
<clever> also, if you changed nixpkgs and forgot to update, you have to update everything at once, to make a 1 line change to a config file
<adamantium> lol
<Drakonis> if you run your local mirror
<Drakonis> that's a problem
<clever> drakonis: i recently configured my hydra to pre-build my router and nas for the latest nixos-unstable
<clever> so now its pre-cached, and i can see if it builds or not
<adamantium> maybe i will just do ZFS for $HOME
<adamantium> that's one idea.
<adamantium> I don't really need zfs on root, of course it is nice though.
<clever> adamantium: i use a single pool for everything, with datasets for / /nix and /home
<adamantium> Same
<clever> adamantium: the issue with trying to split things up like your plan, is that your going to underestimate how big to make / or /home
<adamantium> I run zfs / on all my boxes with either mirrored or raidz1
<clever> and one is going to get full before the other
<clever> but zfs solves that
<Dedalo> interesting: is there a way to create a bunch of conf file that I can apply without touching the configuration.nix file, or should I just put that file in a git repo and keep it in sync when I modify it?
<adamantium> it seems to be that nix is solving problems that zfs solves also, and it could be redundant
<clever> Dedalo: you can add as many files into the imports field as you want
<adamantium> nix is solving at a higher level
<Drakonis> Dedalo, yeah
<clever> Dedalo: so configuration.nix has imports = [ ./file1.nix ./file2.nix .... ];
<clever> Dedalo: then file1 and file2 have the same format, and define more things
<adamantium> How do you know, when to use a separate boot snapshot vs a rollback from the nix pkg manager?
<clever> nixos will just merge it all together
<elvishjerricco> Hm. So it kinda seems like `useDHCP` doesn't break NetworkManager at all, so may I can just freely use them at the same time?
<Drakonis> there are some abstractions like home manager which enables you to separate the user level configuration from the system level configuration
<clever> adamantium: as long as it can boot, you can use `nixos-rebuild --rollback`
<clever> adamantium: grub is mainly for when you break it so badly that it cant boot
silver has quit [Read error: Connection reset by peer]
<adamantium> hehe
<Dedalo> clever can I override a section in a file that I include or I need to remove that section from the configuration.nix and add it on my files?
hakujin3 has quit [Ping timeout: 256 seconds]
<adamantium> Now, how are you guys doing for mesa and xorg and things. Pretty recent versions? What kernel version are you guys on
<clever> Dedalo: you can use mkForce to force things, but its better to split it into 2 files, and then choose just the files that dont conflict
phreedom has quit [Remote host closed the connection]
<elvishjerricco> However, boot.initrd.networking only seems to want to get a dhcp lease for one interface. I know I can choose which one, but I really want it to do all of them.
phreedom has joined #nixos
mayhewluke has quit [Ping timeout: 244 seconds]
mayhewluke has joined #nixos
<Dedalo> clever things like useradd cannot be used anymore?
<clever> Dedalo: if immutable users is set to false (the default) then useradd works, but its recomended to use users.extraUsers in configuration.nix
<Dedalo> interesting
<Dedalo> clever and when I'm not root, if I want to change `/etc/nixos/configuration.nix` do I need to sudo?
Fare has joined #nixos
<clever> you could just chown the file or directory to make it editable by another user
<clever> so its mostly personal choice there
<Dedalo> but sudo is available, I mean, I can sudo and run, for example `sudo nixos-rebuild switch`?
<clever> yeah
<clever> i prefer doing `sudo -i` then edit things, and `nixos-rebuild switch`
<Dedalo> yeah sure
<Dedalo> or su -root
<clever> if you have sudo, dont bother with su
<Dedalo> another question about the kernel: recently I had to update on a Raspberry Pi the BlueZ stack, and I did that from source, which has required a lot of time, because make was failing, I add to add some lib, than run configure, then make again, many times. Can I update something like that easily and just do a reboot I suppose, even if it's a kernel module?
<clever> Dedalo: yeah, just need to correctly define the changes in configuration.nix, and it builds everything
<Lisanna> ugh, ec2 takes 24 hours before you can spin up an instance if you're a new member. damnit
<gchristensen> wat
<clever> probably anti-abuse
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 272 seconds]
lassulus_ is now known as lassulus
Fare has quit [Ping timeout: 240 seconds]
Supersonic has quit [Ping timeout: 256 seconds]
<selfsymmetric-mu> youtube-dl works great for downloading YouTube videos. Is there something similar for downloading Twitch videos?
nonfreeblob has quit [Quit: Leaving]
<clever> selfsymmetric-mu: youtube-dl supports a number of platforms, try just giving it a twitch url
andreabedini has joined #nixos
tertle||eltret has joined #nixos
<Dedalo> clever can I run chrome on Sway / Wayland or do I need to reconfigure the package because it uses X11? Same for all the other software.
<clever> Dedalo: unknown, i only use x11 right now
<emily> it should work fine through xwayland
carlosdagos has joined #nixos
Supersonic has joined #nixos
<Dedalo> emily but Firefox, for example, comes with Wayland support, so it should run, theoretically fine. The question is that the firefox.nix forces you to use X11
<Dedalo> clever I guess there is no way to compile Firefox from the command line, I should, eventually, create a new package for the wayland version using the nix language, right?
<clever> Dedalo: or use overrides to modify the existing package
<Dedalo> interesting, I definitely need to look into the nix language
<d1rewolf> hi guys...using password-store ('pass'), ubuntu, and zsh, I would have autocomplete of my various store password (<tab>name would bring up matches). On nixos, no dice. anyone know how to get this working?
Denommus has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @samueldr opened pull request #44958 → dbeaver: 5.1.4 -> 5.1.5 → https://git.io/fNdEl
<{^_^}> [nixpkgs] @samueldr opened pull request #44959 → dbeaver: 5.1.4 -> 5.1.5 → https://git.io/fNdEB
vidbina_ has joined #nixos
vidbina has quit [Ping timeout: 256 seconds]
Lisanna has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @puckipedia opened pull request #44960 → postgresql: use proper path for system-tzdata → https://git.io/fNdEX
<pikajude> isn't there an env var I can set to get more information out of nix build scripts
<pikajude> this python package is failing silently after printing "configuring..."
<clever> pikajude: add NIX_DEBUG=1; in the derivation
<clever> possibly using overrideAttrs
<pikajude> oh ok
<pikajude> oh ffs
<pikajude> it shouldn't be allowed to put "|| exit 1" anywhere in a build script
<infinisil> Does anybody have some reference for the evaluation time increase of NixOS over time? I think I saw eelco say something about it in some issue, but can't find it
<clever> the build is ran with `set -e` active, so any command returning non-zero will kill the whole thing
<pikajude> right
<clever> ,profiling
<{^_^}> Use NIX_COUNT_CALLS=1 and/or NIX_SHOW_STATS=1 to profile Nix evaluation
<clever> infinisil: these let you measure things
<pikajude> but this preConfigure script explicitly uses "[ -f some-file ] || exit 1"
<infinisil> clever: Yeah, but I'd like to find a comment/discussion about it
<clever> pikajude: ah, yeah, it really should print an error first
<pikajude> it really should :)
<pikajude> i'll go hunt down the blamer
<pikajude> or rather, the blamee
<selfsymmetric-mu> clever: Wow, youtube-dl is awesome. It totally works for Twitch. :o
<clever> selfsymmetric-mu: i think it also works with facebook
<infinisil> youtube-dl works with pretty much everything
<pikajude> yeah, the name is a bit misleading
<pikajude> more like any video anywhere-dl
<selfsymmetric-mu> The manpage and README don't even mention it.
<selfsymmetric-mu> Occult knowledge!
<{^_^}> [nixpkgs] @puckipedia closed pull request #44960 → postgresql: use proper path for system-tzdata → https://git.io/fNdEX
<pikajude> can i *disable* hpack integration with cabal2nix?
<pikajude> I've already run it myself
<pikajude> and it uses the github defaults reference thing
<{^_^}> [nixpkgs] @noneucat opened pull request #44961 → mimic: init at 1.2.0.2 → https://git.io/fNdul
<clever> pikajude: i heard hpack is already fixed on master
<pikajude> ooh
<pikajude> err no, i meant with the files it generates
<pikajude> I know the build itself was broken for awhile
<pikajude> but cabal2nix seems to assume hpack by default when package.yaml is present, and not just when the flag is specified
_rvl has joined #nixos
sb0 has joined #nixos
Fare has joined #nixos
jperras has quit [Quit: WeeChat 2.2]
hakujin3 has joined #nixos
timaaarrreee has quit [Quit: Lost terminal]
hakujin3 has quit [Ping timeout: 256 seconds]
Taneb has quit [Quit: I seem to have stopped.]
<dmj`> how do I remove a haskell dependency from a derivation
NegaNexus has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @Ekleog opened pull request #44962 → wasm: rename unofficial package into proglodyte-wasm → https://git.io/fNdzB
<{^_^}> [nixpkgs] @Ekleog opened pull request #44963 → ocamlModules.wasm: add wasm binary → https://git.io/fNdzE
hakujin3 has joined #nixos
<dmj`> I have a haskell package, I call pkgs.haskell.lib.dontBenchmark myPkg, but the benchmark dependencies still try to get built, despite what the docs say, what am I doing wrong
Maxdamantus has quit [Ping timeout: 240 seconds]
hakujin3 has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @yrashk opened pull request #44964 → powershell: 6.0.3 -> 6.0.4 → https://git.io/fNdzo
hakujin3 has joined #nixos
<elvishjerricco> wtf. I'm getting "Package vscode... has an unfree license", despite `allowUnfree = true;`
<elvishjerricco> And it's only vscode. Other unfree packages are installing fine
<clever> elvishjerricco: where did you set allowUnfree, and where are you referencing vscode?
<elvishjerricco> clever: Oh derp. I'm referencing vscode from an separate unstable nixpkgs import, to which I forgot to forward my nixpkgs config argument
Maxdamantus has joined #nixos
<clever> that will do it
hakujin3 has quit [Ping timeout: 256 seconds]
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/89ff9f94b67 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
hakujin3 has joined #nixos
<vodurden> dmj`: How are you calling `dontBenchmark`? If I remember correctly you need to override the package in `haskellPackages` for the context you're running in. I do something similar for a haskell project here: https://github.com/Vodurden/arkmonoid/blob/58f3fdc1519bfcccc7dd54436b8ed7d343dced38/shell.nix#L8
<vodurden> If it's a global override I guess you'd need to do something similar where you override nixpkgs.haskellPackages and then override the specific package
andreabedini has quit [Quit: Textual IRC Client: www.textualapp.com]
hakujin3 has quit [Ping timeout: 256 seconds]
hakujin3 has joined #nixos
Maxdamantus has quit [Ping timeout: 240 seconds]
Maxdamantus has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nixos
hamishmack has quit [Client Quit]
hakujin3 has quit [Ping timeout: 240 seconds]
<elvishjerricco> clever: Heh. I guess plymouth starts before you get to put in your password for an ecrypted drive? Or at least for encrypted zfs.
<clever> elvishjerricco: unknown, i only used plymouth on not-os, lol
<elvishjerricco> is there anyway to escape it and go back to the tty?
<clever> and i dont reboot often enough to care about it
<clever> try ctrl+alt+f1 maybe?
<elvishjerricco> no dice :/
<clever> if its just using the framebuffer
<clever> check the plymouth docs?
IRCsum has quit [Remote host closed the connection]
<elvishjerricco> Wonder why that works for luks but not zfs?
IRCsum has joined #nixos
<clever> check to see what luks and zfs both do
<elvishjerricco> clever: I think LUKS stuff happens in an earlier phase, and zfs just prompts when `mount` is run, which is later
<elvishjerricco> I *think*
<clever> that does sound right
johnw has quit [Ping timeout: 256 seconds]
<elvishjerricco> Ugh. You're supposed to be able to hit escape to go back to text mode but it's not working
<clever> zfs may have stolen all input
<elvishjerricco> yeesh
reinzelmann has joined #nixos
<clever> try blindly giving it a password?
<elvishjerricco> clever: Yea something to that effect happened. Must have messed up when I tried earlier, but entering the password blindly worked
<clever> security thru obscurity!!
<clever> those that dont know, wont even know its a password prompt!!
<elvishjerricco> lol
<clever> is it still security thru obscurity if its a real password prompt?
<elvishjerricco> plymouth supports asking for a password graphically. It'd be neat if we could get that to pass onto ZFS / LUKS
<clever> tricky question
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/a1b79f63bd8 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
vidbina_ has quit [Ping timeout: 240 seconds]
hamishmack has joined #nixos
rprije has quit [Ping timeout: 240 seconds]
rprije has joined #nixos
Drakonis has quit [Remote host closed the connection]
hakujin3 has joined #nixos
hakujin3 has quit [Ping timeout: 256 seconds]
sb0 has quit [Ping timeout: 268 seconds]
vodurden has quit [Ping timeout: 265 seconds]
b has quit [Ping timeout: 240 seconds]
sb0 has joined #nixos
aarvar has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jD91mZM2 has joined #nixos
<jD91mZM2> Welp, that's fun. Woke up today to a computer without a $PATH
<jD91mZM2> Accidentally overwrote it to nothing in home-manager
mayhewluke has quit [Ping timeout: 240 seconds]
mayhewluke has joined #nixos
<jD91mZM2> And my video drivers are kinda broken so I couldn't switch to a TTY. Had to get the USB and disable xorg so I could properly fix it and `home-manager switch`
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ekleog> otherwise, grub allows you to boot into /bin/sh (as root without password), which would have let you fix home-manager in a way maybe a bit easier than through USB :°
<{^_^}> [nixpkgs] @worldofpeace opened pull request #44966 → libimobiledevice updates → https://git.io/fNdaC
hakujin3 has joined #nixos
hakujin3 has quit [Ping timeout: 240 seconds]
reinzelmann has quit [Quit: Leaving]
rauno has joined #nixos
<jD91mZM2> ekleog: I'm using systemd-boot, sadly
<jD91mZM2> Maybe that also allows logging in as root, I don't know
<jD91mZM2> I have no idea how booting works because it takes so long I lose interest heh
slack1256 has quit [Remote host closed the connection]
<ekleog> I'd guess it does, but don't know, I'm trying to stay as far as systemd as possible, it's trying to help me way too much for my liking :)
<PolarIntersect> hmm
<PolarIntersect> Does anyone here use Amazon EKS or something else that leverages aws-iam-authenticator? Seems like kubectl has an issue that specifically doesn't work on NixOs
<PolarIntersect> Wondering if anyone has it working
Lisanna has joined #nixos
orivej has quit [Ping timeout: 244 seconds]
derchris has quit [Ping timeout: 248 seconds]
slyfox has quit [Ping timeout: 240 seconds]
slyfox has joined #nixos
<{^_^}> [nixpkgs] @Ekleog opened pull request #44967 → buildRustPackage: allow patches to fix Cargo.lock → https://git.io/fNdVn
<{^_^}> [nixpkgs] @Ekleog opened pull request #44968 → wasm-gc: init at 0.1.6 → https://git.io/fNdV4
endformationage has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @carlosdagos opened pull request #44969 → docs: add some docs mentioning hackage2nix → https://git.io/fNdVg
hakujin3 has joined #nixos
hakujin3 has quit [Ping timeout: 265 seconds]
hyper_ch2 has joined #nixos
inquisitiv3 has joined #nixos
GENOSWERL has joined #nixos
<{^_^}> [nixpkgs] @jpathy opened pull request #44970 → Nextpnr: init → https://git.io/fNdVF
Maxdamantus has quit [Ping timeout: 240 seconds]
GENOSWERL has left #nixos [#nixos]
cfricke has joined #nixos
cfricke has quit [Client Quit]
Maxdamantus has joined #nixos
<{^_^}> [nixpkgs] @Profpatsch merged pull request #44181 → bazel: fix darwin build on hydra → https://git.io/fNgu8
<{^_^}> [nixpkgs] @Profpatsch pushed commit from @uri-canva to master « bazel: fix darwin build on hydra »: https://git.io/fNdwy
Ariakenom has joined #nixos
<{^_^}> [nixpkgs] @7c6f434c merged pull request #44942 → openscenegraph: 3.4.0 -> 3.6.2 → https://git.io/fNdOg
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fNdrO
trcc has joined #nixos
trcc has quit [Remote host closed the connection]
viric has joined #nixos
ambro718 has joined #nixos
<ambro718> I am unable to deploy with nixops to AWS anymore, it takes a very long time and ends with "error: out of memory". The AWS VM has 1GB RAM and I added 1.5GB swap now but it didn't help. This didn't use to happen.
<ambro718> I can see the memory usage of nix-store on the remote system rising, not sure to what point it will rise before failing.
<ambro718> is there a new memory inefficiency/leak ?
<ambro718> pretty sure this started after upgrading from 17.08 to 18.03
<viric> I didn't notice anything in particular
<ambro718> possibly because you don't have such a memory-constrained machine?
<ambro718> this deployment had no issues before without even adding the swap
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
<{^_^}> [nixpkgs] @peti merged pull request #44969 → docs: add some docs mentioning hackage2nix → https://git.io/fNdVg
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/fNdr5
fleaz has quit [Read error: Connection reset by peer]
<manveru> ambro718: what version of nix?
<dhess> ambro718: this is a nix 2.0 problem.
<viric> is it? it takes too much memory?
<dhess> There's a fix coming.
<dhess> viric: yeah.
<srhb> ambro718: The specific issue is with a space leak in importing store paths in Nix 2.x
<srhb> iirc.
<dhess> Here are some issues covering it, you might find some workarounds in here: https://github.com/NixOS/nix/issues/1681 https://github.com/NixOS/nix/issues/1969 https://github.com/NixOS/nix/issues/1988
<{^_^}> nix#1681 (by ledettwy, 38 weeks ago, open): nix copy uses too much memory
<{^_^}> nix#1969 (by adevress, 21 weeks ago, open): Nix install run out of memory and fail when binary package size > RAM size
<{^_^}> nix#1988 (by chris-martin, 21 weeks ago, closed): Nix 2.0: nix copy stalls
<srhb> Or you can just grab master.
rauno has quit [Ping timeout: 256 seconds]
<dhess> I think the fix might be in master, but only just recently?
<srhb> Yep.
<srhb> Or at least, that's what I heard too. I didn't actually check. :P
<viric> dhess: thank you
<dhess> np
johanot has joined #nixos
<ambro718> thanks
<{^_^}> [nixpkgs] @srhb merged pull request #44964 → powershell: 6.0.3 -> 6.0.4 → https://git.io/fNdzo
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fNdod
ambro718 has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @srhb merged pull request #44958 → dbeaver: 5.1.4 -> 5.1.5 → https://git.io/fNdEl
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fNdoA
<{^_^}> [nixpkgs] @srhb merged pull request #44959 → dbeaver: 5.1.4 -> 5.1.5 (18.03) → https://git.io/fNdEB
<{^_^}> [nixpkgs] @srhb pushed 2 commits to release-18.03: https://git.io/fNdoh
obadz- has joined #nixos
reinzelmann has joined #nixos
obadz has quit [Ping timeout: 240 seconds]
obadz- is now known as obadz
<ongy> is there some way to list all options available under networking?
<jD91mZM2> `man configuration.nix` is really useful
<jD91mZM2> Also `nixos-option` for checking currently set values
<jD91mZM2> ongy: ^
<jD91mZM2> How do you index a list in nix btw? I mean, like ([1 2 3])[0] in most other languages
<johanot> jD91mZM2: builins.elemAt
<johanot> builtins*
<jD91mZM2> johanot: Oh, okay, no special syntax. Thanks!
<ongy> oh, that's interesting. are the manpages regenerated in some interval?
trylist has joined #nixos
<jD91mZM2> ongy: Guessing they are updated per release
<srhb> ongy: Whenever you rebuild, iirc?
<jD91mZM2> oh
<ongy> well, still installing from the nix install into my current setup. So I wasn't even sure I got all manpages
<srhb> ongy: Basically all the options are generated from theird actual definitions in the nixos/modules tree
<srhb> ongy: There's a nixos-manpages derivation that depends on those.
<srhb> same for the manual
<ongy> ahh
<ongy> that's cool
<srhb> It is. :)
<ongy> hmm, can I find the file referenced in "Declared by:" somehow? Preferably online to browse
<srhb> where do you see "Declared by" ?
<johanot> nix-build error msg perhaps? :)
<srhb> ongy: If you give us an example file it'll be easier to tell. most likely it's a file in the nixpkgs tree, so the NixOS/nixpkgs github repo if you want it online.
<srhb> Or most likely rather the nixpkgs-channels on the branch for your specific channel.
aarvar has quit [Ping timeout: 240 seconds]
<ongy> nixpkgs/nixos/modules/services/networking/nftables.nix
<srhb> Or you can do nix eval nixpkgs.path
<srhb> (better yet, nix eval '(<nixpkgs>)'
<srhb> And then open that path locally :)
jb55 has quit [Ping timeout: 244 seconds]
<ongy> thx
<ongy> browsing online is easier right now
trylist has quit [Ping timeout: 272 seconds]
jb55 has joined #nixos
trylist has joined #nixos
trylist has quit [Ping timeout: 276 seconds]
goibhniu has joined #nixos
hakujin3 has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/bb3f7d14a17 (from 30 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
hakujin3 has quit [Ping timeout: 276 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/92bb84220fc (from 50 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
worldofpeace_ has joined #nixos
alex`` has joined #nixos
thc202 has joined #nixos
Taneb has joined #nixos
worldofpeace has quit [Ping timeout: 260 seconds]
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/10b979ff213 (from 55 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<srhb> Wow, we're really on a roll with the channel bumps...
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/996c0d6e003 (from 12 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
tertle||eltret has quit [Quit: Connection closed for inactivity]
worldofpeace_ has quit [Read error: Connection reset by peer]
worldofpeace has joined #nixos
mayhewluke has quit [Ping timeout: 240 seconds]
<ongy> nixos-install. Let's see if this goes well
<srhb> ongy: :trumpets:
<ongy> the sad part: I '
vmandela has joined #nixos
<ongy> I'll probably have to wait the entire day until I know the result
<srhb> Bad interwebs?
<ongy> since cleaning up thte disk a little yesterday caused btrfs to do some rebalancing and it's trashing disk access
<srhb> Ah, ouch.
<ongy> nah, encrypted block device, but no aes-ni + kernel-worker doing heavy IO
__Sander__ has joined #nixos
Anton-Latukha has joined #nixos
eskytthe has joined #nixos
worldofpeace has quit [Remote host closed the connection]
sigmundv has joined #nixos
adamt has joined #nixos
mayhewluke has joined #nixos
<tilpner> Two more copying errors with "nix copy" :/
<{^_^}> [nixpkgs] @gebner merged pull request #42885 → gildas: 20180601_a -> 20180701_a → https://git.io/fSGfQ
<{^_^}> [nixpkgs] @gebner pushed 7 commits to master: https://git.io/fNdMx
<tilpner> sha256sum gives different results on both ends
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/10b979ff213 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<tilpner> Last time this happened, I killed the server, so let's not do that again. How can I force a retransmission of this alive store path?
<tilpner> The two store paths both grew by 4096 bytes, huh
<ongy> error: out of memory
<ongy> is that RAM or disk?
lsyoyom has quit [Ping timeout: 244 seconds]
<tilpner> Let's check: df -h, free -th
<tilpner> (Though probably RAM. I'd expect disk to say "space")
<ongy> I got +3G or ram free. But the process already aborted, so that's not a very good indicator
betaboon has joined #nixos
<tilpner> What were you doing? nixos-install?
<ongy> yes
<tilpner> Could try \time -v nixos-install
<tilpner> That might print max RES
balsoft has joined #nixos
<ongy> huh, either htop is reporting weird things, or the nixos-install aborts pretty early
<ongy> still had ~700MB ram to spend
<tilpner> Or htops update frequency was too low for you to catch it
<tilpner> Could try adding swap
<tilpner> fallocate -l 4G /swap
<tilpner> mkswap /swap
<tilpner> swapon /swap
<{^_^}> [nixpkgs] @FRidh pushed 1000 commits to python-unstable: https://git.io/fNdD9
<tilpner> But wait, if you're in the live ISO, /swap is not the right location
<srhb> I also think that will be very scary on btrfs
<{^_^}> [nixpkgs] @FRidh opened pull request #44973 → Python packages set: last major updates before branch off → https://git.io/fNdDb
<srhb> iirc allocating swap files on it is Bad Stuff.
<tilpner> Oh
* tilpner never used btrfs
<{^_^}> [nixpkgs] @FRidh pushed 108 commits to python-unstable: https://git.io/fNdDx
<balsoft> btrfs is awesome
__Sander__ has quit [Ping timeout: 256 seconds]
<srhb> ongy: Did you perchance add some ghc stuff to your system configuration? If so you might want to defer that to after you have a fully operating system.
<balsoft> but not for swap
<srhb> They tend to be large store paths and really hurt the memory bug.
<ongy> srhb: xmonad? :)
<srhb> Yeah, that'd do it...
<srhb> But I see a catch 22 now re. fully operating system :-)
<srhb> Having some swap space on some disk would definitely be the easiest route...
<tilpner> USB drive!
<srhb> Calm down there speed demon.
<srhb> :P
<ongy> well, with my slow as molasses disk access... I don't like swap
<tilpner> Hey, I didn't even propose swap on webdav mounted storage yet
<srhb> ongy: It's just to get you started.
<srhb> tilpner: lol
<ongy> I have an NFS mount on my old laptops spinning 2.5" disk. I think that's bad enough
* tv used btrfs for years on a lot of machines and it is only good until it breaks, leaving around undeletable/unfixable directory entries
* ongy could even switch to wifi for that
<{^_^}> [nixpkgs] @FRidh pushed to python-unstable « python.pkgs.pluggy: fix build »: https://git.io/fNdyR
johanot has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @dywedir opened pull request #44974 → reason: 3.3.2 -> 3.3.3 → https://git.io/fNdy5
<{^_^}> [nixpkgs] @peterhoeg pushed to master « masterpdfeditor: 5.1.00 -> 5.1.12 »: https://git.io/fNdSl
joncfoo has quit [Ping timeout: 245 seconds]
joncfoo has joined #nixos
balsoft is now known as balsoft[away]
sigmundv has quit [Remote host closed the connection]
balsoft[away] is now known as balsoft
joncfoo has quit [Ping timeout: 256 seconds]
sigmundv has joined #nixos
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/10b979ff213 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
<{^_^}> [nixpkgs] @xeji closed pull request #44927 → efibootmgr: 16 -> 17 → https://git.io/fN5dc
johanot has joined #nixos
joncfoo has joined #nixos
<{^_^}> [nix] @lheckemann opened pull request #2349 → dirOf: allow use on non-absolute paths → https://git.io/fNd98
vidbina_ has joined #nixos
__Sander__ has joined #nixos
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/a018507a7f7 (from 12 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
<{^_^}> [nixpkgs] @FRidh pushed to python-unstable « pythonPackages.numpy: fix build »: https://git.io/fNdHR
unacceptable has quit [Ping timeout: 265 seconds]
<domenkozar> dhess: now I am
<dhess> domenkozar: hehe :) Thanks for checking. Got it figured out.
johanot has quit [Ping timeout: 268 seconds]
balsoft is now known as balsoft[away]
<{^_^}> [nixpkgs] @FRidh pushed 2 commits to python-unstable: https://git.io/fNdQY
<ongy> building initrd this sounds better than OOM
johanot has joined #nixos
rauno has joined #nixos
<rauno> Any idea why nixos fails when doing the system upgrade with nixops ?
<rauno> i get a freeze and "Requested transaction contradicts existing jobs: Transaction is destructive."
<rauno> messages
<rauno> and it ends up in emergency mode..
__monty__ has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 2 commits to python-unstable: https://git.io/fNdQr
balsoft[away] is now known as balsoft
Dedalo has joined #nixos
simukis has joined #nixos
hakujin3 has joined #nixos
ng0 has joined #nixos
carlosdagos has quit [Quit: Connection closed for inactivity]
hakujin3 has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 248 seconds]
balsoft is now known as balsoft[away]
<ongy> o.0 why do I have 32 build users?
<rauno> ok found the reason, when nixops fails to mount for example "tmpfs" ramdisk, it can fail whole system..quite bad i think :|
<srhb> ongy: nix.nrBuildUsers = mkDefault (lib.max 32 cfg.maxJobs);
balsoft[away] is now known as balsoft
<ongy> oh, so every parallel build will run with its own user?
<srhb> ongy: Yup.
<srhb> Especially with sandbox on, builds are very isolated.
<sphalerite> rauno: yep. This happens with other filesystems too. I recommend putting "nofail" in the mount options for all filesystems that aren't needed for boot!
<ongy> let's see what this reboot does to me
<{^_^}> [nixpkgs] @Mic92 merged pull request #44967 → buildRustPackage: allow patches to fix Cargo.lock → https://git.io/fNdVn
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNddJ
trcc has joined #nixos
johanot has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Mic92 pushed to master « Revert "buildRustPackage: allow patches to fix Cargo.lock" »: https://git.io/fNdd4
vidbina_ has quit [Ping timeout: 240 seconds]
thekolb has joined #nixos
<thekolb> hey there
<srk> o/
<{^_^}> [cabal2nix] @basvandijk pushed 4 commits to master: https://git.io/fNddP
<{^_^}> [cabal2nix] @basvandijk merged pull request #370 → Add --no-submodules option to suppress fetching submodules (e.g. git). → https://git.io/fN79e
fendor has joined #nixos
<{^_^}> [nixpkgs] @alyssais opened pull request #44977 → puppet-lint: init at 2.3.6 → https://git.io/fNdFY
carlosdagos has joined #nixos
<{^_^}> [nixpkgs] @basvandijk merged pull request #44948 → servant-sphinx-documentation: fix sha256sum → https://git.io/fNdZ2
<{^_^}> [nixpkgs] @basvandijk pushed 2 commits to master: https://git.io/fNdFZ
CoopDot[m]1 is now known as CoopDot[m]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/a1b79f63bd8 (from 10 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<ongy> hmm, stuck at 'mounting /dev/mapper/btrfs on /..', let's go make some food and see if it's done mounting after that
<teto> ,locate hasktags
<{^_^}> Couldn't find any packages
freeman42x]NixOS has quit [Ping timeout: 244 seconds]
<srk> haskellPackages.hasktags :)
<LnL> infinisil: ^ you can use overlays with recurseIntoAttrs to make nix-index find more stuff
hakujin3 has joined #nixos
Fare has quit [Ping timeout: 240 seconds]
ersran9 has joined #nixos
hakujin3 has quit [Ping timeout: 240 seconds]
<{^_^}> [hydra] @ledettwy opened pull request #588 → Consumable system features → https://git.io/fNdbT
<Lisanna> ^ my first pull request!!!!!!!
<srhb> Lisanna: Hooray! :D
<ocharles> Is there a way to evaluate a Nix file to make sure all imports are valid?
<Lisanna> (reviews most welcome)
<ocharles> nix-instantiate --eval-only doesn't step under lambdas and stuff, so it doesn't really help with things like `{foo}: import ./i-dont-exist.nix` (that just normalises to LAMBDA)
<ocharles> Lisanna: welcome :)
ersran9 has quit [Ping timeout: 240 seconds]
<teto> srk: haha sure I had guessed so thanks
<thekolb> my builder tries to put files in /var/empty/.cache/ (which fails), I *think* it tries to use ~/.cache. Any ideas how to deal with that?
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
<thekolb> I am a bit at a loss because /var/empty doesn’t appear anywhere in the builder’s environment
Maxdamantus has quit [Ping timeout: 260 seconds]
Maxdamantus has joined #nixos
<Lisanna> thekolb: the builder for a derivation should never try to access non-local paths like ~ or /. The sandbox will prevent that.
<Lisanna> thekolb: usually you will either want to tell whatever program is doing stuff like that to not do that (e.g., by setting special environment variables / command line flags), or modifying e.g. the shell script with something like substituteInPlace
<Lisanna> it can be tricky, depending on what's actually trying to access those locations
<{^_^}> [nixpkgs] @vcunat pushed to staging-next « util-linux: fixup bad shell expansion »: https://git.io/fNdNQ
<rauno> sphalerite, like this: options = [ "size=10g" "nofail" ]; ?
balsoft has quit [Quit: Konversation terminated!]
<srhb> Uh, did legal hydra jobset specifiers change recently? o_o
<{^_^}> [nixpkgs] @alyssais opened pull request #44978 → cargo-download: init at 0.1.1 → https://git.io/fNdx3
chpatrick has joined #nixos
<Dedalo> Hi guys, does someone here has a working system system with Sway + Wayland on NixOS? I was able to install and launch Sway, but unfortunately the keyboard doesn't work at all.
<chpatrick> hey, I'm trying to deploy with nixops over an ssh tunnel
<chpatrick> I get copying closure..., then
<chpatrick> NAR info file '....narinfo' is corrupt
<chpatrick> about 15 times
<chpatrick> then the deployment fails
<chpatrick> do you know what it could be?
worldofpeace has joined #nixos
<aminechikhaoui> chpatrick: do you have some logs that you can paste somewhere ?
Izorkin has quit [Ping timeout: 240 seconds]
<srhb> Taneb: ping :)
fendor has quit [Remote host closed the connection]
fendor has joined #nixos
Lisanna_ has joined #nixos
<sphalerite> rauno: yep
<ongy> hm, after following the guide to install from different linux, I got an error on nixos-rebuild: nixpkgs was not found in Nix search path (I logged in as root on a tty)
<rauno> okay, thx for the great tip +1
<rauno> ongy, what does ur NIX_PATH env var say?
Lisanna has quit [Ping timeout: 240 seconds]
<ongy> nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
<ongy> though I also see a warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs' does not exist
<ongy> same about the path without the nixos/nixpkgs at the end
<rauno> ongy, https://nixos.wiki/wiki/Nix_Channels this might help u
<rauno> sphalerite, weird is that when i know upgraded my system using nixops, it won't boot anymore, hangs on mounting system disk, does the hardware-config change when system is upgraded or smth?
init_6 has joined #nixos
<sphalerite> rauno: no, hardware-configuration.nix is only modified if you change it or rerun nixos-generate-config
<rauno> hum, weird that it can't find the system disk using uuid
<sphalerite> rauno: but if you have a broken filesystem definition in your config it will fail to boot I think
<rauno> i got that fixed
<rauno> at least i think :)
<rauno> when i migrated to nixops, i copied hardware config from nixos, so it should be right..
<srk> rauno: even with boot.initrd.availableKernelModules?
<tfc[m]> hey there. i have been studying nixos integration tests a bit. one thing that is unclear to me: how to get program output into the log output in `result/`? e.g. the test `<nixpkgs/nixos/tests/timezone.nix>` does `print` shell output, but i cannot see it neither on the build shell output nor in the log.html...?
<rauno> srk, yep
<chpatrick> aminechikhaoui: https://pastebin.com/FCKLKKrv
MichaelRaskin has quit [Quit: MichaelRaskin]
<srk> rauno: should be good then, you can add boot.shell_on_fail to kernel args and try checking from initrd shell
<ongy> rauno: thx. `nix-channel --update` fixed itf
<rauno> ongy, np
<aminechikhaoui> chpatrick: are you using some kind of custom binary cache ?
<yorick> is it normal that ec2 images take forever for ssh to come up?
<srk> ssh host key generation might take a while
alex`` has joined #nixos
<yorick> 20 minutes?
<yorick> also no, ssh host key is in the logs already
<yorick> the logs end at "started reconfigure the system from ec2 userdata on startup"
<yorick> (after 'started ssh daemon')
<srk> inspect boot logs or check `systemd-analyze blame`
<yorick> I don't have ssh access
<srk> (not sure how ec2 image works)
<Dedalo> I can't believe no one here is using Sway on NixOS
Maxdamantus has quit [Ping timeout: 240 seconds]
<aminechikhaoui> yorick: I think I've seen that on certain instance types
<aminechikhaoui> anything interesting in the console logs ?
<srk> Dedalo: I'm waiting for waymonad :D
<yorick> I've seen it on the huge instances, but these are just t2.small's
<yorick> aminechikhaoui: not really
orivej has joined #nixos
<yorick> the instance reachability check is failing
mayhewluke has quit [Ping timeout: 248 seconds]
<Dedalo> OK, I can see that 4 people contributed to the sway.nix file on GitHub. That means flokli and primeos are using it. So I'm pinging them.
<{^_^}> [nixpkgs] @Gerschtli opened pull request #44979 → nixos/gitea: fix pre start script → https://git.io/fNdjB
mayhewluke has joined #nixos
<sphalerite> Dedalo: why?
Maxdamantus has joined #nixos
<ongy> srk: you are? tell me what you need :P
<Dedalo> sphalerite because I can't make it work and I need help, so I'm trying to find someone who is running Sway on his NixOS
<sphalerite> Dedalo: you should say how it's not working rathere than waiting for specific people
<sphalerite> ,ask
<{^_^}> Just ask your question. It's the best way to know if anybody can help.
flyx has left #nixos ["Textual IRC Client: www.textualapp.com"]
<Dedalo> sphalerite I did, but no one answered :-(
<sphalerite> Dedalo: ah right, I missed that. Sorry!
<sphalerite> How does the keyboard fail to work? No response to input at all?
<Dedalo> sphalerite exactly, I can move the mouse cursor, but that's all
<rauno> srk, i renegenerated hardware config after upgrade and will try to reboot now, lets see..
<ongy> Dedalo: do you have the stderr output of sway somewhere? that should contain some details about the input devices it finds
<srk> ongy: \o/ gonna give it a go, been a while
<ongy> post issues! I need some motivation lately, since it works for my current needs
<srk> yeah, I will even post code when current heat wave is over :D
<Dedalo> sphalerite I have installed sway and wayland using `nix-env -i`, enabled the OpenGL support in configuration.nix, then I run sway from the command line, it starts but I can't do anything, I can't even switch to another console with ALT + F2.
<sphalerite> Dedalo: and this isn't just because you haven't configured any key bindings?
<ongy> Should be [Ctrl]+[Alt]+F# to switch ttys, not just [Alt]+F#
vidbina_ has joined #nixos
<sphalerite> Dedalo: after installing weston and having `bindsym $mod+Return exec weston-terminal` in my config, I can get a terminal using super+return
<sphalerite> and I can quit sway using super+shift+e
<Dedalo> sphalerite possible, I'm new to sway and I don't know where I should put the configuration in NixOS. I suppose I should have a .config dir somewhere, but I can't find it. Where NixOS put the sway configuration?
<yorick> aminechikhaoui: my current workaround is "use ap-southeast-1, that seems to work"
<Taneb> srhb: pong
<yorick> aminechikhaoui: in general, it seems that nixops is in need of maintainers
<Dedalo> ongy well, it's Fn + Alt + F# apparently
<sphalerite> Dedalo: sway uses the config included in the package by default. It also looks at i3's config location
<srhb> Taneb: Did you figure out what on earth was going on with the invalid jobset specifiers? I've just hit it. It appears to be an UI bug only, thankfully, but was it related to numeric jobsets (as in PR numbers)?
<sphalerite> Dedalo: to be sure, you may want to use sway -c path-to-your-config to ensure it's getting exactly that condig
<sphalerite> config*
<Dedalo> sphalerite I didn't touch the configuration because I don't know where is stored
<Taneb> srhb: yeah! Changing from "1912" to "pr1912" fixed it!
<ongy> huh, that's weird. Maybe something can remap your Fn key? IME that doesn't even reach the system
<srhb> Taneb: Weird!
<sphalerite> Dedalo: if you installed sway using nix-env, you can copy the default config from ~/.nix-profile/etc/sway/config and work from there
<srhb> Taneb: Thank you. :)
<Dedalo> ongy dunno, I got this laptop two days ago, it's an X1 Carbon
<{^_^}> [nixpkgs] @xeji merged pull request #44953 → jameica: add darwin support → https://git.io/fNdlb
<{^_^}> [nixpkgs] @xeji pushed commit from @flokli to master « jameica: add darwin support (#44953) »: https://git.io/fNFel
<sphalerite> Dedalo: `man sway` also explains where sway looks for its config
<{^_^}> [nixpkgs] @xeji merged pull request #44950 → protonmail-bridge: 1.0.5-1 -> 1.0.6-1 → https://git.io/fNdcm
<{^_^}> [nixpkgs] @xeji pushed commit from @LightDiscord to master « protonmail-bridge: 1.0.5-1 -> 1.0.6-1 (#44950) »: https://git.io/fNFeg
<rauno> srk, well that didn't work, still it can't find the disk by uuid :|
<srhb> Taneb: I see. Nasty surprise!
<Dedalo> sphalerite thank you, this should help. I'm sorry but I'm new to NixOS and everything is new, is not like any other Linux distro, so I need to get use to it :-)
lopsided98 has quit [Ping timeout: 240 seconds]
<sphalerite> Dedalo: were you using sway on your previous distro as well?
<infinisil> LnL: Huh, it should find hasktags, nix-index searches through haskellPackages by default
lopsided98 has joined #nixos
arjen-jonathan has joined #nixos
<infinisil> ,locate bin idris
<{^_^}> Found in packages: haskellPackages.idris
reinzelmann has quit [Quit: Leaving]
<Dedalo> sphalerite I'm not used to Linux on the desktop, I have been using macOS for the last 10 years, I'm in the process to switch
<sphalerite> Dedalo: I'd suggest sticking with more mainstream windowing systems for now then. Sway and nixos's support for sway aren't really mature yet
<rauno> if i deploy with nixops then /etc/nixos directory isn't being used anymore, am i right ?
<sphalerite> rauno: yes
<rauno> hum, why the hell isn't it booting and finding my disk then :)
<Dedalo> sphalerite I should go with i3 + Xorg instead?
<adamt> Dedalo: i3 works without too many surprises on NixOS
<sphalerite> Dedalo: for example. Although that's probably still a big change from macOS.
<{^_^}> [nixpkgs] @xeji merged pull request #44715 → pony-stable: 0.1.4 -> 0.1.6 → https://git.io/fNSL0
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « pony-stable: 0.1.4 -> 0.1.6 (#44715) »: https://git.io/fNFv4
<Dedalo> sphalerite I know, but that's the way I want my desktop, on macOS I didn't have any choice. I don't like KDE or Gnome, I want to be able to open firefox or chrome in a console
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mate.mate-media: 1.20.1 -> 1.21.0 (#44745) »: https://git.io/fNFvV
<{^_^}> [nixpkgs] @xeji merged pull request #44745 → mate.mate-media: 1.20.1 -> 1.21.0 → https://git.io/fN9JU
<sphalerite> Dedalo: then it's probably a good fit :)
<{^_^}> [nixpkgs] @xeji merged pull request #44762 → jimtcl: 0.77 -> 0.78 → https://git.io/fN9Od
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « jimtcl: 0.77 -> 0.78 (#44762) »: https://git.io/fNFvi
Maxdamantus has quit [Ping timeout: 248 seconds]
Maxdamantus has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #44783 → groonga: 8.0.2 -> 8.0.5 → https://git.io/fN9gQ
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « groonga: 8.0.2 -> 8.0.5 (#44783) »: https://git.io/fNFfv
<{^_^}> [nixpkgs] @xeji merged pull request #44771 → ibus-engines.hangul: 1.5.0 -> 1.5.1 → https://git.io/fN9Cs
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « ibus-engines.hangul: 1.5.0 -> 1.5.1 (#44771) »: https://git.io/fNFfn
<{^_^}> [nixpkgs] @xeji merged pull request #44700 → skim: 0.5.0 -> 0.5.1 → https://git.io/fNyxq
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « skim: 0.5.0 -> 0.5.1 (#44700) »: https://git.io/fNFfR
trcc has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @xeji merged pull request #44693 → shaarli: 0.9.7 -> 0.10.0 → https://git.io/fNybT
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « shaarli: 0.9.7 -> 0.10.0 (#44693) »: https://git.io/fNFfw
trcc has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/9968d0f053c (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<thekolb> Ok so I need to set XDG_CACHE_HOME to a local path, but my builder expects it to be an absolute path. Surely there is a variable that holds the path the derivation where I can put intermediary files?
<{^_^}> [nixpkgs] @xeji merged pull request #44659 → x42-plugins: 20180320 -> 20180803 → https://git.io/fNy6w
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « x42-plugins: 20180320 -> 20180803 (#44659) »: https://git.io/fNFfH
<{^_^}> [nixpkgs] @FRidh pushed 116 commits to python-unstable: https://git.io/fNFfj
<rauno> any more ideas why it might fail to boot :) ?
trcc has quit [Ping timeout: 244 seconds]
<srk> try the boot.shell_on_fail and inspecting /dev/disk/by-*
<rauno> if i select older generation from grub then it works fine..
<srk> weird
<rauno> exactly
<srk> older generations are nixos rebuild and last one is nixops?
<rauno> yep
<{^_^}> [nixpkgs] @xeji merged pull request #44792 → cstore_fdw: 1.6.0 -> 1.6.1 → https://git.io/fN9wJ
<srk> both should give you pretty much the same if configs and nixpkgs matches
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « cstore_fdw: 1.6.0 -> 1.6.1 (#44792) »: https://git.io/fNFJE
<rauno> nixpkgs are different..
<thekolb> Okay so I can use $TMP in buildPhase, I had hoped I could use an equivalent variable in the derivation
<rauno> older generation is 17.09 and nixops is deploying 18.03
<srk> rauno: could possibly be a problem if they are too different. I would still suspect missing module
<rauno> and there's a chance that nixos-generate-config doesn't add it ?
<rauno> as I regenerated hardware config in a sperate directory after doinng the nixops deploy
<ongy> huh, does the nix daemon run in a restricted cgroup or something odd? It's still running out of memory installing ghc, but looking at htop it's not even close to full at any point
<rauno> and copied it to nixops
<srk> aha
<srk> that's probably a good idea
<rauno> indeed but didn't seem to work thou :|
vodurden has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed to python-unstable « pythonPackages.jinja2: disable tests »: https://git.io/fNFUm
<srhb> ongy: It might just be that it's attempting to allocate in larger chunks than you expect?
<srhb> ongy: Try pasting the error?
<ongy> error: Nix daemon out of memory
<rauno> at the moemnt hardware config is like this: https://pastebin.com/BvcMsPB9
<srhb> ongy: Helpful. :-) Well, my guess still applies.
<ongy> srhb: if larger chunk is ~2G and it somehow avoids overcommit, then maybe
<srhb> ongy: Hm, yeah...
<srhb> Not sure indeed.
<rauno> ongy, do u have swap?
<srhb> Still, with that current bug, I think the only viable solution is to add swap until things work
hakujin3 has joined #nixos
<ongy> rauno: no
<rauno> with 2g memory i would indeed try the swap
<srhb> (Or attempt a newer/fixed/workarounded version of nix itself)
<ongy> 4G total, the 2G is what's still available (looking at htop) at the very least
<ongy> if that exists? What's the easiest way to get that?
<srhb> If the fix is in nixUnstable (perhaps someone can confirm) and that version of nixUnstable is in your channel (which channel are you on?) you can set nix.package to nixUnstable
vodurden has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<srhb> Caveat emptor.
<ongy> 18.03
ng0 has quit [Quit: Alexa, when is the end of world?]
<srhb> nixUnstable has hash 45bcf541 there
<{^_^}> [nixpkgs] @dotlambda merged pull request #44562 → pythonPackages.browser-cookie3: init at 0.6.4 → https://git.io/fN1FJ
<{^_^}> [nixpkgs] @dotlambda pushed commit from @borisbabic to master « pythonPackages.browser-cookie3: init at 0.6.4 (#44562) »: https://git.io/fNFUj
Drakonis has joined #nixos
<srhb> ongy: It has a lot of constant space fixes, but maybe not all of them. *shrug*
hakujin3 has quit [Ping timeout: 240 seconds]
<ongy> cool, how do I switch to that? Change my channel, nixos-rebuild switch and then add xmonad to the configuration again?
alexteves has joined #nixos
<srhb> You could just try the one that's in your current channel. Disable the haskell stuff, set nix.package = pkgs.nixUnstable, rebuild, try re-adding haskell
<srhb> This is unstable software and all that jazz.
<srhb> And my recommendation is adding swap :P
<sphalerite> ongy: also if you don't want to use "real" swap, zram can be very helpful for this partiuclar issue
<srhb> sphalerite: Good point! I forgot about that
rauno has quit [Ping timeout: 244 seconds]
alexteves has quit [Remote host closed the connection]
iyzsong has joined #nixos
<ongy> does it actually? I thought that's still 4G in the end, just that less of them are used once the system decides to swap
<thekolb> My builder tries to open libssl via dlopen and can’t find it. I suspect nix expects builds to use ld and sets NIX_LDFLAGS to that effect?
<sphalerite> well you create a zram device, format it as a swap partition, and swapon it
<sphalerite> then it'll start swapping stuff into compressed land
<{^_^}> [nixpkgs] @dotlambda pushed 38 commits to python-unstable: https://git.io/fNFTR
<sphalerite> thekolb: at build time, yes. At run time, stuff is usually found via executables' RUNPATH entries
<inquisitiv3> Has there been any discussions regarding switching from Grub to Systemd-boot as a bootloader for UEFI systems?
<sphalerite> inquisitiv3: systemd-boot is currently the default AFAIK.
alexteves has joined #nixos
<infinisil> I thought grub was the default?
<infinisil> > nixos.options.boot.loader.grub.enable.default
<Dezgeg> grub on BIOS and systemd-boot on EFI are the defaults
<{^_^}> true
alex`` has quit [Ping timeout: 240 seconds]
<Dezgeg> (as in what nixos-generate-config gives you)
<srhb> And what the manual says :)
<infinisil> I see
<inquisitiv3> sphalerite, Dezgeg and srhb: T
<inquisitiv3> Thank!
alexteves has quit [Remote host closed the connection]
<inquisitiv3> I misinterpreted the wiki then. https://nixos.wiki/wiki/Bootloader
alexteves has joined #nixos
<timokau[m]> Since switching from arch to nixos, mbsync fails to fetch one of my mail accounts (same config as before). Does anybody have experience with that?
<timokau[m]> `Error: SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (No Kerberos credentials available (default cache: FILE:/tmp/krb5cc_1000))`
<inquisitiv3> timokau[m]: Different version?
<inquisitiv3> Thinking changes in the configuration format.
<timokau[m]> inquisitiv3: isync (mbsync package) wasn't updated since 2017 so I don't think so
<timokau[m]> I'm not 100% sure but arch should be as up to date as nix
<timokau[m]> It looks like it is not really an mbsync error but an error in the authentication library it uses
<alexteves> how can I add memtest to grub? I tried adding 'boot.loader.grub.memtest86.enable = true;', followed by 'nixos-rebuild switch' but it didn't show up
<ongy> srhb: now it works :0
<thekolb> sphalerite: sadly I won’t get around it trying to load libssl at build time or run time, so I think I might need to set LD_LIBRARY_PATH but I am not sure how given the builder environment only exposes the libssl’s lib in NIX_LDFLAGS
<srhb> ongy: Fantastic :)
<srhb> ongy: That's with nixUnstable from nxos-18.03?
<sphalerite> thekolb: typically we wrap that sort of thing with a script that sets LD_LIBRARY_PATH.
<ongy> I think! I have xmonad installed now? now I just need to find out which version and how to plug my overgrown xmonad.hs
<ongy> yea
<sphalerite> > lib.makeLibraryPath [ pkgs.curl ]
<{^_^}> "/nix/store/9gnndwx7jyyaisk35wcgz4xlf94khmnz-curl-7.60.0/lib"
<sphalerite> > lib.makeLibraryPath [ pkgs.curl pkgs.openssl ]
<{^_^}> "/nix/store/9gnndwx7jyyaisk35wcgz4xlf94khmnz-curl-7.60.0/lib:/nix/store/rky37cy0z8rrc1xm01lkbiwk1rd7dn67-openssl-1.0.2o/lib"
<srhb> ongy: nix eval nixpkgs.haskellPackages.xmonad.version
<sphalerite> thekolb: lib.makeLibraryPath can be helpful for generating the actual value as above
<srhb> Er, probably s/nixpkgs/nixos on your system (your channel name)
<thekolb> sphalerite: cool thanks!
<{^_^}> [nixpkgs] @wigust opened pull request #44980 → ansible: install man pages → https://git.io/fNFkz
freeman42x]NixOS has joined #nixos
<ongy> 0.13 =.= Well, that's old
<infinisil> How so?
<infinisil> 0.14 only came out very recently
<ongy> it's the latest one that got released, but that's because xmonad releases are a pipe dream
<timokau[m]> Maybe I should just switch from mbsync to offlineimap, at least the latter looks like it is maintained
<ongy> it did? I must have missed that
<srhb> ongy: We generally don't do major bumps in the stable releases
<srhb> Yeah, july 30.
<srhb> (On Hackage, at least)
<ongy> ohh, 2 weeks ago. That's cool
<ongy> nobody bothered to update the irc-channel topic o.0
<srhb> And if you use the xmonad window manager setting in configuration.nix, your normal xmonad file should just be picked up automatically.
<srhb> It's not very magical.
<infinisil> Oh! I've been meaning to make this more deterministic
<infinisil> Currently it compiles your xmonad config at runtime..
<infinisil> Which got me all sorts of problems
<ongy> can I force xmonad from unstable channel? I guess that would require to pull about every haskell package from there?
<srhb> ongy: Yes, no.
<srhb> (Unless the dependencies require it)
thetet has joined #nixos
<infinisil> Well if you don't want to recompile it, then you need all that channels haskell packages
thetet has left #nixos [#nixos]
<{^_^}> [nixpkgs] @Ekleog opened pull request #44981 → buildRustPackage: allow patches to fix Cargo.lock → https://git.io/fNFIf
<Lears> Is 0.14 working with unstable? I'm using it via overlay pulling in git source.
<srhb> Lears: I'm using it.
<adamt> Is it possible to force the `nix` cmd to output as if it was attached to a tty? It seems like it does something different depending on whether it think it's attached to a tty, or not (like missing progress bar when not).
<timokau[m]> inquisitiv3: In case you care: the issue was the sasl implementation used by mbsync. Nix uses `cyrus_sasl`. Switching that to `gsasl` fixes my issue. I'll see if it makes sense to make a PR for that.
<srhb> adamt: I don't know, but I imagine the progress bar would look... Strange.
fendor has quit [Ping timeout: 248 seconds]
<infinisil> adamt: Pretty sure the answer is no, unless you use some hack to simulate a tty
<infinisil> There's some utilities for that I think
ericsagnes has joined #nixos
<ongy> you could LD_PRELOAD away isatty(), but it's probably a horrible idea
<Lears> Good to know, srhb. I guess I can clean up my overlays a bit then.
<adamt> srhb: It probably wouldn't. I'm just trying to capture the output (which will be kinda sad looking) while also displaying it to screen, but wrapping the stdout in a writer (Go) that just fans out the input to multiple other writers.
<adamt> ongy: I thought about it, but that would make this the worlds ugliest Go app. :P
<srhb> Lears: Here's a tip, add an assertion to your overlays that throws when the super.version no longer matches the version you made the overlay for
<Taneb> I seem to have a problem where Hydra's GithubPulls plugin has authorization but GithubStatus does not
<srhb> I have a bunch of helpers for that...
<{^_^}> [nixpkgs] @lheckemann closed pull request #41544 → (WIP) terminfo-extra: init → https://git.io/vhRSJ
sevcsik has joined #nixos
<sevcsik> gistering an Oracle account). Is there a way to handle this in Nix (similar to Gentoo's fetch restricted ebuilds)?
<gchristensen> Sorry, sevcsik, I think your question got ... cut off ... but at the beginning?
<gchristensen> it starts at "gistering an Oracle account)."
<sevcsik> ... Hi, I'm tying to write a nixpkg for sqldeveloper. Unfortunately the package can be downloaded only manually (after registering an Oracle account). Is there a way to handle this in Nix (similar to Gentoo's fetch restricted ebuilds)?
<sevcsik> yes, I noticed, sorry :)
<gchristensen> ah yes
<srhb> sevcsik: The oraclejdk is an example of such a package.
<srhb> sevcsik: Installing it (which requires allowUnfree on) triggers this: https://gist.github.com/srhb/7546fe2aa29ce0c02833cc6ea38ec3fb
<srhb> It also taints your soul, of course, but that's Oracle for you.
<sevcsik> wonderful, thanks
<ongy> hm, I'm probably just missing the obvious, but how do I pin xmonad from unstable?
<symphorien> ,pinning
<{^_^}> [nixpkgs] @alyssais opened pull request #44983 → environment.extraInit: fix description typo → https://git.io/fNFtG
<{^_^}> [nixpkgs] @xeji pushed commit from @wigust to master « ansible: install man pages (#44980) »: https://git.io/fNFt0
<{^_^}> [nixpkgs] @xeji merged pull request #44980 → ansible: install man pages → https://git.io/fNFkz
alex`` has joined #nixos
<Myrl-saki> myrl@myrl:~/Dev/ASCIIVN[master•]$ nix-build channel:nixos-unstable -A 'pkgsCross.mingwW64.callPackage ./. {}'
<Myrl-saki> error: attribute 'callPackage ' in selection path 'pkgsCross.mingwW64.callPackage ./. {}' not found
<Myrl-saki> Oh, wait.
<Myrl-saki> I guess -A is not what I want.
<Myrl-saki> Still.
davenpcm has joined #nixos
<flokli> sevcsik: there already is a sqldeveloper package
jperras has joined #nixos
<Myrl-saki> Yeah, um.
<Myrl-saki> Is there like fetchChannel or something
<sevcsik> flokli: ah, yes, indeed. I just missed it because it doesn't appear in the package search.
<sevcsik> problem solved, then!
<sphalerite> Myrl-saki: how about nix-build -I nixpkgs=channel:nixos-unstable -E 'with import <nixpkgs> {}; pkgsCross.mingwW64.callPackage ./. {}'
<Myrl-saki> sphalerite: Oh, thanks.
<Myrl-saki> Yeah, that should work.
<flokli> sevcsik: yes, that's all the unfree stuff. the sqlplus/instantclient/cx_oracle stuff is packaged too (without a need to set strange oracle env vars), in case you want to get to these databases programmatically. saved my sanity once or twice already now :-)
<Myrl-saki> Welps, same problem with cmake though.
<Myrl-saki> error: Package ‘libkrb5-1.15.2’ in /nix/store/419f0gjfvjk6mmxl4fa24hkfs0yr7q78-nixexprs.tar.xz/pkgs/development/libraries/kerberos/krb5.nix:74 is not supported on ‘x86_64-pc-mingw32’, refusing
<Myrl-saki> to evaluate.
<Myrl-saki> I honestly don't wanna use cmake anymore lol
<flokli> sevcsik: you should keep all the binaries in your downloads folder, as they get garbage-collected every one and then
<sevcsik> flokli: good to know. is there any way to search the unfree packages online? or only in git?
<Myrl-saki> OTOH, I'm porting this to Rust(no, seriously), so I'll, uh, hope rust works instead.
endformationage has joined #nixos
<flokli> sevcsik: cd $nixpkgs_git;ag $packageName ;-)
<flokli> this is how we roll
<sphalerite> argh. On one of my users, I currently have 3 different sizes of stuff. A, tiny (regular-DPI size on Hi-DPI display); B, the right size; and C, huge, where scaling seems to be getting applied twice >_>
<thekolb> Any hints how I could move this variable definition https://gist.github.com/eugeneia/b5e1ca3a31594dd84d077ae670f7b257#file-default-nix-L26 out into the derivation (my specific roadblock is that TMP isn’t defined there). This way I wouldn’t need to define buildPhase.
<thekolb> ?
<inquisitiv3> I'm installing NixOS on a new machine. Wonder what I should do in step 9 in the installation instructions? https://nixos.org/nixos/manual/index.html#sec-installation
<inquisitiv3> I'm running a UEFI system.
eskytthe has left #nixos [#nixos]
<sphalerite> thekolb: use export, and put it in preBuild?
<inquisitiv3> What partition should I mount?
<thekolb> sphalerite: of course! neat, thanks!
<inquisitiv3> Is it the root partition?
<gchristensen> inquisitiv3: did you follow step 8's "UEFI systems" step?
<LnL> infinisil: oh, maybe it was broken at the time of indexing then
<Myrl-saki> Well, crap. This is sad.
<inquisitiv3> gchristensen: Yep.
<gchristensen> oh oops
<ongy> symphorien: huh? I see how to get something from git with this, but I don't see how it helps me getting a version from a different channel
<gchristensen> I mean, yeah, that is your root fs
<inquisitiv3> gchristensen: Thanks!
<sevcsik> flokli: wow, I didn't know ag. fancy
<Myrl-saki> I don't even have git in my buildInputs.
vbernat has joined #nixos
ajs124 has quit [Quit: Gateway shutdown]
ng0 has joined #nixos
ajs124 has joined #nixos
<inquisitiv3> Is it possible to generate a new default configuration.nix whenever I want after installing NixOS?
<gchristensen> you definitely edit it and make changes to it over time
<symphorien> ongy: and then https://nixos.wiki/wiki/FAQ#How_can_I_install_a_package_from_unstable_while_remaining_on_the_stable_channel.3F by replacing "<unstable>" with your pinned nix expression
<Myrl-saki> Anyways, found why. Apparently, buildRustPackage adds git to the buildInputs.
<inquisitiv3> gchristensen: I'm thinking in of creating a new version controlled `configuration.nix` after I got my system up and running. I would like to generate a clean config file w
<inquisitiv3> when I begin use git.
<ongy> symphorien: ahh, that looks more like what I wnated. thx
<{^_^}> [nixpkgs] @smaret opened pull request #44984 → gildas: 20180701_a -> 20180801_a → https://git.io/fNFm1
astrofog has joined #nixos
astrofog has quit [Client Quit]
<symphorien> How do I check that a derivation is in the binary cache ?
<gchristensen> you can do nix-build -j0
Denommus has joined #nixos
<symphorien> Yes but I suspect my nix installation is broken
<symphorien> So with curl if possible
<symphorien> (I am debugging why nothing is substituted by nix)
schaary has quit []
<gchristensen> ah
<gchristensen> $ ls -la $(which bash)
<gchristensen> lrwxrwxrwx 1 root root 65 Dec 31 1969 /run/current-system/sw/bin/bash -> /nix/store/496rv6cn7n317jfbrid3662f4l7jf0is-bash-4.4-p12/bin/bash
<symphorien> Ok thanks
ryantrinkle has quit [Ping timeout: 244 seconds]
<symphorien> Hum so nixpkgs seems to be really evaluating differently
adamt has quit [Ping timeout: 240 seconds]
<gchristensen> do you have overlays?
<symphorien> No, fresh install
<symphorien> But it failed at the nix-channel --update step
<symphorien> (My fault)
<{^_^}> [nixpkgs] @wmertens pushed to siege-unix « siege: build on all Unix »: https://git.io/fNFOQ
<symphorien> nix eval -f channel:nixpkgs-unstable patchelf.outPath --> "/nix/store/88y7pxp72jyn8bj323pjvb8gyd2ajmzc-patchelf-0.9"
<{^_^}> [nixpkgs] @wmertens opened pull request #44985 → siege: build on all Unix → https://git.io/fNFON
<symphorien> does anyone have the same hash ?
<gchristensen> don't use nixpkgs-unstable for nixos
<symphorien> it's not nixos
<{^_^}> #20353 (by ayyjayess, 1 year ago, open): Missing a device specified in a fileSystem entry will crash the system
<{^_^}> sphalerite: I'll pass that on to rauno
Maxdamantus has quit [Ping timeout: 240 seconds]
<symphorien> it's a half broken single user nix install on ubuntu, half broken because the store is on a cifs
<ma27> can anybody have a look at this: https://github.com/NixOS/nixpkgs/pull/44624 ?
<{^_^}> #44624 (by Ma27, 5 days ago, open): sqldeveloper: 17.4.1.054.0712 -> 18.2.0.183.1748
Maxdamantus has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #44983 → environment.extraInit: fix description typo → https://git.io/fNFtG
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNF3W
iyzsong-x has joined #nixos
<thekolb> so I noticed machines deployed with nixops don’t have a configuration.nix?
<clever> thekolb: thats normal
iyzsong has quit [Ping timeout: 260 seconds]
<thekolb> clever: trying to change the machine from within itself is probably a bad idea right? I don’t have access to the deployment machine right now and wonder if I can somehow make it redeploy itself (non-rebooty changes obviously, basically services.postgresql.enable=true)
<clever> thekolb: yeah, you cant really change it with nixos-rebuild
<gchristensen> thekolb: I break nixos-rebuild on nixops-managed systems because you'll break it
<gchristensen> ^ that is what I do :)
<thekolb> guess I’ll wait
<{^_^}> [nixpkgs] @wmertens merged pull request #44985 → siege: build on all Unix → https://git.io/fNFON
<{^_^}> [nixpkgs] @wmertens pushed 2 commits to master: https://git.io/fNFsL
<{^_^}> [nixpkgs] @wmertens pushed 0 commits to siege-unix: https://git.io/fNFsY
hotfuzz has joined #nixos
iyzsong-x has quit [Ping timeout: 272 seconds]
hotfuzz_ has quit [Ping timeout: 260 seconds]
Anton-Latukha has quit [Quit: Leaving.]
Anton-Latukha has joined #nixos
<inquisitiv3> I want to set the option `boot.initrd.luks.devices` because I've a encrypted disk. Should I write t
<inquisitiv3> the following in the config?
carlosdagos has quit [Quit: Connection closed for inactivity]
<inquisitiv3> boot.initrd.luks.devices = luksroot.device = ""/dev/disk/by-uuid/[UUID]";
<clever> too many ='s in the like, its not valid
<inquisitiv3> Yeah
<clever> boot.initrd.luks.devices = [ { name = "root"; device = "/dev/nvme0n1p2"; preLVM = true; } ];
<inquisitiv3> I'm having a hard time understanding th
<inquisitiv3> the example.
<clever> its a list, containing an attribute set
<sphalerite> inquisitiv3: nixos-generate-config will also generate it correctly I believe
<inquisitiv3> sphalerite: It doesn't do that for encrypted partitions.
<clever> sphalerite: last time i did it, nixos-generate-config didnt detect luks
<inquisitiv3> At least not last I did an install with 18.03.
<sphalerite> hm, it does though
<sphalerite> maybe it doesn't support LVM-on-LUKS
<sphalerite> or whatever other funkiness you might be doing ;)
<inquisitiv3> LVM-on-LUKS is the most common encryption method :P
vmandela has quit [Quit: Leaving]
<sphalerite> I guess it only supports LUKSed plain filesystems or something
Maxdamantus has quit [Ping timeout: 255 seconds]
Maxdamantus has joined #nixos
<sphalerite> ,find nixos-generate-config.pl
imalsogreg has quit [Ping timeout: 240 seconds]
<sb0> is there a magic group that I can add my user to so that it can turn rfkill switches on/off?
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/6afd19e699c (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
<sphalerite> sb0: I think you'd need to set the appropriate permissions on /dev/rfkill. For a start, try `sudo setfacl -m u:$USER:rw /dev/rfkill` and see if that enables you to use rfkill
<clever> and i believe a udev rule can automate that
<sphalerite> sb0: since the default permissions on it are root:root, ug+rw, o+r, you'd need to set up a udev rule or something to set its ownership to a different group or set an ACL for it
<sb0> yes, it does
<sb0> isn't there something for it in nixos already? it
<sphalerite> no, but if you're willing to make a PR... :)
<sb0> it's a pretty common problem that the user GUI has to enable/disable e.g. bluetooth...
<sphalerite> yes, but that's usually done via the bluetooth daemon
<{^_^}> [nixpkgs] @volth opened pull request #44986 → [wip] resolvconf to respect config.networking.nameservers → https://git.io/fNFnr
<sb0> well, it doesn't work right now for me in KDE due to this rfkill permission problem
<sphalerite> network-manager manages the wifi killswitch
<sb0> this setfacl command also fixed KDE
tyil has joined #nixos
<sphalerite> huh, I thought plasma used network-manager
<tyil> I'm trying to install nix using `curl https://nixos.org/nix/install | sh`, but it fails with a permission denied on line 65
<sb0> yes. it uses network-manager for wifi and that works fine; but bluetooth is apparently different
<tyil> if I alter the script to use sh explicitly to call the script, it seems to work
<sphalerite> aaah right
<sb0> well I actually haven't tried KDE rfkill for wifi, since I always enable it
binaryphile has joined #nixos
<sb0> but switching networks etc. works fine
<clever> tyil: what does `mount | grep noexec` print?
<tyil> however, it then fails with error: cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': No such file or directory
<tyil> clever: quite a few mointpoints, including /tmp
<tyil> so that explains that error
<clever> yep
hakujin3 has joined #nixos
<tyil> that leaves the daemon issue, sadly
<clever> it failed to even start the install, so i can see how things would be broken
<tyil> I got that specific script to work by calling it with sh from the install script, though
<tyil> I remounted /tmp with exec, and redid the curl | sh command, and the daemon connectivity issue remains :/
<clever> tyil: is there a nix-daemon.service somewhere in /etc/systemd/?
hakujin3 has quit [Ping timeout: 240 seconds]
<tyil> I hope not, I'm not using systemd
<tyil> (and I checked to verify, there is indeed no /etc/systemd directory)
<clever> it might be that the new install script defaults to expecting it
<tyil> :/
<clever> its been changed recently
<clever> but it should also support a --single-user i think
<tyil> that sounds like a bad idea
<tyil> the script says "performing a single-user installation of Nix..." after the dl
<clever> ah, then not needed
<clever> what is $NIX_REMOTE set to?
<tyil> "daemon"
<clever> unset it
<clever> thats claiming its in a multi-user mode
<tyil> re-run the installer after unsetting?
<clever> yeah
<tyil> ah, it installed correctly now
<tyil> thanks clever :>
rardiol has joined #nixos
<clever> yep
fresheyeball has joined #nixos
<fresheyeball> how can I limit journalctl's collection size?
<clever> fresheyeball: https://nixos.org/nixos/options.html#journald.extraco i think
<clever> and `man journald.conf`
<clever> SystemMaxUse=, SystemKeepFree=, SystemMaxFileSize=, SystemMaxFiles=, RuntimeMaxUse=, RuntimeKeepFree=, RuntimeMaxFileSize=, RuntimeMaxFiles=
<Dedalo> How can I delete the `~/.nix-profile/etc` files that are not useful anymore? I have installed then removed a package but there is a file still there and it's read only.
<clever> Dedalo: does `nix-env -q` list those packages?
<fresheyeball> clever: can I clear it out?
<fresheyeball> what happens if it gets too big?
<clever> fresheyeball: there are also the vacuum family of options in `man journalctl` to do a one-time clearing
<clever> fresheyeball: the only thing that happens when it gets big, is that it uses more disk space
robstrr has joined #nixos
<tfc[m]> from within a nix expression where i have `x = ./someLocalFile.txt`, how can i transform this into a valid /nix/store....someLocalFile.txt path?
<clever> tfc[m]: just treat x as a string
<tfc[m]> clever: that converts it to a normal path outside of /nix/store. the thing is... i want to reference it from within a vm expression in an integration test.
<clever> tfc[m]: where are you using x ?
__Sander__ has quit [Quit: Konversation terminated!]
hyper_ch2 has quit [Quit: Page closed]
<tfc[m]> clever: i am writing a test that needs to move a zip file into the /var/www/ folder of the wwwserver VM. in `<nixpkgs/nixos/tests/bittorrent.nix>` they do it with `file = pkgs.hello.src;` and `$tracker->succeed(" cp ${file} /tmp/data/foo");`
<tyil> this issue might be chromium specific, but after installing chromium and trying to run it, I get this error: https://p.tyil.nl/z33e
<tfc[m]> and i suspect this only works because `pkgs.hello.src` is a valid /nix/store/.... path
<tyil> (using nix on Funtoo)
acowley has joined #nixos
<tfc[m]> clever: so i need some function that takes my local ZIP file and copies it to the /nix/store so i can reference that, right?
<clever> tfc[m]: that happens entirely automatically when you do things like src = ./local.zip;
<tfc[m]> clever: ok, but it does not seem to happen in the repl, or is tryin that in the repl stupid?
<clever> tfc[m]: the repl checks the type, and doesnt treat it as a string
<clever> > "${./.} can force it"
<{^_^}> "/nix/store/34564rwjqc8lwii2b683a2dgmbqz24dn-nixpkgs can force it"
<Dedalo> clever `nix-env -q` doesn't list, but `nix-env -qa` does list it
<tfc[m]> clever: oooh, i see. that is very helpful. thank you clever!
<clever> Dedalo: what is the name of the thing in ~/.nix-profile/etc you want to get rid of?
<tfc[m]> this integration test thing is so awesome. too bad it's using perl. :D
<clever> tfc[m]: thats the same thing the torrent test is doing, cp ${file} ...
<Dedalo> clever `i3`, that I have installed before
<clever> tfc[m]: yeah, i rewrote my own usecase specific test in lua just to avoid that, lol
<tfc[m]> clever: yeah i just thought that this is a nix path because its taken from a derivation that is already in my nic store.
<clever> Dedalo: ls -lh ~/.nix-profile/etc/i3
<clever> tfc[m]: in the case of hello.src, its a fetchurl based derivation
<tfc[m]> clever: are there any attempts to rewrite such stuff in any other nice language? i am not sure if python was much better...probably not. something statically typed would be great.
<clever> tfc[m]: this is required to make the sandbox helper setuid root
<tyil> clever: thanks :>
<tyil> I just run that .nix after installing chromium?
<clever> tyil: no, you have to set security.chromiumSuidSandbox.enable = true; in configuration.nix
<clever> and then nixos-rebuild switch
<tyil> oh
<tyil> I haven't done anything with configuration.nix, so this might be a good time to read up on that
Maxdamantus has quit [Ping timeout: 260 seconds]
<tyil> thanks for the information thus far, I'll go afk for a bit and then learn about configuring it :>
erasmas has joined #nixos
Anton-Latukha has quit [Quit: Leaving.]
Anton-Latukha has joined #nixos
Maxdamantus has joined #nixos
<Dedalo> clever well, something strange is happening, and this is not the first time. Is there some background task that is cleaning?
<Dedalo> That file doesn't exist anymore, but it was there 2 minutes ago
<Dedalo> it was a dir actually
<clever> Dedalo: no background tasks like that
<Dedalo> and another strange thing is that the files are all dated Jan 1 1970
<Dedalo> I mean the file under ~/.nix.profile
<Dedalo> files
<clever> Dedalo: did you cd ~/.nix-profile/ ?
Fare has joined #nixos
<Dedalo> yes I did
<clever> thats why
<clever> the symlink for .nix-profile was changed
<clever> and you where left cd'd into the old version
<Dedalo> what is the problem in doing a cd?
<Dedalo> oh, you mean that since I was already inside the dir, the content was the old one?
<clever> yeah
<clever> all paths in nix are immutable, so you where cd'd into the old one, and nix-env -e made a new dir
<Dedalo> clever where I can find the source of a package that I have installed globally in the configure.nix?
<sphalerite> the source as in?
<sphalerite> The nix expression? Or the package's source code?
<sphalerite> the nix expression: `nix edit nixpkgs.package-name`
<Dedalo> I mean the files of that package, binaries and other files, like a readme, stuff like that
<sphalerite> the source code: usually, `nix build nixpkgs.package-name.src` and you'll get a tarball or directory symlinked to "result"
<sphalerite> the package output, `nix build nixpkgs.package-name`, and you'll get it in result like above
fresheyeball has quit [Ping timeout: 272 seconds]
<Dedalo> oh, that's interesting :-)
ryanartecona has joined #nixos
Fare has quit [Ping timeout: 240 seconds]
mayhewluke has quit [Ping timeout: 256 seconds]
<Dedalo> basically it downloads the sources (if it has been installed from binaries) and create a symlink to the directory
<Dedalo> and then I can just remove the symlink `result`, right?
<clever> yep
mayhewluke has joined #nixos
siers has joined #nixos
rardiol has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @vbgl merged pull request #44963 → ocamlModules.wasm: add wasm binary → https://git.io/fNdzE
<{^_^}> [nixpkgs] @vbgl pushed commit from @Ekleog to master « ocamlModules.wasm: add wasm binary »: https://git.io/fNF4u
hakujin3 has joined #nixos
<hyper_ch> hmmmm, using KDE, howcan I find out why pairing of wireless earplugs is failing?
hakujin3 has quit [Quit: WeeChat 2.2]
Izorkin has joined #nixos
robstrr has quit [Ping timeout: 252 seconds]
thetet has joined #nixos
thetet has left #nixos [#nixos]
<manveru> hyper_ch: it's in journalctl
<manveru> also try restarting pulseaudio... that helps me when they totally refuse to pair
<{^_^}> [nixpkgs] @vbgl merged pull request #44974 → reason: 3.3.2 -> 3.3.3 → https://git.io/fNdy5
<{^_^}> [nixpkgs] @vbgl pushed commit from @dywedir to master « reason: 3.3.2 -> 3.3.3 »: https://git.io/fNFRU
<manveru> not sure why, you'd expect the bluetooth service to be the issue :P
<hyper_ch> manveru: thx, will try again
<hyper_ch> manveru: shouldn't bluetooth be running stable meanwhile? I still have issues with it :(
<joepie91> blargh, bluetooth
<joepie91> hyper_ch: bluez is a trainwreck
<hyper_ch> :(
<manveru> it's mostly stable, i'm still annoyed that it causes my suspend to wake up every time so i have to suspend twice...
<joepie91> hyper_ch: btw, did this by any chance occur after suspending your system?
<joepie91> and awakening it again
<hyper_ch> joepie91: yes
<joepie91> hyper_ch: then restart your bluetooth service and re-pair, known bug
<hyper_ch> I'll reboot at home and retry then
<manveru> pairing after suspend is fine for me though :)
<hyper_ch> manveru: well, you're awesome :) that's why :)
<joepie91> sec
<manveru> lol
* joepie91 searches for issue
<hyper_ch> I just wonder if kde has bluetooth issues on its own as well
<{^_^}> #41912 (by ivanovsaleksejs, 8 weeks ago, open): Bluetooth fails to connect after resume
<hyper_ch> maybe I should try to pair from the cli
<joepie91> bizarrely, my headphones believe that they *did* pair
<joepie91> but it still fails
<joepie91> I do run KDE also
<manveru> i'm using blueman
<joepie91> anyway, this was introduced in 18.03
<manveru> does KDE have that stuff builtin?
<hyper_ch> I use the builtin stuff
<joepie91> has a plasma applet
<joepie91> lives in systray
<manveru> ok
<manveru> well, in the end they all talk with bluez anyway
<joepie91> yeah
<hyper_ch> I guess I also use blueman
<bkchr[m]> joepie91: was is your problem?
<hyper_ch> bkchr[m]: he made his headphones think :)
<hyper_ch> s/think/believe/
<joepie91> KDE Plasma applet uses bluedevil
<joepie91> bkchr[m]: the one I linked? yes, that's the issue I ran into
<bkchr[m]> Ahh, did not see that link.
<hyper_ch> so, kde plasma applet uses bluedevil and there's also blueman?
<hyper_ch> blueman - gtk+ based bluetooth manager
<hyper_ch> can't find it for kde
<acowley> How should one setup freesync in a configuration.nix? AMD's instructions are: `DISPLAY=:0 xrandr --output DisplayPort-# --set "freesync" 1`
<joepie91> no, just bluedevil
<joepie91> the issue is independent of management tool
<acowley> Replacing the # with the correct DP number
<clever> acowley: https://nixos.org/nixos/options.html#displaymanager.sessioncommands probably
<hyper_ch> joepie91: will retry after rebooting at home :) thx
<joepie91> hyper_ch: note you only need to restart the bluetooth service
<joepie91> not the entire system :)
<bkchr[m]> joepie91: your headset does not connect after resume? Or what is the error?
<hyper_ch> joepie91: I understood that... but I'll reboot anyway when I'm at home
<acowley> clever: Thank you, I'll try that. I couldn't find any mention of xrandr in the docs. You wouldn't happen to know wht the failure mode is if a different monitor gets plugged in, would you?
<joepie91> bkchr[m]: it.. sort of connects, presumably fails somewhere in the process, headset believes it is connected, bluez believes it is not, seeing journalctl spam like https://bugzilla.redhat.com/show_bug.cgi?id=1534857#c1
<joepie91> does not appear as an audio device
<symphorien> what is the user specific equivalent of /etc/nix/nix.conf ?
<clever> acowley: it will just log the error to the journal and continue
Ariakenom has quit [Ping timeout: 244 seconds]
tv has quit [Ping timeout: 276 seconds]
<sphalerite> symphorien: ~/.config/nix/nix.conf
<symphorien> thanks
<acowley> clever: Thank you!
kisik21 has joined #nixos
<bebarker> Getting some mysterious issues when I try to add a new package to nixpkgs (which I've done before but never had this issue): `nix-env -I nixpkgs=/home/brandon/workspace/nixpkgs -i ats-pkg` results in `selector 'ats-pkg' matches no derivations`; here is a PR that results in a different but equally catastrophic error: https://github.com/NixOS/nixpkgs/pull/44887
<{^_^}> #44887 (by bbarker, 2 days ago, open): ats-pkg init at 3.2.1.8
<clever> bebarker: nix-env basically ignores NIX_PATH and -I by default
<clever> bebarker: you need to use -f '<nixpkgs>' to make it search the path
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/7478da5e84a (from 7 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<clever> and at that point, you might as well just do: nix-env -f /home/brandon/workspace/nixpkgs -i ats-pkg
<bebarker> clever, ah ok, that is great to know
<sphalerite> ,-A
<{^_^}> You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<sphalerite> bebarker: also this ^
<clever> and that can help as well
sanscoeur has joined #nixos
<acowley> clever: Your suggestion for that xrandr setting seems to have worked
Drakonis has quit [Remote host closed the connection]
<clever> :)
justanotheruser has quit [Ping timeout: 240 seconds]
<pie__> https://twitter.com/grhmc/status/1025348469828079618 i know this even with plain old nixos...
<pie__> stil dont have a 100% reliable autoreverty
teoma has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<gchristensen> heh
tv has joined #nixos
<acowley> Is there a chance we could get tab completion in nix repl that handles hyphens?
<hyper_ch> btw clever, why do you use dedup on your notebook?
<clever> gchristensen: pie__: you could setup a timer to run $(readlink /run/current-system)/bin/switch-to-configuration test after a timeout
<acowley> It's my favorite way of exploring nixpkgs, but the lack of support for hyphens is a pretty major shortcoming.
<clever> acowley: i used nix-repl for that (the 1.0 one), but it was just recently removed from nixpkgs
Thra11 has joined #nixos
<clever> acowley: ah, that looks like it would fix it
<acowley> I guess I should just try it
<pie__> clever, hmmm
sigmundv has quit [Ping timeout: 272 seconds]
<clever> pie__: and obviously abort that timer when you confirm network is still working
<pie__> clever, ive seen stuff about systemd timers but never really looked into how to use them
<pie__> well, mainly because im not a huge fan of systemd
<clever> pie__: i wouldnt really use a systemd timer for this task
<clever> since it has to be started without a rebuild, and then aborted after the switch
<clever> at may be better
<clever> > at.meta.description
<{^_^}> "The classical Unix `at' job scheduling command"
<sphalerite> lumiguide do automatic rollback stuff
<manveru> is there a module for that yet?
<clever> sphalerite: ah, that looks like it does most of whats needed
<bebarker> Trying to get a Haskell Cabal package to build in nixpkgs - is it advised to get all cabal dependencies building as nixpkgs first?
<bebarker> I assume so unless Cabal is somehow a special case in nix
<pie__> sphalerite, iirc that uses systemd
<sphalerite> pie__: yes
<pie__> clever, what do you mean started without a rebuild
<clever> pie__: i was thinking use at to start a timer to activate the current build, activate the new one, and if the network doesnt come back, the timer fires and undoes it
<clever> and if the network does come back, cancel the timer
<hyper_ch> hmmm, spl fails to build on nixos-unstable-small with 4.18 kernel :(
<{^_^}> [nixpkgs] @hedning opened pull request #44988 → [staging-next]: Fix qt3/4 breakage → https://git.io/fNFgN
<pie__> clever, hm.
kisik21 has left #nixos [#nixos]
haitlah has joined #nixos
<ocharles> If I have a `nixpkgs` and an overlay, how do I apply the overlay to the nixpkgs? I would normally do it when I import nixpkgs and pass an `overlays` parameter
<acowley> So that nix repl patch by dtzWill does seem to do the trick. Downside is that nix is a somewhat slow thing to build.
<gchristensen> ocharles: you have to import nixpkgs again
<gchristensen> you can do that via import nixpkgs.path { ... }
<ocharles> Can I do that with import (nixpkgs.src) or something?
<ocharles> ah yes, path
<ocharles> ta!
<clever> ocharles: nix-build ~/nixpkgs --arg overlays '[ (import ./overlay.nix) ]' -A hello
<clever> you can also do this
<clever> > pkgs.path
<{^_^}> /var/lib/nixbot/state/nixpkgs
<clever> there is also that attribute
<ocharles> hmm, though I think that will lose any overlays previously applied
<ocharles> Basically I want to temporarily add in one extra overlay and compare differences
<ocharles> I'll have a think, there are other ways I can do this
<gchristensen> yes, this is a problem I've run in to myself :(
<gchristensen> I wish there were a pkgs.withOverlays... fn or something
<acowley> Why doesn't an imported nixpkgs keep an attribute with the value it was given for overlays?
<clever> acowley: that would be nice, it already does it with config
<clever> > pkgs.config
<{^_^}> { allowUnfree = true; }
Ariakenom has joined #nixos
<gchristensen> not sure why overlays isn't in config?
<clever> overlays is a sibling to config, not a child
<gchristensen> yes I know
<gchristensen> not sure why overlays isn't in config? :)
<ongy> well, I got xmonad running. but with my config it can't show any windows =.=
vcunat has joined #nixos
<ongy> guess I'll just wait until the laptop becomes usable again to debug this
<{^_^}> [nixpkgs] @volth opened pull request #44989 → hadoop_2_7: 2.7.6 -> 2.7.7; hadoop_3_1: 3.1.0 -> 3.1.1 → https://git.io/fNFaQ
arjen-jonathan has quit [Ping timeout: 256 seconds]
<inquisitiv3> What command was it you've to run after editing configuration.nix? I can't remember.
<tilpner> nixos-rebuild switch
<inquisitiv3> tilpner: Thanks!
<inquisitiv3> If I got an encrypted partition (LVM-on-LUKS) should I add the option
<inquisitiv3> `boot.initrd.luks.devices.root.device = "/dev/disk/by-uuid/[UUID]"`
<clever> 2018-08-13 11:26:30 < clever> boot.initrd.luks.devices = [ { name = "root"; device = "/dev/nvme0n1p2"; preLVM = true; } ];
<inquisitiv3> clever: I read that, but is that line up to date?
<clever> i think your example may also work
<acowley> I had it recommended me to me that one use /dev/disk/by-uuid/... and it actually turned out to save my bacon
<inquisitiv3> E.g. can't find the option `preLVM`.
<acowley> I use the preLVM option in my configuration
<tilpner> Hey clever, remember when I killed my server with --ignore-liveness? The issue that caused me to do that happened again. Any idea how to force retransmission of a store path (nix copy) without first making sure that path is dead?
Fare has joined #nixos
<tilpner> (In this case I just disabled the service and collected everything)
jperras has quit [Ping timeout: 272 seconds]
<symphorien> tilpner: nix-store --repair-path ?
<clever> tilpner: there is no need to re-copy the path, nix ensures that that is never needed
<inquisitiv3> clever: The default value for the option is already `true`.
<clever> tilpner: why exactly do you want to re-copy it?
<clever> inquisitiv3: ah, didnt notice that
<tilpner> clever - I checked the sha256sum on both sides, and they differed. The server-side storepath was 4096 bytes larger than the path on my laptop
<clever> tilpner: run `nix-store --verify-path /nix/store/foo` on both ends
<tilpner> symphorien - I tried those, but of course the server can't rebuild them. --verify-path also found no issues
<clever> tilpner: did the client garbage collect the path, then rebuild it?
<inquisitiv3> clever: Another reason I'm note sure is that I got an error message after adding that to my file. But it's possible I did a mistake.
<symphorien> tilpner: by adding a file as a substituter, maybe it can re-copy them ?
<clever> inquisitiv3: what error did you get?
<clever> tilpner: if --verify-path says its good, then --repair-path will probably not want to change it
<tilpner> Not sure what you mean. I deployed a new generation that had the service that needed this file disabled, then ran nix-collect-garbage -d as root on the server, then deployed another generation with the service enabled again. This forced the file to be copied again
<clever> tilpner: what file are you trying to force a re-copy, and how exactly is it differing?
<inquisitiv3> clever: I think it was a syntax error, but I'm not sure and can't find the output now.
<clever> inquisitiv3: you can run `nixos-rebuild build` to check the file again
<inquisitiv3> clever: But it was after successfully finishing the installation and running the command `nixos-install`.
<tilpner> clever - Unfortunately I did not keep those files. I hashed the first and last 1MB of each, and there was no similarity, so I can't tell how exactly they differed. They were squashfs files
<clever> tilpner: its possible that mksquashfs is not deterministic
<clever> tilpner: given the same input files, it can produce different squashfs files
<clever> which are effectively identical
kisik21 has joined #nixos
<clever> and if your client GC's one, it has to recreate it, and then the clients one is technically wrong
<d1rewolf> is there a way to cache things like nix-env -qaP ? It ends up being slow when searching on my system, so I'll typically dump "nix-env -qaP > /tmp/pkgs" and then grep for stuff out of there.
<clever> d1rewolf: the `nox` tool will cache that, `nix search` also uses multiple threads to speed it up i think
<kisik21> d1rewolf: I knew I'm not the only one to do so...
<sphalerite> d1rewolf: `nix search` caches it and provides a nicer UI too
<sphalerite> (searches descriptions as well)
<d1rewolf> k, thx guys
<tilpner> clever - I'm quite sure it was a new derivation, i.e. there was no GC between first build and nix copy. I can't test any of that now, unfortunately :/
<sphalerite> I used to use nox but now I almost exclusively use `nix search`
dfranke has quit [Quit: leaving]
<inquisitiv3> Can a set span several lines if it's located inside a list?
<inquisitiv3> Reading Nix manual, but couldn't find an answer.
<clever> inquisitiv3: yes
<Dezgeg> yes, whitespace or newlines is not significant
<Baughn> I wish `nix search` would automatically rebuild its cache when it's old.
<Baughn> As it stands, I ended up aliasing it to `nix search -u` because otherwise I'd forget forever.
<kisik21> How to add Perl modules to irssi? I need to launch some scripts that require Perl modules. Would that involve overriding irssi derivation and building it from source?
vidbina_ has quit [Ping timeout: 272 seconds]
<sphalerite> Baughn: or you could remove ~/.cache/nix/package-search.json at regular intervals? (cronjob or whatever)
<Baughn> sphalerite: I *could*.
<Baughn> I think what I'll do is add it to my nixos build. Somehow. I feel like that should be happening already.
<Baughn> I suppose right now it's able to search a package set that isn't the one it's from, but most of the time that's not what it's doing. It should be possible to build a cache into the package set.
<Baughn> ...which could be used in either case, actually.
migy has quit [Quit: migy]
migy has joined #nixos
<inquisitiv3> clever: Thanks again
ryanartecona has quit [Quit: ryanartecona]
stanibanani has joined #nixos
stanibanani has left #nixos [#nixos]
Ericson2314 has joined #nixos
<{^_^}> [nixpkgs] @Infinisil merged pull request #44934 → firefoxWrapper: Fail if deprecated enableVLC option exists → https://git.io/fN5xa
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fNFoi
Ericson2314 has quit [Read error: Connection reset by peer]
mroutis has joined #nixos
isHavvy has joined #nixos
Ericson2314 has joined #nixos
init_6 has quit [Ping timeout: 260 seconds]
alexteves has quit [Read error: Connection reset by peer]
noam has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @Infinisil merged pull request #44568 → Add support for user-extensible shellHook to haskell.lib.buildStackProject → https://git.io/fNMve
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fNFKL
alexteves has joined #nixos
Havvy has quit [Ping timeout: 248 seconds]
mroutis has quit [Quit: leaving]
<Mic92> hyper_ch: but the spl merge was not yet released?
<Mic92> might be a good idea to get this into master before the next nixos version
kisik21 has left #nixos [#nixos]
sigmundv has joined #nixos
hyper_ch has quit [Read error: Connection reset by peer]
freepotion has joined #nixos
hyper_ch has joined #nixos
<hyper_ch> Mic92: from what I get from ptx0 it's merged with zfs master
<hyper_ch> Mic92: it's merged
<hyper_ch> [19:49] <hyper_ch> ptx0: just to clarify: spl is merged into zfs master right?
<hyper_ch> [19:50] <bunder> yes
jperras has joined #nixos
<{^_^}> [nixpkgs] @vcunat closed pull request #44383 → mesa: 18.1.5->18.1.2 [revert] → https://git.io/fN6Qe
sigmundv__ has joined #nixos
<{^_^}> [nixpkgs] @Ma27 opened pull request #44990 → nixos/switch-to-configuration: reload user units → https://git.io/fNF6z
siers has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @Mic92 opened pull request #44991 → zfsLegacyCrypto: remove → https://git.io/fNF6i
ryanartecona has joined #nixos
rouma has joined #nixos
<Mic92> hyper_ch: I look into that.
<inquisitiv3> I asked this question yesterday, but I'm still indecisive about it. What is the cleanest and best way to version control configuration.nix? Is it to create a git repo as root, create a symbolic link to a repo located in $HOME for a regular user or something else?
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/249ba3d3ed7 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<inquisitiv3> It just feels wrong to run a tool like git as root, but my fear may be irrational? I'm thinking from a security perspective.
<Mic92> inquisitiv3: I created the repository as a normal user in my home and made a symlink to /etc/nixos
<Dezgeg> I symlink /etc/nixos/configuration.nix to my user's home
<Mic92> you can also alter the NIX_PATH instead
<Mic92> to redirect nixos-config to the right file
nly has joined #nixos
<samueldr> I chowned /etc/nixos to my user
<samueldr> I mean, the same issues would stand wherever it exists, right?
<inquisitiv3> samueldr: I guess so. Just want to know what the different options is. Want a clean solution to it. It seems that most people just symlink it to a local file.
<inquisitiv3> Mic92, Dezgeg: Thanks for the input.
<samueldr> I think there are as many ways as there are people :)
<{^_^}> [nixpkgs] @Infinisil closed pull request #30662 → nixos/kibana: add passwordFile option (#24288) → https://git.io/vdNkV
<samueldr> you could also have /etc/nixos/configuration.nix be `import /some/path/configuration.nix` I think
trebuh has quit [Remote host closed the connection]
<inquisitiv3> samueldr: That's true
<{^_^}> [nixpkgs] @basvandijk pushed 2 commits to master: https://git.io/fNFip
<samueldr> (my /etc/nixos/configuration.nix is gitignored, and it `import ./machines/[hostname]`
trebuh has joined #nixos
<hyper_ch> Mic92: yey
<inquisitiv3> samueldr: Just want to check. It shouldn't be any security problems with that setup? You still need to authenticate yourself with `sudo` or `root` to actually realize the changes in the file to the machine.
<samueldr> inquisitiv3: unless I'm blind, there shouldn't be
<samueldr> the same applies if it's elsewhere, e.g. rogue $software modifies it
<Dezgeg> except if you've enabled auto upgrades beforehand
nly has left #nixos [#nixos]
<dmj`> Hi
<dmj`> I just nix-build’d something and have a result symlink
<dmj`> how do I nix-env install it
<dmj`> nix-store -r result ?
<dmj`> I want to keep it around so the gc doesn’t get it
<infinisil> dmj`: nix-env -if .
<infinisil> (or whatever file you used in nix-build)
<dmj`> infinisil: thanks!
<dmj`> cabal2nix is badly broken right now, so have to patch it locally and throw it into my profile
<dmj`> should probably put this into my ~/.config/nixpkgs/config.nix too
arbxs has quit [Ping timeout: 256 seconds]
<sphalerite> dmj`: you can also nix-env -i path/to/result
<hyper_ch> btw, how to use this? https://nixos.org/nixos/options.html#pulseaudio.package --> I added hardware.pulseaudio.package = pkgs.pluseaudioFull; but it complains
<{^_^}> [nixpkgs] @timokau merged pull request #44984 → gildas: 20180701_a -> 20180801_a → https://git.io/fNFm1
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fNFXW
<infinisil> hyper_ch: Check your spelling
<sphalerite> > pkgs.pluseaudioFull
<{^_^}> attribute 'pluseaudioFull' missing, at (string):166:1
<sphalerite> > pkgs.pulseaudioFull
<sphalerite> :)
<{^_^}> "<derivation /nix/store/v9k11wn850c6bsgpgilckfaqzj358dfd-pulseaudio-11.1.drv>"
reinzelmann has joined #nixos
teoma has joined #nixos
<hyper_ch> sphalerite: thx :)
<{^_^}> [nixpkgs] @fpletz merged pull request #44991 → zfsLegacyCrypto: remove → https://git.io/fNF6i
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to master: https://git.io/fNFXu
arbxs has joined #nixos
<{^_^}> zfsonlinux/zfs#7556 (by behlendorf, 11 weeks ago, closed): Merge SPL
Fare has quit [Ping timeout: 272 seconds]
<acowley> Anyone here using direnv?
<acowley> Two questions: 1) Can it populate environment variables like `cmakeConfigurePhase`? 2) Is there a way to globally deny it on reboot so re-opening console windows don't all pile into a pit of automated rebuilding at once?
<clever> acowley: if you put cmake into the buildInputs, then the cmakeConfigurePhase is automatically set when the stdenv is loading
Fare has joined #nixos
<{^_^}> [nixpkgs] @freepotion opened pull request #44992 → ivan: info update → https://git.io/fNF1L
rhomboidcactus has joined #nixos
<acowley> clever: It's in nativeBuildInputs
<clever> that also works and is better
<dmj`> sphalerite: thought I tried that hmmm
<freepotion> Please look at my PR. I'm back with a new account.
<acowley> clever: But the problem is that `cmakeConfigurePhase` is not in the environment direnv constructs
<sphalerite> dmj`: nix-env -i result won't work (it searches for result in .nix-defexpr), you can do nix-env -i ./result though
<clever> acowley: are you using nix-shell?
<acowley> clever: I usually use nix-shell, and everything works fine there, but I was trying out direnv and its nix integration since a few nix people have recommended it.
<clever> ah
<acowley> It is almost really nice
<acowley> But I'm finding its failure modes are overwhelmingly not nice for the way I tend to do things
<infinisil> ,pr freepotion
<{^_^}> freepotion: 0. Sorry. 1. If you complain about PR being in limbo, always provide a number («I have an unmerged PR (#23924)…»), bot will print PR title and it might bring you an impulse-merge. 2. Please look up who commits similar work and ping these people (or request-review), keeping up with all the PRs is not really possible.
<infinisil> I guess not entirely relevant, but you should at least post a link to your PR
<{^_^}> #44992 (by freepotion, 7 minutes ago, open): ivan: info update
<bebarker> Haskell people: is my assumption that it is generally better to specify haskell dependencies that are nixpkgs instead of just letting haskellPackages.callPackage do its magic and build the library of hackage (assuming said dependency exists already in nixpkgs)? I assume this would allow better caching and maybe better reproducibility, but don't know how it works in practice
<bebarker> * is my assumption a good assumption
<{^_^}> #44343 (by Izorkin, 1 week ago, open): mariadb: fix build client and change config
<{^_^}> #44836 (by Izorkin, 3 days ago, open): qemu-ga: fix working guest-shutdown
<acowley> bebarker: I wouldn't want to argue "better", but I rely on nixpkgs versions until something doesn't work for exactly the reasons you identify.
<{^_^}> [nixpkgs] @vcunat pushed commit from @hedning to staging-next « {qt4,qt3}: Fix breakage after eeb9837beba38e0f5c5e26357e478f74a7f6bc7c »: https://git.io/fNFMk
<{^_^}> [nixpkgs] @vcunat merged pull request #44988 → [staging-next]: Fix qt3/4 breakage → https://git.io/fNFgN
<bebarker> acowley, great - looks like I may have to try it anyway - the last dependency for the haskell pacakge I'm trying to build just failed locally.
<bebarker> (via cabal/hackage)
justanotheruser has joined #nixos
nikki93 has joined #nixos
<freepotion> infinisil: beecause I created and maintain this package. Just for privacy reasons, I created a new account on github. I created and support this pack. Just for privacy reasons, I created a new account on github. So I don't write about it in the PR and in commit message
<freepotion> because
<nikki93> are there any utilities out ther to use a nix package on nixos to make a self-contained linux binary or tarball that can be distributed to other distros?
<freepotion> sorry for the repetition)
ryanartecona has quit [Quit: ryanartecona]
<bebarker> nikki93, i don't know if it has been tried, but flatpak or snap might be worth looking into (probably flatpak). I've used other container tech with nix that is less focused on individual apps (singularity and docker)
<nikki93> tilpner: wow :O
siers has joined #nixos
<freepotion> infinisil: You may see the history, yesterday I removed myself from the maintainers list
<infinisil> freepotion: Well open source work needs communication, just not providing a PR description because of privacy reasons isn't acceptable, even when it's just a maintainer update. At least fix the commit message and reply in the PR
<infinisil> And if you think you can prevent anybody linking your new account to the old one then you already failed at that
<{^_^}> [nixpkgs] @vcunat pushed 95 commits to staging-next: https://git.io/fNFDF
<vcunat> 95 commits? I feel so productive!
<gchristensen> you're a star, vcunat!
tnks has joined #nixos
reinzelmann has quit [Quit: Leaving]
ryanartecona has joined #nixos
<acowley> I am failing at getting cabal to build a project with an unreleased dependency on Travis CI. Does anyone have a nix travis setup for a haskell pacakge that uses a git reference for a dependency? Wrestling with this feels wildly unproductive.
<freepotion> infinisil : ok, I did it. It seems that you are right :( But you could not tell anyone about that? :)
yosemitesam has joined #nixos
<symphorien> Well the logs of the channel are public, so...
smolboye has quit [Ping timeout: 248 seconds]
chpatrick has quit [Quit: Connection closed for inactivity]
<tilpner> Your username will show up in Google results
<freepotion> :( epic fail then
mayhewluke has quit [Ping timeout: 260 seconds]
mayhewluke has joined #nixos
<bebarker> tilpner, wow, that is awesome, didn't know about nix-bundle ... may have a use for it this week
<{^_^}> [nixpkgs] @vcunat pushed 432 commits to staging: https://git.io/fNFSg
<gchristensen> sorry vcunat, you've hit your commit limit for the day
gurmble has joined #nixos
grumble is now known as Guest76306
Guest76306 has quit [Killed (weber.freenode.net (Nickname regained by services))]
gurmble is now known as grumble
<yosemitesam> Hey guys. I am trying out nixos in a vm and wanted to install qtile, a window manager written in python. But the version in nixpkgs is for python 2.7, while my config only works with python 3.x (quite complicated configuration). Is it hard to rewrite the qtile package to use python3 and/or could somebody give me a bit guidance to get it working? It would be very appreciated!
binaryphile has quit [Ping timeout: 240 seconds]
<vcunat> :-)
<samueldr> gchristensen: if you restrict the activity we'll get 18.09 by ~2021
<gchristensen> hehe
<trebuh> Hello, I tried configuring my server to use BTRFS RAID over LUKS (2 encrypted partitions but only the first one is mounted) How can I state in my configuration de ask for the passphrase for both of the partitions?
<{^_^}> [nixpkgs] @vcunat pushed to staging-next « texinfoInteractive: fixup build by using older perl »: https://git.io/fNFSN
<emily> freepotion: thanks for making ivan it's a work of art
aarvar has joined #nixos
haitlah has quit [Ping timeout: 248 seconds]
<freepotion> emily: glad I can help :) actually, I didn't do anything special, just nix package (I'm not ivan dev)
<{^_^}> [nixpkgs] @LnL7 merged pull request #44729 → weechat-xmpp: create proper runtime environment → https://git.io/fNSDB
<{^_^}> [nixpkgs] @LnL7 pushed 2 commits to master: https://git.io/fNF9R
<emily> oh, oksy
<emily> *okay
vcunat has quit [Ping timeout: 256 seconds]
<inquisitiv3> I ran `nixos-rebuild build` now before I had run `nixos-install` to check that I had done everything right. Did I do something stupid?
<tilpner> No, it only created a result symlink
<clever> inquisitiv3: nixos-rebuild reads /etc/nixos/configuration.nix, but nixos-install reads /mnt/etc/nixos/configuration.nix
<tilpner> Oh, you're installing?
<tilpner> Right
akl_ has joined #nixos
oharvey_ has joined #nixos
vaninwagen_ has joined #nixos
elvishjerricco_ has joined #nixos
georgew_ has joined #nixos
angerman_ has joined #nixos
<tilpner> Still, shouldn't break anything
hsribei_ has joined #nixos
hydraz_ has joined #nixos
<clever> yeah
<inquisitiv3> tilpner, clever: Thanks!
vcunat has joined #nixos
* inquisitiv3 *breaths out*
heatm1s3r_ has joined #nixos
grumble has quit [Quit: It would appear there's a kernel update]
terrorjack_ has joined #nixos
<inquisitiv3> Got an error message :/
<inquisitiv3> I'll post pastebin
cruxeter has joined #nixos
zgrep_ has joined #nixos
grumble has joined #nixos
<inquisitiv3> ^ Error message
<inquisitiv3> configuration.nix: https://pastebin.com/yMgBBGSk
<symphorien> earlier today I complained that I had not the same hash for derivations in nixpkgs: turns out the store was on cifs, which is case insensitive, so all hashes were different.
hsribei has quit [*.net *.split]
hydraz has quit [*.net *.split]
akl has quit [*.net *.split]
jasom has quit [*.net *.split]
jcrben has quit [*.net *.split]
teh[m] has quit [*.net *.split]
freusque[m] has quit [*.net *.split]
Phil[m]2 has quit [*.net *.split]
Khorne[m]1 has quit [*.net *.split]
mlaskus[m] has quit [*.net *.split]
bluewolfy[m] has quit [*.net *.split]
nico202[m]1 has quit [*.net *.split]
Dean[m] has quit [*.net *.split]
kainospur[m] has quit [*.net *.split]
HamishHutchings[ has quit [*.net *.split]
zaphar_ps[m] has quit [*.net *.split]
sevanspowell[m] has quit [*.net *.split]
ayyjayess[m] has quit [*.net *.split]
pierrebeaucamp[m has quit [*.net *.split]
aniketd[m] has quit [*.net *.split]
devr[m] has quit [*.net *.split]
tamwile[m] has quit [*.net *.split]
k0d3fr34k[m] has quit [*.net *.split]
ArtemVorotnikov[ has quit [*.net *.split]
bkchr[m] has quit [*.net *.split]
Dt[m] has quit [*.net *.split]
aspiwack[m] has quit [*.net *.split]
davidarmatrixorg has quit [*.net *.split]
dtz[m] has quit [*.net *.split]
herzmeister[m] has quit [*.net *.split]
cruxeternus has quit [*.net *.split]
zgrep has quit [*.net *.split]
PyroLagus has quit [*.net *.split]
thekolb has quit [*.net *.split]
sjourdois has quit [*.net *.split]
angerman has quit [*.net *.split]
georgew has quit [*.net *.split]
oharvey has quit [*.net *.split]
xplat|work__ has quit [*.net *.split]
rodarmor has quit [*.net *.split]
heatm1s3r has quit [*.net *.split]
zielmicha_ has quit [*.net *.split]
smithx10 has quit [*.net *.split]
andi- has quit [*.net *.split]
himmAllRight has quit [*.net *.split]
vaninwagen has quit [*.net *.split]
terrorjack has quit [*.net *.split]
dredozubov has quit [*.net *.split]
dkibi has quit [*.net *.split]
elvishjerricco has quit [*.net *.split]
LoneTech has quit [*.net *.split]
anton_ has quit [*.net *.split]
Guest9248 has quit [*.net *.split]
hiberno has quit [*.net *.split]
hodapp has quit [*.net *.split]
bitchecker has quit [*.net *.split]
cocreature has quit [*.net *.split]
suvash_away has quit [*.net *.split]
oharvey_ is now known as oharvey
georgew_ is now known as georgew
heatm1s3r_ is now known as heatm1s3r
angerman_ is now known as angerman
elvishjerricco_ is now known as elvishjerricco
hsribei_ is now known as hsribei
vaninwagen_ is now known as vaninwagen
akl_ is now known as akl
terrorjack_ is now known as terrorjack
jcrben has joined #nixos
<clever> inquisitiv3: what about the contents of hardware-configuration.nix and the output of `mount` ?
sigmundv has quit [Ping timeout: 272 seconds]
zgrep_ is now known as zgrep
<inquisitiv3> clever: You want the output from `mount`?
<clever> yes
<inquisitiv3> Wait...
Xal has quit [Ping timeout: 260 seconds]
andi- has joined #nixos
cocreature has joined #nixos
<inquisitiv3> `mount`: https://pastebin.com/hLbUNdkN
<clever> inquisitiv3: and also `fdisk -l /dev/sda ; cat /mnt/etc/nixos/hardware-configuration.nix`
Xal has joined #nixos
jasom has joined #nixos
<inquisitiv3> hardware-configuration: https://pastebin.com/NpCahcTm
<{^_^}> [nix] @symphorien opened pull request #2350 → ignore when listxattr fails with ENODATA → https://git.io/fNFQT
<inquisitiv3> I'll run the command clever
<inquisitiv3> clever: If I'm not mistaken you now need only the output from `fdisk -l /dev/sda`?
<clever> yeah
ambro718 has joined #nixos
<inquisitiv3> `fdisk -l /dev/sda`: https://pastebin.com/3xeFx5PQ
<clever> everything should just be working...
<clever> all i can think of is "boo systemd" and to try grub, lol
<clever> inquisitiv3: change line 14 of https://pastebin.com/yMgBBGSk to "boot.loader.grub.enable = true; and re-run nixos-install
<inquisitiv3> clever: `nixos-install` complains that I haven't set `boot.loader.grub.devices` or `boot.loader.grub.mirrorBoots`. I've checked the option on the website. Should I set the former option to /dev/sda1?
<clever> boot.loader.grub.device = "nodev";
<clever> that option is only for use with legacy booting
<inquisitiv3> We'll see how this goes...
<inquisitiv3> The installation finished successfully.
johnw has joined #nixos
<clever> yay
<clever> now we just umount everything, reboot, and pray!
<inquisitiv3> Nope, can't boot NixOS :/
freepotion has quit [Quit: Page closed]
<inquisitiv3> clever: ^
<clever> what error?
<inquisitiv3> clever: I only get the options "EFI Default Loader" and "Reboot Into Firmware Interface". No error messages.
<Dedalo> clever I'm using Oh My Zsh on macOS, with a theme and some plugins. How can I replicate the same in NixOS? Change the bash to Zhs aht install oh-my-zhs.
<mightybyte> Has anyone ever encountered this error?
<clever> inquisitiv3: boot the installer again and run `efibootmgr -v` what does it list?
<mightybyte> "error: opening file '[': No such file or directory"
<clever> Dedalo: i just run plain bash here
<inquisitiv3> clever: When I choose the former it reloads (I think?) and just show me the later option. After some seconds the computer reboots into UEFI setup.
<Dedalo> anyone here running oh-my-zhs?
<Dedalo> *zsh
<jD91mZM2> ,ask
<{^_^}> Just ask your question. It's the best way to know if anybody can help.
nonfreeblob has joined #nixos
<mightybyte> I'm seeing this error a fair amount when working with NixOS AWS instances.
<clever> mightybyte: can you screenshot it?
<jD91mZM2> inquisitiv3: How does the interface look? Any borders or just black with white text and a highlighted entry?
<mightybyte> clever: More information. https://github.com/NixOS/nixpkgs/issues/43796
<{^_^}> #43796 (by mightybyte, 3 weeks ago, open): Nix commands randomly giving "error: opening file '[': No such file or directory"
<Dedalo> jD91mZM2 were you talking with me?
<nonfreeblob> I confirm, that PR https://github.com/NixOS/nixpkgs/pull/44992 is legit.
<{^_^}> #44992 (by freepotion, 1 hour ago, open): ivan: maintainer update
<jD91mZM2> Dedalo: Kinda, but then I realized that you already asked your question earlier, to clever
<mightybyte> clever: Here's a screenshot of the latest one. https://gist.github.com/mightybyte/46fa9ff409b290448f3f8374d069ca1f
<Dedalo> jD91mZM2 but if you have the answer please feel free to share it
<inquisitiv3> clever: `efibootmgr -v`: https://pastebin.com/cwzY3dSH
<jD91mZM2> Dedalo: Yeah no I don't, but I'll google
<clever> mightybyte: ls -l ~/.nix-profile/bin/\[
<mightybyte> ls: cannot access '/home/glrunner/.nix-profile/bin/[': No such file or directory
<inquisitiv3> jD91mZM2: Seems to be a UEFI screen.
<clever> mightybyte: ls -l ~/.nix-profile/bin/
<clever> inquisitiv3: thats a crap-ton of uefi options, and the nixos one is missing
<Dedalo> jD91mZM2 currently I have added this to my `configuration.nix`:
<inquisitiv3> jD91mZM2: White text on black screen. The same theme as Lenovo's UEFI boot scree.
<clever> inquisitiv3: re-open the luks device with cryptsetup, then re-activate lvm, and mount your rootfs and /boot, then edit configuration.nix, add boot.loader.grub.efiInstallAsRemovable = true; and re-run nixos-install
<inquisitiv3> clever: Will do! Reporting back soon.
<clever> mightybyte: does the error happen only with nix commands, or all commands?
<jD91mZM2> inquisitiv3: Does it look anything like systemd-boot (google images)
<mightybyte> clever: Seems to be only nix commands.
<clever> jD91mZM2: we changed the config over to grub
<mightybyte> Most commonly nixos-rebuild and nix-env
<clever> jD91mZM2: systemd-boot also failed mid install
<jD91mZM2> clever: I know, but those buttons remind me of systemd-boot, so I wonder if it's somehow using the failed one
<jD91mZM2> Dedalo: Seems like you can set programs.zsh = { enable = true; oh-my-zsh.enable = true; };
<inquisitiv3> clever: How do I reactivate LVM? I just decrypted the drive but can't see any LVM volumes.
nonfreeblob has quit [Quit: Leaving]
<jD91mZM2> Dedalo: See `man configuration.nix` for all options
<clever> inquisitiv3: pvscan and vgchange -a y
<clever> mightybyte: if you do `set -x` and re-run `nix-env -i htop` does it fail again? and what output does it produce?
<inquisitiv3> clever: Thanks! It worked.
<clever> inquisitiv3: your motherboard firmware is broken i believe
<clever> inquisitiv3: we will know for sure once we see if efiInstallAsRemovable helps
<dhess> With emacs packages, how does one indicate that the package is dependent on one or more non-emacs packages?
<dhess> For example, Emacs dhall-mode needs dhall-format
<dhess> in the path
<dhess> each emacs package has a packageRequires but it looks like the dependencies listed there are within the scope of emacs packages
MichaelRaskin has joined #nixos
sanscoeu_ has joined #nixos
<mightybyte> clever: Pretty much the same thing. https://gist.github.com/mightybyte/46fa9ff409b290448f3f8374d069ca1f
<Dedalo> jD91mZM2 I'm trying, I have seen that I have forgotten `oh-my-zsh.enable = true;` (it should be `ohMyZsh`.
* jD91mZM2 has to go to bed
<jD91mZM2> {^_^}: good night
simukis has quit [Ping timeout: 272 seconds]
<{^_^}> jD91mZM2: Night!
<{^_^}> [nix] @volth opened pull request #2351 → update config/config.{sub,guess} → https://git.io/fNFFv
<Dedalo> gn
jD91mZM2 has quit [Quit: WeeChat 2.0]
<{^_^}> [nixpkgs] @bcdarwin opened pull request #44993 → mirtk: init at 2.0.0 → https://git.io/fNFFq
<clever> mightybyte: what is the content of /etc/nix/nix.conf ?
Lisanna_ has quit [Quit: Lisanna_]
<inquisitiv3> clever: I got one or two error messages. See https://pastebin.com/6DvHwguZ
<clever> mightybyte: line 19 is to blame
<clever> mightybyte: its opening the file [ that you put in the config
johnw has quit [Ping timeout: 272 seconds]
sanscoeur has quit [Ping timeout: 272 seconds]
<clever> inquisitiv3: boot.loader.efi.canTouchEfiVariables = false;
<elvishjerricco> It'd be neat if nix.conf could be a nix expression. We do get that in NixOS and nix-darwin, but for everything else...
<mightybyte> clever: Oh, that can't be a list?
<gchristensen> elvishjerricco: that would be neat :)
<clever> mightybyte: correct, its just a single path
<mightybyte> Aha!
<elvishjerricco> mightybyte: Also lists in nix.conf aren't written with [ ] syntax
<LnL> elvishjerricco: evalModules
<inquisitiv3> clever: The last bullet point dissapeard, but I still get the former error message (the one saying that I should turn on `boot.loader.grub.efiSupport`).
<elvishjerricco> LnL: ?
<clever> inquisitiv3: oh, thats why grub didnt work earlier, oops
<clever> inquisitiv3: remove efiInstallAsRemovable, set canTouchEfiVariables = true again, and also set boot.loader.grub.efiSupport = true;
<clever> inquisitiv3: the lack of efiSupport = true perfectly explains why it was not in the efi vars
<LnL> elvishjerricco: we could add a function that just uses the module system using that and returns a nix.conf
<mightybyte> Wow, talk about failing slow...
<elvishjerricco> LnL: Ah, interesting idea.
<clever> LnL: most of that is already where, and i think nix-darwin is just stealing the nixos module
<clever> LnL: but options like secret-key-files are not supported, leading to user error
<LnL> yep
<clever> add more options to the module!
<LnL> make the strict evaluation even slower! :p
<typetetris> Is there a special channel for the haskell infrastructure in nixos?
<inquisitiv3> clever: Should I run `nixos-install`?
<clever> LnL: i have nixops evals that consume 30gig of ram and take 15-20mins :P
<clever> inquisitiv3: yeah
<gchristensen> clever: cursed deployment
<clever> gchristensen: i was able to shave several gig of memory usage off the eval, just by not installing nixops in every machine
<gchristensen> that seems to hint at some easy optimisations to be made in nixops
<inquisitiv3> clever: So the installation finished successfully.
<clever> inquisitiv3: and if you check efibootmgr -v, you should now see grub
vidbina_ has joined #nixos
Lears has quit [Remote host closed the connection]
hydraz_ is now known as hydraz
<inquisitiv3> clever: Oh, I rebooted the computer before I saw what you wrote. Btw, it can't boot... I reboot again and see if anything changes.
<clever> inquisitiv3: you can also try something like f12 or the boot order config and see if nixos is listed
<inquisitiv3> clever: YEAH! I was able to boot into NixOS!!
<clever> :D
<inquisitiv3> So, the problem is systemd-boot?
<dhess> gchristensen: this broke NixOps on Darwin. https://github.com/NixOS/nixpkgs/pull/44900 Ideally, it would have triggered an ofBorg on Darwin. Could NixOps be added to what ofBorg builds on Darwin?
<{^_^}> #44900 (by volth, 2 days ago, merged): libvirt: fix dlopen("libjansson.so.4")
<clever> gchristensen: oh, something ofborg could check ...
<gchristensen> oh?
<dhess> Just a guess, but I would imagine quite a few Darwin users are using NixOps on that platform.
<gchristensen> ping me in 1hr? :)
<clever> gchristensen: this results in pkgs.texinfo depending on the bootstrap perl, which links to the bootstrap libc
<clever> and now the bootstrap tools are in the closure of my router
Lears has joined #nixos
<dhess> clever: I've got all kinds of weird things like Ghostscript in the closures of many of my machines. Maybe it's docs or something?
fragamus has joined #nixos
<clever> dhess: in my case, i believe it was just the `info` command, but it shouldnt be depending on the bootstrap-tools
vcunat has quit [Quit: Leaving.]
<dhess> clever: yeah
<samueldr> dhess: are you proposing that ofborg has a list of things it should always rebuild when a dependency affects them?
<dhess> samueldr: I thought that's the way it worked anyway.
<symphorien> technically stdenv could have disallowedRequistes = [ bootstrap-tools ];
<clever> symphorien: thats broken with multiple outputs, and the stdenv didnt depend on bootstrap-tools in this case
<clever> symphorien: a texinfo from in the middle of the stdenv stages was leaked to the outside
<symphorien> hum right
<{^_^}> [nix] @edolstra merged pull request #2350 → ignore when listxattr fails with ENODATA → https://git.io/fNFQT
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/fNFND
binaryphile has joined #nixos
<gchristensen> dhess: ofborg doesn't automatically build anything unless the package is explicitly requested or mentioned in the commit message
<dhess> oh I see. OK thanks for clarifying.
<dhess> never mind then
fragamus has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<gchristensen> clever: what would the ofborg check be?
<clever> gchristensen: when building the given package, ensure bootstrap-tools is not in the runtime closure
<gchristensen> hmm interesting!
<gchristensen> so many cool, robust checks we could have
<dhess> It looks like external dependencies for Emacs packages (melpa ones, anyway) have to be specified in melpa-packages.nix
<gchristensen> clever: I'm working on an external dashboard for stuff like that.
<gchristensen> I don't think github can possibly add enough things to its generic API to support the interesting things we need
<{^_^}> [nix] @edolstra merged pull request #2351 → update config/config.{sub,guess} → https://git.io/fNFFv
<{^_^}> [nixpkgs] @fpletz merged pull request #44524 → dhcpcd service: order before network target → https://git.io/fNXSU
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to master: https://git.io/fNFAs
<dhess> Huh, dhall-format isn't in Nixpkgs anwyay :)
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/fNFAG
<clever> > "dhess> ${dhall}/bin/dhall-format does exist"
<{^_^}> "dhess> /nix/store/lkbvdsmnc584asbs2rp6ry7m8d1nybdm-dhall-1.15.1/bin/dhall-format does exist"
<gchristensen> O.o
<gchristensen> cute, clever
<dhess> clever: it's not in my nixpkgs repo
<dhess> oh hhhhh
<dhess> never mind
<dhess> sorry. It's in dhall
lopsided98 has quit [Quit: Disconnected]
lopsided98 has joined #nixos
Lisanna has joined #nixos
<{^_^}> [nixpkgs] @globin opened pull request #44994 → Nextcloud → https://git.io/fNFxO
<pie__> how do i do the thing where i package a nix closure thing so i can run binaries on non-nix machines?
<ocharles> dhess: it's also `dhall format` in later Dhall releases
alex`` has quit [Ping timeout: 240 seconds]
<pie__> im compiling a program in a nix-shell and id like to bundle it
<dhess> ocharles: thanks
<dhess> All the world's moving to the git command line model.
<typetetris> pie__: maybe try to statically link it?
rhomboidcactus has quit [Quit: Leaving]
<elvishjerricco> Trying to use the graphical install CD on my 2013 MacBook Pro. Starting X seems to try to use a few different graphics drivers before erroring out with `(EE) open /dev/dri/card0: No such file or directory`
<elvishjerricco> I would just try doing things without graphics, but I worry that I'll get the same issue on the installed OS.
ambro718 has quit [Quit: Konversation terminated!]
hodapp has joined #nixos
fragamus has joined #nixos
<symphorien> pie__: if you can control /nix on the target machine, tar cvf $(nix-store -qR /nix/store/blah) and then unpack the tar on the target machine
<pie__> typetetris, do you have any idea how to do that with haskell?
<pie__> symphorien, ah the thing is the target is non-nix
<symphorien> you don't nix nix on the target
<symphorien> only write permission to unpack the tar at /nix
<symphorien> (so usually root)
<pie__> oh i misunderstood
<ocharles> time nix-shell --run 'true' # 22s
<ocharles> ewww
<pie__> otoh id hope i dont need to copy a whole haskell closure over
<ocharles> Anyone have any tips for profiling this?
<elvishjerricco> pie__: For a silly, nuclear option, you could build Nix from source on the machine (does not require Nix), then use chroot stores so you don't have to install anything in /
<ocharles> It's a huge shell to be fair, bringing in 500 haskell deps and all sorts of other stuff. But 22s with a hot cache is pretty sad
<clever> ocharles: nix-instantiate shell.nix should measure the same time
<symphorien> pie__: normally it only contains the runtime deps
<ocharles> ok, but that doesn't really tell me much
<pie__> thanks for the suggestions guys, ill give it a shot
<clever> ,profiling
<{^_^}> Use NIX_COUNT_CALLS=1 and/or NIX_SHOW_STATS=1 to profile Nix evaluation
<clever> ocharles: and then add these env vars
<elvishjerricco> pie__, symphorien: Yea but that includes all the haskell libs as dynamic libraries. You can use `justStaticExecutables` to cut those out and statically link them though
<ocharles> ah yea, I tried that with nix-shell but it didn't do anything
<ocharles> thanks!
<ocharles> evaluations of 6337 attributes:
<ocharles> 496069 undefined position
<ocharles> wonderful.
<pie__> typetetris, im a bit confused, so i run nix-build --no-out-link to get a static ghc?
<ocharles> but thanks, this gives me something to start with
jmeredith has quit [Quit: Connection closed for inactivity]
ceevusee has joined #nixos
<pie__> ah i guess i need the building arbitrary packages part
freepotion has joined #nixos
fragamus has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<ocharles> i don't think this really tells me anything useful unfortunately
Zajcev has joined #nixos
DigitalKiwi has quit [Quit: DigitalKiwi]
<clever> ocharles: can you gist the output from NIX_SHOW_STATS=1 ?
thetet has joined #nixos
<typetetris> pie__: The linked repo was an example app linked statically. That's the blog post, which started that approach: https://vaibhavsagar.com/blog/2018/01/03/static-haskell-nix/
<ocharles> there's quite a lot of IFD going on which I think is probably doing most of the damage
Henson has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<ocharles> I run `cabal sdist` and use `callCabal2nix`
<{^_^}> [nixpkgs] @jbaum98 opened pull request #44995 → `ntl` darwin support → https://git.io/fNFjR
<ocharles> I'll gist that
thetet has left #nixos [#nixos]
<typetetris> pie__: In the linked repo everything is linked again musl and you have to build all your build dependencies from scratch so depending on your use case that might be overkill.
<clever> ocharles: can you use a pastebin that doesnt screw with the selection buffer?
<pie__> typetetris, if you have a moment....currently i use this to get a ghc env https://bpaste.net/show/bc057ae51839 and build my app with the following: ghc -threaded -Wall src/GUI.hs -isrc -hidir "$BUILDDIR" -odir "$BUILDDIR" -o "$BINDIR/GUI"
<inquisitiv3> How do I get wifi working? I got a Thinkpad T430 with a Intel WIFI chip.
<pie__> most of those flags are just for keeping my working directory clean though and i can drop them
freepotion has quit [Quit: Page closed]
<ocharles> clever: aye
<clever> 3,612mb of memory allocations...
<clever> 606mb worth of lists
vidbina_ has quit [Ping timeout: 248 seconds]
<clever> 131mb of environments
<ocharles> what are environments?
<clever> 379mb of values, 2130mb of sets
<clever> ocharles: i think environments are scopes for lambdas, not sure though
<clever> ocharles: but sets are obviously the biggest cost
sanscoeu_ has quit [Remote host closed the connection]
sanscoeur has joined #nixos
davenpcm has quit [Quit: Textual IRC Client: www.textualapp.com]
<inquisitiv3> clever: The problem I had with systemd-boot, is that a bug?
<clever> inquisitiv3: probably
siers has quit [Quit: Connection closed for inactivity]
<inquisitiv3> Where does one report such bugs for NixOS?
__monty__ has quit [Quit: leaving]
justbeingglad has joined #nixos
<typetetris> pie__: I assume you have a dependency on qt ? I have to admit, that I don't see, how it can be statically linked. There don't seem to be an output path for it, like `zlib.static` for `zlib`. I never tried this with qt. The `static-stack` example will probably not work also, as it also assume that the non haskell dependencies provide an output path for an archive.
<pie__> typetetris, ugh. well i think haskell has two sides to static linking, one for haskell libs one for external libs? maybe i can leave qt dynamically linked for the moment...
<typetetris> pie__: That will not rid you of the necessity to ship a nix closure.
<pie__> yes thats correct...but its still progress...kind of
<pie__> (i think?)
jmeredith has joined #nixos
<pie__> symphorien, what would i replace /nix/store/blah with
<symphorien> with the store path of the program you want to transfer
<pie__> the derivation corresponding to my current nix-shell?
<pie__> aha
fragamus has joined #nixos
<pie__> my program isnt built by nix
<pie__> i guess i could try to get it to but i think i need to learn stack for that?
<symphorien> I don't know anything about haskell, sorry
<pie__> right now i just build it with ghc -threaded -Wall src/GUI.hs
<pie__> ah ok thanks anyway
<Fare> inquisitiv3, for bug reports, open an issue on http://github.com/NixOS/nixpkgs/
<{^_^}> [nixos-hardware] @rvolosatovs opened pull request #70 → lenovo/thinkpad/x260: Init → https://git.io/fNbf1
<inquisitiv3> Fare: I'll have to do that. Thanks for the information!
<dhess> ocharles: completely unrelated to this nix-shell issue you're having, but are you using dhall-nix in any projects?
<ocharles> dhess: as in turning dhall expressions into Nix?
<dhess> yes
* pie__ looks at cabal2nix
<typetetris> pie__: I just noticed that a toy program of mine is build statically last time and I am just trying to reproduce it.
<ocharles> dhess: only a little. We store secrets in a dhall file in keybase
<dhess> Oh interesting.
<ocharles> When I deploy machines, we turn that config dhall into a nix expression and then use it with nixops deployment keys
<dhess> Have you blogged about that at all?
<ocharles> I'm trying to write more Dhall and less Nix
<ocharles> nah, it's not doing much interesting yet :)
<pie__> typetetris, thanks for the effort. ^.^ it would be cool if I could use nix for a lot of build/redist stuff. this is my first "serious" program im trying to write
<dhess> ocharles: I would like to start doing that as well.
<ocharles> http://github.com/nix-dhall might interest you if you haven't seen that
<dhess> Ahh I think I had but had forgotten about it
<dhess> maybe somewhere in the back of my mind it's why I was compelled to ask you about dhall-nix :)
<ocharles> I'd like to do more on that in the nfuture
<typetetris> pie__: I don't know wether it will help you. It is an app using a minimal part of gtk and sdl2 and no networking. static linking get's harder if there is dns in the mix, as the standard resolver is only available as a shared library.
<pie__> typetetris, hm.
<pie__> sounds funky :I
<pie__> that will also be an issue then...
<pie__> I suppose I have my work cut out for me
<dmj`> clever: I have a haskell project that depends on a package that is in a private repo. I’m currently using the ssh:// path and builtins.fetchGit to retrieve this. This works well for my local user where the ssh keys are known. When I go to deploy my application, sudo nixos-rebuild switch fails since the user that performs the switch doesn’t have access to these keys. How should I handle this? Should I give the nix user...
<ocharles> dhess: the next thing I might explore is DhallOS - basically something that compiles Dhall into a NixOS configuration
<dmj`> clever: ... access to my ssh keys, or should I obtain the package by other means
<ocharles> but I kinda want to ditch the module system. I'm not a huge fan of it
<{^_^}> [nixpkgs] @vbgl opened pull request #44997 → coq: default to version 8.8 → https://git.io/fNbJ7
<dhess> ocharles: wow, cool!
<ocharles> early days :)
rouma has quit [Ping timeout: 248 seconds]
rouma has joined #nixos
<dmj`> a clever can never be far away
rouma7 has joined #nixos
rouma7 has quit [Client Quit]
rouma has quit [Ping timeout: 240 seconds]
buckley310 has quit [Quit: Bye]
<Zajcev> hello guys, my vps nixos is missing most of man pages, I can't figure why
<Zajcev> man ls
<Zajcev> /nix/var/nix/profiles/default/bin/man: can't set the locale; make sure $LC_* and $LANG are correct
<Zajcev> No manual entry for ls
<Zajcev> for example man man is working
neeasade has joined #nixos
<typetetris> how can I globally set `doCheck = false;` override mkDerivation somehow?
<{^_^}> [nixpkgs] @bchallenor opened pull request #44998 → xsecurelock: git-2018-07-10 -> 1.0 → https://git.io/fNbkq
neeasade has left #nixos ["Using Circe, the loveliest of all IRC clients"]
ryanartecona has quit [Quit: ryanartecona]
<kalbasit[m]> I'm trying to build a custom texlive for my CV, what I'm doing here https://gist.github.com/kalbasit/f04f2734767c8be65bc29840dd89411e#file-shell-nix-L26-L28 ?
<kalbasit[m]> I'm getting `error: attribute 'combine' missing`
kyren has joined #nixos
sanscoeur has quit [Read error: Connection reset by peer]
fragamus has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
sanscoeur has joined #nixos
<clever> dmj`: if you use a sha256, it should be able to compute the storepath and find it was already downloaded
<clever> dmj`: using an ssh agent should also solve it
<dmj`> ahh, ssh-agent, sure
<dmj`> clever: but yea I assume it would have been downloaded already …
<dmj`> clever: I’ll try again tonight. Thanks
yosemitesam has quit [Remote host closed the connection]
<clever> if the sha256 is missing, it wont know what storepath to reuse
<pie__> symphorien, do you know if i can make a second store in like... /opt/myappgoeshere or something? that way root wouldnt be needed for installing
<pie__> i mean for taring the closure or what
* dmj` ssh’s into his home nixos machine to check if the sha256 is missing
<symphorien> a lot of path "/nix/store/dfsdfdsf" are hardcoded in the executables
<symphorien> so relocating won't work
<pie__> ugh seriously? why?
<pie__> i thought that was supposed to be flexible
<symphorien> try to run ldd on any of the executables
<symphorien> you will see
<symphorien> you can ask nix to build a derivation in another location than /nix but this means recompiling the world
johnw has joined #nixos
Ariakenom has quit [Quit: Leaving]
<Dedalo> I was able to change the shell, I'm now using zhs with Powerlevel9K, which is quite cool. You don't need Oh My Zhs to use Powerlevel9K
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to master: https://git.io/fNbL1
<Dedalo> I'm now in the process to change the terminal, and I'm thinking to use Termite, anyone with some experience on it?
<pie__> symphorien, hm
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @vcunat merged pull request #44995 → ntl: darwin support → https://git.io/fNFjR
inquisitiv3 has quit [Quit: Leaving]
<pie__> ok so apparently I can't put this in the mkDerivation generated by cabal2nix: QT_PLUGIN_PATH = qt5.qtbase.bin + "/" + qt5.qtbase.qtPluginPrefix;
<pie__> if I put that in stdenv.mkDerivation it sets the environment variable
<pie__> does anyone know how to do this with haskell's mkderivation?
<pie__> well i guess i could make another derivation that has the haskell one in its buildinputs and uses stdenv
<elvishjerricco> Well that's frustrating. I need a proprietary nvidia driver for my macbook so I have to build my own live CD iso :/
Denommus has quit [Remote host closed the connection]
<pie__> elvishjerricco, ah thats annoying :)
Fare has quit [Ping timeout: 260 seconds]
<elvishjerricco> For some reason I don't remember that being the case previously... Maybe I just did it with the minimal installer or something...
<pie__> i think nix may have stuff for generating livecds? not sure. then again youd have to have a working nixos for that already :D
<pie__> well...afaik there isnt a nonminimal installer?
<pie__> maybe you set some kernel flags to force the nonnvidia stuff? idk what its called, does it have like...the dual gpu setup where one is intel?/
mayhewluke has quit [Ping timeout: 248 seconds]
rtjure has quit [Ping timeout: 260 seconds]
<sphalerite> elvishjerricco: usually the EFI/vesa graphics drivers should be enough to get a console displaying in the installer..?
<elvishjerricco> pie__: Yea I used the stuff in nixpkgs to make my live cd. There is an integrated gpu and it looked like it was trying to use it in the logs, but for some reason it failed. It also tried vesa (and a VMware driver for some reason), but obviously those failed too.
johnw has quit [Read error: Connection reset by peer]
<elvishjerricco> sphalerite: Yea I could get a console. But not an X server
<pie__> i think i used nomodeset on my friends laptop once
<sphalerite> elvishjerricco: ah right. Shouldn't that be enough for installing?
<elvishjerricco> sphalerite: Yea but I'm being picky :)
<pie__> ah. are you sure its even a driver issue? (idk why it wouldnt be)
<elvishjerricco> sphalerite: I've been messing around with building all sorts of NixOS systems from my main config. Was hoping to be able to use my own config in the installer to do the install :P
jb55 has quit [Quit: WeeChat 2.1]
<elvishjerricco> pie__: I just saw X saying it loaded a bunch of drivers then failed to find /dev/dri/card0
<pie__> ah well ok i guess then
<sphalerite> elvishjerricco: yeah fair enough. Should just be a matter of adding <nixpkgs/nixos/modules/installer/cd-dvd/iso-image.nix> to your imports and building config.system.build.isoImage
<sphalerite> elvishjerricco: nix build -f '<nixpkgs/nixos>' config.system.build.isoImage
<elvishjerricco> sphalerite: Yea. But now I need a slightly different config for my MacBook :P
vidbina_ has joined #nixos
<elvishjerricco> Different than the one that I had hoped would be generic
<sphalerite> I think a config including the nvidia drivers should work on machines without nvidia graphics too
<pie__> sphalerite, i dont think that worked for me but dont take my word for it
<{^_^}> [nixpkgs] @xeji merged pull request #44734 → obs-linuxbrowser: 0.4.0 -> 0.5.0 → https://git.io/fNSQ3
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « obs-linuxbrowser: 0.4.0 -> 0.5.0 (#44734) »: https://git.io/fNbmZ
<pie__> alternatively i also needed the intel drivers or something (i was switching from an nvidia to intel machine)
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « lsscsi: 0.29 -> 0.30 (#44742) »: https://git.io/fNbmc
<{^_^}> [nixpkgs] @xeji merged pull request #44742 → lsscsi: 0.29 -> 0.30 → https://git.io/fN9vd
<pie__> ok so i just went from nix-shell to nix build and it breaks my script and i never remember how to deal with it: i went from nix-shell shell.nix to nix-build shell.nix with the error "variable $src or $srcs should point to the source"
<pie__> here's the script https://bpaste.net/show/a00adf7e197e
<pie__> it works in nix-shell..
kyren has joined #nixos
kyren has quit [Client Quit]
<infinisil> pie__: In the simplest form: src = ./.
Anton-Latukha has quit [Ping timeout: 244 seconds]
<clever> pie__: you need to add a src= to the derivation to nix-build it
<infinisil> Oh and you need to give build phase and such, mkDerivation doesn't take care of anything
<pie__> ok. the only reason i dont understand is *everything* works in the nix-shell
<{^_^}> [nixpkgs] @xeji merged pull request #44736 → ocamlPackages.ocaml_extlib: 1.7.4 -> 1.7.5 → https://git.io/fNS5K
<{^_^}> [nixpkgs] @xeji pushed commit from @vbgl to master « ocamlPackages.ocaml_extlib: 1.7.4 -> 1.7.5 (#44736) »: https://git.io/fNbmM
<clever> pie__: because nix-shell doesnt try to unpack the source
<pie__> this isnt the usual mkDerivation its the haskell flavored one
<infinisil> Oh hold on
<clever> pie__: you want a name and version
<infinisil> pie__: Why did you comment out the inNixShell line?
<pie__> clever, i mean it actually builds my executable
mayhewluke has joined #nixos
<pie__> infinisil, because it broke the nix shell call
<infinisil> Then uncomment it again, you need it for nix-build
<pie__> i tried wrapping stuff in .env but that also errored
<pie__> clever, well, ok
<clever> .env is only for nix-shell
<pie__> odd that it only worked without the env :p (well more like it reflects my knowledge..)
<pie__> not unexpectedly i guess, setting src = ./. gives "make: *** No rule to make target 'install'. Stop."
<clever> and .env only applies to the drv on line 44
<clever> the mkDerivation on 50 doesnt work with env
<dmj`> clever: fetchGit doesn’t support sha256 as a field
<clever> pie__: the derivation on line 50 doesnt have a src
<clever> pie__: what do you expect line 50 to be building?
justbeingglad has left #nixos [#nixos]
<pie__> clever, this error is what i get when i add a src there
<{^_^}> [nixpkgs] @xeji merged pull request #44863 → aws-iam-authenticator: init at 2018-07-29 → https://git.io/fNQyH
<{^_^}> [nixpkgs] @xeji pushed commit from @srhb to master « aws-iam-authenticator: init at 2018-07-29 (#44863) »: https://git.io/fNbYm
<pie__> but fair enough, i didnt expect it to acutally build anything since it doesnt have anything to build
<pie__> i just wanted the env var set
<clever> pie__: you want to return an attribute set, containing drv
<clever> not a new derivation that builds nothing
<pie__> ah ok.
erasmas has quit [Quit: leaving]
<{^_^}> [nixpkgs] @Infinisil merged pull request #43397 → libphonenumber: init at 8.9.9 → https://git.io/fNI7i
<{^_^}> [nixpkgs] @Infinisil pushed 3 commits to master: https://git.io/fNbYZ
<pie__> clever, which part of the docs do i look at...
<clever> not sure
<clever> its kind of a basic thing
luketopia has joined #nixos
<{^_^}> [nixpkgs] @LnL7 merged pull request #44912 → dcraw: fix build on Darwin → https://git.io/fN5V9
<{^_^}> [nixpkgs] @LnL7 pushed 2 commits to master: https://git.io/fNbYz
<pie__> or, well, i assumed its an attrset and i tried to do // but its not happy
<clever> in { inherit drv; }
<pie__> just replaced the stdenv.mkDerivation with drv // { QT_PLUGIN_PATH = qt5.qtbase.bin + "/" + qt5.qtbase.qtPluginPrefix; }
vidbina_ has quit [Ping timeout: 248 seconds]
init_6 has joined #nixos
johnw has joined #nixos
<pie__> it complains of the following with both approaches: error: undefined variable 'qt5' at /mnt/data/hask/bb/cabal2nix.nix:49:22
<clever> the with statement is missing
<pie__> ah of course
<clever> and dont // onto drv
<clever> make a new set, where drv is a value inside it
<pie__> sorry i always get stuck on such basic things :<
<q3k> hm, what's the Reference way to include some proprietary acquire-them-yourself sources into a nix derivation as a source, especially if I want to submit it to nixpkgs?
<clever> q3k: requireFile
<clever> q3k: check the oraclejdk for an example
<pie__> q3k, o/
<q3k> clever: good poing
<q3k> pie__: hi!
<pie__> clever, ok awesome, now it builds but the binary isnt in my path again
<{^_^}> [nixpkgs] @LnL7 merged pull request #44902 → python/grpcio: fix darwin build → https://git.io/fN5EC
<{^_^}> [nixpkgs] @LnL7 pushed 2 commits to master: https://git.io/fNbOJ
<pie__> (but it does build it)
Fare has joined #nixos
<pie__> oh im dumb this is a nix-build
<pie__> nevermind ;_;
<clever> pie__: and for nix-shell, add a second attribute to the attribute set, that has an mkDerivation as its value
kisik21 has joined #nixos
<pie__> hm, if i build something with nix-build is there a way to make it "active" or do i need to wrap the executable to to set its env vars?
<clever> ./result/bin/binary
psnively has joined #nixos
<pie__> yeah that worked, its just that it doesnt have the qt env var set
<pie__> since its a raw exe
init_6 has quit []
<clever> add a derivation using runCommand, that uses makeWrapper
<pie__> ok ill look
Fare has quit [Ping timeout: 248 seconds]
<psnively> Oh good, am I actually nick'ed in?
luketopia has quit [Quit: Leaving]
<pie__> clever, is this what you meant for the nix-shell version? https://bpaste.net/show/2c36b28a70b8 "error: nix-shell requires a single derivation"
Anton-Latukha has joined #nixos
<clever> pie__: runCommand "foo-wrapped" { buildInputs = [ makeWrapper ]; } "mkdir -pv $out/bin ; makeWrapper ${drv}/bin/input $out/bin/output --prefix VAR : VALUE";
<clever> pie__: use -A with both nix-build and nix-shell, to select which attribute to use
<psnively> Can y'all see me? :-)
<clever> yes
<psnively> Good, thanks. Just confirming I got NickServ sorted out.
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/03715708079 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<LnL> yeah, the registration is a bit annoying but better than a channel full of spam :/
<psnively> No argument. I just switched from Colloquy to Textual not very long ago and needed to revisit configuring login. :-)
johnw has quit [Read error: Connection reset by peer]
sigmundv has joined #nixos
<psnively> Any Darwin users/developers of nixpkgs around?
<pie__> clever, doesnt it need to be in the nixpkgs tree to use -A?
<sphalerite> ,ask psnively
<{^_^}> psnively: Just ask your question. It's the best way to know if anybody can help.
<pie__> im guessing im completely misunderstanding what -A does
<sphalerite> psnively: there is also #nix-darwin
<pie__> ah..let me guess, it selects the attribute in the set...hah
<sphalerite> psnively: but you can ask here too
<sphalerite> pie__: yep
<psnively> Thanks. OK, basically, https://nixos.org/nixos/nix-pills/generic-builders.html doesn't work on Darwin given:
<psnively> ⇒ nix-shell -p nix-info --run "nix-info -m"
<psnively> - system: `"x86_64-darwin"`
<psnively> - host os: `Darwin 17.7.0, macOS 10.13.6`
<psnively> - multi-user?: `yes`
<psnively> - sandbox: `no`
<psnively> - version: `nix-env (Nix) 2.0.4`
<psnively> - channels(root): `"nixpkgs-18.03-darwin"`
<psnively> - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
<clever> ,pastebin
<{^_^}> clever: Did you mean paste?
<{^_^}> Use a website such as http://nixpaste.lbr.uno/ or https://gist.github.com/ to share anything that's longer than a couple lines
<LnL> yeah, the examples in the nix pills are linux only for simplicity's sake
<clever> pie__: builtins.derivation doesnt work on darwin when the sandbox is enabled
<psnively> Not unreasonable, but it seems like gcc SHOULD work.
<infinisil> psnively: Or just don't use -m with nix-info. The output of it without that flag is meant to be shared here
<psnively> Good to know. Thanks!
<LnL> psnively: it's possible to use gcc on darwin, but it requires some extra tweaking
<psnively> nixpaste too.
<psnively> Right. FWIW, `gccStdenv.mkDerivation` fails exactly the same way.
<sphalerite> If I'm starting a small haskell project and don't care about compatibility with non-nix systems, how should I start off structure-wise?
<clever> sphalerite: i generally start with a runCommand based derivation, using ghcWithPackages in the inputs
<LnL> psnively: in practice you'll never use derivation directly, stdenv.mkDerivation sets up this kind of stuff for you (in a way that does work for all platforms unlike the example)
mayhewluke has quit [Ping timeout: 248 seconds]
<clever> sphalerite: and if it starts to get more complex, i generate a .cabal file, and switch to callCabal2nix
<kisik21> What is the best way to build every package in overlay (e.g. binary cache purposes) without writing too much on the command line? Please note that I added some xfce packages to super.xfce in the overlay, which means trying to build it with `nix-build -E "import default.nix (import <nixpkgs> {}) (import <nixpkgs> {}) will try to build whole XFCE package set from nixpkgs in addition to one or two my XFCE
<kisik21> packages.
<psnively> OK, let me try the stdenv.
<LnL> psnively: did you set PATH?
<sphalerite> clever: so use a ghcWithPackages and just call ghc in the build, then copy the built stuff to $out?
<kisik21> (XFCE packages are added with `xfce = super.xfce // { <...> };`
<clever> sphalerite: ghc ${./main.hs} -o $out/bin/foo, dont even have to copy
<LnL> psnively: and yeah, there's gccStdenv which does the same but with gcc instead of clang
<sphalerite> clever: great, thanks!
<clever> sphalerite: though you might want to copy the src, to stop ghc from dumping .hi files in /nix/store/
johnw has joined #nixos
<psnively> LnL: Did I set PATH how?
mayhewluke has joined #nixos
<LnL> psnively: in the builder, like the derivation example does, that would override a bunch of stuff the stdenv does which you don't want
<psnively> I think I'm a bit confused. I'm trying to follow https://nixos.org/nixos/nix-pills/generic-builders.html. It does assume gcc. But macOS does have "gcc," which admittedly uses clang under the hood, but so what?
<psnively> Ah, right.
justanotheruser has quit [Ping timeout: 240 seconds]
<psnively> LnL: I don't touch PATH anywhere but in simple_builder.sh.
<psnively> What's weird is the error: "/nix/store/15bnl096akln14x4r3wv7fr54k8c46n7-gcc-wrapper-7.3.0/bin/as: assembler (clang) not installed" But chasing down the symlinks, it absolutely is.
tertle||eltret has joined #nixos
<pie__> clever, combining with nixpkgs; and inherit drv seems to result in : error: illegal name: '.drv'
<tertle||eltret> where can I see a list of the kernels in my grub file? grub.conf or whatever? where is it locatd?
<pie__> i guess inherit only applies to closest biinding scope
<clever> pie__: can you pastebin your derivation?
<tertle||eltret> test
<tertle||eltret> where can I see a list of the kernels in my grub file? grub.conf or whatever? where is it locatd?
<pie__> ah well no looks like thats not it
<clever> tertle||eltret: in /boot/
<LnL> buildCommand is equivalent to builder + args but without a separate file
<clever> close, the stdenv will do a lot of startup stuff for you before that
<pie__> clever, i feel like im going to get scolded :< https://bpaste.net/show/9d1ef6bfeccf
<clever> pie__: the derivation on line 50 is missing a name=
<clever> pie__: and if you make line 48 rec {, then you can just put moreshell into the buildInputs, no need to duplicate code
<pie__> ok so thats important...
smolboye has joined #nixos
<clever> pie__: rec also means 49 has to be `inherit drv;`
<pie__> well its more like i didnt know if shell or moreshell is going to work
<clever> pie__: moreshell is for nix-build, while shell is for nix-shell
<pie__> ok
<clever> fix the names to be less confusing
<clever> then rename this entire thing to default.nix
<pie__> yeah
<clever> your new shell.nix should contain: (import ./. {}).shell
<pie__> so i didnt completely fk it up?
<clever> most of this is a weird haskell example ive never found the source of, that i never used, lol
<pie__> yeha but thats mostly irrelevant? xD
<psnively> LnL: I'll call that good, as it conveys what I think the Pill is after. Thanks!
<pie__> unless i misunderstand
<clever> pie__: it should all be food
<clever> good
<pie__> ugh wow now it worked
<pie__> this stuff is magic sigh :p
<LnL> psnively: yeah, that's what the examples slowly work towards, explaining buildInputs, etc.
<pie__> both shell and build work
<psnively> LnL: got it. Thanks again!
<LnL> psnively: with nixpkgs you'd override specific phases instead of replacing everything the stdenv gives you https://nixos.org/nixpkgs/manual/#sec-stdenv-phases
<psnively> That makes good sense. I'll continue through the Pills and see if I hit any other speedbumps. Thanks so much!
<psnively> Catch you all later!
psnively has quit [Quit: Textual IRC Client: www.textualapp.com]
<{^_^}> [nixpkgs] @jbedo opened pull request #45000 → libtiff: debian patches 4.0.9-5 -> 4.0.9-6 → https://git.io/fNbGt
<q3k> hm, `nix build` on my workstation (non-nixos) always displays a pretty build progress ([1/0/1 built, 0.0 MiB DL]) - how do I make it just spit out build logs?
<clever> q3k: nix-build
<q3k> oh.
<q3k> they're two different tools (?!)
<clever> nix-build is the old 1.0 interface, nix is the new 2.0 interface
<clever> 2.0 includes all of the old 1.0 tools
<clever> but the new interface sometimes lacks the off switch for fancy features
<tertle||eltret> what if I forgot my password to use "su -"?
<clever> tertle||eltret: are you in the wheel group?
<tertle||eltret> yes
<clever> tertle||eltret: then you never need to use su again
<kisik21> sudo? pkexec?
<clever> use sudo or `sudo -i`
<kisik21> pkexec is hacky, but works if you broke your sudoers file
<tertle||eltret> im trying to find the list of all my different config versions that shows in grub?
<tertle||eltret> i wanna switch back to normal kernel
jbaum98 has joined #nixos
<clever> tertle||eltret: how did you change the kernel initially?
<tertle||eltret> i installed "musix"
<clever> tertle||eltret: how did you install musix?
<tertle||eltret> its a few lines I added to the config file
<tertle||eltret> hmm let me go look at that
<clever> comment those lines out and nixos-rebuild, and it will go back to the old config
<tertle||eltret> the sudo -i worked
<tertle||eltret> ty
<jbaum98> i'm trying to givaro build on darwin, but the problem is that tests fail because they are looking for the dylib in the place it will eventually end up, in then nix store, instead of where it is. the easiest way to fix it is to change the order so that installPhase is before checkPhase, but is that frowned upon? also, does anyone know why this is an issue only on darwin?
<clever> jbaum98: thats what the installCheckPhase is for
<clever> jbaum98: doInstallCheck = true; instead of doCheck=true;
<jbaum98> clever: ah, perfect thanks!