gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || 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
mkoenig__ is now known as mkoenig
<Xal> I'm getting the strangest error from a 32 bit program I'm trying to package:
<Xal> relocation error: symbol , version GLIBC_2.0 not defined in file libc.so.6 with link time reference
<Xal> 32-bit ldd reports that it can find all the necessary libraries, and the interpreter is set up properly
<Xal> the thing that's got me stumped the most is that other programs from the same package work, but this specific one doesn't
<clever> Xal: it likely wants a special symbol in the libc, to define it as being recent enough
AtnNn_ has quit [Remote host closed the connection]
jason has joined #nixos
jason is now known as Guest87238
LysergicDreams has joined #nixos
nixy has quit [Ping timeout: 265 seconds]
Guest87238 is now known as stumble
stumble has quit [Client Quit]
<Xal> clever: it wants the symbol ""
<Xal> like literally an empty string
<{^_^}> [nixpkgs] @romildo opened pull request #39898 → terminology: 1.1.1 -> 1.2.0 → https://git.io/vpgZb
jperras has quit [Ping timeout: 248 seconds]
Synthetica has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @globin merged pull request #39882 → libtorrent-rasterbar: 1.1.6 -> 1.1.7 → https://git.io/vpzhy
<{^_^}> [nixpkgs] @globin pushed commit from @obadz to master « libtorrent-rasterbar: 1.1.6 -> 1.1.7 »: https://git.io/vpgnt
<colemickens> I want to update those, in an automated fashion. Any tips on where to look for a bash/python script maybe?
<{^_^}> [nixos-homepage] @matthewbauer opened pull request #215 → Example of using Arx to create installers → https://git.io/vpgna
nixy has joined #nixos
buckley310 has quit [Ping timeout: 256 seconds]
aziei has joined #nixos
buckley310 has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
jackdk has joined #nixos
puckipedia has quit [Ping timeout: 268 seconds]
puckipedia has joined #nixos
aziei has quit [Quit: leaving]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #39899 → altcoins.bitcoin-abc: 0.17.0 -> 0.17.1 → https://git.io/vpgnS
mduggie has quit [Ping timeout: 240 seconds]
daveo has joined #nixos
blonkhart has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #39900 → gllvm: 2018-04-28 -> 1.2.0 → https://git.io/vpgcz
jperras has joined #nixos
puckipedia has quit [Ping timeout: 268 seconds]
aarvar has quit [Quit: Leaving.]
mduggie has joined #nixos
jperras has quit [Ping timeout: 260 seconds]
puckipedia has joined #nixos
Rusty1_ has joined #nixos
mduggie has quit [Ping timeout: 240 seconds]
<eqyiel> is it possible to disable validation of the manual on unstable? I thought `services.nixosManual.enable = false;` would do it, but some recent change is causing it to fail with `manual-combined.xml fails to validate`
silver has quit [Read error: Connection reset by peer]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/27eb2859f27 (from 11 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
mduggie has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
<clever> eqyiel: can you pastebin the full output when the build fails?
stephenjudkins has quit [Ping timeout: 256 seconds]
<clever> eqyiel: it sys the nixos-manpages and home-manager depend on it
<eqyiel> oh, derp
<eqyiel> it's probably due to home-manager then
<eqyiel> clever: thanks
<clever> yeah, you need to tell home-manager to also not build nixos man pages
thc202 has quit [Ping timeout: 260 seconds]
UNIcodeX__ has joined #nixos
isHavvyGhosting is now known as isHavvy
benley has quit [Quit: WeeChat 1.9.1]
markus1189 has quit [Ping timeout: 256 seconds]
UNIcodeX_ has quit [Ping timeout: 256 seconds]
TonyTheLion has quit [Quit: leaving]
markus1189 has joined #nixos
maingo has quit [Quit: Connection closed for inactivity]
<disasm> gchristensen: still around?
romildo has joined #nixos
<gchristensen> yep
<disasm> gchristensen: you had pinged me earlier :) Looks like we're both on at the same time now.
<gchristensen> w00t
muzzy has joined #nixos
romildo has quit [Client Quit]
<jackdk> On nixpkgs unstable, I cannot run `nix-shell -p "haskell.packages.ghc822.ghcWithPackages(p: [p.blank-canvas])"` because it's pulling base-compat-batteries-0.10 which pulls base-compat-0.10 but also text-show-3.7 which pulls base-compat-0.9.3. I note that `hackage-packages.nix` has "base-compat" and "base-compat_0_10_1"; should there be similar for
<jackdk> base-compat-batteries?
<{^_^}> [nixpkgs] @dtzWill merged pull request #39900 → gllvm: 2018-04-28 -> 1.2.0 → https://git.io/vpgcz
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/vpgCp
<{^_^}> → ef30e659 by @dtzWill: gllvm: 2018-04-28 -> 1.2.0
<{^_^}> → 54b90e5f by @dtzWill: Merge pull request #39900 from dtzWill/update/gllvm-1.2.0
<elvishjerricco> jackdk: That probably means that someone did `foo = super.foo.override { bar = self.bar_x_y_z; };` in one of the `configuration-xyz.nix` files. I consider this *extremely* bad form, since it leads to inconsistencies in the package set like you're seeing here. It's better to just change `bar` in the package set rather than changing it in one specific dependent.
jperras has joined #nixos
<jackdk> that someone was me. I'll dig up the PR, and if you can help me get this right I'll put in another one
semilattice has joined #nixos
markus1199 has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
jperras has quit [Ping timeout: 264 seconds]
<elvishjerricco> jackdk: So the base package set is based on a Stackage LTS, which has base-compat-0.9.3, but no base-compat-batteries (meaning those have been added by us). It's usually better to leave the Stackage-derived packages as untouched as possible, so I'd probably prefer it if we simply pulled in older versions of base-compat-batteries and its dependents that are compatible with base-compat-0.9.3.
freeman42x]NixOS has quit [Ping timeout: 240 seconds]
markus1189 has quit [Ping timeout: 240 seconds]
mbrgm has quit [Ping timeout: 256 seconds]
<jackdk> okay, so how is hackage-packages.nix generated and which version of a package does it decide to cabal2nixise?
mbrgm has joined #nixos
<clever> jackdk: check the git history on it, and read the most recent commit msg
hakujin has quit [Ping timeout: 255 seconds]
<jackdk> clever: clever. thanks
<jackdk> ah, base-compat-batteries never had an 0.9 release. that's probably why this is gnarly
<{^_^}> [nixpkgs] @romildo opened pull request #39902 → enlightenment: add dependency on mesa_noglu → https://git.io/vpgW1
muzzy has quit [Ping timeout: 260 seconds]
aarvar has joined #nixos
<jackdk> so if we have no stackage-lts-compatible base-compat-batteries (even lts-11.7 is still on base-compat-0.9.3), what's the best way forward?
aarvar has left #nixos [#nixos]
LysergicDreams has quit [Quit: Lost terminal]
<elvishjerricco> jackdk: Hm. That's disappointing. Is there a previous version of blank-canvas that doesn't depend on base-compat-batteries?
LysergicDreams has joined #nixos
<jackdk> yeah the next-to-recent might work since it only depends on base-compat >= 0.8 && < 0.10. how do I ask for a specific version of a package when I do a ghcWithPackages call?
<elvishjerricco> jackdk: Well for one thing, we should make the default `blank-canvas` be that version instead of current version. But until that's done you can do `ghcWithPackages (p: [(p.callHackage "blank-canvas" "x.y.z" {})])
<jackdk> `nix-shell -p 'haskell.packages.ghc822.ghcWIthPackages (p: [p.callHackage "blank-canvas" "0.6.2" {}])'` builds.
krey has joined #nixos
<elvishjerricco> jackdk: Would be good to submit a PR to configuration-hackage.yaml to make that change the default
<jackdk> yeap, happy to do that. It looks like a line in the extra-packages dict?
blonkhart has quit [Ping timeout: 260 seconds]
blonkhart has joined #nixos
<spear2> where does sshd_config go? i don't find it in /etc/ssh/sshd_config?
<spear2> it's kept in the store?
daveo has quit [Ping timeout: 264 seconds]
jrolfs_ has joined #nixos
hakujin has joined #nixos
<jackdk> elvishjerricco: I've added a line to configuration-hackage2nix.yaml but I'm having trouble making update-nixpkgs.sh run. It's complaining of an unknown package monad-par-extras, and I've checked out all-cabal-hashes as a subdir
<elvishjerricco> jackdk: You don't need to run update-nixpkgs.sh yourself. Just check in the change to configuration-hackage2nix.yaml and it'll be there next time peti updates the package set.
<jackdk> but how else can I test that I haven't broken the build?
hakujin has quit [Ping timeout: 256 seconds]
jrolfs_ has quit [Ping timeout: 260 seconds]
<jackdk> elvishjerricco: also, should I revert the override on the dep of base-compat-batteries, which is setting base-compat = base-compat_0_10_1?
Fare has quit [Ping timeout: 264 seconds]
<elvishjerricco> jackdk: I guess we should keep the base-compat-batteries change, since it doesn't build otherwise.
<elvishjerricco> I just never test my changes to configuration-hackage2nix.yaml, since it's pretty basic :P But I guess you're right; if you figure out how to test the change, let me know
<jackdk> heh, okay.
jperras has joined #nixos
<{^_^}> [nixpkgs] @endgame opened pull request #39903 → haskellPackages.blank-canvas: 0.6.3 -> 0.6.2 → https://git.io/vpg8E
<jackdk> thanks for your help elvishjerricco. I'll have to leave it there for now
muzzy_ has joined #nixos
iqubic` has joined #nixos
iqubic` has left #nixos [#nixos]
sir_guy_carleton has quit [Quit: Leaving]
iqubic has quit [Ping timeout: 255 seconds]
iqubic has joined #nixos
fresheye1 has quit [Ping timeout: 268 seconds]
hakujin has joined #nixos
<zybell> gchristensen:mosh runs on UDP and is compat to ssh. But better is:no large files in the first place. Someone at debian(?not sure)uses a very small PXE image that essentially only includes curl and the boot is continued over http,where you dont have to change an image but single files.
<jackdk> is this running at a different level to ipxe?
muzzy has joined #nixos
<gchristensen> I essentially have no choice but to make a large pxe image.
hakujin has quit [Ping timeout: 248 seconds]
muzzy__ has joined #nixos
drakonis has joined #nixos
<muzzy_> Hey can someone explain, in simple terms, what exactly Nixops is?
hakujin has joined #nixos
<bhipple[m]> NixOps is basically terraform for NixOS + cloud. It allows you to write Nix expressions that declaratively specify a set of machines, cloud resources, what should be on those machines, etc.
<jackdk> gchristensen have you looked at ipxe? you can chainload it from your vendor pxe rom if you don't have the ability to flash the rom, and it can download kernel/initrd over http
<gchristensen> yes, it is actually ipxe
<muzzy_> okay. Does it install nixos to those machines or do the machines have to exist as Nixos? Sorry I just need to get this clear in my head
<Myrl-saki> Is there a musl stdenv?
<bhipple[m]> muzzy_: The machines don't need to exist; it can create them from thin air in EC2 using the API, then install your NixOS on it, etc. Same for managing attached storage, AWS accounts, etc.
benley has joined #nixos
<justanotheruser> Does anyone have a better guide to deploying nixos AMIs than this? https://nixos.wiki/wiki/Install_NixOS_on_Amazon_EC2 ? It references outdated environment and a command, variables, "ec2-add-keypair", which googling with quotes doesn't show any useful documentation
<ryantm> muzzy_: That's called "provisioning" in the manual https://nixos.org/nixops/manual/ It can do it for some backends.
<bhipple[m]> muzzy_: The tutorial in the NixOps manual is actually quite good, and can be done in <30 minutes. It involves spinning up a small set of machines in a cluster with a nix expression
hakujin has quit [Ping timeout: 264 seconds]
<muzzy_> alright, So I followed the nixops guide (with libvirtd) and deployed a webserver VM, interesting, it showed up in virt-manager. Is this akin to simply making a VM from a nixos ISO?
ivanivan has joined #nixos
Ridout has quit [Quit: Lost terminal]
Fare has joined #nixos
jrolfs has quit [Ping timeout: 264 seconds]
jrolfs has joined #nixos
jrolfs has quit [Ping timeout: 240 seconds]
blankhart has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 240 seconds]
blonkhart has quit [Quit: WeeChat 1.9.1]
jperras has quit [Quit: WeeChat 2.1]
hakujin has joined #nixos
Fare has quit [Ping timeout: 264 seconds]
<spear2> error: Nix daemon out of memory?
srl295 has quit [Quit: Connection closed for inactivity]
jrolfs_ has joined #nixos
<spear2> forgot to swapon, do i need to re-generate hardware config?
hakujin has quit [Ping timeout: 240 seconds]
<spear2> guess not it worked now =)
odi has joined #nixos
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
jrolfs_ has quit [Ping timeout: 256 seconds]
<iqubic> spear2: if you turn on swap, that might fix the memory issues.
<spear2> yes that was it =)
<iqubic> Until Nix 2.0 can do builds with less memory than it currently uses, I'm sticking with whatever the last 1.x release was.
ivanivan has quit [Quit: WeeChat 2.0]
Mateon3 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #39904 → aws-sdk-cpp: 1.4.33 -> 1.4.40 → https://git.io/vpgRA
Mateon1 has quit [Ping timeout: 248 seconds]
Mateon3 is now known as Mateon1
<jcrben> building a new vim plugin (https://github.com/tbabej/taskwiki) per https://github.com/NixOS/nixpkgs/blob/master/pkgs/misc/vim-plugins/default.nix#L23 - seems like this is downloading all the plugins?
<jcrben> wondering if that's normal. also wondering if I'm going to run out of space before it's done
ivanivan has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
Fare has joined #nixos
<ivanivan> when I add a new variable to environment.variables in my nixos config, they don't show up in existing or new shells for my current user, but do show up for new logins such as `sudo -i`
<ivanivan> can anyone enlighten me as to how to pick up new variables without rebooting?
<ivanivan> i guess i need to log out and back into the x session?
krey has quit [Ping timeout: 264 seconds]
odi_ has joined #nixos
<ghostyy> how do i downgrade a package in nixos?
odi_ has quit [Remote host closed the connection]
odi has quit [Ping timeout: 240 seconds]
odi_ has joined #nixos
Henson has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
TheAppleMan has joined #nixos
ivanivan has quit [Quit: WeeChat 2.0]
odi_ has quit [Remote host closed the connection]
odi_ has joined #nixos
nallar has joined #nixos
Ross has quit [Ping timeout: 260 seconds]
nallar is now known as Ross
hakujin has joined #nixos
hakujin has quit [Ping timeout: 264 seconds]
<bhipple[m]> ghostyy: you can add an overlay with `foo = <older version>`, or you can git checkout the nixpkgs commit that built your nixos, change the pkg, and rebuild from it if you want something more temporary
<{^_^}> [nixpkgs] @r-ryantm opened pull request #39905 → alsaUtils: 1.1.5 -> 1.1.6 → https://git.io/vpg0x
<dtz> This and previous xD
<iqubic> Yes, those are good XKCD comics.
hakujin has joined #nixos
katyucha has joined #nixos
odi_ has quit [Read error: Connection reset by peer]
hakujin has quit [Ping timeout: 264 seconds]
krey has joined #nixos
<kuri0> i edited patches.nix to include some of my patches but when i build the vm it uses the kernel from the cache server
<kuri0> and doesn't build my custom patched kernel
Fare has quit [Ping timeout: 264 seconds]
ericsagnes has quit [Ping timeout: 256 seconds]
<dmj`> peti around?
wangoe has quit [Ping timeout: 240 seconds]
WilliButz has quit [Ping timeout: 240 seconds]
zemm has quit [Ping timeout: 240 seconds]
zemm has joined #nixos
WilliButz has joined #nixos
wangoe has joined #nixos
aarvar has joined #nixos
asuryawanshi has joined #nixos
<muzzy_> Do I use Nix-build to edit software before it compiles?
Rusty1_ has quit [Quit: Konversation terminated!]
<muzzy_> xmr-stak isn't working for me. Apparently I need to use a different AMD library... so I'll need to supply that file before it compiles. How do I do this in nixos?
hakujin has joined #nixos
hakujin has quit [Ping timeout: 264 seconds]
ericsagnes has joined #nixos
wangoe has quit [Ping timeout: 264 seconds]
Guanin_ has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @jcrben opened pull request #39906 → vim-utils: update plugin generation instruction → https://git.io/vpgub
<Myrl-saki> Why doesn't nixops accept an argument?
<Myrl-saki> Rather, why doesn't nixops accept arguments?
coot has joined #nixos
katyucha has quit [Ping timeout: 260 seconds]
MercurialAlchemi has joined #nixos
Guanin_ has joined #nixos
hakujin has joined #nixos
hakujin has quit [Ping timeout: 240 seconds]
Myrl-saki has quit [Ping timeout: 264 seconds]
jedai has joined #nixos
rauno has quit [Ping timeout: 260 seconds]
Ariakenom has joined #nixos
jedai|2 has quit [Ping timeout: 240 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hakujin has joined #nixos
<kuri0> i edited patches.nix to include some of my patches but when i build the vm it uses the kernel from the cache server
hakujin has quit [Ping timeout: 248 seconds]
UNIcodeX_ has joined #nixos
UNIcodeX__ has quit [Ping timeout: 248 seconds]
Ariakenom has quit [Read error: Connection reset by peer]
spear2 has quit [Quit: Leaving]
hakujin has joined #nixos
<hyper_ch> hehehe https://xkcd.com/1988/
smichel has joined #nixos
MichaelRaskin has left #nixos [#nixos]
hakujin has quit [Ping timeout: 265 seconds]
andreabedini has joined #nixos
<sphalerite> Myrwhat do you mean?
<sphalerite> oops, the went off
<sphalerite> kuri0: you'll probably want to put your patches in the boot.kernelPatches option.
jedai42 has joined #nixos
jedai has quit [Ping timeout: 276 seconds]
griff_ has joined #nixos
hamishmack has joined #nixos
jD91mZM2 has joined #nixos
Myrl-saki has joined #nixos
lukec has quit [Ping timeout: 255 seconds]
<kuri0> sphalerite, what if i do want to edit patches.nix ?
<jD91mZM2> Hi everyone! I got NixOS installed yesterday, and I'm currently trying to set it up (apparently I had a lot more things installed than I remembered). My biggest issue so far has been the VPN. I got OpenVPN set up finally, but I have not yet figured out how to make a killswitch. UFW doesn't seem to be available, and Nix's default firewall doesn't seem to support limiting the outgoing connections. What would I
<sphalerite> kuri0: you shouldn't need to edit patches.nix. You can just put your patches in your configuration.
<jD91mZM2> use to do this?
<kuri0> sphalerite, i want to edit it i'm making a fork of nixpkgs with some tweaks
<sphalerite> jD91mZM2: yes, the default firewall configuration is fairly limited. You can add your own stuff using networking.firewall.extraCommands
<jD91mZM2> Aha! Guess I don't have a choice but to learn iptables :P
<sphalerite> kuri0: patches.nix only contains a set of available patches, they aren't enabled byefault
<sphalerite> kuri0: you need to put them in boot.kernelPackages, use an override on the kernel package, or modify the set of patches passed to it in pkgs/top-level/all-packages.nix
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/54b90e5f96c (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
katyucha has joined #nixos
<jD91mZM2> How would I compile a custom program with runtime dependencies? Should I make a package?
<trikl[m]> jD91mZM2: I use nftables for it
<sphalerite> jD91mZM2: I have a friend who has a setup like that as well, I've asked them and can let you know when I hear back if you hang about here :)
<sphalerite> hah, speak of the devil
<jD91mZM2> Nice, thanks!
<trikl[m]> Hehe. The only relevant bit is the output chain
winem_ has joined #nixos
<sphalerite> jD91mZM2: if it's for development, you probably want to use nix-shell because otherwise it will rebuild the whole thing on every small change
<sphalerite> jD91mZM2: for actually using it in your configuration or deploying it to other machines with nix, yes, package it
<jD91mZM2> I tried to run nix-shell -p libpulseaudio, and it works when compiling, but not when actually running
<jD91mZM2> "libpulse.so.0: cannot open shared object file: No such file or directory"
<sphalerite> It may be trying to load it dynamically at runtime rather than linking against it during the loading
<sphalerite> in which case you'll need to use LD_LIBRARY_PATH
<jD91mZM2> (Or package it?)
<sphalerite> if it is dlopening it it will also need the wrapper with LD_LIBRARY_PATH in a package AFAIK
lukec has joined #nixos
<jD91mZM2> Ah, bummer
<sphalerite> you can check if the dlopen thing is the case using readelf -d <executable>
<jD91mZM2> btw what's the difference between nix-shell -p and nix run?
robstr has joined #nixos
xy2_ has joined #nixos
<sphalerite> if it has a NEEDED entry for libpulse you shouldn't be having this issue
<jD91mZM2> 0x0000000000000001 (NEEDED) Shared library: [libpulse.so.0]
<sphalerite> huh.
<jD91mZM2> I'll try recompiling it
<sphalerite> does it have a RUNPATH entry with /nix/store/<hash>-libpulseaudio-x.y.z/lib in it?
<jD91mZM2> It has a bunch of other paths, but not libpulse for what I can ee
<eisbaer> hi, i'm trying to forward port 22 from a vm on my host to the internet, but i can't get it to work with "networking.nat". when i check the iptables rules they seem to be okay.
armbed has joined #nixos
<sphalerite> hm, did you maybe nest nix-shells?
<jD91mZM2> I didn't
<jD91mZM2> nix-shell -p pkgconfig binutils x11 xorg.libXScrnSaver libpulseaudio
<sphalerite> TIL about x11 x)
<jD91mZM2> If you're not busy, the repo I'm trying to compile is https://github.com/jD91mZM2/xidlehook
<sphalerite> I have an exam in two hours but this is more interesting than cramming :D
xy2_ has quit [Ping timeout: 264 seconds]
griff_ has quit [Ping timeout: 240 seconds]
<sphalerite> how are you getting your rust compiler for this?
<jD91mZM2> I'm using nixos.rustup
<jD91mZM2> Might have some weird crap left over from my old /home though. I didn't ever erase that
<jD91mZM2> Should I delete and reinstall ~/.rustup you think?
<sphalerite> ah, hm. Not sure rustup works at all on nixos
semilattice has quit [Ping timeout: 276 seconds]
<sphalerite> you might want to try using mozilla's rust overlay https://github.com/mozilla/nixpkgs-mozilla/
<sphalerite> then building it in `nix-shell -p x11 pkgconfig xorg.libXScrnSaver libpulseaudio rustChannels.nightly.rust`
<sphalerite> (which I'm trying just now)
<tilpner> sphalerite - NixOS' rustup was patched to make the download binaries work here too
<sphalerite> oh neat
<sphalerite> jD91mZM2: right, so it built, and now I'm getting the pulseaudio error too, whoop whoop
<jD91mZM2> And you're using nixpkgs-mozilla?
<sphalerite> yeah
<jD91mZM2> Alright
<sphalerite> patchelf --set-rpath $(patchelf --print-rpath target/debug/xidlehook):/nix/store/ilh6z1mr335dkr22jvzpx61x0vlwd4wc-libpulseaudio-11.1/lib target/debug/xidlehook
<sphalerite> that fixed it for me
<sphalerite> I think a package would do that automatically in fixupPhase, but I'm not sure
<jD91mZM2> I have no idea what that command does but that's pretty cool
<sphalerite> if https://github.com/NixOS/nixpkgs/issues/24844 ever gets done, that should make it just work right out of the box
<sphalerite> I have my hopes for getting that working before 18.09
<jD91mZM2> Btw when instaling binutils I'm getting priority issues for `ld`. Which one should I give the most priority? gcc or binutils?
<sphalerite> Not install it :/
<jD91mZM2> Why not?
<sphalerite> basically the way the tools are packaged is not actually suited for installing into user environments, so it doesn't work the way you might expect most of the time
<sphalerite> !library
<{^_^}> Don't install libraries through nix-env or systemPackages. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<sphalerite> ^ related
<jD91mZM2> But binutils isn't a library?
<sphalerite> oh actually I do have binutils installed to have strings and readelf available
<sphalerite> but yeah I don't recommend having gcc installed, because it just doesn't work very well standalone (rather than in nix-shell)
jacob_ has joined #nixos
hakujin has joined #nixos
<jD91mZM2> Aha
<sphalerite> Anyway, as for what the command does — the RUNPATH entry in an executable's dynamic section gives the loader additional paths in which to look for the libraries, much like LD_LIBRARY_PATH but embedded in the executable. That patchelf command modifies it to add the path to libpulse
<sphalerite> a wrapper like LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/nix/store/ilh6z1mr335dkr22jvzpx61x0vlwd4wc-libpulseaudio-11.1/lib" ./target/debug/xidlehook is probably more convenient though, and should work just as well
<jD91mZM2> Your command didn't work for me on the release binary
<jD91mZM2> It updated the binary, but it still complains when running
<sphalerite> your path to libpulseaudio is probably different
<jD91mZM2> Yeah I updated it
<sphalerite> oh, huh.
<jD91mZM2> I mean I probably just messed something up
<jD91mZM2> Lemme try LD_LIBRARY_PATH
<jD91mZM2> Oh wait
<sphalerite> make sure the path you pass does actually contain libpulse.so.0 :)
<jD91mZM2> I linked it to -dev
<jD91mZM2> derp
<sphalerite> :)
hakujin has quit [Ping timeout: 240 seconds]
<andreabedini> hello, nix beginners here (on macos) with a question
<andreabedini> my NIX_PATH is /nix/var/nix/profiles/per-user/root/channels
<jD91mZM2> IT WORKS! YAY!
<andreabedini> rather than /nix/var/nix/profiles/per-user/andrea/channels as I'd expect
<jD91mZM2> Thanks sphalerite :)
<sphalerite> \o/
<andreabedini> is there a problem with my setup?
<sphalerite> it's intended, though not necessarily expected-by-users, behaviour, which is fixed by that PR :)
<andreabedini> thanks sphalerite !
<sphalerite> oh wait no that's just for nixos
xAFFE has joined #nixos
<andreabedini> do I have to do anything?
<sphalerite> yeah you can change it to have per-user/andrea/channels yourself
<andreabedini> coolio, I do get the occasionally name collision warning
aarvar has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @matthewbauer opened pull request #39907 → Miscellaneous cleanups → https://git.io/vpgw8
<jD91mZM2> Btw does NixOS have `z` packaged anywhere? I can't really find it since searching for it gives me a billion results
reinzelmann has joined #nixos
<Myrl-saki> How do I get the contents of a file?
<Myrl-saki> Oh, readFile?
Tucky has joined #nixos
<sphalerite> jD91mZM2: z as in ruby-zoom?
<jD91mZM2> z as in z: jump around (https://github.com/rupa/z)
<jD91mZM2> It keeps track of commonly accessed directories
__Sander__ has joined #nixos
<sphalerite> I don't think so. You could do environment.interactiveShellInit = "source ${fetchurl {url = "https://github.com/rupa/z/raw/ea5ec7834398ee2244de26953b3d1ef785d3f942/z.sh"; sha256 = "…";}}";
sigmundv__ has joined #nixos
hakujin has joined #nixos
LysergicDreams has quit [Quit: leaving]
Ariakenom has joined #nixos
<jD91mZM2> fetchurl works inline? Woah
jason has joined #nixos
jason is now known as Guest40773
Guest40773 is now known as stumble
<sphalerite> sure, you can substitute any nix expression that evaluates to a string in a string using antiquotation :)
<kuri0> sphalerite, can i create group of patches so i don't have to specify each one ?
<sphalerite> kuri0: yeah, just stick them in a list.
<kuri0> if it could automaticly add everything thats in a folder to that group it would be better
hakujin has quit [Ping timeout: 260 seconds]
hotfuzz_ is now known as hotfuzz
LysergicDreams has joined #nixos
PlasmaStrike[m] has joined #nixos
wangoe has joined #nixos
<Myrl-saki> How do I override a module's setting?
<Myrl-saki> Ugh, stupid question.
<Myrl-saki> How do I override a module's output config?
jackdk has quit [Ping timeout: 240 seconds]
<Myrl-saki> I feel stupid. Lmao.
<Myrl-saki> I already found the answer a year and a half ago. https://github.com/NixOS/nixpkgs/issues/16884#issuecomment-252873618
Tucky has quit [Quit: WeeChat 2.1]
<jD91mZM2> sphalerite: Does this look OK? https://gist.github.com/dc6d10a39dee4f73368c80f376f2a59e
<makefu> Myrl-saki: that is actually quite neat, thanks for sharing :)
guesie has joined #nixos
<sphalerite> jD91mZM2: yep! Did you try it without the wrapping though? I think fixupPhase might be able to get it right using patchelf for you
<jD91mZM2> Yeah no it didn't
<sphalerite> aww
<Myrl-saki> makefu: Was kinda funny because I DDG'd that, scrolled down and noticed a familiar profile pic.
<sphalerite> but yeah, looks good. You could also use patchelf yourself to avoid the need for a wrapper, but that's just a nit :)
<sphalerite> jD91mZM2: you could also install the manpage, if it doesn't do that itself
<jD91mZM2> How would I do this for development? I can't really compile the package now unless I push it to github :P
Myrl-saki has quit [Remote host closed the connection]
<sphalerite> `nix-shell path/to/default.nix` will give you the environment you need to build it
Myrl-saki has joined #nixos
<jD91mZM2> I tried that, but it gave me an outdated rust version :|
<sphalerite> oh, hm
<sphalerite> wait then why does that actually build o.O
<sphalerite> I don't really know, sorry!
<jD91mZM2> My thing is haunted!
<jD91mZM2> btw why doesn't nix-shell respect my user's login shell setting?
<guesie> hi! I'm having trouble installing nixos.. Actually I had the same issue before, but I don't remember how to solve it: I created a boot and a root partition, both ext4, however I'm getting: 'Warning.. GPT partition contains no BIOS boot partition... Embedding is not possible'
<jD91mZM2> You need a BIOS partition, like it says
<jD91mZM2> 256MiB should be enough, fat32, with the legacy bootable flag
<sphalerite> jD91mZM2: because the build environment is quite tightly coupled to bash, it sources stdenv's setup.sh which defined a bunch of functions
<sphalerite> jD91mZM2: so in a nix-shell you can do `genericBuild` to just try building the package right where you are.
Tucky has joined #nixos
<sphalerite> jD91mZM2: you can of course do nix-shell --run zsh (or whatever your favourite shell is), just that the functions won't be defined. That's acceptable for many use cases but not all
<guesie> jD91mZM2: alright, actually I had fat before.. with the same error, but I did not set the legacy boot flag (I'll try to do that)
<jD91mZM2> In fdisk you can press "x, A, <number>, r"
<sphalerite> guesie: are you sure BIOS boot is what you want?
<[Leary]> So when packaging a binary that looks for runtime dependencies in the PATH, it gets wrapped in a script that builds it a PATH variable holding the executables it will look for. But what if you're packaging a shell script instead? It seems a bit silly to wrap it with another. Is there a good way to generate the script at build time so that it directly calls ${program}/bin/program instead of looking for program in the PATH?
<makefu> guesie: you need an extra "grub partition" for gpt. it does not fit into the mbr anymore
periklis has joined #nixos
<sphalerite> guesie: you may want to set GRUB to use EFI boot. Unfortunately I need to go now though so I can't help you work that out
<Myrl-saki> Why can't we use `config = { };` in nixops?
<guesie> sphalerite: Actually I'm not sure if I need 'BIOS boot', I'm not too much into these things. But thanks for the hint, maybe someone else can help me out here
<jD91mZM2> You do need some sort of boot partition, but if your system supports EFI then you of course want to use that
<guesie> jD91mZM2: ok, I suppose it supports EFI. I created the EFI partition with fdsik.. whcih file system should I chose?
<jD91mZM2> Choose the partition type "EFI System"
<Myrl-saki> error: Module `:anon-1:anon-1' has an unsupported attribute `environment'. This is caused by assignments to the top-level attributes `config' or `options'.
<guesie> jD91mZM2: did so
<jD91mZM2> Type 1 I believe
<jD91mZM2> Ok well then you're set
<guesie> jD91mZM2: I guess I'd have to create a file system via mkfs.., no?
<jD91mZM2> Nope, I don't think so at least
<jD91mZM2> Otherwise just try fat32
<guesie> jD91mZM2: ok, well see ;)
<jD91mZM2> How come the NixOS repos have gotten an updated Discord, yet I'm on nixos-unstable and haven't gotten the update?
<jD91mZM2> I've tried nix-channel --update and nix-env --upgrade
<Myrl-saki> Uhh
muzzy__ has quit [Ping timeout: 256 seconds]
muzzy_ has quit [Ping timeout: 256 seconds]
muzzy has quit [Ping timeout: 256 seconds]
<LnL> channels only update when a set of tests pass and all the builds are finished
<jD91mZM2> aw
<jD91mZM2> (I mean I guess that's good)
<jD91mZM2> The discord commit was two days ago though
<guesie> jD91mZM2: ok, still the same error.. even with fat...
<jD91mZM2> Are you sure your system supports EFI? Did you configure GRUB to actually use EFI?
<stumble> And you probably want the following in your configuration.nix:
<stumble> loader.systemd-boot.enable = true;
<stumble> loader.efi.canTouchEfiVariables = true;
<stumble> Oh, sorry. My mistake.
<stumble> If you want to use GRUB then you don't want the first of those lines.
<stumble> But alternatively you can use systemd-boot, which is less complicated.
<jD91mZM2> LnL It says "20 hours ago", but the Discord commit was 2 days ago?
<LnL> can you send the output of nix-info
<jD91mZM2> system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.0.1, channels(user): "nixos-unstable-18.09pre138871.af55a0c3002", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
<jD91mZM2> ~  Downloads  xidlehook  %  nix-channel --list ~/Downloads/xidlehook
<jD91mZM2> yy
<jD91mZM2> Sorry for the span, I'm bad at pasting stuff
<LnL> that looks like a user channel, that's not used for nixos-rebuild
<jD91mZM2> oh
<jD91mZM2> I mean discord is installed by the user
<jD91mZM2> nix-env -iA
<LnL> with nix-env -iA nixos-unstable.discord?
<jD91mZM2> No, just nixo- oh
<jD91mZM2> Is there any way to make all my packages use unstable? I like rolling release
<LnL> nixos is the system channel, owned by root
<LnL> sudo nix-channel --list
<LnL> you can use nixos-unstable there to switch the entire system
<jD91mZM2> But then I'll have to call nixos-unstable.<package> for every single thing?
guesie has quit [Ping timeout: 240 seconds]
<LnL> no name the channel nixos
<LnL> nix-channel --add https://nixos.org/channels/nixos-unstable foobar; nix-env -iA foobar.hello
<jD91mZM2> Okay. Can I still use the LTS kernel?
<LnL> that's the default everywhere
sigmundv__ has quit [Ping timeout: 240 seconds]
<jD91mZM2> Great! Thanks :D
<stumble> Hang on - not clear to me whether you want rebuilds to use unstable, but if you do then you need to prefix the command LnL gave you with sudo.
<jD91mZM2> Honestly it's not entirely clear to me either. But I ran it with sudo and now both root and user are using unstable
<jD91mZM2> "warning: name collision in input Nix expressions" when running an upgrade
<stumble> Right - I had this problem yesterday.
<LnL> I personally don't like using unstable because it can take a while for it to receive security updates, and with nix there's no reason to limit yourself to a single channel
<stumble> It's alerting you to the fact that the system channel and the user channel have the same name.
<jD91mZM2> aha
<stumble> It's not necessarily a problem that they have the same name.
<jD91mZM2> What do you recommend if I just want to use the latest user software but don't care about system version?
<jD91mZM2> Should I use stable on root and unstable on user?
<stumble> So you definitely (!) don't have a major problem - the system is on rolling release, which is what you want, and your user profile is on the same channel although it won't auto-update - you have to update user packages manually (or automate it yourself of course).
<stumble> NixOS doesn't distinguish much between system packages and other packages. The point of the sudo stuff is that the root channel installs things available to all users.
<stumble> If you're the only user then the way you have it set up is fine.
<jD91mZM2> What do you mean update manually? nix-env --upgrade won't work?
<LnL> that should look for updates across all channels
<stumble> Yes that will work. :-) I meant that you need to do that.
<jD91mZM2> If I'm using the same channel for root and user, is there a point to having the channel added to user?
<LnL> but you'll have to update the root and user channels separately
<LnL> no
<LnL> unless you don't want it to be global for some reason
<stumble> BRB
<stumble> (I agree with LnL though.)
<jD91mZM2> So I want `nix-channel --list` to be empty for the user but nixos-unstable for root?
thc202 has joined #nixos
tertle||eltret has quit [Quit: Connection closed for inactivity]
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
<LnL> I have a nixos and nixos-unstable root channel on my system and use unstable for stuff I want to be more recent
knupfer has joined #nixos
Acou_Bass has joined #nixos
<{^_^}> [nixpkgs] @fpletz pushed to master « youtubeDL: 2018.04.25 -> 2018.05.01 »: https://git.io/vpgP3
<jD91mZM2> ~  Downloads  xidlehook  %  sudo nix-channel --list ~/Downloads/xidlehook
<jD91mZM2> Does this make sense?
<jD91mZM2> `nix-env -iA nixos-unstable.discord` still gives me 0.0.4...
<{^_^}> [nixpkgs] @fpletz pushed 6 commits to release-18.03: https://git.io/vpgPg
<{^_^}> → 88c8cb0b by @pjan: youtube-dl: 2018.03.03 -> 2018.03.10
<{^_^}> → 6c9bfc1b by @magnetophon: youtube-dl: 2018.03.10 -> 2018.03.14
<{^_^}> → 30c3cdb8 by R. RyanTM: python27Packages.youtube-dl: 2018.03.14 -> 2018.03.26.1
<stumble> jD91mZM2 so we've solved your easy problem but not your main problem! Sorry!
<jD91mZM2> I mean it was still a problem solved - don't be sorry
winem_ has quit [Ping timeout: 265 seconds]
<jD91mZM2> What version is discord for you? Maybe they just haven't pushed it to the unstable channel either yet?
<kuri0> i get this error when building the kernel Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
<kuri0> do i need to update gcc ?
kiloreux has joined #nixos
Khetzal has quit [Remote host closed the connection]
* jD91mZM2 leaves to try some firewall config stuffs
jD91mZM2 has quit [Quit: WeeChat 2.0]
<Myrl-saki> clever: I just gave up on the RasPi.
Baughn has quit [Ping timeout: 245 seconds]
<Myrl-saki> clever: If I'll use it again, I'm using i386 nixpkgs, I don't care how slow it'll be.
peacemem_ has joined #nixos
<Myrl-saki> It was abysmally slow. Like. Wow.
peacemem_ has quit [Client Quit]
Baughn has joined #nixos
<kuri0> atleast its $35 lol
<kuri0> nix doesn't seem good for the RPi right now
Khetzal has joined #nixos
<kuri0> i couldn't install gnome and i needed swap for nix package manager to work
<Myrl-saki> kuri0: I use Nix for everything
<Myrl-saki> And well, that turned out to be a bit of a problem.
<Myrl-saki> Doesn't matter.
<kuri0> maybe if you use the raspberry kernel it will be better
<Myrl-saki> kuri0: The Raspberry kernel is even worse lmao
<Myrl-saki> kuri0: It's a 2G/2G memory split.
<kuri0> doesn't it have only 1gb ram anyways ?
<Myrl-saki> kuri0: I couldn't get nix to import ghc.
<Myrl-saki> kuri0: Swap.
<kuri0> nix seems to need alot of ram atm
<Taneb> Is it possible to get a nix-shell that's the union of two shell.nixs?
<Myrl-saki> kuri0: I had 4 GB of swap on. It was very fun tracking down that problem.
kiloreux has quit [Remote host closed the connection]
kiloreux has joined #nixos
<Myrl-saki> kuri0: It was more of a "Oh okay, wine needs 3G/1G split" then "Oh wtf. I can import GHC now."
<Myrl-saki> kuri0: I'm pretty sure it was the 2G/2G split that caused it, but I may be wrong.
<kuri0> Myrl-saki, does the armv7 one work since it uses less ram
<Myrl-saki> kuri0: What do you mean?
<Myrl-saki> Oh wait.
<Myrl-saki> kuri0: I'm using RasPi 2. :P
<Myrl-saki> kuri0: And Nix on Raspbian.
* etu has nixos running on a RasPi 3 :)))
<Myrl-saki> Had to compile a custom kernel for the 3G/1G split.
<etu> It does my home automation
hakujin has joined #nixos
__monty__ has joined #nixos
<kuri0> i would use nixos on my rpi if gnome worked
<kuri0> it doesn't
<kuri0> maybe they fixed it now
<Myrl-saki> kuri0: Good luck compiling Gnome from the start anyway.
<kuri0> Myrl-saki, it uses cache servers on the pi3
<Myrl-saki> Oh right.
* Myrl-saki stares at my RPi2
<Myrl-saki> :(
<{^_^}> [nixpkgs] @lsix opened pull request #39911 → gnupg: 2.2.6 -> 2.2.7 → https://git.io/vpgDT
jensens has joined #nixos
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kuri0> Myrl-saki, doesn't the RPi2 have the same 64-bit CPU as the RPi3 ?
<kuri0> there are two versions i think
<kuri0> one is 32-bit
<Dezgeg> all Pi2 is 32-bit only
knupfer has quit [Ping timeout: 248 seconds]
<Dezgeg> Pi2 has bcm2836 and Pi3 bcm2837
<kuri0> Dezgeg, the v1.2 has the same SoC as the 3
<Dezgeg> huh
<kuri0> some of the RPi2s have BCM2837
<kuri0> not all
hakujin has quit [Ping timeout: 260 seconds]
unacceptable has joined #nixos
<Dezgeg> well then
Synthetica has joined #nixos
<kuri0> Myrl-saki, can you tell what cat /sys/firmware/devicetree/base/model says ?
<Myrl-saki> kuri0: I unplugged it already. :(
<kuri0> Myrl-saki, i think on the board it is printed the version
<Myrl-saki> v1.1
<Myrl-saki> :(
<kuri0> so your stuck with 32-bit
<Myrl-saki> kuri0: Either way is bad anyway.
<Myrl-saki> kuri0: llvm is broken on RPi3, so I can't use GHC.
<kuri0> probably theres a workaround
sie has joined #nixos
<Myrl-saki> Did `rustc` just get dropped from i686-linux?
<unacceptable> Why would they do that?
<unacceptable> that's crazy talk
<Myrl-saki> unacceptable: I meant on nixpkgs btw.
<Myrl-saki> OTOH, there odesn't seem to be i686 on staiging-18.03 at all, but my bincache still works. I'm confused.
hakujin has joined #nixos
<unacceptable> I don't know how to parse the information there, my nixos-fu is very fledgling
<Myrl-saki> There's no rustc.
<Myrl-saki> i686 is also apparently low priority.
hakujin has quit [Ping timeout: 264 seconds]
winem_ has joined #nixos
<robstr> Hey, I have my shell.nix file containig `(import ./nix/release.nix {} ).app.env`, now I want to spawn a postgresql database too, before i did something like `stdenv.mkDerivation {` with a shell hook. Can someone help puzzling them together ? :)
lonokhov has joined #nixos
<Myrl-saki> How do I know the list of packages that Hydra builds?
sie has quit [Ping timeout: 256 seconds]
<{^_^}> [nix] @edolstra pushed to master « LocalStore::addValidPath(): Throw error when the CA assertion is wrong »: https://git.io/vpgSV
<Myrl-saki> Why is release-17.09 still being evaluated?
<vaibhavsagar> Myrl-saki: it's still getting updates
<vaibhavsagar> they haven't dropped support for it yet
<Myrl-saki> vaibhavsagar: Why is 17.09 unique?
<vaibhavsagar> Myrl-saki: it's not, the same thing happened with 17.03 after 17.09 came out
<Myrl-saki> With nix 2, how to downgrade from 18.03 to 17.09?
<vaibhavsagar> Myrl-saki: make sure you have nix.package = nixStable2
<vaibhavsagar> in your configuration.nix, then replace the nixpkgs channel and do a nixos-rebuild switch
<vaibhavsagar> why do you want to do this though?
<Myrl-saki> vaibhavsagar: i686 rustc is broken, and the X server now indirectly depends on rustc.
<Myrl-saki> By broken, I mean not being compiled by the hydra.
<vaibhavsagar> hmm, that's unfortunate
<Myrl-saki> vaibhavsagar: Tracking it was a pain.
<vaibhavsagar> have you raised an issue?
<Myrl-saki> vaibhavsagar: I think it's a "soft" requirement though.
<vaibhavsagar> I don't know what that means in the context of Nix
<vaibhavsagar> there's some flag that can exclude it from buildInputs?
<Myrl-saki> vaibhavsagar: Let me check nixpkgs for a second before saying anything wrong. :P
<vaibhavsagar> can you build your own rustc-i686?
<Myrl-saki> vaibhavsagar: That's what I'm doing right now.
<Myrl-saki> vaibhavsagar: My main problem is that rustc is a *huge* project, and might use up the RAM.
<Myrl-saki> vaibhavsagar: It should be possible to use the binaries by using an overlay though.
<vaibhavsagar> maybe nixpkgs-mozilla?
<Myrl-saki> vaibhavsagar: Yeah, that's what I'm thinking. That opens up another can of worms though.
<vaibhavsagar> hmm, you're right
<Myrl-saki> vaibhavsagar: Give me a few, I'll just use nix-instantiate and tree it.
<vaibhavsagar> you can also do `nix why-depends` IIRC
<Myrl-saki> vaibhavsagar: why-depends doesn't work for buildtime dependencies yet.
<vaibhavsagar> see
<vaibhavsagar> *I see
humanoyd has joined #nixos
<Myrl-saki> Okay.
<Myrl-saki> I'm actually more confused now.
<Myrl-saki> Anyways.
<Myrl-saki> This is what I mean is a soft requirement.
<Myrl-saki> /nix/store/4h2ch0f7x7d52622igszdx5ypzhz09qz-nixos-icons-2017-03-16.drv
<Myrl-saki> It indirectly depends on rustc, which... eh.
hakujin has joined #nixos
<Myrl-saki> Anyways, I seem to be wrong.
<Myrl-saki> xserver doesn't seem to depend on rustc.
<{^_^}> [nixpkgs] @ckauhaus opened pull request #39912 → vulnix: 1.6.1 -> 1.6.3 → https://git.io/vpgHO
ckauhaus has joined #nixos
<srhb> It would be weird, yeah. :)
<Myrl-saki> srhb: An icon depending on rustc is a bit weirder, don't you think? :P
<srhb> Myrl-saki: Icons are always weird, I've given up understanding them :P
<vaibhavsagar> FWIW I tried to build the new VLC and ended up compiling rustc from source on my laptop
<Myrl-saki> The questin is..
<srhb> vaibhavsagar: That doesn't sound right...
<Myrl-saki> What is bringing in the nixos-icons dependency. Lmao.
<srhb> What's the new vlc?
<vaibhavsagar> srhb: I agree
hakujin has quit [Ping timeout: 264 seconds]
<Myrl-saki> Please don't tell me it's the fluxbox..
<Myrl-saki> HAHAHAHA
<Myrl-saki> environment.systemPackages =
<Myrl-saki> [ manual.manual helpScript ]
<Myrl-saki> ++ optionals config.services.xserver.enable [desktopItem pkgs.nixos-icons]
<Myrl-saki> Lmaooo
<Myrl-saki> That's in nixos-manual.nix
sie has joined #nixos
sie is now known as Guest66607
<srhb> vaibhavsagar: I can't seem tp reproduce that.
<Myrl-saki> Err, can anyone help me?
<srhb> vaibhavsagar: Cherry-picked the vlc commit onto nixos-18.03 and all I'm building is vlc itself.
Guest66607 is now known as ijsicle
<srhb> Myrl-saki: What's up?
<Myrl-saki> My module-foo is still really bad.
<Myrl-saki> srhb: vaibhavsagar: I was able to track down the Rust dependency.
<srhb> vaibhavsagar: Are you perhaps building all of staging?
<kuri0> i get this error when building the kernel Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
<{^_^}> [nixpkgs] @Ma27 opened pull request #39913 → shutter: wrap `XDG_DATA_DIRS` with `hicolor-icon-theme` → https://git.io/vpgQn
<srhb> Myrl-saki: What about it?
periklis has quit [Ping timeout: 276 seconds]
<Myrl-saki> srhb: How do I modify the environment.systemPackages through configuration.nix?
orivej has joined #nixos
<Myrl-saki> srhb: nixos-icons depends on rustc, making xserver unusable in i686.
knupfer has joined #nixos
<Myrl-saki> nixos-icons -> libsvg -> rustc
<Myrl-saki> So basically, I want my configuration.nix to post-process that.
TonyTheLion has joined #nixos
<srhb> Myrl-saki: Oh, removing just the manual entry?
<srhb> Er, icons entry.
colemickens has quit [Quit: Connection closed for inactivity]
Myrl-saki has quit [Remote host closed the connection]
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/171aa0d90bc (from 82 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
Wharncliffe has joined #nixos
<{^_^}> [nixpkgs] @nlewo opened pull request #39914 → gcc49: backport retpoline support → https://git.io/vpg73
robstr has quit [Quit: WeeChat 1.9.1]
Myrl-saki has joined #nixos
<Myrl-saki> Uhh
<Myrl-saki> Did anyone have a reply?
<Myrl-saki> PHone died.
<srhb> Myrl-saki: No, still looking. Haven't tried that before.
<srhb> Myrl-saki: But am I right to think you want to inject an apply that filters out the icons from systemPackages?
<Myrl-saki> srhb: Yep!
mkaito has quit [Ping timeout: 240 seconds]
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
hakujin has joined #nixos
humanoyd has quit [Ping timeout: 255 seconds]
<tilpner> Myrl-saki - If you don't intend to use nixos-icons, you can overlay a dummy derivation onto it. It will still be installed, but won't require imagemagick anymore
<Myrl-saki> tilpner: Yeah, that also seems to work.
troydm has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #39906 → vim-utils: update plugin generation instruction → https://git.io/vpgub
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpg5e
<{^_^}> → d9814698 by @jcrben: vim-utils: update plugin generation instruction
<{^_^}> → 42b59439 by @Mic92: Merge pull request #39906 from jcrben/update-vim-plugin-generation-instructions
hakujin has quit [Ping timeout: 264 seconds]
mkaito has joined #nixos
mkaito has quit [Changing host]
mkaito has joined #nixos
alexteves has joined #nixos
ijsicle has quit [Ping timeout: 256 seconds]
jD91mZM2 has joined #nixos
zybell has quit [Read error: Connection reset by peer]
<Myrl-saki> tilpner: I could also just disable the manual.
<Myrl-saki> But I think that should be last resort.
<Myrl-saki> Well, second-to-last.
<srhb> ehehehe
<srhb> So, apply does work
<Myrl-saki> srhb: Whaaa
<Myrl-saki> srhb: How'd you do it?
<srhb> Protip: Don't test it by filtering out everything but file
nD5Xjz has quit [Ping timeout: 265 seconds]
<srhb> Sec, let me just get a working system again... :P
<Myrl-saki> That's how I did it
<Myrl-saki> Sure sure.
katyucha has quit [Ping timeout: 276 seconds]
<srhb> ugh I don't even have ls
<srhb> x_x
<srhb> yeah, reboot time, brb :P
<Dezgeg> switching to a previous generation with '/nix/var/nix/profiles/system-XXX-link/bin/switch-to-configuration test' should fix it
humanoyd has joined #nixos
<srhb> Dezgeg: Yeah, but no idea what the generation was named and I couldn't find a good way to explore profiles without, like, ls... :P
<srhb> Maybe shell completion could have done it for me.
<Dezgeg> tab complete or echo *
<srhb> Good point. :)
<{^_^}> [nixpkgs] @zimbatm merged pull request #39823 → fetchs3: allow to name the derivation output → https://git.io/vpEM8
<{^_^}> [nixpkgs] @zimbatm pushed to master « fetchs3: allow to name the derivation output (#39823) »: https://git.io/vpgdc
<srhb> Slightly less invasive :-)
<Myrl-saki> srhb: That... confuses me.
<{^_^}> [nixpkgs] @zimbatm pushed to release-18.03 « fetchs3: allow to name the derivation output (#39823) »: https://git.io/vpgdg
<srhb> Myrl-saki: How come?
<Myrl-saki> srhb: I mean. What is `imports`, actually? @_@
<srhb> Myrl-saki: The nixos imports module bit
<srhb> Like
<Myrl-saki> I always thought imports was just importing files.
<srhb> Modules
<srhb> That is, things of shape { ... }: { config = ...; options = ...; imports = ...; } or alternatively a bare set of those instead of a function
<srhb> Or alternatively none of the top level sets, but just the contents of config
<Myrl-saki> srhb: What should I use nixpkgs.config for?
<srhb> It's not nixpkgs.config
<srhb> I'm confused, what are you asking?
<Myrl-saki> I mean, what is nixpkgs.config for then?
<srhb> Configuring nixpkgs
<srhb> (Not NixOS)
<srhb> Well, technically the nixpkgs that NixOS uses.
hiroshi has quit [Ping timeout: 256 seconds]
simukis has joined #nixos
<srhb> The reason you're thinking files instead of modules is that usually you have imports like ./path-to-file
<srhb> But that file, then, in turn, contains a module
<srhb> But there's nothing stopping you from just defining it inline.
<Myrl-saki> srhb: Question. I believe files is literally a file, and it's the module evaluator that converts the file, with, say, `import`?
<Myrl-saki> srhb: So, `imports = [ file ];` is the same as `imports = [ (import file) ];`
humanoyd has quit [Quit: WeeChat 2.1]
<Myrl-saki> I got sidetracked a bit. Lmao.
<Myrl-saki> srhb: Basically, I'm saying that there's a processing stage that checks the type of each element of imports, and if it's a file, then it uses `import` on it.
<Myrl-saki> srhb: Is my guess correct?
<srhb> It sounds correct, a bare path should be a store path.
<srhb> I didn't check the module source though :)
<Myrl-saki> Either way, thanks. I got someone into NixOS, but this was a *major* roadblock for him.
raynold has joined #nixos
<srhb> Honestly I wish there wasn't so much magical "if this type then that else if this type then ..."
<srhb> What's wrong with having the user normalize everything into the canonical module form?
<srhb> That would be clearer.
<Myrl-saki> I just confused myself even more.
<Myrl-saki> I made this for someone.
<Myrl-saki> This one works, and I have no idea why.
MP2E has quit [Remote host closed the connection]
<srhb> Myrl-saki: Are you confused by squid being a function?
<Myrl-saki> srhb: I'm confused on why that works even without using `import`
<srhb> uuuuh
<srhb> Yeah, no idea. I've never seen that before.
<Myrl-saki> srhb: Lmao
<Myrl-saki> srhb: How should I turn that into an import?
<Myrl-saki> WQait.
<Myrl-saki> Just, don't answer that.
<Myrl-saki> I should learn for myself lmao
<srhb> :)
<srhb> Now I'm worried that my method is subtly dangerous. I don't *think* it should be though...
<Myrl-saki> srhb: Well, luckily, I encounterd another problem, now I can fix that!
<Myrl-saki> That, or 10 years later, there'll be a comment, `# TODO: fix this.`
<Taneb> srhb: did you see the issue I made at your suggestion the other day?
andreabedini has joined #nixos
<srhb> Taneb: *rummages through memories*
periklis has joined #nixos
<kiloreux> I have a library that I usually load with LD_PRELOAD and I am looking to use it with a nix package. Does nix has anything similar to LD_PRELOAD ?
<Taneb> srhb: yeah
<srhb> Taneb: I did, but promptly forgot to act on it, sorry. I've poked it now.
<Taneb> srhb: thank you :)
<Taneb> (this is my first time making an issue to something like nixpkgs and I'm a bit anxious about the whole thing)
<Myrl-saki> srhb: Why is it called options?
<srhb> Taneb: Please don't be, if there's something missing quality wise we will make sure to tell you what we need. Or if we forget, you can always poke us here :)
<Taneb> :)
<__monty__> Taneb: You can get your feet wet working on the ranger project, we welcome any and all contributions ; )
<Taneb> __monty__: ranger?
<__monty__> ranger.github.io
katyucha has joined #nixos
<Myrl-saki> srhb: Thanks.
<srhb> Myrl-saki: options are the declarations of what attributes there are, their types, postprocessing etc. config is the values (the ones you're used to settings in configuration.nix)
<Myrl-saki> srhb: Right.
<Taneb> __monty__: not quite what I meant by "like nixpkgs" :P
<Myrl-saki> srhb: Thanks.
<__monty__> Taneb: Just evangelizing : )
<Myrl-saki> srhb: Why can't configuration.nix use `options` and `config`?
<srhb> Myrl-saki: Who says it can't!
<Myrl-saki> srhb: Nixpkgs. :P
<Myrl-saki> srhb: I get a module error.
<srhb> Oh, really, I thought it was just a regular module.
<srhb> Sure you didn't do something wrong?
<Myrl-saki> That's a posibility.
<Myrl-saki> srhb: But this is what I get.
<Myrl-saki> error: Module `:anon-1' has an unsupported attribute `boot'. This is caused by assignments to the top-level attributes `config' or `options'.
<Myrl-saki> srhb: That's why you saw me using `nixpkgs.config` :P
<srhb> Myrl-saki: I think you're doing something else wrong. I just rewrote mine to canonical form, and it's fine.
<Myrl-saki> srhb: Can you show me?
<srhb> Myrl-saki: canonical form being { ... }: { imports = ...; options = ...; config = ...; }
seanparsons has quit [Quit: ZNC 1.6.5 - http://znc.in]
<srhb> Myrl-saki: Which prat specifically? I can't show you my whole config sadly.
<Myrl-saki> srhb: I have `boot` and other whatnots.
<srhb> Those belong to config.
<srhb> (Presumably)
<srhb> Unless you're overriding their declarations
<Myrl-saki> Well
<Myrl-saki> This is weird.
<Myrl-saki> I did that, with it under config, and yeah, it works.
<srhb> The form you're used to seeing is just a flattened version that has only the config attributes
<srhb> It's implicit that they belong to config in that case.
<Myrl-saki> Thanks, learning a lot.
seanparsons has joined #nixos
<Myrl-saki> srhb: So, I could technically do `{ ... }: { imports = ...; options = ...; ...}`?
<Myrl-saki> srhb: Where everything else is a config?
<srhb> Yes. Though you may run into some surprising issues where you can't merge _in-module_
<srhb> Like, merges happen between modules, not in the same module
<Myrl-saki> srhb: What do you mean by that?
periklis has quit [Ping timeout: 240 seconds]
<Myrl-saki> srhb: Oh wait, I think I know what you mean.
<srhb> For instance, you cannot set environment.systemPackages twice in the same module, but you _can_ assign it twice if you do it in two separate modules, and they will merge.
<Myrl-saki> srhb: So, `options` won't apply to the current module?
<Myrl-saki> Ohhh
<srhb> Yes it will, but it might not merge the way you think it will.
<jD91mZM2> Related to merging, is there any way to make it not merge? For example if I want to completely override my DNS stuff without keeping the default?
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srhb> jD91mZM2: lib.mkForce
aramiscd has quit [Quit: WeeChat 2.0.1]
<srhb> Myrl-saki: Essentially, the same rule applies. You cannot define a thing twice in the same module.
andreabedini has joined #nixos
<srhb> (And if it doesn't merge anyway, you can't define it twice at all.)
<Myrl-saki> srhb: Thanks, I'll give the source code a read.
<srhb> Myrl-saki: Take this, it's dangerous to go alone. *hands pickaxe*
<jD91mZM2> mkForce didn't seem to make any difference?
<srhb> jD91mZM2: Oh, uh, what are you doing again?
<jD91mZM2> Trying to update networking.nameservers without keeping the default
<jD91mZM2> pkgs.lib.mkForce ["1.1.1.1" "1.0.0.1"]
<Myrl-saki> srhb: I've given it a read, even with my Haskell knowledge, I'm still lost. :P
<srhb> jD91mZM2: The default is [] though?
<jD91mZM2> Oh. So I just need to disable DHCP somewhere else. My bad.
<srhb> jD91mZM2: So no need to do any forcing.
<srhb> jD91mZM2: You can look at its value with nixos-option networking.nameservers
<{^_^}> [nixpkgs] @7c6f434c merged pull request #39912 → vulnix: 1.6.1 -> 1.6.3 → https://git.io/vpgHO
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/vpgNM
<{^_^}> → 46aa5200 by @ckauhaus: vulnix: 1.6.1 -> 1.6.3
<{^_^}> → b30c6d79 by @7c6f434c: Merge pull request #39912 from ckauhaus/vulnix-1.6.3
<jD91mZM2> Yeah, I thought I had done that. Apparently not.
<srhb> :)
zybell_ has joined #nixos
waleee has joined #nixos
<srhb> Myrl-saki: It's not the most easily read part of the repo. :)
<srhb> Myrl-saki: If you have a specific question I can try to dig up the relevant bit.
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Myrl-saki> srhb: Thanks!
Ariakenom has quit [Ping timeout: 268 seconds]
spear2 has joined #nixos
spear2 has quit [Quit: Leaving]
spear2 has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
spear2 has quit [Client Quit]
<jD91mZM2> Does anybody know how to disable the nameserver that's detected by DHCP?
spear2 has joined #nixos
<srhb> jD91mZM2: I suppose that depends which network stack you're using.
<jD91mZM2> I mean in /etc/resolv.conf
<srhb> Disabling it would usually mean "prevent it from writing to /etc/resolv.conf" which depends on the network stack.
<jD91mZM2> Oh
<jD91mZM2> I don't know exactly what a network stack is to be honest :P
<srhb> How did you configure your networking? :)
<jD91mZM2> I'm using NetworkManager
<srhb> Wired, wireless, networkmanager, ... are all keywords here
<spear2> can anyone suggest an audio player besides deadbeef? the interfaces is buggy (missing buttons, volume)
<srhb> jD91mZM2: Hmm, not sure how to prevent it from doing that.
<jD91mZM2> So NetworkManager is the one adding my default gateway?
<srhb> Probably dhclient through networkmanager, but not sure what that has to do with DNS.
freeman42x]NixOS has joined #nixos
<jD91mZM2> I mean adding my default gateway to /etc/resolv.conf
<srhb> Do you mean an entry like "nameserver (default gateway)" ?
<goibhniu> spear2: FWIW I use vlc, but tomahawk is nice too.
<jD91mZM2> Yep. Seems like there is networking.networkmanager.dhcp. Maybe I want to try emptying that
Ariakenom has joined #nixos
<jD91mZM2> Never mind, emptying that didn't work because it has to be one of specified options
<stumble> I set my nameserver explicitly, and that overrides networkmanager.
<stumble> I mean, I use networking.nameservers = [ "..." "..."];
<jD91mZM2> Yeah, me too. But /etc/resolv.conf still has the other entries below
<stumble> Heck!
<stumble> That's bad.
<srhb> jD91mZM2: So, this is not configurable currently
<srhb> jD91mZM2: Usually you would want to set dns=None (or something like that) in NetworkManager.conf
<stumble> I actually override both with openvpn options, and then only my vpn nameservers appear in /etc/resolv.conf.
<stumble> But I didn't think that was necessary. :-(
<jD91mZM2> Darn it. Would be great if I could somehow use the chattr hack
<srhb> jD91mZM2: But right now, the only options are dnsmasq, systemd-resolved, unbound and default.
<srhb> You could propose extending the module.
<jD91mZM2> Like a pull request? Exciting!
<srhb> jD91mZM2: Look at nixpkgs/nixos/modules/services/networking/networkmanager.nix under configFile
<srhb> jD91mZM2: And under dns
<srhb> jD91mZM2: That should give you an idea of how it works currently.
mkaito_ has joined #nixos
<sphalerite> jD91mZM2: for networkmanager, you can set it in the connection properties. In nmtui there's "Ignore automatically obtained DNS parameters"
<sphalerite> not sure about other UIs
Myrl-saki has quit [Remote host closed the connection]
<srhb> sphalerite: Imperative config?!
<srhb> :-)
<sphalerite> srhb: welcome to networkmanager :)
Myrl-saki has joined #nixos
<srhb> When are we getting a good, declarative setup that handles passwords properly too :(
yegortimoshenko has joined #nixos
<sphalerite> personally I'm not awfully fussed about it being stateful for wifi connections, since connecting to a new network isn't something I'd want to rebuild my system for every time
spear2 has quit [Remote host closed the connection]
seanparsons has quit [Read error: Connection reset by peer]
knupfer has quit [Quit: knupfer]
<srhb> Nah, I see the point. I'd accept a decent imperative ux even.
<sphalerite> nm isn't perfect but it's not awful either :p
warbo has joined #nixos
<xnaveira[m]> When I configure my windowManager to be i3 and no desktopManager everything works fine and my machine logs in directly into i3. If I enable gnome3 in desktopManager it logs into gnome3, no matter what i wrote in default. How can I have gnome3 installed but login default to i3?
<sphalerite> xnaveira[m]: set desktopManager.default to "none", I think
<xnaveira[m]> that's what i did Linus but it logins to gnome3 anyway
<xnaveira[m]> sphalerite
zeronineseven has joined #nixos
<sphalerite> with desktopManager.default = "none" and windowManager.default = "i3"?
<xnaveira[m]> well then i get i3
<xnaveira[m]> but no gnome3 installed
<xnaveira[m]> as soon as i enable gnome3 in desktopManager i can only login to gnome3 regardless defaults etc
<sphalerite> services.xserver = { desktopManager.default = "none"; desktopManager.gnome3.enable = true; windowManager.default = "i3"; windowManager.i3.enable = true; }; gives you gnome3 as default?
<{^_^}> [nixpkgs] @Synthetica9 opened pull request #39917 → gcc7: Removed java as a target language → https://git.io/vpghr
<xnaveira[m]> yes, not only that but i can't choose sesssion
<symphorien> If you use lightdm, it is stateful and remembers what you chose last time you logged in
<xnaveira[m]> let me recheck though
<symphorien> So log out, choose none+i3, log in and it should default to i3 from now on
<xnaveira[m]> yeah but i can't choose at the login screen
seanparsons has joined #nixos
<xnaveira[m]> no mouse
<sphalerit> which display manager are you using? If it's slim, the default, you can switch sessions using F1/F
<xnaveira[m]> and if i enable gdm then i can only enter username
<sphalerit> 2
freeman42x]NixOS has quit [Ping timeout: 240 seconds]
<zeronineseven> Hi! Newbie here. Could somebody please explain how can I disable default systemd mount (e.g sys-kernel-debug) via configuration.nix?
silver has joined #nixos
<sphalerite> zeronineseven: systemd.mounts."sys-kernel-debug".enable = false; I think
<xnaveira[m]> what you mean Linus Ctrl-alt-F2?
<sphalerite> xnaveira[m]: no, just pressing the F1 and F2 keys on the keyboard
<sphalerite> that should cycle through the session options in slim.
<xnaveira[m]> that does nothing
jD91mZM2 has quit [Quit: WeeChat 2.0]
<xnaveira[m]> ahhh
<xnaveira[m]> i see
<xnaveira[m]> sory
<sphalerite> Assuming you are using slim that is. What does the login screen look like?
<xnaveira[m]> right, i'll test that
<xnaveira[m]> wel ii was using it
<xnaveira[m]> i guess you mean the one with nixos logo
<xnaveira[m]> but then i switched to gdm
<sphalerite> yep that's the one
<xnaveira[m]> but i didnt know about the f1/f2 stuff
<xnaveira[m]> let me try that
<xnaveira[m]> thx
<sphalerite> yeah it's not obvious…
jD91mZM2 has joined #nixos
<jD91mZM2> LightDM doesn't seem to read my .profile? Nor does it unlock my GNOME keyring.
<zeronineseven> sphalerite: "nixos-rebuild switch" yields "The option value `systemd.mounts' in `/etc/nixos/configuration.nix' is not of type `list of submodules'."
<sphalerite> zeronineseven: oh pff systemd.mounts is different from all the other systemd.* options. Try systemd.mounts = [{where = "/sys/kernel/debug"; enable = false;}];
jrolfs has joined #nixos
pie__ has quit [Ping timeout: 260 seconds]
<xnaveira[m]> using k=lightdm or f1/f2 in slim solve the problem, thank you guys
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/7a37ed59a40 (from 86 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
fendor has joined #nixos
periklis has joined #nixos
<zeronineseven> sphalerite: that worked! thx!
jrolfs has quit [Ping timeout: 248 seconds]
<__monty__> jD91mZM2: Don't you mean .xprofile?
hakujin has joined #nixos
<jD91mZM2> No, I mean ~/.profile. Pretty much every single other system sources it for environment variables when you're logging in... But LightDM on NixOS does not seem to do that.
<jD91mZM2> I did, however, find that there's an option for unlocking the GNOME keyring. I'm going to try that. I'll be right back
jD91mZM2 has quit [Quit: WeeChat 2.0]
blankhart has joined #nixos
logzet has joined #nixos
fendor has quit [Remote host closed the connection]
hakujin has quit [Ping timeout: 240 seconds]
jD91mZM2 has joined #nixos
<jD91mZM2> Okay, security.pam.services.lightdm.enableGnomeKeyring works
andreabedini has joined #nixos
armbed has quit [Ping timeout: 260 seconds]
lord| has quit [Ping timeout: 264 seconds]
MercurialAlchemi has quit [Ping timeout: 240 seconds]
alex`` has quit [Quit: WeeChat 2.1]
<__monty__> jD91mZM2: That's not a general rule, many shells source it but not all.
kiloreux has quit [Ping timeout: 260 seconds]
alex`` has joined #nixos
<jD91mZM2> It's not a general rule, but I've never really seen a system which doesn't until now
alex`` is now known as alexherbo2
pie__ has joined #nixos
fendor has joined #nixos
alexherbo2 is now known as alex``
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/b30c6d79503 (from 71 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<zybell_> mixos is different. *All* sorts of different ;-)
srhb has quit [Quit: Quit]
<jD91mZM2> Would it be sane to use nixos.vimPlugins over vim-plug?
<zybell_> *NixOS
<sphalerite> jD91mZM2: yes!
<jD91mZM2> What do I do if a plugin is missing?
<zybell_> install
<waleee> jD91mZM2: the downside is that lazy loading configuration is more verbose
<sphalerite> jD91mZM2: reasons you might want to: updating in lockstep with the rest of your user or system environment, so you get the rollbacks and stuff as well. Reasons you might not want to: plugin availability, update frequency
<sphalerite> jD91mZM2: but you can add your own plugins, just a sec
<jD91mZM2> Oh, I can just make a PR to vim-plugin-names?
<sphalerite> https://github.com/lheckemann/dotfiles/blob/master/neovim.nix here's how I configured my neovim (although I primarily use emacs now)
joehh has joined #nixos
<{^_^}> [nix] @edolstra pushed 4 commits to 2.0-maintenance: https://git.io/vp2fC
<{^_^}> → 3c6dd397 by @danbst: nix-collect-garbage: little doc fix
<{^_^}> → 1a67d415 by @edolstra: Fix bzip2 compression of files > 4 GiB
<{^_^}> → 8eceb32e by @edolstra: LocalStore::addValidPath(): Throw error when the CA assertion is wrong
h30[m] has left #nixos ["User left"]
blankhart has quit [Quit: WeeChat 1.9.1]
pie__ has quit [Ping timeout: 276 seconds]
<jD91mZM2> ooooo that's pretty cool
wangoe has quit [Quit: WeeChat 1.9.1]
<sphalerite> yeah you can also add it to vim-plugin-names and regenerate vim-plugins.nix but the second bit takes aaaaaages
<{^_^}> [nixpkgs] @pmiddend opened pull request #39919 → ledger: enable python command → https://git.io/vp2fB
<sphalerite> easier to just add them yourself like I did
<jD91mZM2> Does that make LanguageClient-neovim work out of the box? (Currently it doesn't because the precompiled binary doesn't work on NixOS)
peacememories has joined #nixos
olto has joined #nixos
<zybell_> precompiled binarys *never* work out of the box on nix!
alexteves_ has joined #nixos
alexteves__ has joined #nixos
lord| has joined #nixos
<{^_^}> [nixpkgs] @matthiasbeyer opened pull request #39920 → cointop: init at 2018-05-03 → https://git.io/vp2fP
srhb has joined #nixos
kiloreux has joined #nixos
ijsicle has joined #nixos
alexteves has quit [Ping timeout: 248 seconds]
alexteves has joined #nixos
Wharncliffe has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @jD91mZM2 opened pull request #39921 → Add dns=none option to NetworkManager → https://git.io/vp2fH
<jD91mZM2> srhb
<jD91mZM2> I did a thing!
<srhb> jD91mZM2: Oh yay, a thing!
<sphalerite> jD91mZM2: I'm guessing probably not, but it's worth trying I guess
alexteves_ has quit [Ping timeout: 276 seconds]
alexteves__ has quit [Ping timeout: 240 seconds]
deepfire has quit [Ping timeout: 240 seconds]
pikajude has quit [Ping timeout: 264 seconds]
hakujin has joined #nixos
smichel_ has joined #nixos
<waleee> jD91mZM2: the precompiled binary probably fails on the libc-location, you could try patching it: https://nixos.wiki/wiki/Packaging/Binaries
<jD91mZM2> I mean to be honest I don't actually want to use the precompiled binary but rather compile it from source
<sphalerite> that's the spirit! :D
nD5Xjz has joined #nixos
alexteves has quit [Ping timeout: 240 seconds]
smichel has quit [Ping timeout: 260 seconds]
smichel_ is now known as smichel
<jD91mZM2> I'm making a shell.nix currently. I don't want it to auto-fetch my stuff, but rather just put me in the right environment. But there's an assertion on buildRustPackage that requires a cargoSha256 entry. What do I do?
pikajude has joined #nixos
<sphalerite> jD91mZM2: it looks like the languageclient stuff is already set up in nixpkgs to build from source so you should be good to go
hakujin has quit [Ping timeout: 248 seconds]
<jD91mZM2> oo ok
<jD91mZM2> Should my neovim plugins really be set system wide though?
<jD91mZM2> Don't mind me I'm just nervous. I'll go ahead and switch.
<sphalerite> jD91mZM2: I think for building rust stuff with nix, carnix is all the rage. Last time I tried it it wasn't great fun though, I think it depends mostly on how simple the dependencies are. If the whole dependency closure is release versions of (pure-rust||widely-used) crates, carnix should work well AFAIK
wchresta_ has joined #nixos
<sphalerite> jD91mZM2: you don't need to do it system-wide, you can have it installed in your user profile as well
deepfire has joined #nixos
<jD91mZM2> Oh?
<sphalerite> yeah, like for my neovim.nix as linked above you can do `nix-env -f neovim.nix --arg pkgs 'import <nixpkgs> {}' -i`
srhb has quit [Read error: Connection reset by peer]
kiloreux has quit [Ping timeout: 276 seconds]
andreabe_ has joined #nixos
hiroshi has joined #nixos
toby1851 has joined #nixos
iyzsong has joined #nixos
acarrico has joined #nixos
andreabedini has quit [Ping timeout: 276 seconds]
srhb has joined #nixos
srhb has quit [Client Quit]
srhb has joined #nixos
waleee has quit [Quit: WeeChat 2.1]
nD5Xjz has quit [Ping timeout: 240 seconds]
lord| has quit [Quit: WeeChat 2.1]
kiloreux has joined #nixos
darlan has joined #nixos
darlan has quit [Client Quit]
winem__ has joined #nixos
winem_ has quit [Ping timeout: 276 seconds]
Fare has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to release-18.03 « cabal2nix: update to version 2.9.2 »: https://git.io/vp2Tp
<srhb> Taneb: ^
<{^_^}> [nixpkgs] @xeji merged pull request #39897 → dbus: 1.12.6 -> 1.12.8 → https://git.io/vpgs0
<{^_^}> [nixpkgs] @xeji pushed 2 commits to staging: https://git.io/vp2kk
<{^_^}> → bf762d13 by R. RyanTM: dbus: 1.12.6 -> 1.12.8
NinjaTrappeur has quit [Quit: WeeChat 2.1]
<{^_^}> → edc9258e by @xeji: Merge pull request #39897 from r-ryantm/auto-update/dbus
Ariakenom has quit [Ping timeout: 240 seconds]
ericsagnes has quit [Ping timeout: 256 seconds]
wchresta_ has quit [Ping timeout: 240 seconds]
<Taneb> srhb: \o/ (I just did that pose in real life)
<srhb> Taneb: Yay!
<{^_^}> [nixpkgs] @peti pushed to release-18.03 « all-cabal-hashes: update data to Hackage at 2018-05-03T12:04:48Z »: https://git.io/vp2Ik
NinjaTrappeur has joined #nixos
<{^_^}> [nix] @edolstra pushed to master « Don't set a CA assertion for paths with references »: https://git.io/vp2I8
<jD91mZM2> sphalerite: What exactly is `pkgs`? It keeps throwing me "error: The option `pkgs' defined in `/etc/nixos/neovim.nix' does not exist."
<{^_^}> [nix] @edolstra pushed to 2.0-maintenance « Don't set a CA assertion for paths with references »: https://git.io/vp2IR
<sphalerite> jD91mZM2: this isn't a configuration module, it's a function that returns a package
<{^_^}> [nixpkgs] @peti pushed 12 commits to master: https://git.io/vp2Ia
<{^_^}> → afea46bb by @peti: ghc-8.4.1: drop obsolete version, we have 8.4.2 now
<{^_^}> → b33d1d64 by @peti: hackage-packages.nix: automatic Haskell package set update
<{^_^}> → 92256a94 by @peti: haskell-tar: drop obsolete override for ghc-8.4.x
<sphalerite> jD91mZM2: you can use it in your system configuration by putting (import ./neovim.nix {inherit pkgs;}) in your systemPackages
freusque has joined #nixos
<jD91mZM2> Oh so your neovim configuration creates a neovim wrapper package that includes a config?
yegortimoshenko has quit [Ping timeout: 260 seconds]
jtojnar has quit [Ping timeout: 268 seconds]
<jD91mZM2> I think I might just stay with vim-plug then... Seems easier :P
ericsagnes has joined #nixos
freusque has quit [Client Quit]
wchresta_ has joined #nixos
<jD91mZM2> Related to that - running a newly compiled program fails. Just "bash: bin/languageclient: No such file or directory"
<jD91mZM2> Running it with strace gives me execve("bin/languageclient", ["bin/languageclient"], 0x7ffd3e67c5b0 /* 169 vars */) = -1 ENOENT (No such file or directory)
freusque has joined #nixos
cmcdragonkai has joined #nixos
andreabe_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cmcdragonkai> Does anybody know how to integrate "switch users" into XMonad? Similar to how in KDE Plasma you can switch users and it will go back to SDDM.
<{^_^}> [nixpkgs] @florianjacob opened pull request #39922 → matrix-synapse: 0.27.4 -> 0.28.1 → https://git.io/vp2LE
Izorkin has joined #nixos
<jD91mZM2> Just Ctrl+Shift+Q cmcdragonkai
wchresta_ has quit [Remote host closed the connection]
<cmcdragonkai> that logs me out though
<jD91mZM2> If you exit XMonad it'll go back to the login screen, exactly
wchresta_ has joined #nixos
<cmcdragonkai> jD91mZM2: but what if i want to stay logged in
<cmcdragonkai> jD91mZM2: KDE plasma5 allows "saving the session"
<jD91mZM2> Ohhhh
freusque has quit [Client Quit]
<zybell_> cmcdragonkai:You need a sessionmanager. Choose one. There are many.
Izorkin_ has quit [Ping timeout: 260 seconds]
<sphalerite> cmcdragonkai: it depends on your display manager
<sphalerite> cmcdragonkai: for lightdm I think there's dm-tool, I use sddm myself
mattyu has joined #nixos
<sphalerite> cmcdragonkai: https://github.com/lheckemann/dotfiles/blob/master/graphical.nix#L68-L70 this should work for any display manager that supports the D-Bus interface
<sphalerite> in fact, dm-tool from lightdm works with sddm too.
<sphalerite> I think this may not work with slim, but it should definitely work with lightdm, gdm, and sddm
<cmcdragonkai> sphalerite: Does that lock the screen again?
<cmcdragonkai> I'm using XMonad and sddm.
<cmcdragonkai> If I run that, what happens to my current session, and how would I login back to my saved sesison?
NinjaTrappeur has quit [Quit: WeeChat 2.1]
MercurialAlchemi has joined #nixos
<sphalerite> no, it doesn't lock the screen. You switch back to your existing one with the appropriate keystroke for switching to the tty (usually ctrl-alt-f7), or by logging in as the already-logged-in user
NinjaTrappeur has joined #nixos
freusque has joined #nixos
jtojnar has joined #nixos
yegortimoshenko has joined #nixos
zeronineseven has quit [Quit: Konversation terminated!]
hakujin has joined #nixos
<cmcdragonkai> Another problem, just installed NixOS, and rebooted. After rebooting `ip link` doesn't show the wireless interface anymore.
<cmcdragonkai> What could be the reason for this?
<goibhniu> maybe it needs firmware?
<cmcdragonkai> how do I know what firmware it needs?
<cmcdragonkai> it worked when I booted from USB
freusque has quit [Client Quit]
andreabedini has joined #nixos
<goibhniu> you can search for the chip name to check
<{^_^}> [nixpkgs] @globin pushed commit from R. RyanTM to master « opendht: 1.7.0 -> 1.7.1 »: https://git.io/vp2qt
<cmcdragonkai> I had `enableAllFirmware = true` before, but this resulted in some upstream URL error getting broadcom drivers or something.
<{^_^}> [nixpkgs] @globin merged pull request #39752 → opendht: 1.7.0 -> 1.7.1 → https://git.io/vp0IP
<cmcdragonkai> So I switched it off.
<{^_^}> [nixpkgs] @globin merged pull request #39747 → paml: 4.9g -> 4.9h → https://git.io/vp0ee
<{^_^}> [nixpkgs] @globin pushed commit from R. RyanTM to master « paml: 4.9g -> 4.9h »: https://git.io/vp2qs
hakujin has quit [Ping timeout: 255 seconds]
<sphalerite> cmcdragonkai: you might need enableRedistributableFirmware
<sphalerite> cmcdragonkai: check the journal to see if it complains about any missing firmware.
<cmcdragonkai> there's an error asking about iwlwifi-8265-22 to iwlwifi-8265-34
<cmcdragonkai> no suitable firmware found
<{^_^}> [nixpkgs] @Profpatsch closed pull request #39917 → gcc7: Removed java as a target language → https://git.io/vpghr
<{^_^}> [nixpkgs] @hlolli opened pull request #39923 → glogg: init at 1.1.4 → https://git.io/vp2m4
<cmcdragonkai> Oh no git clone https://github.com/NixOS/nixpkgs.git results in some inflate error.
xAFFE has left #nixos ["Error from remote client"]
<{^_^}> [nixpkgs] @Synthetica9 opened pull request #39924 → gcc7: Removed java as a target language → https://git.io/vp2mD
jperras has joined #nixos
peacememories has quit [Quit: Textual IRC Client: www.textualapp.com]
coot has quit [Quit: coot]
mekeor has joined #nixos
nschoe has joined #nixos
MaCXyLo has joined #nixos
hakujin has joined #nixos
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/f5f0b6850af (from 48 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<MaCXyLo> hi, howto delete a boot entry / system profile from the bootloader (grub)? i created some with nixos-rebuild switch -p test.
<{^_^}> [nixpkgs] @Assassinkin opened pull request #39925 → Adding Zabbix agent 3.4 packages → https://git.io/vp2OE
<nschoe> Hi everyone, how can I check if there is a hydra built binary for a given package (kicad in my case). Because when I try to install kicad, it compiles, but fails. I'd like to check if hydra has the same error. Is this possible?
<srhb> nschoe: That's usually a sign that hydra _does_ have the same error.
<srhb> nix path-info nixpkgs.kicad --store https://cache.nixos.org should do it
<nschoe> srhb, I thought so, but the end error message is https://pastebin.com/EL2zCDaD but I don't think this is acautlly related to disk space, so I wante to double check ^^
hakujin has quit [Ping timeout: 260 seconds]
freusque has joined #nixos
<nschoe> srhb, this gives me "error: path '/nix/store/x8agj7jfmhl766miacqri2iw0ibxlxw1-kicad-4.0.7' is not valid".
<srhb> So Hydra does not have it in cache.
freusque has quit [Client Quit]
<srhb> Or well, cache.nixos.org does not
toby1851 has quit [Remote host closed the connection]
ckauhaus has quit [Quit: Leaving.]
fendor has quit [Ping timeout: 265 seconds]
jensens has quit [Remote host closed the connection]
daveo has joined #nixos
freusque has joined #nixos
<rizary> anyone use sass compiler? i got `Errno::EACCES: Permission denied @ rb_sysopen - /nix/store/b2id4wdwlsxakz6kk5dr8jwxzx10l8zc-app/static/index.css
<rizary> `
freusque has quit [Client Quit]
<rizary> when try to build derivation
freeman42x]NixOS has joined #nixos
peacememories has joined #nixos
<rizary> i put it in the buildPhase like this: `sass --update -C --force --sourcemap=none --stop-on-error -t compressed $src/static/stylesheet/main.sass:$src/static/index.css`
ajp has quit [Quit: No Ping reply in 180 seconds.]
zybell_ has quit [Read error: Connection reset by peer]
<nschoe> okay. But if it doesn't have it in cache, it means it could not build it, right?
<nschoe> There's not other reason?
<{^_^}> [nixpkgs] @Ma27 opened pull request #39926 → python3Packages.yowsup: 2.5.2 -> 2.5.7 → https://git.io/vp23Z
ajp has joined #nixos
freusque has joined #nixos
freusque has quit [Client Quit]
freusque has joined #nixos
<srhb> nschoe: It hasn't been built, either because it doesn't get built, it hasn't been built yet, or failed building.
<srhb> nschoe: To see which, you have to look at hydra itself.
reinzelmann has quit [Quit: Leaving]
<cmcdragonkai> How do I get the iwlwifi firmware required?
<cmcdragonkai> Also has anybody experienced git clone failure on nixpkgs repo?
<cmcdragonkai> I git cloned on one machine and I get inflate errors, the other machine doesn't show this
freusque has quit [Client Quit]
<srhb> nschoe: The plot thickens: https://hydra.nixos.org/build/73449024
humanoyd has joined #nixos
freusque has joined #nixos
leat has quit [Ping timeout: 264 seconds]
<sphalerite> MaCXyLo: delete the profile generations, nix-env -p /nix/var/nix/profiles/test --delete-generations {1..n}
asuryawanshi has quit [Ping timeout: 260 seconds]
<sphalerite> MaCXyLo: it probably won't let you delete the active one, I think for that you'll need to do rm /nix/var/nix/profiles/test
<jD91mZM2> Does nix have a syntax for inheriting all the things?
<makefu> system profile should reside in '/nix/var/nix/profiles/system-profiles/test'
<sphalerite> MaCXyLo: that only removes the generations, you'll need to do nixos-rebuild boot again after that to regenerate the boot menu without the extra profile
<jD91mZM2> If I have a package which requires stdenv, pkgs, whatever, is there a way to just call it with (import ./package.nix {inherit all the things;})?
<sphalerite> oh yeah,add system-profiles into those paths, thanks makefu :D
<nschoe> srhb, OMG
<nschoe> srhb, oh wait this is on unstable
<sphalerite> jD91mZM2: sort of. In the case where it's stdenv and other stuff that's at nixpkgs's top level, you'd use callPackage
<srhb> nschoe: But I'm not. So disregard everything I said until we can figure it out :P
<nschoe> srhb, what do you mean?
<srhb> nschoe: I'm not on unstable, and I do not see kicad in cache.
<{^_^}> [nixpkgs] @xeji merged pull request #39920 → cointop: init at 2018-05-03 → https://git.io/vp2fP
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vp2GJ
<{^_^}> → 7c644a51 by @matthiasbeyer: cointop: init at 2018-05-03
<{^_^}> → d042b53f by @xeji: Merge pull request #39920 from matthiasbeyer/add-cointop
<srhb> nschoe: Oh! I understood what you said now.
orivej has quit [Ping timeout: 268 seconds]
<srhb> nschoe: aha. meta. hydraPlatforms = []; # 'output limit exceeded' error on hydra
<srhb> nschoe: So it's disabled entirely on Hydra
<srhb> The world makes sense again.
<nschoe> srhb, hum, can you ELI5 it for me?
<sphalerite> jD91mZM2: as for a builtin that returns the current scope as a set, I don't know of one.
<srhb> nschoe: So, at some point there appears to have been a permanent error on the hydra builds (output limit exceeded) so the build was disabled intely on Hydra by setting hydraPlatforms to empty list (as opposed to say, linux, darwin, ...)
<nschoe> srhb, okay but where is this "hydraPlatforms = []" set?
<jD91mZM2> sphalerite: Nice. Where can I import this callPackage?
<sphalerite> jD91mZM2: it's in pkgs
<nschoe> I don't see if in kicad's default.nix.
<MaCXyLo> sphalerite: thanks! that works.
<srhb> nschoe: In the meta section of pkgs/applications/science/electronics/kicad/default.nix
<jD91mZM2> Yay, thanks! \o/
alexteves has joined #nixos
<{^_^}> [nixpkgs] @globin merged pull request #39754 → liquibase: 3.6.0 -> 3.6.1 → https://git.io/vp0LN
<{^_^}> [nixpkgs] @globin pushed commit from R. RyanTM to master « liquibase: 3.6.0 -> 3.6.1 »: https://git.io/vp2ZL
<nschoe> srhb, OMG I skipped it!
<nschoe> Thanks
<{^_^}> [nixpkgs] @globin merged pull request #39781 → di: 4.45 -> 4.46 → https://git.io/vp04Q
<{^_^}> [nixpkgs] @globin pushed commit from R. RyanTM to master « di: 4.45 -> 4.46 »: https://git.io/vp2Z3
<nschoe> (but I did not know what that meant anyway).
<nschoe> So someone apparently gave up? ^^
<sphalerite> jD91mZM2: oh yeah, callPackage takes an additional argument which is overrides. So typically you'll want to pass the empty set after the path as well
iqubic has quit [Remote host closed the connection]
<nschoe> srhb, I don't suppose I can somehow ask hydra to try and build noe pakcage for me, though? ^^
<jD91mZM2> Yup, got that
peacememories has quit [Quit: Textual IRC Client: www.textualapp.com]
<{^_^}> [nixpkgs] @globin merged pull request #39799 → apktool: 2.3.2 -> 2.3.3 → https://git.io/vp0Kr
<{^_^}> [nixpkgs] @globin pushed commit from R. RyanTM to master « apktool: 2.3.2 -> 2.3.3 »: https://git.io/vp2Z0
<{^_^}> [nixpkgs] @globin merged pull request #39800 → arangodb: 3.3.7 -> 3.3.8 → https://git.io/vp0Pk
<{^_^}> [nixpkgs] @globin pushed commit from R. RyanTM to master « arangodb: 3.3.7 -> 3.3.8 »: https://git.io/vp2ZV
zybell_ has joined #nixos
freusque has quit [Quit: WeeChat 2.0]
<{^_^}> [nixpkgs] @globin merged pull request #39875 → pdfgrep: 2.0.1 -> 2.1.0 → https://git.io/vpzDT
<{^_^}> [nixpkgs] @globin pushed commit from R. RyanTM to master « pdfgrep: 2.0.1 -> 2.1.0 »: https://git.io/vp2ZX
freusque has joined #nixos
freusque has quit [Client Quit]
alexteves has quit [Ping timeout: 240 seconds]
MaCXyLo has quit [Quit: Page closed]
winem__ has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @manveru opened pull request #39928 → Ruby: 2.3.6 -> 2.3.7, 2.4.3 -> 2.4.4, 2.5.0 -> 2.5.1 → https://git.io/vp2nm
wchresta_ has quit [Ping timeout: 264 seconds]
leat has joined #nixos
erasmas has joined #nixos
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Izorkin_ has joined #nixos
NinjaTrappeur has quit [Quit: WeeChat 2.1]
Izorkin has quit [Ping timeout: 265 seconds]
MaCXyLo has joined #nixos
<{^_^}> [nixpkgs] @edolstra merged pull request #39904 → aws-sdk-cpp: 1.4.33 -> 1.4.40 → https://git.io/vpgRA
<{^_^}> [nixpkgs] @edolstra pushed 2 commits to master: https://git.io/vp2cW
<{^_^}> → abc001d4 by @edolstra: Merge pull request #39904 from r-ryantm/auto-update/aws-sdk-cpp
<{^_^}> → aafe5fb2 by R. RyanTM: aws-sdk-cpp: 1.4.33 -> 1.4.40
NinjaTrappeur has joined #nixos
blankhart has joined #nixos
<MaCXyLo> i'm using mate as desktop environment on nixos. several virtual folders doesn't work; e.g. computer, trash and network. any idea howto fix this?
<{^_^}> [nixpkgs] @globin merged pull request #39905 → alsaUtils: 1.1.5 -> 1.1.6 → https://git.io/vpg0x
<{^_^}> [nixpkgs] @globin pushed commit from R. RyanTM to master « alsaUtils: 1.1.5 -> 1.1.6 »: https://git.io/vp2c2
freusque has joined #nixos
Myrl-saki has quit [Remote host closed the connection]
coot has joined #nixos
deepfire has quit [Ping timeout: 276 seconds]
freusque has quit [Client Quit]
freusque has joined #nixos
boothead has joined #nixos
Slabity has joined #nixos
<boothead> Hi folks - I have a borked xps 15 that I'm trying to recover, but I think I've borked it more :-( Can anyone help?
<hodapp> what's the nature of its borkedness?
<Slabity> I have `boot.tmpOnTmpfs = true;` set, but I can't find any option to adjust the size of it. Does anyone know what option may help me?
<boothead> Can I run the install disk to rescue a system with a broken (or deleted) /nix/store?
<Slabity> Right now it says it's 3.8G, but I'd like to bump it to 6G
<{^_^}> [nix] @peti merged pull request #2132 → docs: mention source of env variables used by `impureEnvVars`. → https://git.io/vpzNp
<{^_^}> [nix] @peti pushed 2 commits to master: https://git.io/vp2CB
<{^_^}> → 5ba63953 by @gleber: docs: mention source of env variables used by `impureEnvVars`.
<{^_^}> → f02eadfd by @peti: Merge pull request #2132 from gleber/docs-impureEnvVars-env-source
deepfire has joined #nixos
coot has quit [Quit: coot]
muzzy__ has joined #nixos
muzzy_ has joined #nixos
muzzy has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #39929 → john: build with recent gcc → https://git.io/vp2lB
<boothead> nixos-install is failing because it can't find something in the store it's looking for called <hash>-nixos-system-xps15-10.03.13292....drv
<boothead> xps15 is the hostname of the existing machine that I'm trying to reinstall nixos o
<boothead> *on
<{^_^}> [nixpkgs] @globin merged pull request #39753 → makeself: 2.3.1 -> 2.4.0 → https://git.io/vp0Lq
<{^_^}> [nixpkgs] @globin pushed commit from R. RyanTM to master « makeself: 2.3.1 -> 2.4.0 »: https://git.io/vp2lh
<Slabity> boothead: Can you pastebin the error it's spitting out?
<logzet> lol, du -hs /nix/store took more than 1 hour and reported 292GB, time to collect some garbage, I guess
toby1851 has joined #nixos
<sphalerite> boothead: try renaming /mnt/nix and rerunning nixos-install
Myrl-saki has joined #nixos
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
joehh has quit [Ping timeout: 240 seconds]
<boothead> sphalerite: that was a good steer - I've removed /mnt/nix/var and it seems to be working now :-)
<boothead> thank you!
<symphorien> logzet: (self advertising) I wrote this and it should be faster https://github.com/symphorien/nix-du
boothead has quit [Quit: Page closed]
<sphalerite> symphorien: why would it be faster?
<symphorien> because it only queries the nix db
<symphorien> nix already knows all the sizes
<symphorien> I don't do any stat syscall
<symphorien> (that's why it overlooks optmized stores, it would require to stat all /nix/store)
Myrl-saki has quit [Remote host closed the connection]
warbo has quit [Ping timeout: 264 seconds]
<symphorien> or at least /nix/store/.links
<{^_^}> [nixpkgs] @peterhoeg merged pull request #39860 → qscintilla: revert bump to fix the build → https://git.io/vpzBb
<{^_^}> [nixpkgs] @peterhoeg pushed 3 commits to master: https://git.io/vp24E
<{^_^}> → f5e2cfc7 by @Ma27: Revert "libsForQt5.qscintilla: 2.9.4 -> 2.10.3"
<{^_^}> → be153f63 by @Ma27: libsForQt5.qscintilla: don't apply darwin patch on non-darwin systems
<{^_^}> → 773fe1fe by @peterhoeg: Merge pull request #39860 from Ma27/fix-qscintilla
<sphalerite> ah right
<jD91mZM2> How would I contribute a package to nixpkgs? I cloned the repo locally and I can query packages from it, but no new packages are shown.
<sphalerite> symphorien: but then it doesn't actually tell you anything about how much space the store uses or how much you could free by gcing.
Slabity has quit [Remote host closed the connection]
<sphalerite> jD91mZM2: you also need to call it, typically in pkgs/top-level/all-packages.nix
<jD91mZM2> ah
<symphorien> it you don't optimize the store, the information is reliable
ryantrinkle has joined #nixos
<timokau[m]> jD91mZM2: You need to add it to the `pkgs/top-level/all-packages.nix` file
jensens has joined #nixos
Myrl-saki has joined #nixos
Myrl-saki has quit [Remote host closed the connection]
<symphorien> (it it the size of the corresponding nars, but the error is the same between apparent size and real size of files)
<sphalerite> ah right
<sphalerite> oh but it only displays live paths
<sphalerite> why is that?
dbmikus has joined #nixos
<symphorien> it is a design decision
nick_l has joined #nixos
<symphorien> I could display everything
<nick_l> How can I do something like let a = "arg"; in import ./${a}.nix?
<nick_l> I.e., I want to do environment dependent configuration.
<sphalerite> nick_l: import (./ + "${a}.nix")
<nick_l> sphalerite: thanks
Myrl-saki has joined #nixos
<nick_l> sphalerite: let a="arg"; in import (./ + "${a}.nix") # this actually doesn't work.
<nick_l> (error: syntax error, unexpected '.', at (string):1:25)
<sphalerite> nick_l: oops, ./. rather than ./
<nick_l> sphalerite: excellent
<sphalerite> oh and you might need an extra /
<daveo> having trouble getting my hdmi working on my laptop
<Myrl-saki> srhb: Thanks. We finally got xserver installed. :)
<{^_^}> [nixpkgs] @jD91mZM2 opened pull request #39930 → Add z - jump around → https://git.io/vp2R8
hakujin has joined #nixos
muzzy_ has quit [Ping timeout: 240 seconds]
muzzy has quit [Ping timeout: 240 seconds]
muzzy__ has quit [Ping timeout: 240 seconds]
rihards has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #39911 → gnupg: 2.2.6 -> 2.2.7 → https://git.io/vpgDT
<{^_^}> [nixpkgs] @xeji pushed 2 commits to staging: https://git.io/vp20v
<{^_^}> → 130aee56 by @lsix: gnupg: 2.2.6 -> 2.2.7
<{^_^}> → 03948901 by @xeji: Merge pull request #39911 from lsix/gnupg-2.2.7
hakujin has quit [Ping timeout: 264 seconds]
<nick_l> Anyone with an idea where this might come from? No file name is displayed(!). error: undefined variable 'foo' at (string):1:17
<clever> nick_l: what command produced that error?
<steveeJ> binutils/ld can't find -lz when it's called by rustc, which is installed by rustup. has anyone come around this?
<nick_l> clever: nixops deploy -d aws-foo-staging --allow-reboot --show-trace
<logzet> symphorien: It runs a lot faster indeed
<clever> nick_l: one min
<nick_l> clever: the "undefined variable 'foo'" from the original message is actually 'staging'.
<clever> [clever@system76:~]$ egrep -r --color 'foo|undefined variable' $(nix-store -qR $(type -P nixops))
<clever> nick_l: this will search the entire closure of nixops for "foo" or "undefined variable"
<logzet> symphorien: Do I get the size of all live files if I add all nodes direct below the GC-roots?
<clever> nick_l: every line of code that nixops can potentially reference
<symphorien> logzet: normally yes
cryp2nomicon has joined #nixos
<symphorien> unless you use nix-store --optimise
MercurialAlchemi has quit [Ping timeout: 255 seconds]
<symphorien> ah no sorry, I misread, all nodes in the graph, not just direct children of roots
h30 has joined #nixos
<{^_^}> [nixpkgs] @catern opened pull request #39931 → pythonPackages.supervise_api: 0.4.0 -> 0.5.0 → https://git.io/vp2ul
<steveeJ> Mic92_: do we need to provide libraries for rustup within the rustup expression?
<nick_l> clever: nothing there of interest.
wchresta_ has joined #nixos
kiloreux has quit [Ping timeout: 264 seconds]
<{^_^}> [nixops] @boxyoman opened pull request #941 → Fixed a bug creating route53 record sets → https://git.io/vp2ui
hakujin has joined #nixos
katyucha has quit [Ping timeout: 264 seconds]
guesi has joined #nixos
jrolfs has joined #nixos
hakujin has quit [Ping timeout: 268 seconds]
<jD91mZM2> In the "maintainers" field of nixpkgs meta, is it the packager's name or the developer's name?
<guesi> hi! I installed nixos with a luks setup basically following the instructions from (https://gist.github.com/martijnvermaat/76f2e24d0239470dd71050358b4d5134). The installation was successfull. However when booting I'm getting 'No boot device found.' mhh, does anyone have a suggestion for me?
Fare has quit [Ping timeout: 248 seconds]
Tucky has quit [Remote host closed the connection]
<logzet> jD91mZM2: packagers name usually
<logzet> symphorien: It seems that the half of my store is dead
<logzet> ^^
<symphorien> well I use nix-shell a lot, and all what it uses remais dead. depending on how you use nix, this could be plausible
jrolfs has quit [Ping timeout: 256 seconds]
Ariakenom has joined #nixos
kiloreux has joined #nixos
<logzet> I'm also using nix-shell a lot, I don't remember running nix-collect-garbage on this system and I experimented with modifying xkeyboardconfig some time ago, that triggers a LOT of rebuilds
<logzet> So this seems completely plausible
<{^_^}> [nixpkgs] @rbvermaa merged pull request #39654 → GCE: pull the ssh host keys from the metadata service as expected by NixOps. → https://git.io/vp4aw
<{^_^}> [nixpkgs] @rbvermaa pushed 4 commits to master: https://git.io/vp2gH
<{^_^}> → 3b8c7424 by @AmineChikhaoui: pull the ssh host keys from the metadata service as expected by NixOps.
<{^_^}> → f514a689 by @AmineChikhaoui: barf if pulling the ssh host keys fails
<{^_^}> → 4a86f8c9 by @AmineChikhaoui: remove the entire temporary directory
<{^_^}> [nixpkgs] @rbvermaa pushed 3 commits to release-18.03: https://git.io/vp2gh
<{^_^}> → 3a48839b by @AmineChikhaoui: remove the entire temporary directory
<{^_^}> → 01db5220 by @AmineChikhaoui: pull the ssh host keys from the metadata service as expected by NixOps. Issues: #38623 https://github.com/NixOS/nixops/i
<{^_^}> → 3a2ad3e4 by @AmineChikhaoui: barf if pulling the ssh host keys fails
wchresta_ has quit [Ping timeout: 268 seconds]
muzzy has joined #nixos
muzzy_ has joined #nixos
muzzy__ has joined #nixos
hakujin has joined #nixos
moriarty has joined #nixos
<Taneb> Hmm, does there exist any linter or styler for .nix files?
<moriarty> is nixos good for cryptocurrencies?
drakonis has joined #nixos
<simpson> moriarty: I think that NixOS is a neutral force when it comes to acting on the cryptocurrency market, but I'm not an expert.
<simpson> Taneb: My vim has linting for Nix but I'm not sure how I set it up.
<drakonis> oh no, cryptocoin talk
maingo has joined #nixos
<simpson> Taneb: I use Syntastic, and the module's got some comments indicating how it works: https://github.com/vim-syntastic/syntastic/blob/master/syntax_checkers/nix/nix.vim
<etu> moriarty: I've seen derivations for several kinds of coins. I don't know how well maintained any of them are. But I think they should work.
toby1851 has quit [Remote host closed the connection]
hakujin has quit [Ping timeout: 264 seconds]
<etu> jtojnar: I'm trying to package the gsconnect gnome extension. This almost works: https://ptpb.pw/nBsP/nix But I get errors like this: "Gio.DBusError: Error calling StartServiceByName for org.gnome.Shell.Extensions.GSConnect: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.Shell.Extensions.GSConnect exited with status 127"
<{^_^}> [nixpkgs] @peterhoeg opened pull request #39932 → qmlbox2d and gcompris: do not fix Qt version to 5.9 → https://git.io/vp2at
<hodapp> I want my derivations on the blockchain >:O
<etu> jtojnar: It seems to be because "gjs doesn't exist" and I don't know why.
<moriarty> simpson, thanks for the heads up
<moriarty> etu, cheers :)
__Sander__ has quit [Quit: Konversation terminated!]
<jD91mZM2> Is there any tools for printing where a package is located that can be used from bash?
<jD91mZM2> I have a startup script which starts a bunch of applications, and deja-dup-monitor is not in $PATH
<tilpner> jD91mZM2 - nix-build --no-out-link '<nixpkgs>' -A hello
<jtojnar> etu: do you have any other errors in journal?
moriarty has left #nixos [#nixos]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/f5f0b6850af (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<jD91mZM2> Awfully slow, but it works. Thanks tilpner :)
MaCXyLo has quit [Quit: Page closed]
<tilpner> 0.18s, it's okay-ish
<clever> jD91mZM2: it would be better to have nix wrap or modify that script in an automated way, to insert the paths it needs
<clever> then nix-build only has to be ran once to update the script
orivej has joined #nixos
<etu> jtojnar: All that I can find that seems relevant: https://ptpb.pw/tOaC
<goibhniu> jD91mZM2: you could also set the PATH to include /run/current-system/sw/bin ~/.nix-profile/bin/ ... or call programs directly from there
<jD91mZM2> deja-dup-monitor isn't in those folders
<jD91mZM2> for whatever reason
* jD91mZM2 has to go (sorry)
jD91mZM2 has quit [Quit: WeeChat 2.0]
<jtojnar> etu: probably missed some shebang/Exec
muzzy__ has quit [Ping timeout: 240 seconds]
muzzy has quit [Ping timeout: 240 seconds]
muzzy_ has quit [Ping timeout: 260 seconds]
<tilpner> Any idea how to resolve infinite recursion when accessing fileSystems from a systemd user service config?
<tilpner> systemd.user.services.foo.script = "echo ${toString (config.fileSystems ? "/data")}";
<nick_l> clever: perhaps I am using set-arg incorrectly (and I am introducing a variable by accident)?
<nick_l> clever: it seems pretty terrible to locate this issue.
<etu> jtojnar: If I include gnome3.gjs in my systemEnvironment I get these errors instead... https://ptpb.pw/8cqE
<tilpner> Huh, seems I asked prematurely. Just that line works, so it must be caused by something else :/
<clever> nick_l: can you pastebin the full output when its failing (and ran with -v) and also the info output?
<jtojnar> etu: "Typelib file not found" means GI_TYPELIB_PATH is not set
<jtojnar> the file needs to be wrapped
<etu> ok
nocoolnametom has quit [Quit: ZNC 1.6.5 - http://znc.in]
iyzsong has quit [Read error: Connection reset by peer]
nocoolnametom has joined #nixos
<nick_l> clever: Nix arguments: environment = staging # I think this is the only relevant thing.
<nick_l> clever: perhaps that needs to be "staging"?
<jtojnar> etu: your patch does not work because the git master is different from the tag
<nick_l> clever: I haven't used Nix arguments like this before in my own deployments.
<etu> jtojnar: Yeah, I've noticed that... Looking at it :)
<jtojnar> etu: that's why I prefer actual patch files to substituteInPlace, substituteInPlace fails silently
<jluttine> libreoffice calc suddenly looks really bad.. i wonder what has happened. anyone else experiencing?
<nick_l> clever: If I change staging -> blah, error message also shows blah.
<nick_l> clever: so, definitely related to the set-args system
hakujin has joined #nixos
<etu> jtojnar: *nod*
<nick_l> clever: evaluation continues if I set the variable in a different way.
<nick_l> clever: seems to be a misfeature to me.
Fare has joined #nixos
hakujin has quit [Ping timeout: 256 seconds]
alexteves has joined #nixos
<jtojnar> etu: I think upstream should remove the gjs reference from Exec=, and rely solely on shebang
<jtojnar> etu: and you could use `for f in src/service/nativeMessagingHost.js src/service/daemon.js; do patchShebangs $f; done`
woffs has quit [Quit: Gateway shutdown]
<{^_^}> [nixops] @rbvermaa closed pull request #941 → Fixed a bug creating route53 record sets → https://git.io/vp2ui
<etu> jtojnar: that would be nice if they did, will do :)
woffs has joined #nixos
<jtojnar> maybe open an issue about that
<steveeJ> is a ''string'' not of types.lines?
<jtojnar> etu: though I do not understand how the service works, the file does not seem to be installed
<{^_^}> [nixpkgs] @xeji merged pull request #39896 → poppler_qt4: remove → https://git.io/vpg3j
<{^_^}> [nixpkgs] @xeji pushed 4 commits to master: https://git.io/vp2rR
<{^_^}> → ae4fe67c by @jtojnar: open-pdf-presenter: remove
<{^_^}> → 3ae3c0c0 by @jtojnar: python2.pkgs.popler—qt4: remove
<{^_^}> → dc25f36c by @jtojnar: poppler_qt4: remove
alexteves has quit [Ping timeout: 256 seconds]
wchresta_ has joined #nixos
hakujin has joined #nixos
<jtojnar> etu: oh, right it is saved in the gresource and installed into user-data-dir
<jtojnar> that is terrible
<jtojnar> (installed at runtime)
<jtojnar> probably open a bug about that too
<etu> :D
Fare has quit [Ping timeout: 256 seconds]
periklis has quit [Ping timeout: 248 seconds]
hakujin has quit [Ping timeout: 248 seconds]
dbmikus has quit [Ping timeout: 264 seconds]
guesi has quit [Ping timeout: 265 seconds]
nick_l has quit [Ping timeout: 260 seconds]
Fare has joined #nixos
wchresta_ has quit [Ping timeout: 240 seconds]
<Mic92_> steveeJ: not sure. At the moment there is just patchelf.
ixxie has joined #nixos
<Taneb> simpson: thanks (didn't notice your reply)
<{^_^}> [nixpkgs] @jensbin opened pull request #39933 → terraform-provider-ibm: 0.8.0 -> 0.9.1 → https://git.io/vp2Kg
<Myrl-saki> myrl@myrl:~$ du -chs /etc/nixos/nixpkgs
<Myrl-saki> 941M /etc/nixos/nixpkgs
<Myrl-saki> 941M total
<Myrl-saki> What the fuck?
<Myrl-saki> Did not know it gets that huge lmao
<Myrl-saki> Imagine if we kept the stackage set.
<nikivi> If I have nix installed already but ver. 1, to update I simply run `curl https://nixos.org/nix/install | sh` again right?
<nikivi> Or there is internal nix update command
<Myrl-saki> nikivi: Have you tried `nix-env -iA nix`?
<nikivi> error: attribute ‘nix’ in selection path ‘nix’ not found
<Myrl-saki> I'm assuming you're using channels
<Myrl-saki> So I guess `nix-env -iA nixpkgs.nix`?
<nikivi> Not sure what you mean by channels, I am new to nix
<nikivi> It says `installing ‘nix-1.11.16’`
<nikivi> But I want 2.0.1
<Myrl-saki> nikivi: You have to update your channels.
<nikivi> Or the latest
<Myrl-saki> nikivi: Channels are basically "repositories"
<Myrl-saki> nikivi: What does `nix-channel --list` tell you?
<nikivi> Nothing
<nikivi> Empty output
<tilpner> Try again with sudo
<nikivi> Nothing again
<tilpner> Huh
<clever> nikivi: are you on darwin?
<nikivi> clever I am
<clever> nikivi: sudo sets the wrong $HOME
<clever> nikivi: use "sudo -i" then "nix-channel --list"
hakujin has joined #nixos
Lisanna has joined #nixos
xy2_ has joined #nixos
<Myrl-saki> clever: Ping. I'm curious, does `--builders` require copying from machine to builder, or can the builder copy from bincache?
<Myrl-saki> clever: I'm planning on hosting a remote machine for someone, but I can't give them shell access.
<ixxie> is it nix-unstable still?
<Myrl-saki> The upload speed in our country is abysmally slow, so the former is very bad.
<nikivi> So what should I do?
<nikivi> I haven't messed with nix beyond installing it a few months back, I just wanted to get 2.0 and try again
<nikivi> Or 2.0 is not working yet on darwin
<Lisanna> Myrl-saki you can use the "builders-use-substitutes" nix.conf option to control that
<sphalerite> nikivi: sudo -i nix-channel --update, then try nix-env -iA nixpkgs.nix again
<Myrl-saki> Lisanna: Cool. :)
hakujin has quit [Ping timeout: 240 seconds]
<Myrl-saki> Lisanna: Can I also just use `--option builders-use-substitutes true`?
<nikivi> sphalerite /Users/nikivi/.nix-profile/bin/nix-channel: unable to check ‘https://nixos.org/channels/nixpkgs-unstable
<Lisanna> Myrl-saki sure
<nikivi> I assume that's because the site is down
<sphalerite> nikivi: no, it's not…
<Lisanna> by default a remote builder will have to get all the build inputs from you (the host on which the build was started), since the remote host might not have access to the same binary caches that your host does. But that option will have the remote builder attempt to use its own binary caches when fetching build inputs
<fadenb> Can someone tell me what I did wrong to get the following error: https://gist.github.com/fadenb/e779274ba7ff7fa62b67f7fcf8c52c4d
<fadenb> I was using the sytem before just fine, did multiple nixos-rebuild switch and then activated elasticsearch services
<nikivi> sphalerite Is there an option for more descriptive error perhaps?
<sphalerite> not that I know of :/
<sphalerite> nikivi: you could try nix-env -f https://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz -iA nix to get it updated, but I'm not sure that will fix the channel updating issue
<{^_^}> [nixpkgs] @xeji merged pull request #39440 → electrum-ltc: 3.1.2.1 -> 3.1.3.1 → https://git.io/vpZjl
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « electrum-ltc: 3.1.2.1 -> 3.1.3.1 (#39440) »: https://git.io/vp2iE
Izorkin has joined #nixos
lassulus has quit [Ping timeout: 240 seconds]
lassulus has joined #nixos
Izorkin_ has quit [Ping timeout: 260 seconds]
<clever> Myrl-saki: there is an option in nix to have the remote end use a binary cache when possible
<Lisanna> clever I showed them
Fare has quit [Ping timeout: 248 seconds]
<clever> ah, i see
<Myrl-saki> That aside
<Myrl-saki> How do I multi-user
<Myrl-saki> Rather
<Myrl-saki> How do I setup a multi-user.
<Myrl-saki> Just simply sourcing nix.sh gives me broken things.
<Myrl-saki> /nix/var/nix/profiles/per-user/$USER/profile doesn't exist, for example.
<clever> Myrl-saki: i tend to mutate single into multi, i start by chowning /nix/store to root:root, and i tend to drop nix.sh entirely and set things up myself
<stammon> In my nixos config I import several other files using a imports = [....] statement. I would like to pass down a variable / argument to the imported files. Can I somehow do that?
<clever> Myrl-saki: then i run nix-daemon as root, and fix the errors as i see them
wchresta_ has joined #nixos
<Myrl-saki> clever: Makes sense.
<clever> Myrl-saki: the default and user profile should be in $PATH, something in $NIX_PATH, the user should own his own profile dir
<Myrl-saki> clever: So, nix.sh shouldn't be used for multi-user?
<Myrl-saki> Or can it still be used?
<clever> not sure
<Myrl-saki> clever: What I did was nix.sh, then path things up.
<Myrl-saki> patch*
jedai has joined #nixos
anderslundstedt has quit [Quit: leaving]
<sphalerite> stammon: you can declare options in them, like with all the modules included with nixos
jedai|2 has joined #nixos
<clever> lrwxrwxrwx 1 root root 29 Oct 11 2015 /root/.nix-profile -> /nix/var/nix/profiles/default
<clever> Myrl-saki: this symlink may also have to be manually created
<clever> Myrl-saki: i think nix tries to auto-create it with the users name, the one in the user may also have to be updated to not be default anymore
jedai42 has quit [Ping timeout: 240 seconds]
<sphalerite> heh, nixos-install does not care if there is an existing OS in the root filesystem
blankhart has quit [Ping timeout: 248 seconds]
<Myrl-saki> clever: Stupid question, should I, uh, `chown -R root:root /nix/`?
kier has quit [Ping timeout: 240 seconds]
<stammon> sphalerite: Why haven't I thought of this, thx
jedai has quit [Ping timeout: 276 seconds]
<clever> Myrl-saki: yeah
<Myrl-saki> clever: Also, in my NixOS machine, /nix/store is root:nixbld?
<clever> oh yeah, you also need a nixbld group with write to the store, and build users in the group
seanparsons has quit [Read error: Connection reset by peer]
<clever> do not add yourself to the group, its literally suicide
<clever> nix will kill the chosen user, so any nix build command is asking nix-daemon to kill your entire session :P
<Myrl-saki> > literally suicide
<Myrl-saki> I was gonna say word abuse of "literally", but that's a pretty cool interpretation. :P
kier has joined #nixos
Tehnix has quit [Remote host closed the connection]
Tehnix has joined #nixos
<Myrl-saki> > tmw I accidentally DoS'ed someone with nixos-rebuild
<clever> ive seen users in here before trying to diagnose why X dies whenever they try to build something
mteufel is now known as mt
wchresta_ has quit [Ping timeout: 260 seconds]
katyucha has joined #nixos
asuryawanshi has joined #nixos
<Myrl-saki> This is a stupidly obvious question
<Myrl-saki> Rather, this is a stupid question with an obvious answer
Izorkin_ has joined #nixos
<Myrl-saki> But when my laptop and desktop transfer nix stores through wifi, my pings spike up to triple digit.
cryp2nomicon has quit [Ping timeout: 240 seconds]
hakujin has joined #nixos
<Myrl-saki> But the not-so-obvious part is that this seems to only happen with nix transfers. I don't think I've observed this with rsync.
<Myrl-saki> Nor scp.
<Myrl-saki> Got any idea?
<tilpner> Measure transfer speeds, check if there's a difference between rsync and nix copy
<clever> scp does things one file at a time, and waits for the remote end to sync
blankhart has joined #nixos
Izorkin has quit [Ping timeout: 240 seconds]
lejonet has quit [Ping timeout: 240 seconds]
<Myrl-saki> clever: How about rsync?
seanparsons has joined #nixos
<clever> not sure
lejonet has joined #nixos
<Myrl-saki> tilpner: I'll check when I can.
<Myrl-saki> tilpner: Also, I think it's just bias on my part, since `nix copy` seems to copy faster than rsync.
<Myrl-saki> how it does that, i haff no idea at all.
<clever> Myrl-saki: oh, and i have also noticed similar lag spikes, my laptop is a build slave and is on 802.11g, and synery lags noticably when its transfering things
<sphalerite> Myrl-saki: rsync does one file at a time too
<Myrl-saki> sphalerite: So basically, it's because nix copy is highly parallel?
<sphalerite> I don't think it is
jensens has quit [Ping timeout: 260 seconds]
<sphalerite> I think it might copy up to 4 things simultaneously, but even then I'm not sure if it does it over multiple TCP connections
<clever> i think it does 1 thing at a time over 1 ssh, but it doesnt wait for confirmation that things are working
<sphalerite> but yeah that would probably explain it. Opening multiple TCP connections for one logical transfer is bad behaviour really
<clever> ive seen only a single `nix-store --write` on the remote end
<clever> and ive seen it claim to be copying 4 things, then fail because the 1st was unsigned
<cransom> i haven't done a bake off, but http/2 might just be better at saturating the stream(s) than rsync for this case.
<clever> it shoved 4 NAR's worth of data into the socket before getting a reply back
<Myrl-saki> unable to open SSH connection to 'ssh://####': cannot connect to '####'; trying other available machines...
<cransom> because rsync is just a wrapped ssh and you are subject to the buffers it's using
<Myrl-saki> But it works if I use sudo.
<Myrl-saki> Not if I use nix-build
knupfer has joined #nixos
<Myrl-saki> Err
<clever> Myrl-saki: ssh keys?
<Myrl-saki> clever: Is it a matter of nixbld users not having access to the ssh keys?
<sphalerite> Myrl-saki: no, this would be root performing the SSHing
<clever> remote builds are not initiated from the nixbld group
<sphalerite> Myrl-saki: this can be a matter of private keys as well as the remote end's host pubkey
<Myrl-saki> sphalerite: clever: It works if I use `sudo nix-build`, but not `nix-build` alone.
anderslundstedt has joined #nixos
<benley> anyone remember how to deal with `nixos-rebuilt boot` failing because the /boot filesystem is 100% full?
<benley> I guess I should have made it bigger than 250mb.
<sphalerite> benley: remove old generations, manually remove kernels and initrds from /boot, rerun nixos-rebuild boot
sanscoeur has joined #nixos
katyucha has quit [Ping timeout: 256 seconds]
<sphalerite> benley: so nix-collect-garbage --delete-older-than 7d && rm /boot/EFI/nixos/*initrd* && nixos-rebuild boot
<benley> OK, I just wasn't sure if manually removing the stale kernels & initrds was the right move.
<benley> Thanks :)
<sphalerite> yeah it's fine since nixos-rebuild boot will just copy them right back
* benley watches nix-collect-garbage delete a bajillion quintillion things
<Myrl-saki> sphalerite: clever: FWIW, the remote is Nix on Debian.
<sphalerite> benley: you don't need to let it finish actually, it deletes the old generations right at the beginning
<Myrl-saki> Also, my account is a trusted user.
<Myrl-saki> But
<Myrl-saki> The remote account is not, I think.
yegortimoshenko has quit [Quit: Page closed]
humanoyd_ has joined #nixos
humanoyd has quit [Ping timeout: 265 seconds]
<Myrl-saki> Okay, I'm still lost.
Myrl-saki has quit [Remote host closed the connection]
<clever> if you dont specify a user when you ssh into a machine, it defaults to the same user you are locally
Myrl-saki has joined #nixos
dbmikus has joined #nixos
<Myrl-saki> May 03 17:10:28 nod.zv.io sshd[14966]: Received disconnect from 122.226.181.165 port 34206:11: [preauth]
acarrico has quit [Ping timeout: 268 seconds]
jrolfs has joined #nixos
acarrico has joined #nixos
<Ralith> what should I feed to `nix copy` as a source to get the entirety of a nix-shell environment?
reinzelmann has joined #nixos
<{^_^}> [nixpkgs] @romildo opened pull request #39935 → jwm: 1653 -> 1685 → https://git.io/vp2D7
<sphalerite> nixos-install evaluates absolute paths in the target system's config in the host system's filesystem. Is there a way around this?
<clever> sphalerite: use relative paths in the config?
<{^_^}> [nixpkgs] @xeji merged pull request #39933 → terraform-provider-ibm: 0.8.0 -> 0.9.1 → https://git.io/vp2Kg
<{^_^}> [nixpkgs] @xeji pushed commit from @jensbin to master « terraform-provider-ibm: 0.8.0 -> 0.9.1 (#39933) »: https://git.io/vp2yq
<Myrl-saki> Okay.
dbe_ has joined #nixos
acarrico has quit [Ping timeout: 248 seconds]
<Myrl-saki> clever: sphalerite: I used nix-copy-closure for sanity test, and it seems to be ignoring my NIX_SSHOPTS.
<Myrl-saki> I'm stupid.
<sphalerite> clever: well I have the configs in a git repo which isn't in a fixed path across all of them :/
<Myrl-saki> nix-copy-closure does work.
jrolfs has quit [Read error: Connection timed out]
jrolfs has joined #nixos
grp has joined #nixos
<Myrl-saki> Do builders have to be trusted?
<clever> Myrl-saki: the user importing the build from the builder has to be trusted
seville has joined #nixos
ckauhaus has joined #nixos
<Myrl-saki> Uhhh
<Myrl-saki> So, I "figured" out the problem.
MichaelRaskin has joined #nixos
<Ralith> argh what the hell
<Ralith> why is the meson wrapper clobbering CC/CXX
nschoe has quit [Ping timeout: 240 seconds]
<Myrl-saki> myrl@myrl:~/Dev/hlibc[crt1-inline-asm•]$ strace -f nix-build ./tools/nix --option trusted-builders '' --builders 'disnix@nod.zv.io x86_64-linux /home/myrl/.ssh/packet_nix_rsa 4 1' --option builders-use-substitutes true --max-jobs 0 2>&1 | grep 'execve.*ssh'
<Myrl-saki> No result.
<Myrl-saki> Why is it not execve-ing.
<Ralith> shlevy: I demand an accounting
<ixxie> adding environment variables to path in NixOS is done the same way as any other Linux distro right?
<sphalerite> Myrl-saki: it's probably the daemon doing the execing. Try strace -p $(pgrep nix-daemon) -fe execve
<Myrl-saki> sphalerite: Makes sense.
Myrl-saki has quit [Remote host closed the connection]
Myrl-saki has joined #nixos
<Myrl-saki> sphalerite: It seems like ssh is not on the nix-daemon's PATH.
xcmw has joined #nixos
<Myrl-saki> ++ optionals cfg.distributedBuilds [ config.programs.ssh.package pkgs.gzip ]
<Myrl-saki> Found my answer. Yay.
<Myrl-saki> Why do I have to manually enable it though?
<elvishjerricco> ixxie: What do you mean "adding ... to path?" Environment variables are just part of the environment, and the path is just a particular environment variable.
<Myrl-saki> sphalerite: Works now! :D
<ixxie> elvishjerricco: right xP of course.... its been a while since I had to mess with those things
katyucha has joined #nixos
<ixxie> elvishjerricco: when I set an environment variable it persists right?
<Ralith> is there any way to pass `nix build` an expression on the command line?
<sphalerite> Ralith: pass it as a single parameter enclosed in parens
cryp2nomicon has joined #nixos
<elvishjerricco> ixxie: You mean like when you do `FOO=bar` in a shell? It'll remain in memory for the rest of that shell but it won't be in other shells
<ixxie> elvishjerricco: I wanna set my DIGITAL_OCEAN_AUTH_TOKEN so it should persist; on the otherhand putting it in any file seems unsecure
<Ralith> sphalerite: thanks!
<elvishjerricco> ixxie: Ah. Yea that's a harder problem. It's gotta be saved somewhere; there's no way to persist it without writing it to something persistent like a hard disk
Fare has joined #nixos
<ixxie> yeah but I am wondering what is the most secure way to do it
<ixxie> normally a password is hashed and salted somehow when stored to disk AFAIK
Myrl-saki has quit [Remote host closed the connection]
Myrl-saki has joined #nixos
katyucha has quit [Ping timeout: 260 seconds]
romildo has joined #nixos
katyucha has joined #nixos
markus1199 has quit [Ping timeout: 264 seconds]
markus1189 has joined #nixos
<romildo> I am packaging https://github.com/madmaxms/theme-obsidian-2 (a Gnome theme, based upon Adwaita-Maia dark skin). The project name ends with a number. How should I name it in nixpkgs?
<elvishjerricco> ixxie: Well customer passwords are stored that way for somewhat different reasons. Specifically, you don't *want* access to your users' passwords. But you *need* access to your server credentials, so they have to be on disk. Only real protection you can give them is to encrypt them and prompt you for a password every time they're loaded.
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<ixxie> elvishjerricco: right
<ixxie> elvishjerricco: honestly I am at a loss at how I am meant to be using NixOps with Digital Ocean...
szicari has joined #nixos
acarrico has joined #nixos
lonokhov has quit [Quit: WeeChat 2.0]
<elvishjerricco> ixxie: At least with AWS, I just have my secret key stored in plaintext on my file system in `~/.aws/credentials`, and keep my whole disk encrypted. Then nixops just uses the AWS API, which looks in `~/.aws/credentials` for the key. Not sure what the parallel would be fore DO
cryp2nom1con has joined #nixos
cryp2nom1con has quit [Client Quit]
<nliadm> is it possible to tell if a derivation came from an overlay?
<nliadm> I'd like to be able to easily build everything in my overlay
cryp2nomicon has quit [Quit: leaving]
cryp2nomicon has joined #nixos
boothead has joined #nixos
Myrl-saki has quit [Remote host closed the connection]
<boothead> Hi folks, I'm having trouble getting my system to boot with / and /nix mount points both pointing to lvm volumes.
Myrl-saki has joined #nixos
<boothead> I get a message at boot time indicating a timeout of some sort
<boothead> Error is similar to this: https://github.com/NixOS/nixpkgs/issues/3350
<tilpner> nliadm - You can self: super: let all = { foo = ...; }; in all // { allFromOverlay = all; }
<tilpner> nliadm - Then you can build attrValues allFromOverlay
<elvishjerricco> ixxie: It'd be nice if NixOps would encrypt it's state file. Then you could just set your secrets with nixops set-args and they'd be secure
<boothead> The problem was after I earlier ran nixos-install after I blew away /nix
<clever> boothead: do you know how to edit the cmdline in grub with e?
ryantrinkle has quit [Ping timeout: 248 seconds]
wchresta_ has joined #nixos
<boothead> clever: yep, i've done that before. what should I add?
<nliadm> oh, I guess that works. thanks tilpner
<clever> boothead: boot.shell_on_fail
<clever> boothead: then you can get a shell when it fails to mount the root
drakonis has quit [Read error: Connection reset by peer]
<boothead> clever: nice - I've got that far - now I have i) and f) as options
<boothead> (as well as r and * that I had before)
<clever> boothead: you can now open a shell, and check what lvdisplay, pvdisplay, and vgdisplay say
<tilpner> nliadm - self: super: let allFromOverlay = { inherit allFromOverlay; foo = ...; }; in allFromOverlay works too
xcmw has quit [Ping timeout: 240 seconds]
myrl has joined #nixos
Myrl-saki has quit [Quit: WeeChat 2.0]
<boothead> clever: those commands aren't available..
myrl is now known as Myrl-saki
<clever> boothead: what does tabtab show as being available?
daveo has quit [Ping timeout: 240 seconds]
<boothead> fdisk -l is telling me that /dev/dm-0 doesn't contain a valid partition table... dm-0 is what the symlink in /dev/mapper for my root partition points to..
<clever> boothead: generally, the dm-0 device shouldnt be partitioned
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/3a2ad3e4c03 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<clever> boothead: thats basically partitioning your partitions
<ixxie> elvishjerricco: hmm just wondering what to do since I don't feel qualified to make a security PR to NixOps xD
<boothead> clever: not many commands available, looks like a busybox or something...
<clever> boothead: lvm should be available
<boothead> ah yes - just spotted that :-)
<clever> boothead: you may need to use "lvm pvdisplay"
<boothead> lvdisplay shows me what I expect from the graphical installer set up
<boothead> as does pvdisplay
<clever> boothead: does it say the access is read/write?
<{^_^}> [nixpkgs] @edef1c opened pull request #39938 → switch-to-configuration: use Net::DBus to retrieve the list of units → https://git.io/vp25y
<clever> boothead: and is the status available?
<boothead> clever: yup
<boothead> yup to both
<clever> then you should be able to just mount each LV to the right sub-dir of /mnt-root/
<clever> and then exit out of that shell to resume the boot
<clever> then we can review your configuration.nix
<{^_^}> [nixpkgs] @romildo opened pull request #39939 → theme-obsidian2: init at 2.5 → https://git.io/vp2dq
wchresta_ has quit [Ping timeout: 248 seconds]
<boothead> ah - have to unmount /mnt-root first I guess?
<boothead> mount: mounting /dev/localvol/root on /mnt-root failed: Device or resource busy
<boothead> never mind - seems to be mounted already - but I get: couldn't mount as ext3 dues to feature incompatibility when I try to mount /dev/localvol/store /mnt-root/nix
<clever> boothead: ahh, so your iso formatted /nix with new features, and the kernel you installed cant mount it
<clever> or its ext4?
drakonis has joined #nixos
<{^_^}> [nixpkgs] @aristidb pushed to master « insync: 1.3.22.36179 -> 1.4.5.37069 »: https://git.io/vp2dS
<boothead> it's ext4 - after reporting the problem mount seems to think that it is mounted
<boothead> ctrl-d will continue the boot process right clever ?
<clever> boothead: try exit and see if it can continue to boot
freeman42x[nix] has joined #nixos
<boothead> ok it continued to boot, but now it's doing the same thing that made me try the reinstall in the first place.. I have messages like rcu_sched detected stalls on CPUs/tasks
<boothead> blocking rcu_structure:
<clever> boothead: due to the deterministic nature of nix, it is likely to recreate the same problem if installed from the same nixpkgs
xcmw has joined #nixos
<boothead> hmmm, good point :-)
<boothead> yay determinism (except this time)
<drakonis> yay
<clever> boothead: id try an older generation of a channel, but its all gone now
<boothead> I did install from a newer installer iso - I assume that would have made nix channels different?
<clever> boothead: yeah
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39907 → Miscellaneous cleanups → https://git.io/vpgw8
<{^_^}> [nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/vp2Fs
<{^_^}> → 3216cf6c by @matthewbauer: trash-cli: cleanup
<{^_^}> → 143978a4 by @matthewbauer: treewide: remove platform assertions
<{^_^}> → b45ef79b by @matthewbauer: Merge pull request #39907 from matthewbauer/work
<boothead> i have tried both 18.03 and whatever the last 17.xx version I was on was
<boothead> and I refomatted the partition I mount at /nix/store in between all this too
<boothead> anything else I can try for more debugging?
<boothead> I would have assumed that this was something to do with kernel packages etc, and I'm pretty sure that's been upgraded clever?
<clever> google the error and see what others have done
daveo has joined #nixos
reinzelmann has quit [Quit: Leaving]
<boothead> clever I've found a few mentions but all point towards an intermittent hard to find bug. Anything I could have missed in the re-install process that may have left me on old versions?
<{^_^}> [nixpkgs] @matthewbauer opened pull request #39940 → macOS closure-size reduction → https://git.io/vp2b3
xcmw has quit [Ping timeout: 240 seconds]
<Myrl-saki> Does /etc/nix/machines set the amount of cores used?
<Myrl-saki> Err
<Myrl-saki> Does my question make sense?
<{^_^}> [nixpkgs] @romildo opened pull request #39941 → iconpack-obsidian: init at 4.0.1 → https://git.io/vp2bx
houli has quit [Quit: Connection closed for inactivity]
<clever> boothead: the cmdline in grub should show the version, as would uname -a in the initrd
<clever> Myrl-saki: it doesnt control the core count, only the total number of nix jobs you try to send to the machine
<clever> Myrl-saki: the remote nix.conf controls the core count
daveo has quit [Remote host closed the connection]
<Myrl-saki> clever: Okay, thanks. I was thinking there was no way to control it.
<Myrl-saki> clever: The nix-daemon has to be reloaded, right?
ryantrinkle has joined #nixos
romildo has quit [Quit: Leaving]
cryp2nomicon has quit [Read error: Connection reset by peer]
<{^_^}> [nix] @matthewbauer opened pull request #2135 → Add "arx" scripts to release → https://git.io/vp2N0
wchresta_ has joined #nixos
cryp2nomicon has joined #nixos
<boothead> clever: how about the initrd.availableKernelModules? I notice that nixos-generate-config has added quite a few of them...
jrolfs has quit [Ping timeout: 240 seconds]
jrolfs has joined #nixos
boomshroom has joined #nixos
jD91mZM2 has joined #nixos
<boomshroom> Sup jD91mZM2!
<jD91mZM2> Hi!
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/3a2ad3e4c03 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<boothead> clever: maybe I need dm_mod in there? or ata_piix? https://github.com/NixOS/nixos/blob/master/doc/config-examples/root-on-lvm.nix
<boomshroom> Does anyone here have the Mattermost client working, and if not, how do you build an electron app?
<{^_^}> [nixpkgs] @srl295 opened pull request #39942 → nixos docs: Update installation partitioner instructions → https://git.io/vp2Np
<clever> boothead: nixos already has those by default
<clever> boothead: you wouldnt even be able to mount /nix if dm_mod was missing
<clever> boothead: and you should be able to check lsmod after you get an initrd shell to confirm
jrolfs has quit [Ping timeout: 240 seconds]
<boothead> Hmm I had kernelPackages = pkgs.linuxPackages_latest; which I've just commented... I've seen a few bugs reported about that - clutching at straws now :-)
wchresta_ has quit [Ping timeout: 240 seconds]
<clever> boothead: i do find it strange that the problem only manifests after you proceed to stage-2
<clever> it seems stable during stage-1
<boothead> well that didn't work - got a kernel panic straight away that time!
<clever> you can also add boot.shell_on_fail to boot.kernelParams
<clever> then it will be in the grub config by default
TonyTheL1on has joined #nixos
rihards has quit [Quit: rihards]
srl295 has joined #nixos
<boothead> clever: isn't stage-1 where i'm having to drop into a shell?
TonyTheLion has quit [Ping timeout: 268 seconds]
<[Leary]> BTW boothead you should try running a memtest before you dive deep into debugging. I've seen bad ram manifest as rcu_sched stalls and failed boots.
<clever> boothead: yeah
<boothead> [Leary]: hmm, the 18.03 iso and my windows partition boot up fine..
humanoyd_ has quit [Quit: WeeChat 2.1]
TonyTheL1on has quit [Ping timeout: 260 seconds]
<ghostyy> hi, i have a question, i have a machine with two disks, each LUKS encrypted with a keyfile, which correspond to two devices in a ZFS mirror configuration, the keyfiles are stored inside a filesystem image which is itself encrypted with LUKS (just a passphrase, no keyfile)
<ghostyy> the goal being that i can decrypt both of them by inputting just one password
<ghostyy> my question is, how do i set this up in nixos?
<ghostyy> the image (and disks) also all have detached headers
TonyTheLion has joined #nixos
<wilornel> Hi #nixos! I was wondering if anyone here was able to install matplotlib for python?
<drakonis> hmm
<drakonis> i need to do tex
jD91mZM2 has quit [Quit: WeeChat 2.0]
<ghostyy> the only part im really have trouble with is mounting the imagefile after i decrypt it
jD91mZM2 has joined #nixos
jD91mZM2 has quit [Client Quit]
<wilornel> I did `nix-env -iA nixos.freetype; nix-env -iA nixos.libpng; nix-env -iA nixos.python; nix-env -iA nixos.python36Packages.pip; nix-env -iA nixos.pkgconfig; pip install matplotlib;` and it still wont find freetype and libpng
<srhb> wilornel: This seems to work for me: nix-shell python3 -p 'python3.withPackages (ps: with ps; [ matplotlib ])'
<drakonis> has anyone done anything involving tex on nixos
jD91mZM2 has joined #nixos
<ghostyy> i also wouldnt be opposed to simply writing a shell script to do all of this and having nixos execute it in the initramfs but im not completely certain hyow to do that either, ive got an extra initrd but im not sure that commands in there can ask for input or whatever
<ghostyy> does anyone have any experience with that? setting up weird crypto configs in nixos, or executing custom scripts in the initramfs?
<clever> ghostyy: https://nixos.org/nixos/options.html#boot.initrd.postdevi
<tilpner> drakonis - nix-shell -p texmaker texlive.combined.scheme-medium --run texmaker
<clever> ghostyy: and the other similar options under boot.initrd
<drakonis> i had some issues with texstudio
<ghostyy> ahhh ive seen that before
<clever> ghostyy: nixos will just insert that string into the stage-1 shell script
<wilornel> srhb: I'm unclear what do these arguments mean... I try `nix-shell python3` and it doesn't work
jD91mZM2 has quit [Client Quit]
TonyTheLion has quit [Ping timeout: 264 seconds]
<ghostyy> great!
<ghostyy> and thats done after preLVMCommands
<clever> yep
<srhb> wilornel: The entire things gives you a python3 with matplotlib available.
<ghostyy> excellent
<ghostyy> thank you very much
<srhb> wilornel: Try it out.
<wilornel> srhb: Btw, that does work, thank you. I'm looking into doing something similar
<wilornel> I'm just not sure how to read tha command
<wilornel> and use it in a shell.nix
<wilornel> use its concepts
TonyTheLion has joined #nixos
<boothead> small change now: I've actually reached a login shell but it's all very slow and still have the rcu_sched stuff spewing into the terminal
<ghostyy> i just have one more question - do /dev/disk/by-id devices exist in the initramfs?
<clever> ghostyy: i believe they do
<ghostyy> ah that is fantastic
<clever> ghostyy: you can also add boot.shell_on_fail to get a shell when the initrd fails
<ghostyy> holy crap
<ghostyy> hm its not in the options https://nixos.org/nixos/options.html#boot.shell
<clever> ghostyy: there is also things like boot.debug1, which force it to "fail"
<clever> ghostyy: its a kernel param, not a nixos option
<ghostyy> ahhh
<ghostyy> i vaguely remember parts of this from the last time i got crypto working on nixos
<clever> boot.kernelParams = [ "boot.shell_on_fail" ];
<clever> i wouldnt put debug1 into there, it will "fail" every time it boots
<ghostyy> ah yeah :P
<clever> you can also use e at grub to dynamically change it
<wilornel> srhb: working!
<ghostyy> that is insanely helpful, thank you very much
<clever> ghostyy: ctrl+f for the vars it sets, to see what they affect
TonyTheLion has quit [Ping timeout: 265 seconds]
<ghostyy> ah excellent! thank you very much!
<clever> debug1 just fails in the middle of parameter parsing
<clever> debug1mounts will fail after it has mounted everything
TonyTheLion has joined #nixos
nckx has quit [Quit: Updating my GNU GuixSD server — gnu.org/s/guix]
<srhb> wilornel: Cool!
<{^_^}> [nixpkgs] @bachp opened pull request #39943 → restic-rest-server module: init → https://git.io/vp2js
nckx has joined #nixos
<steveeJ> Mic92_: can you try to build a crate that depends on the "built" crate? I can't get it to compile in my regular shell, even if I install zlib in my user environment. I need to use a 'nix shell -p zlib' to make rustc see the zlib
TonyTheLion has quit [Ping timeout: 256 seconds]
jD91mZM2 has joined #nixos
<jD91mZM2> How would I configure my monitors in nix? I'm looking at services.xserver.monitorSection, but it's only for the first one.
nckx has quit [Client Quit]
nckx has joined #nixos
TonyTheLion has joined #nixos
<clever> jD91mZM2: i just configure it with xfce after i login
<jD91mZM2> I used to have some kind of script like that too, but LightDM doesn't respect that
<wilornel> would be nice if nix could remember how long some packages took to build and not necessarily remove them when you run something like nix-collect-garbage ..
<drakonis> naw
<drakonis> there's package pinning i think?
jayq has joined #nixos
TonyTheL1on has joined #nixos
<steveeJ> jD91mZM2: I use autorandr
<Mic92_> steveeJ: well nix-shell -p is not a enought to link something against zlib
<Mic92_> you need a default.nix
TonyTheLion has quit [Ping timeout: 268 seconds]
<steveeJ> Mic92_: I wouldn't know that, all I know is that it works in this case
<Mic92_> otherwise $NIX_CFLAGS_COMPILE is not set
<Mic92_> zlib is not a dependency of rustc
<steveeJ> Mic92_: sure it's not, but it's a dependency of one of the crates
<Mic92_> then you need to add it yourself
winem_ has joined #nixos
<Mic92_> we cannot add all dependencies just because some crate needs it
<steveeJ> Mic92_: I'm not asking for that, no worries. I'm wondering what could be done to make this comfortable
<steveeJ> when using nix-shell, my regular shell is not available of course
<jD91mZM2> I think I might be looking for services.xserver.xrandrHeads, but I have to go (again!) and can't test it right now :|
jD91mZM2 has quit [Quit: WeeChat 2.0]
<Mic92_> this is what I am using
jrolfs has joined #nixos
TonyTheL1on has quit [Ping timeout: 240 seconds]
<Mic92_> otherwise carnix
<Mic92_> this is what carnix uses as overrides
TonyTheLion has joined #nixos
nckx has quit [Quit: Updating my GNU GuixSD server — gnu.org/s/guix]
andrewmiller1 has joined #nixos
TonyTheL1on has joined #nixos
nckx has joined #nixos
<jayq> hey friends. vps borked & disks are under a new UUID. I can mount the system from the install disk and correct the UUID's in hardware-configuration.nix, but what's the proper way to issue a `nixos-rebuild switch` from a mounted nix installation (if possible?).
<steveeJ> Mic92_: direnv sounds interesting, I'll give it a try, thanks!
<clever> jayq: nix-enter and nixos-rebuild boot
TonyTheLion has quit [Ping timeout: 264 seconds]
<Mic92_> steveeJ: I have some examples for direnv environments here: https://github.com/Mic92/dotfiles/tree/master/nixos/environments
<jayq> clever: <3 trying it out now, thanks.
<steveeJ> Mic92_: cool. how do you activate the environments? I would've expected the .envrc to live inside a project root
TonyTheL1on has quit [Ping timeout: 264 seconds]
jtojnar has quit [Read error: Connection reset by peer]
<Mic92_> steveeJ: you can add .envrc either directly to the project repository or just symlink both files (default.nix .envrc) into the project
jtojnar has joined #nixos
<Mic92_> I sometimes keep them seperate when I work on upstream projects
<steveeJ> the latter will not be beneficial to others in the project :-D
katyucha has quit [Ping timeout: 248 seconds]
<steveeJ> understandable. although you could try to sneak it in ;-)
radvendii has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #39924 → gcc7: Removed java as a target language → https://git.io/vp2mD
<{^_^}> [nixpkgs] @Ericson2314 pushed 4 commits to staging: https://git.io/vpafR
<{^_^}> → 3641b35b by @Synthetica9: gcc7: Removed java as a target language
<{^_^}> → 719810d4 by @Synthetica9: gcc7: Removed X11 components, since they were only used by langJava
<{^_^}> → 0a4622cf by @Synthetica9: gcc-snapshot: Removed java as a target language
<Mic92_> openwrt did not like adding default.nix to there repository
<Mic92_> *their
<steveeJ> haha
<Mic92_> I tried really hard
civodul has joined #nixos
<radvendii> what does mysql.ensureUsers do exactly? Are the users it talks about the same as user accounts on the computer?
<steveeJ> I imagine it's hard to argue if the project doesn't use Nix for building the package
* regulus_ test
<clever> radvendii: it runs a bunch of `create user if not exists` queries on the daemon, for each user
<clever> radvendii: and optionally grant commands as well
TonyTheLion has joined #nixos
<clever> radvendii: ahh, and it uses the unix username of the remote peer on the unix socket for auth
<clever> radvendii: so those account names exist in both linux and mysql
<ixxie> nix-channel --update seems to hang...
<steveeJ> Mic92_: could you imagine a local mapping of paths to environments would work with direnv?
<radvendii> clever: I see. I read somewhere in some documentation that it doesn't use passwords for authentication
<{^_^}> [nixos-homepage] @matthewbauer closed pull request #215 → Example of using Arx to create installers → https://git.io/vpgna
<clever> radvendii: yeah, unix sockets have a magic function where it can detect the uid of the remote end of the socket
<steveeJ> Mic92_: e.g. you have ~/.envrc that contains lines /path/to/project:/path/to/default.nix
<radvendii> clever: which is fine, except that I'm trying to set up matomo, which seems to only have an option for password authentication
<clever> radvendii: then you want to use initialScript and normal create user with password statements
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpaJI
<{^_^}> → 7bb789bc by @romildo: jwm: 1653 -> 1685
<{^_^}> → 7342fd0e by @xeji: Merge pull request #39935 from romildo/upd.jwm
<steveeJ> Mic92_: it would add one lookup per 'cd' but that wouldn't be too expensive IMHO
<{^_^}> [nixpkgs] @xeji merged pull request #39935 → jwm: 1653 -> 1685 → https://git.io/vp2D7
<radvendii> clever: gotcha. and just to clarify this is mysql users that needn't necessarily be associated with any linux users
<ixxie> hmm its stuck waiting on a lock
doyougnu has joined #nixos
TonyTheL1on has joined #nixos
<radvendii> clever: is there a way to use initialScript that doesn't store the password in plaintext in the configuration.nix file?
<radvendii> that's a bad idea, right?
<clever> radvendii: not really
<clever> radvendii: you could also use a custom systemd service that reads passwords from outside the store, or generates one on the fly with pwgen and saves it to a known path
kwork_ has quit [Ping timeout: 260 seconds]
TonyTheLion has quit [Ping timeout: 240 seconds]
<radvendii> Mm. How risky is this? If I have this on a server, will anyone be able to read the password if they know where to look?
<ixxie> is there a way to clear the cache?
<radvendii> There was something in some documentation that said that it's world-readable, but that's only if they have access to the computer, right?
<clever> radvendii: anybody with shell access can read all of /nix/store/
<radvendii> but they have to be able to login first, yeah?
<clever> radvendii: yeah
<radvendii> okay, then that's fine
<clever> radvendii: or find an exploit in a program that allows executing commands
<{^_^}> [nixpkgs] @erikarvstedt opened pull request #39944 → refind: fix runtime error → https://git.io/vpaJy
<clever> radvendii: if its running a binary cache (hydra, nix-serve), then it also shares /nix/store/ with the world
<radvendii> it's not
<ixxie> clever: is it safe to simply delete /root/.cache?
TonyTheL1on has quit [Ping timeout: 256 seconds]
szicari has quit [Quit: szicari]
nckx has quit [Quit: Updating my GNU GuixSD server — gnu.org/s/guix]
<clever> ixxie: yeah, anything using it should remake the contents
katyucha has joined #nixos
nckx has joined #nixos
<ixxie> cool
TonyTheLion has joined #nixos
<Mic92_> steveeJ: what do you want to map? Do you want to share default.nix between projects?
<{^_^}> [nixpkgs] @xeji merged pull request #39886 → mono: create mono4 & mono5 aliases and fix gtk-sharp/pdfmod builds → https://git.io/vpgfK
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpaUE
<{^_^}> → 2cbaa163 by @obadz: mono: create mono4 & mono5 aliases and fix gtk-sharp/pdfmod builds
<{^_^}> → b9d19d48 by @xeji: Merge pull request #39886 from obadz/mono
<jayq> clever: can't find `nix-enter` (server is running 17.09 still). Searched in some code repos & web. Where can I read more about this?
<steveeJ> Mic92_: yeah, maybe reread my message it's quite accurate
<ixxie> did something in Nix 2.0 change the way nix-channel prints? it seems to be very silent or stuck
<ixxie> or slow
<ixxie> well
<ixxie> I did just delete the cache xD
<clever> jayq: nixos-enter i think is the name
TonyTheL1on has joined #nixos
<Mic92_> steveeJ: you can overwrite in ~/.direnvrc the use_nix bash function as shown in the wiki, so you can establish whatever mapping you need
<jayq> clever: yeah, thought it might have been, but same outcome. chroot didn't help much (I assume nix[os]-enter does that but more?)
<Mic92_> `direnv stdlib` shows the current definition
<clever> jayq: nixos-enter will chroot and setup env vars for you
<Mic92_> you will still need a local .envrc so.
TonyTheLion has quit [Ping timeout: 240 seconds]
<radvendii> clever: can I just use the rootPassword field and then login as root?
<steveeJ> Mic92_: ah, right, I will look into it!
<steveeJ> is there a way to write '' within a '' ... '' scope without escaping it? I'm looking for a replacement for ''
<ghostyy> argh... when i try to decrypt my encrypted image file with my header file i get "Attaching loopback device failed (loop device with autoclear flag is required)."
<srhb> steveeJ: Without escaping it? No.
<ghostyy> even though im already doing the trick where you cat the header to /dev/ram0 and read it from there
<steveeJ> srhb: no trick like using ''' instead of '' for the scope? :-D
<wilornel> srhb: I'm not sure how to translate that to a shell.nix ... wherever I would have inserted for example postgresql, I put int (python35.withPackages ( ps: with ps; [matplotlib] ))
<clever> steveeJ: '' foo \'\' bar''
<steveeJ> using ' inside the string is not uncommon, and escaping it is tedious
<clever> steveeJ: actually, that doesnt seem to work
<clever> steveeJ: but '' foo ${"''"} bar'' does
<steveeJ> it also makes the snippets unportable
<ghostyy> maybe i need to cat the image file to ramfs too?
<{^_^}> [nixpkgs] @dtzWill opened pull request #39945 → git: disable failing test w/musl for now → https://git.io/vpaTY
<clever> steveeJ: but maybe you just want builtins.readFile
TonyTheL1on has quit [Ping timeout: 248 seconds]
<srhb> steveeJ: I don't understand what you meant. ''' is exactly how you escape '' :)
<clever> srhb: oh, nice, even simpler!
nur0n0 has joined #nixos
<clever> nix-repl> '' foo ''' bar'' == '' foo ${"''"} bar''
<clever> true
<wilornel> so this is what it looks like srhb: https://paste.ubuntu.com/p/4CN5DtH8Kn/
<steveeJ> srhb: instead of writing var = '' ... some string \'' ''; maybe we could use var = ''' some string '' ''';\
<srhb> steveeJ: Cute idea.
<wilornel> the python version is different when I do it your way (3.6.5) and my way (3.6.4)
ckauhaus has quit [Quit: Leaving.]
TonyTheLion has joined #nixos
<srhb> steveeJ: And when we need ''' inside it we can just do '''' and only the n-length(') finishes the string.
<steveeJ> srhb: yeah, it's not a new idea
<srhb> I was being a bit tongue-in-cheek, but okay :-P
<srhb> I suppose it's a solution.
shabius has quit [Quit: Leaving]
<steveeJ> srhb: I gracefully ignored that :P
<srhb> Very gracefully!
<steveeJ> clever: I don't even know how you came up with surrounding it with an expression marker :-D
<clever> steveeJ: "doublequote" strings dont treat '' specially
<steveeJ> In retrospect I understand that, but it's not an obvious solution to the problem, as it makes it even less portable
<clever> steveeJ: using builtins.readFile is the simplest portable option, but then you have no substitution
<steveeJ> I'm using this for shell configuration, and it does make sense to keep these snippets portable to share them
<steveeJ> clever: that is a good idea, and simple
shabius has joined #nixos
<steveeJ> clever: thanks, as always :-)
<clever> though you can also mix in ''stuff ; source ${./file1.sh} ; stuff''
<clever> then file1.sh is just read as-is, and the rest around the source cmd is parsed by nix
hakujin has quit [Ping timeout: 260 seconds]
<steveeJ> clever: will ${./file1.sh} evaluate to the path or the content?
TonyTheL1on has joined #nixos
<clever> a path to a copy of it in /nix/store/
colemickens has joined #nixos
<clever> the path is based on the hash of the contents
<steveeJ> fancy, will it ever be GC'ed?
<wilornel> I don't understand the idea behind `python3` argument in `nix-shell `nix-shell python3 -p 'python3.withPackages (ps: with ps; [ matplotlib ])'`
<clever> steveeJ: nix knows that the resulting derivation depends on that path and wont allow it to be deleted first
jrolfs has quit [Ping timeout: 260 seconds]
TonyTheLion has quit [Ping timeout: 268 seconds]
<clever> steveeJ: so the script that the string generates has to be deleted first
<steveeJ> clever: so there's a GC root pointing back to the dependent script?
<srhb> wilornel: Did I write that? If so, it was a mistake, sorry
<clever> steveeJ: it becomes a runtime dependency, so it doesnt need a root
<srhb> wilornel: it should just be -p python3.withPackages ...
<steveeJ> oh, cause the derivation is also in the nix store, understood
<steveeJ> I was thinking of a script outside of /
<steveeJ> /nix
ArdaXi[m] is now known as ArdaXi
ArdaXi has quit [Changing host]
ArdaXi has joined #nixos
ArdaXi has joined #nixos
<srhb> wilornel: Here's an example: http://nixpaste.lbr.uno/UmrOfXQV?nix
radvendii has quit [Quit: WeeChat 2.0]
TonyTheL1on has quit [Ping timeout: 260 seconds]
Fare has quit [Ping timeout: 260 seconds]
lhart has joined #nixos
daveo has joined #nixos
TonyTheLion has joined #nixos
[Leary] is now known as Leary
<{^_^}> [nixpkgs] @Ericson2314 pushed 193 commits to staging: https://git.io/vpaky
<{^_^}> → caec3b9e by @Twey: PyQt5: 5.10.0 -> 5.10.1
<{^_^}> → 2fa1165e by @edef1c: switch-to-configuration: use Net::DBus to retrieve the list of units
<{^_^}> → fc7ed300 by @Twey: plover: 3.1.0 -> 3.1.1
<{^_^}> [nixpkgs] @xeji merged pull request #38309 → go_1_{9,10}: disable problematic tests in net module → https://git.io/vx6cv
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/vpakF
<{^_^}> → 8a77a0ae by @volth: go_1_{9,10}: disable TestWritevError test
<{^_^}> → 9e11e4ba by @volth: go_1_{9,10}: disable TestVariousDeadlines test
<{^_^}> → a958d800 by @xeji: Merge pull request #38309 from volth/fix37704
smichel has quit [Quit: smichel]
Leary is now known as leary`
winem_ has quit [Ping timeout: 255 seconds]
jgertm has joined #nixos
jacob_ has quit [Quit: Lost terminal]
<wilornel> srhb: I try that in shell.nix but it won't give me python3.6.5, it gives me python3.6.4
<wilornel> srhb: the example you provided works perfect. Trying to integrate it with what I have
<srhb> wilornel: Sorry, I changed it to python3 because there wasn't cached versions on the other one.
hakujin has joined #nixos
lhart has quit [Quit: lhart]
<srhb> I don't see 3.6.4 though. I see 3.6.5. Is your channel up-to-date?
Smithx10_ is now known as Smithx10
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
szicari has joined #nixos
<{^_^}> [nixpkgs] @dtzWill merged pull request #39945 → git: disable failing test w/musl for now → https://git.io/vpaTY
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/vpaLq
<{^_^}> → 481ca447 by @dtzWill: git: disable failing test w/musl for now
<{^_^}> → 1abe8fa4 by @dtzWill: Merge pull request #39945 from dtzWill/fix/temp-workaround-git-test-musl
nckx has quit [Quit: Updating my GNU GuixSD server — gnu.org/s/guix]
nckx has joined #nixos
toby1851 has joined #nixos
asuryawanshi has quit [Ping timeout: 264 seconds]
hakujin has quit [Ping timeout: 260 seconds]
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
andrewmiller1 has quit [Ping timeout: 260 seconds]
tertle||eltret has joined #nixos
wchresta_ has joined #nixos
grp has quit [Quit: box shutting down...]
katyucha has quit [Ping timeout: 248 seconds]
Ariakenom has quit [Ping timeout: 256 seconds]
aarvar has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #39420 → A selection of cross-compiling fixes → https://git.io/vpZPd
<{^_^}> [nixpkgs] @Ericson2314 pushed 12 commits to staging: https://git.io/vpamq
<{^_^}> → 67e4ed96 by @bgamari: mmc-utils: Enable cross-compilation
<{^_^}> → edd92f91 by @bgamari: net-tools: Enable cross-compilation
<{^_^}> → 10fa4a57 by @bgamari: tcp-wrappers: Enable cross-compilation
<sphalerite> how can I identify whether the CPU in a machine is 64-bit, if it's running a 32-bit OS?
wchresta_ has quit [Ping timeout: 264 seconds]
jtojnar has quit [Remote host closed the connection]
daveo has quit [Ping timeout: 260 seconds]
<tilpner> sphalerite - lscpu?
monotux has quit [Quit: The Lounge - https://thelounge.github.io]
<Dezgeg> on x86 only?
toby1851 has quit [Ping timeout: 256 seconds]
<sphalerite> yes, this is x86
<electrocat> lscpu | grep op-mode
<sphalerite> 32-bit only D:
<sphalerite> thanks
monotux has joined #nixos
knupfer has quit [Remote host closed the connection]
deepfire has quit [Ping timeout: 264 seconds]
stephenjudkins has joined #nixos
drakonis has quit [Remote host closed the connection]
xy2_ has quit [Quit: WeeChat 1.9.1]
Ariakenom has joined #nixos
hamishmack has joined #nixos
jrolfs has joined #nixos
<ben> yo why did we remove 4.15 kernel from nixpkgs
<ben> can't find the pr for that
olto has quit [Ping timeout: 240 seconds]
Xal has quit [Ping timeout: 248 seconds]
jtojnar has joined #nixos
<nliadm> upgrading my base os to fedora 28 has caused nix's perl to complain about locales
<sphalerite> ben: it was removed because it's EOL
<ben> yeah, doesn't seemt o link to a pr
<sphalerite> ben: I don't think there was a PR.
<ben> huh.
doyougnu has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #39922 → matrix-synapse: 0.27.4 -> 0.28.1 → https://git.io/vp2LE
<{^_^}> [nixpkgs] @xeji pushed commit from @florianjacob to master « matrix-synapse: 0.27.4 -> 0.28.1 (#39922) »: https://git.io/vpaOY
katyucha has joined #nixos
doyougnu has joined #nixos
Xal has joined #nixos
<sphalerite> ben: 2018-04-24 14:14:43 -- Notice({^_^}): [nixpkgs] @NeQuissimus pushed to master « linux: Remove 4.15.x »: https://git.io/vpG7E
<sphalerite> it was indeed pushed without a PR
katyucha has quit [Ping timeout: 240 seconds]
Wharncliffe has joined #nixos
<nliadm> also, nix programs can't seem to see fonts now
<nliadm> which is a problem
<dtz> lol yes they're kinda useful :(
rosa has joined #nixos
hiratara has quit [Ping timeout: 276 seconds]
<nliadm> okay, an 'fc-list' with nix's fontconfig spits out some warning
<nliadm> s
hiratara has joined #nixos
<ben> I've been experiencing a thing where nixos-rebuild switch kills X, it doesn't come back up and I can't log in on the console either
<ben> any idea what I could be doing wrong?
<sphalerite> ben: nothing, it's a bug that recently showed up on unstable iirc
nur0n0 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<sphalerite> yep that one
hakujin has joined #nixos
mattyu has quit [Quit: done]
szicari has quit [Quit: szicari]
deepfire has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #39947 → lib{std,}c++: Fix setup hooks for cross → https://git.io/vpasZ
__monty__ has quit [Quit: leaving]
seville has quit [Quit: Leaving]
rosa has quit [Quit: rosa]
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #39947 → lib{std,}c++: Fix setup hooks for cross → https://git.io/vpasZ
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to staging: https://git.io/vpaGN
<{^_^}> → 39df5831 by @Ericson2314: lib{std,}c++: Fix setup hooks for cross
<{^_^}> → 88d18d2e by @Ericson2314: Merge pull request #39947 from obsidiansystems/libcxx-cross
<{^_^}> [nixpkgs] @xeji opened pull request #39948 → matrix-synapse: 0.26.1 -> 0.28.1 (security update) → https://git.io/vpaZJ
grafoo has joined #nixos
xcmw has joined #nixos
hiratara has quit [Quit: ZNC - http://znc.in]
<deepfire> Did anyone see "curl: (48) An unknown option was passed in to libcurl" lately? Just filed https://github.com/NixOS/nixpkgs/issues/39949 for it..
hiratara has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
sanscoeur has quit [Ping timeout: 264 seconds]
<stumble> Thank you.
<{^_^}> [nixpkgs] @chris-martin opened pull request #39950 → Add udev rules for Ledger devices → https://git.io/vpanP
jperras has joined #nixos
<mightybyte> I understand the fetchTarball function was recently updated to allow specifying a hash. Is the old functionality also available?
grafoo has quit [Remote host closed the connection]
<mightybyte> It doesn't seem to b.
<mightybyte> be
gchristensen has left #nixos ["WeeChat 1.9.1"]
kwork has joined #nixos
lord| has joined #nixos
<{^_^}> [nixpkgs] @Ekleog opened pull request #39952 → nheko: 0.3.1 -> 0.4.0 → https://git.io/vpack
simukis has quit [Ping timeout: 248 seconds]
kwork has quit [Changing host]
kwork has joined #nixos
<srhb> mightybyte: There was no builtins.fetchTarball before iirc
<srhb> mightybyte: Maybe you're mixing up the two like named functions?
logzet has quit [Remote host closed the connection]
<srhb> Nah, I'm misremembering.
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srhb> mightybyte: But this works: builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/master.tar.gz"
<srhb> Though of course, all the usual warnings apply :D
rosa has joined #nixos
<mightybyte> srhb: I was just getting "error: value is a string with context while a set was expected"
nD5Xjz has joined #nixos
joehh has joined #nixos
<srhb> mightybyte: Huh. That's strange.
dbmikus has quit [Quit: WeeChat 2.1]
<srhb> mightybyte: Does specifying { url = ...; } with no hash work?
<{^_^}> [nixpkgs] @matthewbauer pushed to master « qt48: fix patch url »: https://git.io/vpacb
<srhb> instead of just the url as a string, that is.
<mightybyte> I was fine with that, but it required a hash. I did my normal method of setting the hash to 00000... and seeing what it said it should be, but it didn't tell me what it should be.
<srhb> mightybyte: nix-prefetch-url --unpack can help with that. And I think there's an issue to add the usual real-hash-error
rosa has quit [Quit: rosa]
<srhb> Unless fetchTarball does more sanitizing... Hmm.
<mightybyte> Ahh, my bad...I had forgotten to call import on the result of fetchTarball
<mightybyte> Apparently the error message just happened to match up to what I would expect if it had that behavior.
<srhb> oh. :)
bbarker has joined #nixos
xcmw has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer pushed to master « libgweather: fixup assertion error »: https://git.io/vpaCB
<jayq> Trying to install `nixos-enter`. The manual hints to two ways: (a) `nix-build '<nixpkgs/nixos>' -A config.system.build.nixos-enter`, and (b) `nix-env -iE "_: with import <nixpkgs/nixos> { configuration = {}; }; with config.system.build; [ nixos-enter ]`. They both fail when using 'nixos-enter'; however, replacing 'nixos-enter' with 'nixos-generate-config' works fine for both. I've searching with `nix-env -qaP` with no results. It's
<jayq> clearly in the source code, but I don't know how to derive the selection path from that alone. What should I try next? Any docs I should read over specific to this?
<bbarker> In Nix 2.0+, is there a reason nix-env -if foo.nix doesn't link in binaries to the PATH somewhere (or maybe it is just that my environment is broken)?
<{^_^}> [nixpkgs] @cleverca22 opened pull request #39953 → runInLinuxVM: fix ext4 and crc32c-intel interactions → https://git.io/vpaCo
Maxdamantus has quit [Ping timeout: 264 seconds]
<mightybyte> Does the fetchFromGitHub downloader work with private repos? It doesn't look like it is for me.
Maxdamantus has joined #nixos
<mightybyte> But I could swear I've used it for private repos in the past.
erasmas has quit [Quit: leaving]
deepfire has quit [Ping timeout: 264 seconds]
deepfire has joined #nixos
<{^_^}> [nixpkgs] @cleverca22 opened pull request #39954 → runInLinuxVM: fix ext4 and crc32c-intel interactions → https://git.io/vpaCF
Nosti has joined #nixos
Nosti has left #nixos ["Leaving"]
<clever> jayq: which version of nixpkgs are you trying that on?
xcmw has quit [Ping timeout: 240 seconds]
jayq has quit [Ping timeout: 240 seconds]
wchresta_ has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #39952 → nheko: 0.3.1 -> 0.4.0 → https://git.io/vpack
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpaWE
<{^_^}> → c770e616 by @Ekleog: nheko: 0.3.1 -> 0.4.0
<{^_^}> → cc8c33e1 by @xeji: Merge pull request #39952 from Ekleog/nheko-0.4.0
jrolfs has quit [Ping timeout: 260 seconds]
xcmw has joined #nixos
Arcaelyx has quit [Quit: Textual IRC Client: www.textualapp.com]
blankhart has quit [Ping timeout: 256 seconds]
papika has joined #nixos
wchresta_ has quit [Ping timeout: 264 seconds]
semantimancer has joined #nixos
joehh has quit [Ping timeout: 256 seconds]
<semantimancer> Anyone here maybe willing to help me with a /boot problem?
dbe_ has quit [Ping timeout: 260 seconds]
jrolfs has joined #nixos
<semantimancer> Only been using nixOS a few days. Whenever I boot, I have to run nixos-rebuild switch from root or else my config doesn't seem to take effect. Also means I can't seem to boot into X.
rsa has quit [Ping timeout: 245 seconds]
jrolfs has quit [Ping timeout: 256 seconds]
jrolfs has joined #nixos
<clever> semantimancer: your /boot must be mounted when you run nixos-rebuild, and you need to add it to hardware-configuration.nix
<srl295> `/etc/nixos/` seems to be a good place for a git repo to track history, any downsides to this?
<semantimancer> Thanks, clever. Would you happen to know a good example of what it should look like in hardware-configuration.nix, for a UEFI system? Most of what I'm seeing online uses grub.
<clever> semantimancer: in general, you can just run nixos-generate-config, and it will recreate hardware-configuration.nix, based on what is currently mounted
<clever> semantimancer: thats why it has a comment saying to avoid editing the file
<semantimancer> Okay. So maybe I just didn't have it mounted when I ran that the first time.
<semantimancer> Yeah, just saw that.
<clever> yeah, thats a fairly common mistake, they run generate-config without /boot mounted, then mount /boot to fix other errors, but the config doesnt know of it
hakujin has quit [Ping timeout: 260 seconds]
<srl295> `environment.systemPackages = with pkgs; [ wget emacs-nox ];` << the hyphen in `emacs-nox` doesn't seem to work here, what's the right syntax?
<{^_^}> [nixpkgs] @lionello opened pull request #39957 → nix-prefetch-git: fix handling of submodules with spaces → https://git.io/vpa8D
<semantimancer> I'll give that a try, clever. Appreciate it.
semantimancer has quit [Quit: Lost terminal]
<clever> srl295: the attribute name appears to be emacs25-nox
Maxdaman1us has joined #nixos
Maxdamantus has quit [Ping timeout: 264 seconds]
<Myrl-saki> clever: So... uh... I just resorted to building i686 packages instead. Just as insane but I guess way more practical?
<srl295> clever: thought i tried that, guess not
<clever> Myrl-saki: which i686 packages?
<Myrl-saki> clever: For starters, webkitgtk. :P
<Myrl-saki> clever: Next I'll retry rustc.
<Myrl-saki> I had to do some patches for webkitgtk to work, such as disabling GLES2
<Myrl-saki> There were some header conflicts, and god knows why.
<srl295> i'm having trouble getting docker to startup (even manually).. systemctl says 'no service docker.service' anyone know ?
jackdk has joined #nixos
spear2 has joined #nixos
<clever> srl295: you need to set virtualisation.docker.enable = true; in configuration.nix
<srl295> I have `virtualisation.docker.enable = true` and added the package `docker` . Seems I can startup using `dockerd` but not `systemctl`
<clever> srl295: and youve done nixos-rebuild switch?
<srl295> yes and also sublaunched vm
<clever> sublaunched vm ?
<srl295> i thought i set virtualisation.docker.enable but i set virtualiZation.docker.enable