gchristensen changed the topic of #nixos to: NixCon 2018 CfP is now open! https://nixcon2018.org/ || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon
<clever> trevthedev: you still have an override on llvm, line 84
<trevthedev> i uncommented it
<clever> firewall.allowedTCPPorts = list ++ [ 22 ];
<clever> trevthedev: port 22 is opened automatically by the ssh module
heinrich5991 has quit [Ping timeout: 240 seconds]
<trevthedev> ah
<clever> and there is zero point in trying to open udp port 22, ssh only listens on tcp
<clever> oh, and the firewall is disabled, so neither has any effect
troydm has quit [Ping timeout: 276 seconds]
<trevthedev> i disabled the firewall
orivej has joined #nixos
<trevthedev> as it was getting in the way of the jvm xd
<infinisil> LnL: You mean the filenames?
<trevthedev> hm?
<LnL> infinisil: yeah, I want to put something in a builenv but with prefixed binary names
heinrich5991 has joined #nixos
troydm has joined #nixos
goibhniu has quit [Ping timeout: 240 seconds]
<trevthedev> seems to be compiling better now
<trevthedev> thanks
<clever> LnL: you could do another buildEnv, and then rename its symlinks, but thats a bit messy
endformationage has quit [Ping timeout: 260 seconds]
<trevthedev> aaanndd it failed ;-;
<LnL> you can filter paths or put the tree in a folder but there's nothing to prefix files AFAIK
<trevthedev> python mako modulo
<trevthedev> module*
<clever> LnL: buildEnv has a post hook, where you can just put a for loop that renames the symlinks
<trevthedev> checking if module mako in python is installed... No module named mako
<trevthedev> no
<trevthedev> configure: error: Python mako module v0.8.0 or higher not found
<trevthedev> can fix this one sec
<LnL> clever: oh sure, but I was asking if there's a function for what I want
<trevthedev> even after installing mako it doesn't work xd
<clever> trevthedev: because nix is pure and doesnt care what you have installed
<trevthedev> so, how does one get mako if they have mako but nix doesn't care?
<clever> trevthedev: add it to the inputs for the derivation that needs it
<trevthedev> llvm needs it it seems
carlosdagos has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/bce371f7080 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos
<trevthedev> so, line 84 and 85 should be like this, correct?:
<trevthedev> llvm = pkgs.llvmPackages_4.llvm;
<trevthedev> 1 python36packages.Mako = true;
<trevthedev> y
<trevthedev> ignore the random y, was an accident xd
<clever> trevthedev: that wont work
<clever> it needs to append to buildInputs
<trevthedev> sorry im really bad at this xd
<clever> buildInputs = attrs.buildInputs ++ [ python36packages.Mako ];
<trevthedev> thanks
<trevthedev> annd same error
JonReed has quit [Ping timeout: 252 seconds]
<trevthedev> i think that mesa needs it actually
<clever> then you need to investigate how llvm is checking for mako, and why its failing
<trevthedev> it's mesa
<trevthedev> and no matter where i put that loc it doesn't run
<clever> lines 107-117 of the pastebin
<clever> or put it within the native inputs on 117, which is already doing the append for you
<trevthedev> 122 nativeBuildInputs = attrs.nativeBuildInputs ++ [ pkgs.bison pkgs.flex python36packages.Mako];
<trevthedev> like that correct?
<clever> yeah
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fAIsI
<trevthedev> gives error
<clever> what error?
<trevthedev> the variable python36packages is undefined
<clever> pkgs.python36packages.Mako
<trevthedev> tried already, error is that python36oackages is not found
<trevthedev> is missing*
<clever> Packages, not packages
<clever> > pkgs.python36Packages.Mako
<{^_^}> "<derivation /nix/store/xxxzlsv74aw1mlzdlc3ndafz4wzq199s-python3.6-Mako-1.0.7.drv>"
<trevthedev> oh, thanks
rprije has quit [Remote host closed the connection]
obadz- has joined #nixos
<trevthedev> a huge plethora of errors ;-;
<trevthedev> one of which is that mako wasnt found
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
rprije has joined #nixos
obadz has quit [Ping timeout: 260 seconds]
obadz- is now known as obadz
<{^_^}> [nixpkgs] @Ericson2314 pushed 0 commits to lib-customize-typo: https://git.io/fAIsu
rardiol has joined #nixos
alexteves has quit [Remote host closed the connection]
rardiol has quit [Ping timeout: 272 seconds]
rardiol has joined #nixos
ericsagnes has joined #nixos
dbmikus__ has quit [Ping timeout: 265 seconds]
Denommus has quit [Read error: Connection reset by peer]
Ericson2314 has quit [Ping timeout: 276 seconds]
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
philippD has joined #nixos
mainetim has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<philippD> Has anyone tried to get valves proton to run on NixOS yet? https://github.com/ValveSoftware/Proton
jperras has joined #nixos
sir_guy_carleton has joined #nixos
bennofs has joined #nixos
endformationage has joined #nixos
mainetim has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @volth opened pull request #45494 → usb-storage -> uas → https://git.io/fAInO
disasm has joined #nixos
Lisanna_ has quit [Quit: Lisanna_]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f3bf9610e98 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
Drakonis has joined #nixos
thc202 has quit [Ping timeout: 264 seconds]
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 264 seconds]
lassulus_ is now known as lassulus
sir_guy_carleton has quit [Quit: WeeChat 2.0]
jperras has quit [Ping timeout: 264 seconds]
orivej has quit [Ping timeout: 272 seconds]
orivej has joined #nixos
ZeDestructor_ has joined #nixos
benkolera_ has joined #nixos
oharvey_ has joined #nixos
gleber__ has joined #nixos
vaninwagen_ has joined #nixos
bennofs has quit [Ping timeout: 252 seconds]
cross_ has joined #nixos
roosemberth has joined #nixos
deni- has joined #nixos
greymalkin_ has joined #nixos
SOO7- has joined #nixos
selfsymmetric-pa has quit [*.net *.split]
[0__0] has quit [*.net *.split]
Orbstheorem has quit [*.net *.split]
nixy has quit [*.net *.split]
shoogz has quit [*.net *.split]
koschei[m] has quit [*.net *.split]
thefloweringash has quit [*.net *.split]
oharvey has quit [*.net *.split]
ZeDestructor has quit [*.net *.split]
gleber_ has quit [*.net *.split]
pingveno has quit [*.net *.split]
tv has quit [*.net *.split]
hsribei has quit [*.net *.split]
vaninwagen has quit [*.net *.split]
`slikts has quit [*.net *.split]
Yaniel has quit [*.net *.split]
deni_ has quit [*.net *.split]
greymalkin has quit [*.net *.split]
jbetz has quit [*.net *.split]
cross has quit [*.net *.split]
Adluc has quit [*.net *.split]
SOO7 has quit [*.net *.split]
tg has quit [*.net *.split]
teto has quit [*.net *.split]
benkolera has quit [*.net *.split]
NYXT has quit [*.net *.split]
Tritlo has quit [*.net *.split]
CapsLock has quit [*.net *.split]
capisce has quit [*.net *.split]
woboats has quit [*.net *.split]
ZeDestructor_ is now known as ZeDestructor
oharvey_ is now known as oharvey
vaninwagen_ is now known as vaninwagen
gleber__ is now known as gleber_
benkolera_ is now known as benkolera
greymalkin_ is now known as greymalkin
tg` has joined #nixos
shoogz- has joined #nixos
nixy has joined #nixos
SOO7- is now known as SOO7
sir_guy_carleton has joined #nixos
heinrich5991 has quit [Ping timeout: 252 seconds]
fractal has quit [Ping timeout: 240 seconds]
Izorkin has quit [Ping timeout: 265 seconds]
heinrich5991 has joined #nixos
Yaniel has joined #nixos
tv has joined #nixos
shoogz- is now known as shoogz
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
jperras has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
mayhewluke has quit [Ping timeout: 240 seconds]
fractal has joined #nixos
selfsymmetric-mu has joined #nixos
selfsymmetric-mu has quit [Remote host closed the connection]
selfsymmetric-mu has joined #nixos
<ashkitten> is there any way to make a local nixpkgs repo the default?
<clever> ashkitten: put it into $NIX_PATH, possibly via the nixos option nix.nixPath
<ashkitten> thanks
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/ecd9d74d973 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
vidbina has joined #nixos
c74d has joined #nixos
<c74d> If my installation of GNU Octave, which uses Qt 4, looks like <https://i.imgur.com/T77RrLY.png> rather than <https://www.gnu.org/software/octave/img/GNU_Octave_4-4-0_screenshot_1600x900.png>, what Qt support package(s) am I likely missing? (I have not knowingly installed a desktop environment or Qt support packages.)
hotfuzz has quit [Ping timeout: 260 seconds]
<samueldr> I think Qt used(?) to honour colours in Xresources
<samueldr> I have a .Xdefault, but no colours defined within
<samueldr> and octave looks like this ^
mayhewluke has joined #nixos
<samueldr> (though I couldn't find confirmation of that assertion)
<ashkitten> clever: is it ignoring the binary caches or what?
justanotheruser has quit [Ping timeout: 272 seconds]
<ashkitten> it's trying to actually build (very slowly) noto-fonts-emoji
<c74d> samueldr: Do you have any Qt/KDE framework packages explicitly installed?
<emily> I'm not sure this is a case of missing packages.
<clever> ashkitten: that can happen if your local copy of nixpkgs is not on a rev that the cache contains
<ashkitten> hmm
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<samueldr> c74d: using variations of `find -L /Users/samuel/.nix-profile/ . -iname '*qt*' ` and verifying QT env vars, pretty sure nothing's bringing qt4 into my envs
<samueldr> or my profiles
Drakonis has quit [Remote host closed the connection]
eqyiel has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
simukis has joined #nixos
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyren has joined #nixos
<c74d> samueldr: Hm. Thanks for checking so thoroughly.
simukis has quit [Ping timeout: 268 seconds]
justanotheruser has joined #nixos
<timclassic> Hmm, how can I introduce new NixOS modules via an overlay?
<timclassic> I'm searching but not coming up with anything.
<clever> timclassic: modules can only be loaded by adding them to the imports section of configuration.nix
<clever> overlays cant touch the module system
<timclassic> Oh, interesting
Ridout has quit [Ping timeout: 272 seconds]
<timclassic> Is there any convention for including modules in an overlay, such as using a nixos/ subdirectory?
<mdash> you can go the other way and have an imported expr provide modules _and_ the overlay
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
jperras has joined #nixos
<timclassic> mdash: Hmm, that's an idea
jperras has quit [Ping timeout: 256 seconds]
<kalbasit[m]> when using home-manager as a nixos module (instead of the home-manager CLI), is it possible to access nixos config?
<kalbasit[m]> I mean from within the `home-manager.users`
Guanin_ has quit [Ping timeout: 252 seconds]
Fare has joined #nixos
Izorkin has joined #nixos
heinrich5991 has quit [Ping timeout: 240 seconds]
Guanin_ has joined #nixos
heinrich5991 has joined #nixos
<ekleog> timclassic: if you're building an overlay and modules for others' consumption, you may want to have a look at https://github.com/nix-community/NUR :)
<elvishjerricco> kalbasit[m]: You can use the `config` variables from the NixOS module arguments.
<ekleog> that's technically not working with overlays, though
<ekleog> (but allows to add packages nonetheless, just not to replace a package used by nixpkgs -- thus requiring relatively less trust for enabling it)
<clever> timclassic: oh, what i do, is i put my overlay, inside the module
<clever> timclassic: this module adds qemu-userland options, and adds its own overlay to the cfg
<clever> so its as simple as imports = [ ./qemu.nix ]; and the overlay is automatic
<timclassic> clever: And so you only have to add it to imports and you're done?
<clever> yep
<timclassic> Nice, that is what I want here.
<timclassic> Ah, I see, and it just gets appended to the list because it's a standard config option! Neat.
<timclassic> clever: Thanks!
<timclassic> ekleog: NUR looks cool! It's not exactly what I want here but I likely have some things to contribute.
<timclassic> The world of Nix moves so fast, I can barely keep up.
<timclassic> (In a good way, not in a JavaScript framework way)
<ekleog> ^
trevthedev has quit [Ping timeout: 265 seconds]
<kalbasit[m]> elvishjerricco: so if you look at this PR https://github.com/kalbasit/system/pull/48/files#diff-73a616cb151a1960a82e8c44d7685a70R9 I have the nixos part just does `home-manager.users.kalbasit = import ../../home/cfg` inside of that `cfg/default.nix` I have `imports = [ ./i3 ]` which in turn calls another `import` this last import cannot find `networking` in `config`
<kalbasit[m]> this suggest to me that it's nixpkgs.config not the config
hamishmack has joined #nixos
hamishmack has quit [Ping timeout: 272 seconds]
witchof0x20 has quit [Remote host closed the connection]
witchof0x20 has joined #nixos
logzet has joined #nixos
<elvishjerricco> kalbasit[m]: That's because when you give something to `imports` in the home-manager submodule, `config` refers to the home-manager submodule, not the NixOS config.
<kalbasit[m]> elvishjerricco: so what's the solution in this case?
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dedalo has joined #nixos
<elvishjerricco> You have to get the NixOS `config` in there somehow. You could add an option to the `home-manager` module that would let you store it in the `home-manager` config, or you could literally just pass it down lambda style, or you could write all these modules as NixOS modules and just redo `home-manager.users = ...` in each of them.
Dedalo has quit [Client Quit]
heinrich5991 has quit [Ping timeout: 256 seconds]
trcc has joined #nixos
Fare has quit [Ping timeout: 240 seconds]
trcc has quit [Remote host closed the connection]
trcc has joined #nixos
heinrich5991 has joined #nixos
slyfox_ has joined #nixos
slyfox has quit [Ping timeout: 252 seconds]
heinrich5991 has quit [Ping timeout: 240 seconds]
heinrich5991 has joined #nixos
hyper_ch2 has joined #nixos
hamishmack has joined #nixos
drewr has quit [Ping timeout: 260 seconds]
c74d has left #nixos [#nixos]
orivej has quit [Ping timeout: 252 seconds]
sir_guy_carleton has quit [Quit: WeeChat 2.0]
roosemberth is now known as Orbstheorem
periklis has joined #nixos
mayhewluke has quit [Ping timeout: 260 seconds]
brodul has joined #nixos
Ariakenom has joined #nixos
klntsky has quit [Remote host closed the connection]
klntsky has joined #nixos
peel has joined #nixos
jperras has joined #nixos
kyren_ has joined #nixos
kyren has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @danieldk opened pull request #45495 → pass: Fix dependencies on Darwin → https://git.io/fAIg8
mayhewluke has joined #nixos
jperras has quit [Ping timeout: 256 seconds]
rauno has joined #nixos
kyren_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ThatDocsLady has joined #nixos
statusbot has quit [Ping timeout: 260 seconds]
[0__0] has joined #nixos
adamCS has quit [Ping timeout: 260 seconds]
johanot has joined #nixos
adamCS has joined #nixos
kyren has joined #nixos
Tucky has joined #nixos
<ldlework> can I use functions inside of ${} in strings?
<ldlework> like can I call a function that way
<ldlework> something like " ... ${framerate 60} ... "
<ldlework> ah why don't i try with repl
<johanot> ldlework: as you may have found out already, the answer is yes you can :)
<ldlework> cannot coerce integer to string
<ldlework> rate = rate: "-framerate ${rate}"
<ldlework> "... ${rate 60} ..."
<johanot> ${toString rate}
<ldlework> aww
<ldlework> rate already returns a string though
<ldlework> oh
<ldlework> nice!
<ldlework> johanot: thanks!
<johanot> ldlework: np
Izorkin has quit [Ping timeout: 268 seconds]
kyren_ has joined #nixos
rprije has quit [Ping timeout: 240 seconds]
<ldlework> johanot: quality = min max target: "${minrate min} -b:v ${toString target} ${maxrate: max}";
<ldlework> it's beautiful
<johanot> :) stuff like that is why we hangout here
rprije has joined #nixos
kyren has quit [Ping timeout: 265 seconds]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/73d348c8eb1 (from 2 days ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
kyren_ has quit [Read error: Connection reset by peer]
kyren has joined #nixos
heinrich5991 has quit [Ping timeout: 260 seconds]
heinrich5991 has joined #nixos
gspia has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 3 commits to master: https://git.io/fAIat
tv has quit [Quit: WeeChat 2.0]
tv has joined #nixos
<{^_^}> [nixpkgs] @vcunat merged pull request #45312 → qtcreator: enable on aarch64 and armv7 → https://git.io/fAe7N
goibhniu has joined #nixos
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Izorkin has joined #nixos
Thra11 has joined #nixos
<cmcdragonkai> How do you use buildPythonPackage to also wrap non-python executable scripts.
<cmcdragonkai> I see it does something in the postFixupphase, but is there a way to coinfigure the function to add extra phases?
<cmcdragonkai> Is it via overriding the package and reusing the same attribute?
kyren has joined #nixos
Thra11 has quit [Ping timeout: 256 seconds]
kyren has quit [Client Quit]
civodul has joined #nixos
sigmundv_ has joined #nixos
alex`` has joined #nixos
<Izorkin> How to fix error nixop deploy - https://pastebin.com/DTf7Ligh Not work in nixos-18.09pre150245.ecd9d74d973
rardiol has quit [Remote host closed the connection]
ArahaelPi has quit [Read error: Connection reset by peer]
bkchr[m] has joined #nixos
<bkchr[m]> Hi, someone online with Nixos and CMake knowledge?
<Yaniel> ask away
<bkchr[m]> Its about PRIVATE linkage. I created the following upstream bug report, that contains all necessary information: https://bugs.kde.org/show_bug.cgi?id=397653
<bkchr[m]> I just wanted to know, if somebody has an idea why this thing does not work on Nixos.
<bkchr[m]> It seems to work for other distributions.
<bkchr[m]> I'm unsure if it is a bug in NixOS, or if there CMake file is missing something
logzet has quit [Remote host closed the connection]
<ocharles> How do I add a .nar.bz2 to my store?
thc202 has joined #nixos
<Dezgeg> nix-store --import or nix-store --restore, can't remember which... but if you also have a corresponding .narinfo those won't work either
<ocharles> I only have a .nar.bz2, which I got from a Hydra instance, by navigating to a build and then appending /output/out
<hyper_ch2> anyone uses plex on nixos? Do you need to run a desktop for it?
<Dezgeg> if it's from a hydra can't you use it as a binary cache?
<mpickering> Please can I have a review of https://github.com/NixOS/nixpkgs/pull/39125
<{^_^}> #39125 (by mpickering, 18 weeks ago, open): SAGA, SAGA LTS release, dependencies and QGIS SAGA plugin
<ocharles> ok, nix-store --restore foo.nar.bz2 works, but half the files are missing. I know they all exist on my Hydra server, so maybe there's a way to make them all valid
arahael1 has joined #nixos
<Dezgeg> --restore doesn't restore crucial stuff like the dependency information
betaboon has joined #nixos
jperras has joined #nixos
<ocharles> ah, nice, there is api/get-info on builds, and that gives me an outPath. Then I can just do nix-store -r "$outPath"
<ocharles> I'm experimenting with building machines on Hydra, and having machines self update themselves :)
<Dezgeg> yes, nix-store -r is the way to go
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/61c0adfbc11 (from 33 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
phreedom has quit [Ping timeout: 250 seconds]
amosbird has quit [Quit: ZNC 1.7.0 - https://znc.in]
jperras has quit [Ping timeout: 264 seconds]
amosbird has joined #nixos
lawlesseel has joined #nixos
lawlesseel has quit [Client Quit]
lawlesseel has joined #nixos
heinrich5991 has quit [Ping timeout: 256 seconds]
heinrich5991 has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/ecd9d74d973 (from 10 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
rprije has quit [Ping timeout: 252 seconds]
rprije has joined #nixos
slyfox_ is now known as slyfox
Acou_Bass has quit [Ping timeout: 272 seconds]
arjen-jonathan has joined #nixos
Acou_Bass has joined #nixos
<adamantium> the security implications of nixos ... i wonder, say i
<adamantium> install virus, if that was more of a thing, in linux, ... Then I
<adamantium> run nixos-switch later. If the virus did not reside in /home,
<adamantium> would it likely be removed then?
<adamantium> I am sorry !
phreedom has joined #nixos
<srhb> adamantium: I think that's way too vague to really answer. Especially because our notion of "install" is a lot more nuanced than usually.
Zajcev has quit [Ping timeout: 252 seconds]
<srhb> If you were to have a "virus" (or anything) in your environment.systemPackages, say, then it would get "installed" in the new system profile as well, unless you removed it from thence.
<srhb> Same rules apply whether the package is malicious or not.
<srhb> For more complex malicious things that are actually exploitative rather than just a thought experiment installed into some profile, the details are just insufficient to really give a good answer.
<adamantium> oh ook, well that makes sense. I was hoping for a magic bullet, perhaps
<adamantium> I suppose the good news is the ease of reinstallation, should a person feel worried about compromise
<elvishjerricco> The fact that the nix store is read only and that we regularly purge it with nix-collect-garbage is a great assurance about security. It's obviously only a case of security through obscurity... but it does invalidate common attack vectors.
<hyper_ch2> adamantium: also don't forget that the nix store is by default read-only.... you first have to make it rw before a virus - outside the nix packages - could even put anything in there
heinrich5991 has quit [Ping timeout: 256 seconds]
<adamantium> we probably cannot uninstall sudo
<adamantium> or
<adamantium> hmm, well, I am just thinking about loud in here now. Sorry
<{^_^}> [nixpkgs] @Mic92 merged pull request #45495 → pass: Fix dependencies on Darwin → https://git.io/fAIg8
heinrich5991 has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAIix
<elvishjerricco> I wouldn't be surprised if there's a way to remove sudo from nixos :P
<elvishjerricco> Heh, yea: `security.sudo.enable = false;`
<adamantium> nice
<hiro_p> i would be surprised if that wasn't possible
<adamantium> iirc it came with it, that's why i said it out loud
<Havvy> That sounds like a great way to forever freeze your NixOS. Though there's also just making wheel empty and not giving root a password?
<hiro_p> it's still a linux underneath
<adamantium> nix is so cool. I also use zfs, i can roll things back that way and contain things somewhat
<adamantium> and zfs snapshots are also read only
<hiro_p> you could probably do whatever you want
<hiro_p> just that nix support will be broken
<elvishjerricco> Havvy: Giving root a password, or an SSH key would let you back in
<Dezgeg> or giving root autologin on the console
<{^_^}> [nixos-hardware] @Mic92 merged pull request #71 → T480s: use CPU throttling fix too → https://git.io/fNxZ8
<{^_^}> [nixos-hardware] @Mic92 pushed 2 commits to master: https://git.io/fAIPU
<Havvy> elvishjerricco: But can you do so without already being root?
<ekleog> init=/bin/sh
<ekleog> the solution to all the problems
<elvishjerricco> Havvy: Fair point. You'd want to ensure you provided root a login method before or at the same time as when you removed sudo
<ekleog> (or almost)
<adamantium> you still have SU
<adamantium> do you not?
<hyper_ch2> adamantium: yes, snapshots are read-only and hidden in the dataset's .zfs folder
<adamantium> yeah hyper_ch2 it's pretty great
<{^_^}> [nixpkgs] @Mic92 merged pull request #45494 → usb-storage -> uas → https://git.io/fAInO
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAIPq
<hyper_ch2> thx to zfs I don't have to rsync nightly anymore but do zfs send/receive hourly
<adamantium> Havvy: you could just su -l root without using sudo afaik :)
<elvishjerricco> Does `zfs send` only send blocks that aren't already present on the receiver?
<adamantium> only if you use the token
<adamantium> you can set a token
<adamantium> in case you disconnect during transfer
<hyper_ch2> elvishjerricco: you can zfs send and output it to a file
<hyper_ch2> or you can send it on the receivers end into a zfs pool
<elvishjerricco> One nice thing about the nix store is that nix store paths are shared and only sent if not already present. This is determined via the hash of the path. I'm guessing ZFS's checksums aren't such strong cryptographic hashes? i.e. I'd assume they're there for cheap verification, not secure validation.
Izorkin has quit [Ping timeout: 268 seconds]
<adamantium> i dont now
<adamantium> i find zfs and nixos extremely powerful tools
<adamantium> and work very well together for many purposes
<hyper_ch2> (and zfs unstable has now native encryption)
<hyper_ch2> zfs also support mirro and raidz
ThatDocsLady has quit [Remote host closed the connection]
<hyper_ch2> where I used like 3 tools before: mdadm, luks/dm-crypt, ext4.... I can do it now all in zfs
ThatDocsLady has joined #nixos
<adamantium> and omg nixos makes zfs easy
<hyper_ch2> oh... 4 tools: + rsync
<adamantium> try installing zfs on gentoo !!! then try nix
<hyper_ch2> adamantium: if you want to setup a system with zfs, best to create custom nixos installer iso with zfs integrated
<adamantium> yeah i have That
orivej has joined #nixos
<hyper_ch2> and on remote server, you can make use of clever's kexec :)
<elvishjerricco> I've been trying to adopt ZFS but I really wanted to use it for swap (https://github.com/zfsonlinux/pkg-zfs/wiki/HOWTO-use-a-zvol-as-a-swap-device), but I can't seem to get it working
thekolb has joined #nixos
<adamantium> yeah i have the one from clever
<elvishjerricco> What's that?
<hyper_ch2> elvishjerricco: with clever's kexec you can build a kexec that you can scp to a remote server then run it and basically it will boot up nixos into ram, so that you then can do a nixos install from within the ram
<thekolb> So I am trying to use nixops as the user deploy which can ssh root@target just fine via pubkey authentication, but when I invoke nixops it complains "root@target: Permission denied" and can’t connect. What am I missing this morning? O_O
<ldlework> how do I prevent "${w}" from being interpolated as a nix variable thing
<ldlework> i want ${w} in the string
<elvishjerricco> ldlework: you the string but you don't want nix to build `w`?
<elvishjerricco> ldlework: `builtins.unsafeDiscardStringContext`
<adamantium> good stuff hyper_ch2 , i bookmarked it
<ldlework> elvishjerricco: there isn't just a way to quote it?
<hyper_ch2> elvishjerricco: for a kimsufi server I used this kexec configuration: https://github.com/sjau/nix-expressions/blob/master/customIsoFiles/kimsufi_net_kexec_configuration.nix
<srhb> > ''''${w}''
<{^_^}> "${w}"
<srhb> ldlework: ^
<elvishjerricco> ldlework: If you want the output path of `w` without building `w`, I don't think so. Evaluating `"${w}"` as a nix expression will yield the output path without building `w`, but building any derivation that uses that string in its build scripts will require building `w`, as interpolating a derivation will make it a context derivation
<hyper_ch2> elvishjerricco: and once booted, i run my installer script: https://github.com/sjau/nix-expressions/blob/master/customIsoFiles/kimsufi_net_install_script
<srhb> Or in a single line string
<srhb> > "\${w}"
<{^_^}> "${w}"
<hyper_ch2> (for remotely unlockable native encrypt root zfs Nixos install)
<ldlework> elvishjerricco: i just want ${w} to literally appear in the string
<srhb> ldlework: Since you were confused, I'm betting you were in a multiline string, and the weird escaping pattern is indeed ''$
<ldlework> lol
<elvishjerricco> oh
<elvishjerricco> lol
<{^_^}> [nixpkgs] @mgeisler opened pull request #45497 → pex: 1.2.7 -> 1.4.5 → https://git.io/fAIMk
<ldlework> thanks
<elvishjerricco> yea escaping in nix is unusual.
<srhb> It gets more fun when you want to escape the scape
<srhb> > '''''''${foo}''
<{^_^}> "''${foo}"
<srhb> Beautiful
<Enzime> srhb: uhhh what
<srhb> :-)
<elvishjerricco> escaping is the most frustrating part about strings in literally every language
<srhb> elvishjerricco++
<{^_^}> elvishjerricco's karma got increased to 3
<elvishjerricco> especially bash... Lord I can't think of a worse way to waste time than trying to figure out string escaping in bash
<srhb> And this is the literal string as it should look with an escaped substitution..
<srhb> > ''''''''''${foo}'''''
<{^_^}> "''''${foo}''"
<srhb> I'll stop now :P
alexteves has joined #nixos
<srhb> elvishjerricco: It's like there's this complete lack of The One Unix Tool to template and substitute in
<srhb> And it's a massive frustration
<srhb> I always run into it :P
<elvishjerricco> srhb: Lol yea I've yet to encounter a string literal scenario where I felt like I knew how to handle myself :P
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
primeos has quit [Ping timeout: 272 seconds]
<hyper_ch2> hmmm, in the writeScripts I escape just like $''{var}
<hyper_ch2> wrong memory
<hyper_ch2> curStr="''${curStr##*>}"
<srhb> '' does not escape $ in "" strings
<{^_^}> [nixpkgs] @Mic92 merged pull request #45336 → Add licenses → https://git.io/fAvCD
<{^_^}> [nixpkgs] @Mic92 pushed 9 commits to master: https://git.io/fAIDv
<srhb> But yes, ''$ is a literal $ in a multiline string
<srhb> And ''' is a literal ''
Dedalo has joined #nixos
<{^_^}> zfsonlinux/zfs#7734 (by runderwo, 4 weeks ago, open): Swap deadlock in 0.7.9
<srhb> I did a brief scan of their issues
heinrich5991 has quit [Ping timeout: 240 seconds]
<srhb> It seems it has been the intention for it to work for years now, but it has been broken multiple times.
mayhewluke has quit [Ping timeout: 264 seconds]
heinrich5991 has joined #nixos
mayhewluke has joined #nixos
<elvishjerricco> srhb: Gah. The whole draw of ZFS to me is that I can discard so many other tools. It's very frustrating that I still have to use a separate swap system.
<srhb> Yes, agreed.
<elvishjerricco> srhb: Anyway thanks for the link
<hyper_ch2> I don't use swap
<srhb> I feel that random encryption of a swap partition is "okish" on NixOS because it has such a low mental overhead
<srhb> But I still do want everything on the same system...
<hyper_ch2> if I only could have /boot also as zfs dataset....
<srhb> hyper_ch2: It's nice if you can avoid it, but I regularly build things that require 32GiB+ of memory
* srhb wants a new laptop
<hyper_ch2> srhb: :)
<hyper_ch2> 128gb ram ought to be enough for anyone
<srhb> Sure... Sounds expensive :P
<elvishjerricco> srhb: Yea... It really makes me feel like zfs is kind of an afterthought overall, not just for nixos. I guess that's to be expected but it's still really disappointing.
ericsagnes has quit [Ping timeout: 264 seconds]
<srhb> I think it's safe to say that swap on zfs is a bit of an afterthought...
<elvishjerricco> heh yea
<srhb> The issues go back to 2012 and regularly are solved and broken again :P
<goibhniu> did you get a laptop from tuxedo in the end hyper_ch2?
<hyper_ch2> goibhniu: i did and it's running well
<srhb> hyper_ch2: Doesn't work, unfortunately.
* goibhniu is delighted to hear it
<hyper_ch2> only issue I have is that when I try to power it on while vga cable is attached, it won't boot up
<srhb> hyper_ch2: Currently, as soon as you dip just a little bit into the swap space, the system locks up hard.
<hyper_ch2> srhb: I know :)
<hyper_ch2> goibhniu: and also having to unscrew 17 screws just to add a sata and m2 ssd is a bit overkill
<srhb> hyper_ch2: Oh, then I misunderstood the intention of the link. What did you mean?
<hyper_ch2> srhb: I know zfs swap is frickle... I just don't know how bad it is
<goibhniu> ah, heh ^_^
<srhb> Unusable.
thekolb has left #nixos [#nixos]
<hyper_ch2> but then, zfs is really worth it... I don't regret having moved to it
<srhb> Nor do I.
<hyper_ch2> also zfs compression really saves quite a bit of diskspace
<srhb> And read time ^^
<hyper_ch2> never measured that ;)
<hyper_ch2> so, lunch time
trcc has quit [Remote host closed the connection]
trcc has joined #nixos
grw has joined #nixos
peel has quit [Quit: Connection closed for inactivity]
trcc has quit [Ping timeout: 272 seconds]
<genesis> https://packages.ubuntu.com/trusty/amd64/libspeechd-dev/filelist seems distribs populate /usr/include/libspeechd.h , how to tricks a package that need it ? #include <libspeechd.h>
<genesis> i've patched the makefile and i can try with NIX_CFLAGS_COMPILE, but if there is a trick :)
Wharncliffe has joined #nixos
<{^_^}> [nixpkgs] @zsedem opened pull request #45498 → postman: 6.1.4 -> 6.2.5 → https://git.io/fAISG
heinrich5991 has quit [Ping timeout: 252 seconds]
revtintin has joined #nixos
<ekleog> it should just work if you put a derivation that puts it in [the right place] in buildInputs
<ekleog> [the right place] being $out/include/libspeechd.h, if I can trust a find /nix/store -name '*.h'
heinrich5991 has joined #nixos
wirew0rm has joined #nixos
<genesis> hum seems a bit complicated, btw ekleog do you know nix-locate ? :)
<elvishjerricco> srhb: The lack of similar error messages with using ZFS as swap on other linux'es makes me think that it works fine on other distros. So does it seem reasonable that the minimalism of NixOS would be the reason that ZFS swap woudln't work?
<Dezgeg> no reason to believe that, it's all handled in the kernel
<Dezgeg> maybe you have a non-trivial disk setup compared to what others have set up?
<elvishjerricco> Dezgeg: My testing setup so far has been a single disk in a virtualbox environment, which has replicated the failure I've experienced in my single disk laptop.
<ekleog> genesis: yeah, but to find whatever.h, it's just as easy to use find :)
<ekleog> otherwise ,locate here works pretty well :)
trcc has joined #nixos
<srhb> elvishjerricco: I doubt that.
<Dezgeg> ok. I guess you need to try a matching kernel and zfs version to what others have done successfully
<elvishjerricco> Yea, that sounds hard though :P
qknight has joined #nixos
<Dezgeg> but personally I wouldn't simply do swap-on-ZFS... swap-on-anything-complicated is a minefield, e.g. swap-over-NFS had/has similar problems
vbernat has joined #nixos
philippD has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
jperras has joined #nixos
Lisanna has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #45490 → Add licenses → https://git.io/fAIUD
<{^_^}> [nixpkgs] @Mic92 pushed 10 commits to master: https://git.io/fAI9p
jperras has quit [Ping timeout: 240 seconds]
<hyper_ch2> from #zfsonlinux
<hyper_ch2> [12:57] <hyper_ch2> what's the current opinion on running swap on zfs/zvol? [12:59] <DeHackEd> avoid if possible, but if you have no other choice then make sure you configure it properly
heinrich5991 has quit [Ping timeout: 268 seconds]
heinrich5991 has joined #nixos
Fare has joined #nixos
<Mic92> Who needs swap anyway.
hamishmack has quit [Ping timeout: 268 seconds]
<srhb> All you rich people and your disk-sized RAM rigs. :-P
__monty__ has joined #nixos
<hyper_ch2> swap-over-network :)
vidbina has quit [Ping timeout: 260 seconds]
rprije has quit [Remote host closed the connection]
<hyper_ch2> Mic92: care to share some of your ram with us?
rprije has joined #nixos
<Mic92> hyper_ch2: well, when you are low on RAM, zfs is not the best choice anyway.
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/74d1acd7627 (from 72 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
Izorkin has joined #nixos
<hyper_ch2> my notebook and my home and office server have now the same amount of ram :)
<hyper_ch2> 32gb
<Mic92> this is twice the amount that I have .
<hyper_ch2> don't need to put arc thing into the config anymore
<hyper_ch2> and still can use ramdisk for /tmp
<hyper_ch2> and the VMs don't require me to free ram frist now
<Lisanna> What's the right way to deal with EULAs in nixpkgs?
HarpoRoeder has joined #nixos
<Lisanna> i.e., should a derivation's installer assume that the user accepts the EULA by using the nix distribution of the software?
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iyzsong has joined #nixos
simukis has joined #nixos
<ekleog> Lisanna: it appears to depend on the package
<ekleog> eg. the oracle ones require EULA to download, so the derivation uses a trick to force the user to accept it before managing to build
<ekleog> if it requires EULA to execute, I think marking it as license.unfree should be enough
<ekleog> should check an already-packaged example of something that has a similar EULA to yours, though :)
<Lisanna> ekleog: thinking of whether I should e.g. force the user to set a specific configuration param to indicate they accept the eula
hyper_ch2 has quit [Ping timeout: 252 seconds]
<Lisanna> the default config file for the installer has it set to "decline"
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<{^_^}> [nixpkgs] @uri-canva opened pull request #45499 → bazel-deps: update to 2018-08-16 → https://git.io/fAIQ2
<Mic92> Lisanna: from my understanding this should be enough, but I am not a laywer.
<ekleog> Lisanna: first question is, do you want it for the package or for the module
<ekleog> if you limit only the module people could still use the package
<Lisanna> not sure what you mean "package" vs "module"
<sphalerite> config.allowUnfree should be replaced by config.acceptedLicenses :p
<Lisanna> I'm working through the packaging for Intel parallel studio
hamishmack has joined #nixos
<Lisanna> eh, I'll just force the user to set a config param to be safe... they already have to set a config param to pass in their license file
<ekleog> Lisanna: if you are making something in pkgs/, it's a package; if you're touching nixos/, it's a module :)
<Izorkin> How to fix error nixop deploy - https://pastebin.com/DTf7Ligh Not work in nixos-18.09pre150245.ecd9d74d973
<Lisanna> ekleog: oh, didn't know you weretalking about nixos modules
<Lisanna> it's a package
<ekleog> yeah, I wrongly assumed “option” meant “module option” :)
<Lisanna> oh
<ekleog> Lisanna: then, if there's a license file, then you can just assume that passing the license file means acceptance of the EULA, can't you?
<ekleog> (this plus setting licence to unfree)
<ekleog> sphalerite++
<{^_^}> sphalerite's karma got increased to 11
<Yardanico> are there any near plans to update nvidia driver to the latest version in unstable? :) with comparasion to the current nvidia version newest one has a ton of vulkan bugfixes, performance improvements and compiles with linux 4.18
<Lisanna> *shrugs* if you ran it by hand that wouldn't be good enough
<ekleog> oh.
<ekleog> well, makes sense then :) though I'd intuitively think that EULA-based programs in nixpkgs usually use only license.unfree? don't use any, though, so… ^^
<ekleog> Yardanico: neither vcunat nor abbradar appear to be here, so you could open an issue and tag them, I guess :) then, you can also have a look at pkgs/os-specific/linux/nvidia-x11/default.nix and try updating stuff and testing, if you tag them on a PR it'll likely be done faster :)
lassulus has quit [Ping timeout: 240 seconds]
lassulus has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #45498 → postman: 6.1.4 -> 6.2.5 → https://git.io/fAISG
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAI7w
<sphalerite> ekleog: well it depends on what the EULA permits
<sphalerite> the oracle jdk one doesn't allow automating the download or something like that which is why we use requireFile for that
<sphalerite> I think
<Mic92> sphalerite: where does automating begin?
<Mic92> I think it is more about explicit consent of the end-user
<ekleog> phry: indeed, that's something I had mentioned a bit earlier :°
<sphalerite> Mic92: just stating what I think is the reason for oraclejdk not being "just unfree", I don't want to get into this :p
<ekleog> oops
<ekleog> sphalerite*
<sphalerite> oh right hence your "usually"
<ekleog> then, if we could have an acceptedLicenses that couldn't be set to `all`, it'd likely solve the issue
<Mic92> This is a question I actually want to ask a laywer about, but I never got the chance to.
<sphalerite> ekleog: easy to work around with acceptedLicenses = lib.attrNames lib.licenses; though…
<ekleog> sphalerite: if each EULA program used a specifig license string that's not in lib.licenses… :)
<sphalerite> ekleog: nope
* ekleog thinks potentially the website bans downloading from a non-whitelisted IP
<ekleog> yeah, so that's it
<sphalerite> oh right
<ekleog> and likely the reason why oraclejdk is requireFile :þ
<{^_^}> [rfcs] @CrystalGamma opened pull request #31 → [RFC 0030] Support ppc64(le) architecture → https://git.io/fAI5h
<ekleog> Mic92: then, tbh the nixpkgs license has the usual disclaimer of liability, so I wonder who could be attacked if nixpkgs didn't properly mention the license
philippD has joined #nixos
Wharncliffe has quit [Quit: Lost terminal]
HarpoRoeder has quit [Remote host closed the connection]
periklis has quit [Ping timeout: 252 seconds]
<ldlework> if a python package is really old
<ldlework> how can I update it
<LnL> ekleog: indeed
vidbina has joined #nixos
<ldlework> I've got a simple default.nix for nix-shell
<ldlework> how do I make the av python package more up to date?
<sphalerite> ldlework: I'd suggest just updating it in your nixpkgs clone so you can also make a PR
<sphalerite> Guanin_: btw are you in Bochum? (guessing from the host name)
aarvar has quit [Ping timeout: 276 seconds]
<sphalerite> Guanin_: I'm currently there, do you maybe know any other nixers in the area? Would be cool to do a little meetup
worldofpeace_ has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/d943490dc9a (from 78 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
worldofpeace has quit [Ping timeout: 264 seconds]
heinrich5991 has quit [Ping timeout: 256 seconds]
heinrich5991 has joined #nixos
<Taneb> Will nix-store --realise --add-root overwrite the root path if it already exists and is a symlink?
tokudan[m] has joined #nixos
<Dezgeg> yes
<Taneb> Thanks
<tokudan[m]> finally... joining this channel from Matrix is not fun with nickserv registration enforced...
<gchristensen> we can try turning off -rf and see if the spam is still problematic.
<Taneb> gchristensen: I was still getting spam in another channel this morning
<tokudan[m]> i don't care, i managed it now... but even after completing the registration I got kicked a few times ;)
<gchristensen> I care
<gchristensen> I don't like -rf. it makes it harder for people new to IRC and adds power to the "what about Slack?"-style questions.
<tokudan[m]> I have a derivation that is roughly defines as follows: stdenv.mkDerivation rec { name="abc-${version}"; version="20180629-03:25"; ...}. my problem is that nix complains that the 03:25 is not valid in the derivation name, but i need that : to generate the correct url. Is there a simple function that removes invalid characters in names that I could throw in front of the version?
<gchristensen> tokudan[m]: there is a substitute function but it is slow and not permitted in nixpkgs, in lib/strings.nix
<tokudan[m]> any other suggestion how i could work around that, apart from removing the version from the name?
<aminechikhaoui> I would prefer gitter over irc personnaly :D I know many won't share my preference though :)
<samueldr> tokudan[m]: any tips for others facing issues joining from matrix?
<sphalerite> tokudan[m]: did you use !storepass?
<gchristensen> tokudan[m]: for me, I don't think it is so bad to retype the version.
<sphalerite> tokudan[m]: because with that I think it should use SASL, making this not a problem?
<gchristensen> I think it is an antipattern to go through heroic efforts to not type the version number twice
<samueldr> (especially since it doesn't help with overriding, in the end)
<tokudan[m]> samueldr: well, nickserv isn't exactly user friendly to use from matrix
<gchristensen> and spoils grep
Fare has quit [Ping timeout: 255 seconds]
<tokudan[m]> sphalerite: after registering, yes
<samueldr> tokudan[m]: I'm asking mainly because I have never used matrix to join IRC; if people ask having tips handy is... handy!
heinrich5991 has quit [Ping timeout: 256 seconds]
<tokudan[m]> gchristensen: yeah, i can do that. but having it automated reduces the chance of errors and if it's just ${version} turning into ${lib.removeInvalidChars version}, then it's worth it in my opinion
<gchristensen> tokudan[m]: are you submitting it to nixpkgs?
<tokudan[m]> samueldr: well, first thing: contact @freenode_NickServ:matrix.org send it the message "HELP"
<tokudan[m]> gchristensen: no, it very likely wont end up there
<gchristensen> tokudan[m]: oh! there is a builtin now!
<gchristensen> > (builtins.replaceStrings [":"] ["-"] "foo:bar")
<{^_^}> "foo-bar"
Drakonis has joined #nixos
<tokudan[m]> samueldr: then register there and provide an email and password, check that email and send the verification code to nickserv. finally keep joining the room you want to join and if you get a message about getting kicked, just keep trying.
heinrich5991 has joined #nixos
<tokudan[m]> gchristensen: nice :)
<tokudan[m]> gchristensen: thanks, that's what I was looking for
<sphalerit> tokudan: ah right so you hadn't registered at all
<sphalerit> That explains it :p
<tokudan[m]> Linus: never needed to before ;)
lawlesseel has quit [Remote host closed the connection]
johanot has quit [Quit: leaving]
rprije has quit [Ping timeout: 240 seconds]
lawlesseel has joined #nixos
Denommus has joined #nixos
heinrich5991 has quit [Ping timeout: 240 seconds]
Fare has joined #nixos
<ekleog> gchristensen: there's a trick to allow matrix users but not matrix users
jD91mZM2 has joined #nixos
heinrich5991 has joined #nixos
<gchristensen> oh there is?
<ekleog> “replace `+r` with `+qe $~a *!*@gateway/shell/matrix.org/*`” (from matrix HS)
<ekleog> didn't check what this exactly does
<ekleog> errrr s/matrix/unregistered irc/2 in my first sentence, that didn't make sense at all
<{^_^}> [nixpkgs] @ryantm opened pull request #45502 → treewide: remove mailing list references → https://git.io/fAIje
<{^_^}> [nixpkgs] @Mic92 merged pull request #45472 → strace: check machine personalities for all non-x86 architectures → https://git.io/fAkyR
pikajude has quit [Quit: ZNC 1.7.1 - https://znc.in]
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to staging: https://git.io/fAIjO
pikajude has joined #nixos
<gchristensen> those sorts of modes make me nervous to set :$
<Aleksejs> which is the right way to add a path to $PATH in nixos? Is there any option in .nix file?
Fare has quit [Ping timeout: 255 seconds]
<ekleog> gchristensen: it's equivalent to +q $~a +e *!*@gateway/shell/matrix.org/
<ekleog> the +e *!*@gateway/shell/matrix.org/ is a ban exemption for *!*@gateway/shell/matrix.org/
<gchristensen> yeah
<gchristensen> I don't want to do that
<ekleog> the +q $~a appears to be “non-registered users can't speak”, but I can't find doc on https://freenode.net/kb/answer/channelmodes
<ekleog> it's been among the options proposed by ircops on #freenode
<gchristensen> yeah, I know. it makes for an even worse experience for unregistered users
<ekleog> “Garbee: yeah, that's +rf, that works as well, but you can also do +q $~a with a topic or entrymessage, because +r is a bit harder to bypass than +q for false positives” <- ~1hr ago on #freenode by an ircop
<ekleog> then, it's your choice, I'm just evoking possibilities :)
Mateon1 has quit [Ping timeout: 272 seconds]
<gchristensen> thank you :)
* ekleog likes the redirection to #nixos-unregistered
inquisitiv3 has joined #nixos
<gchristensen> me too, I think it is the least bad option
<inquisitiv3> I'm trying to connect to my school's wireless network. According the instructions for Ubuntu I should browse to `/usr/lib/ssl/certs/` and choose the certificate `Thawte_Premium_Server_CA.pem`. The problem is that I can't find the certificate.
<{^_^}> [nixpkgs] @xeji merged pull request #45475 → texlive-bin: disable mfluajit on ppc64(le) → https://git.io/fAkHp
<{^_^}> [nixpkgs] @xeji pushed commit from @CrystalGamma to staging « texlive-bin: disable mfluajit on ppc64(le) (#45475) »: https://git.io/fAIjj
heinrich5991 has quit [Ping timeout: 256 seconds]
mayhewluke has quit [Ping timeout: 240 seconds]
heinrich5991 has joined #nixos
Drakonis has quit [Ping timeout: 256 seconds]
Izorkin has quit [Ping timeout: 256 seconds]
<d1rewolf> guys, in nix pills #12, discussing single repository pattern he states "With nixpkgs, we import it and then we peek derivations by accessing the giant attribute set. " What does he mean regarding "peek" here?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/12 (by garbas, 6 years ago, closed): afew and alot updates
<gchristensen> maybe examine, or see?
<gchristensen> or access
<mkaito> d1rewolf: "obtain" I guess.
<mkaito> the value of those attributes is the derivation that describes how to build something. so by referencing the attribute, nix will do the right thing.
<mkaito> you get back a reference to said thing, and nix will build it as described in said derivation if necessary
<mkaito> make sense?
IRCsum has quit [Ping timeout: 268 seconds]
<d1rewolf> mkaito: I think so. thank you
<mkaito> so what happened to make firefox-bin unbuildable? doesn't seem to have been a bump to firefox itself. it complains that it should not reference gcc.
<mkaito> on nixos-unstable-small
<{^_^}> [nixpkgs] @xeji merged pull request #45499 → bazel-deps: update to 2018-08-16 → https://git.io/fAIQ2
<{^_^}> [nixpkgs] @xeji pushed commit from @uri-canva to master « bazel-deps: update to 2018-08-16 (#45499) »: https://git.io/fALvE
<{^_^}> [nixpkgs] @dotlambda opened pull request #45504 → radicale: 2.1.9 -> 2.1.10 → https://git.io/fALvr
Izorkin has joined #nixos
Fare has joined #nixos
inquisitiv3 has left #nixos ["WeeChat 2.0"]
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « hipchat: 4.30.5.1676 -> 4.30.5.1682 »: https://git.io/fALfa
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « hipchat: 4.30.5.1676 -> 4.30.5.1682 »: https://git.io/fALfo
Lisanna_ has joined #nixos
mayhewluke has joined #nixos
Lisanna has quit [Ping timeout: 260 seconds]
lawlesseel has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @joachifm merged pull request #45305 → apmplanner2: init at 2.0.26 → https://git.io/fAewa
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/fALUI
Mateon2 has joined #nixos
trcc has quit [Remote host closed the connection]
trcc has joined #nixos
<Pneumaticat> hmm, I'm trying to package LizardFS 3.12, but it seems like they added instructions in https://github.com/lizardfs/lizardfs/blob/master/cmake/Libraries.cmake to call a `download_external` function to download more dependencies on build, which obviously fails on Nix :/
<Pneumaticat> would anyone know of a good way around that? I guess I could try patching out those lines and manually downloading the files in the nix expression...
IRCsum has joined #nixos
jperras has joined #nixos
iyzsong has quit [Ping timeout: 256 seconds]
trcc has quit [Ping timeout: 256 seconds]
lawlesseel has joined #nixos
<sphalerite> Pneumaticat: yes, that's what I'd recommend. Unless you can just plop the files in the locations that it would have downloaded them to and it will just accept them like that
<Pneumaticat> no, it seems like it also does custom patching logic in `download_external`... wonderful
<Pneumaticat> I doubt it'd accept just putting the files there, so I'll probably have to patch the script
Profpatsch has joined #nixos
<Profpatsch> Ah, how I love wrappers that don’t pass through manpages and docs.
{`-`}_ has joined #nixos
<ldlework> I am trying to build this derivation, but it is telling me that attribute libX11 is missing: https://gist.github.com/dustinlacewell/f437dfd8c3238f2d60fd4dbbb84b52eb
<ldlework> Why would that be?
johanot has joined #nixos
zgrep has joined #nixos
<ldlework> nm
<ldlework> OK next problem
worldofpeace_ has quit [Read error: Connection reset by peer]
<ldlework> Linking kitty/fast_data_types ...
<ldlework> The package dbus-1 was not found on your system
<ldlework> not sure where to get "dbus-1"
worldofpeace has joined #nixos
<d1rewolf> ". Any ideas?
<d1rewolf> guys, in the repl, I'm getting "error: derivation '/nix/store/dpzib6xygiz9mk1bkjfkghq5c19hm819-bootstrap-stage0-glibc.drv' has incorrect output '/nix/store/rhfaq9w1y1k16p80lsx923sps0b7hnzb-bootstrap-stage0-glibc', should be '/nix/store/n5jq7vlhyk6ggx51gfg4fb4lh6www720-bootstrap-stage0-glibc'
<sphalerite> ldlework: add dbus to buildInputs
<sphalerite> d1rewolf: what are you doing that gets you that error?
<d1rewolf> sphalerite: s = (import <nixpkgs> {}), hit enter, and then on the next line, "toString s.i3"
{`-`} has joined #nixos
<sphalerite> d1rewolf: that is very odd.
<sphalerite> d1rewolf: it goes through all the paths in the store and checks them against the recorded hashes
<sphalerite> i.e. checks for store corruption
zgrep has joined #nixos
<d1rewolf> gotcha. sphalerite: is this oddness worth reporting or taking further, or should I just chalk it up to "don't use a 'nix repl' after an update if it was started before"?
shymega has joined #nixos
betaboon has quit [Quit: WeeChat 2.1]
<sphalerite> it's worth reporting in principle, but you don't actually have a way of obtaining this behaviour consistently, do you?
<d1rewolf> sphalerite: let me check
Lisanna_ has quit [Quit: Lisanna_]
<d1rewolf> sphalerite: sadly, no
<sphalerite> I suspected as much :/
<sphalerite> it's especially weird that it gave a different error for different packages
<d1rewolf> indeed :(
<sphalerite> for all we know this could be a cosmic ray bit flip ;p
<{^_^}> [nixpkgs] @bhipple opened pull request #45505 → pcre2: fetch src from HTTPS instead of FTP → https://git.io/fALtE
<d1rewolf> sphalerite: indeed ;-) VALIS in action.
vidbina has quit [Ping timeout: 240 seconds]
erasmas has joined #nixos
endformationage has joined #nixos
heinrich5991 has quit [Ping timeout: 276 seconds]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/27250f72904 (from 75 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/27250f72904 (from 75 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
heinrich5991 has joined #nixos
bruno2 has joined #nixos
<d1rewolf> it would be correct to say a derivation as a data structure is a set, correct?
<ldlework> an attrset yeah
<d1rewolf> k, thx
<bruno2> Hey, I'm trying to compile a rust hello world for a raspberry pi 2 (armv7).
<bruno2> i'm using rustPlatform.buildRustPackage
<bruno2> and the following nix build command:
<bruno2> nix build --arg crossSystem ' { config = "armv7l-unknown-linux-gnueabihf"; }'
<bruno2> I've tried to set binary caches: substituters = https://cache.nixos.org/ http://nixos-arm.dezgeg.me/channel
<Myrl-saki> bruno2: The binary caches only work for native packages.
<bruno2> but the nix build command still tries to build a lot of stuff
<Myrl-saki> bruno2: I'm not actually sure, but I'm pretty sure dezgeg only builds natively
<bruno2> Myrl-saki: i've followed this: https://nixos.wiki/wiki/NixOS_on_ARM#Binary_cache
<d1rewolf> can one print log messages to the console from a nix expression?
<sphalerit> bruno2: dezgeg's cache covers natively-built stuff, not arm stuff
<bruno2> ok, i'm fairly new to this, so what do you mean by natively-built?
<bruno2> do you mean stuff built on an arm processor
<sphalerit> > <@freenode_d1rewolf:matrix.org> can one print log messages to the console from a nix expression?
<sphalerit> bruno2: built on ARM, not just for ARM
<{^_^}> error: syntax error, unexpected '<', at (string):171:1
<sphalerit> d1rewolf: yes, using builtins.trace
<sphalerit> bruno2: yes, non-cross-built stuff
<sphalerit> So in the case of ARM, stuff built on ARM
<bruno2> so there's no way to get cached artefact built on x86 for ARM?
<bruno2> I would have naively thought that the end result would be the same, but I guess the hash would be different?
<sphalerit> You could set up your own binary cache :p
<sphalerit> You'd still have to build it to get it in there of course
<d1rewolf> are functions chainable? x.override{a=9;}.override{b=3;} reports an error stating that "attribute 'override' missing", but if I assign the result of the call "s=x.override{a=9;}", and then on a new line, "s.override{a=10;}", it works
<sphalerit> But yeah I don't know of any cache providing x86-built ARM stuff
<sphalerit> d1rewolf: yes, you just need some extra parentheses
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/0d80f9659c7 (from 78 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<d1rewolf> sphalerit: ok, got it. thx
<sphalerit> (x.override {a = 5;}).override {b = 6;} should work
<d1rewolf> indeed it does. thx
<bruno2> sphalerit: thanks. Would you say that the product of the compilation will be different (being on x86 or arm)
<sphalerit> bruno2: and yeah the derivation hashes end up different. The outputs are likely to end up different as well
<bruno2> How come the outputs would end up different?
<samueldr> sphalerit: looks like luck of the draw with regards to irc server + internet routing :/
<samueldr> I would call the previous non-stop streak quite lucky
heinrich5991 has quit [Ping timeout: 256 seconds]
heinrich5991 has joined #nixos
Dedalo has joined #nixos
<ldlework> Why would I be getting: /nix/store/3y0wxpkxzs6yz73iw35d17qr1wp4p2i4-stdenv-linux/setup: line 1225: wrapProgram: command not found
<bruno2> Cross-building for ARM that simple rust hello-world resulted in a lot of work
<ldlework> pls sirs
<bruno2> Like compiling perl for armv7. Any idea to avoid too many build tasks?
<d1rewolf> how does one force a re-import of a nix file?
johanot has quit [Quit: leaving]
<clever> ldlework: did you add makeWrapper to the inputs?
bruno2 has quit [Ping timeout: 255 seconds]
<ldlework> clever: i did then it complained about wrapPythonPrograms and i added that too and it said it is an undefined variable
<clever> ldlework: thats part of python
<ldlework> clever: hmm?
<clever> ldlework: is python int he inputs?
<clever> pkgs/development/interpreters/python/wrap.sh:wrapPythonPrograms() {
<clever> wrap-python.nix:} ./wrap.sh
<{^_^}> [nixpkgs] @dotlambda pushed to master « libsearpc: 3.0.8 -> 3.1.0 »: https://git.io/fALsC
<clever> top-level/python-packages.nix: wrapPython = callPackage ../development/interpreters/python/wrap-python.nix {inherit python; inherit (pkgs) makeSetupHook makeWrapper; };
<clever> ldlework: ah, its called wrapPython
<ldlework> clever: let me tell you what I'm doing - I wanted to install the master version of the kitty terminal. so I went to nixpkgs master, got the latest derivation, and fixed it up as a module after changing the rev and sha256 - it worked! But then, I tried to do the same thing, as an overlay, thinking the only thing I need to change is the github rev and stuff, making the overlay much shorter - but nope, it
<ldlework> complained about everything - i kept adding code from the original derivation and that got me further and further until this wrapPythonPrograms thing
<ldlework> So while I could probably do what you just said, isn't there an easier way to just override the latest nixpkgs derivation with a new rev/sha256?
<ldlework> the first file "just worked" copying it right from master, and making it a module and fixing the rev/sha
<ldlework> but the second file, the overlay, has been pure madness
<ldlework> i can't comprehend why there would be any difference at all
<ldlework> the overlay has so much crap because it wouldn't work when i just overrode the sha/rev
<ldlework> it kept making me add everything else too
chreekat has joined #nixos
<mdash> ldlework: have you tried using overrideAttrs without the overlay?
<ldlework> i don't really have a clear picture of what my options are
selfsymmetric-pa has joined #nixos
<ldlework> i want to adopt overlays because people keep saying they are the way forward
<ldlework> but i have such trouble with them
<ldlework> the promise sounds very convinent
<mdash> overlays are nice but they're a bit extra work, to be sure
<ldlework> like "take this existing package, change these few attributes, and go"
heinrich5991 has quit [Ping timeout: 256 seconds]
<ldlework> as in the fetchFromGithub details
<mdash> plenty of times I'll just do "let myNewFoo = pkgs.foo.overrideAttrs (...) in {<my nixos config>}"
<mdash> in configuration.nix
<ldlework> right
<ldlework> i feel like overlays are supposed to be exactly that
<ldlework> but the result ends up on pkgs.
* ldlework shakes fist at complexity
<sphalerit> d1rewolf: in what context?
<sphalerit> bruno2: there's not really much to be done about it unfortunately
<sphalerit> We just don't have binaries
* ldlework grovels at clever's feet
<clever> > python3Packages.wrapPython
<{^_^}> "<derivation /nix/store/smmwqvldzsxl8gwcs8x3nxsayvwn5avr-hook.drv>"
<clever> ldlework: try this one
heinrich5991 has joined #nixos
<ldlework> clever: sure, but like, why do i have to add all this crap
<ldlework> i just want to /overlay/ a few settings over the existing package
<clever> ldlework: line 15, you replaced buildInputs, not appended
<ldlework> not redeclare every part of it
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/0d80f9659c7 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<clever> so you deleted the old inputs
<ldlework> why do I have to append anything?!
<clever> because overrideAttrs overrides all attrs
<clever> you must use oldAttrs to get the original value and append
Tucky has quit [Quit: WeeChat 2.2]
<ldlework> how do you -just- overlay some changes to src=
<clever> dont set buildInputs
<ldlework> i did this
<clever> anything you dont set, wont be changed
<ldlework> i just set src=
<ldlework> and it didn't work one second
<clever> 16968 kitty = callPackage ../applications/misc/kitty { };
<clever> looks like it should just work
<mdash> ldlework: show us what happens when you only override src
<ldlework> ok
<ldlework> dbus-1 was not found on your system
<mdash> ok. guessing that's a new dependency then?
<ldlework> yes but why do I have to supply it
<mdash> so like clever said you'll need to set 'buildInputs = oldAttrs.buildInputs ++ [ dbus ];' or such
<clever> because its a new dependency that it previously didnt need
<ldlework> yes but -why-
<ldlework> yes but I copied the entire file into a module
<ldlework> and it worked without having to add dbus
<ldlework> so i have nixpkgs unstable added as pkgs.unstable with an overlay
<clever> you had dbus in here when you copied it
<ldlework> yes! like i said, i was adding whatever it demanded
<ldlework> look at the first file
<ldlework> no dbus
<ldlework> that's the file that worked by just copying it out of nixpkgs master
<ldlework> so
<ldlework> i have an overlay that adds nixpkgs master as pkgs.unstable
<clever> dbus is in both files of the gist i linked
<ldlework> yes that's my point
<ldlework> i have nixpkgs master as an overlay
<ldlework> at pkgs.unstable
<ldlework> i am overriding the unstable kitty pkg
<ldlework> it should be the same package as the file i copied from github master
<clever> what if you set the overlay on the unstable nixpkgs
<clever> unstable = import <unstable> { overlays = [ unstableOverlay ]; };
<clever> then just omit the .unstable
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> ldlework: add the kitty overlay on line 7
<ldlework> hmm that's not very modular but let's try it
<ldlework> do I add the whole self: super: function to the overlays list?
<Myrl-saki> ldlework: Have you showed clever your importer + overlays thingy?
<ldlework> the importer shouldn't be relevant here
<ldlework> that just adds modules to imports=
YellowOnion_ has quit [Read error: Connection reset by peer]
<Myrl-saki> ldlework: Nooo, I'm just wondering if you did as he could provide an explanation of why it doesn't work/how to make it work.
<ldlework> the module importer works tho
<Myrl-saki> ldlework: With overlays/packageOverrides?
<ldlework> Myrl-saki: the importer is very simply
<ldlework> simple
<ldlework> it just looks at what files have .nix in a folder
<ldlework> and adds them to imports=
<Myrl-saki> ldlework: That's not what I'm talking about.
<{^_^}> [nixpkgs] @baracoder opened pull request #45507 → Update Jetbrains IDEs → https://git.io/fALnf
<ldlework> as if you did it manually
jperras has quit [Quit: WeeChat 2.2]
<ldlework> Myrl-saki: oh sorry, what did you mean?
<Myrl-saki> ldlework: If you have `nixpkgs.config.packageOverrides = { foo = ...; };` why does `imports = foo bar;` infinite loop?
<Myrl-saki> ldlework: We encountered this even with the MWE I made, right?
<clever> the imports key cant depend on config
<ldlework> Myrl-saki: I'm lost
<infinisil> Myrl-saki: all modules need to be imported in order to evaluate the config, but if the module list depends on the config, this ain't gun work!
<ldlework> clever: so i moved the overlay into the unstable overlay
<ldlework> but i just get the dbus error again
<Myrl-saki> ldlework: Wait, remember when you wanted to add a libraries to nixpkgs via overlays/packageOverrides?
<Myrl-saki> And one of those is the importer?
<ldlework> Myrl-saki: oh yeah
<ldlework> I figured out how to make it a library function
<ldlework> oh but not add it to pkgs
<ldlework> i'm doing raw imports
<clever> ldlework: the dbus error sounds normal, the package depends on dbus now, but didnt depend on dbus before
<ldlework> but i think infinisil is sure it wont work
<ldlework> clever: but my unstable overlay is adding nixpkgs's latest rev!
<ldlework> repo = "nixpkgs-channels";
chreekat has quit [Ping timeout: 256 seconds]
<ldlework> rev = "8395f9aa85e621c076334a67d814de8221ce7983";
<clever> ldlework: nixpkgs master does not give kitty dbus
<ldlework> what
<ldlework> lol
<clever> the latest version of nixpkgs, does not supply a dbus, to the kitty package
<ldlework> guh
<Myrl-saki> ldlework: Ah. :P Thanks, just wanted to know what s happening.
<clever> the rev you choose for kitty needs a dbus
<ldlework> i knew what you meant i was just shocked
<Myrl-saki> what was happening*
<Myrl-saki> clever: Thanks too.
<Myrl-saki> infinisil: Oh, and you. :P
<ldlework> damn it lie-by-sleep-deprevation
<ldlework> argh
<infinisil> :P
<infinisil> > fortune
<{^_^}> "You will not censor me through bug terrorism. -- James Troup"
chreekat has joined #nixos
<d1rewolf> will home-manager eventually be rolled into nixos?
<clever> ldlework: ive asked people before if /boot is mounted, they claim yes, then i ask for a pastebin of `mount`, its not mounted :P
<ldlework> lol
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<ldlework> OH MY GOD
<ldlework> it works
<clever> and 80% of the time, i ask that after a user is confused about things not persisting between reboots
<infinisil> clever: A better installer would really be worth it, could solve all those install questions
<ldlework> if i could kiss people over standard tcp/ip
<ldlework> i would
<clever> infinisil: yeah
<Myrl-saki> clever: Reminds me of tech support and following scripts. :P
<Myrl-saki> Even sysadmins miss simple things from time to time.
<ldlework> so i was trying to get a local webserver going from my house - had the port forwarded and the router was properly configured
<clever> yeah
<ldlework> i was going out of my mind
<ldlework> then i called my isp and was like "please tell me what's wrong"
<ldlework> and he was like "have you tried to use a VPN?" I'm like duuuuuude, I can't have random people use a VPN to access my website
<clever> ldlework: some routers wont allow you to access the forwarded port from inside the network
<ldlework> can't you unblock the port?
<ldlework> he's like we don't block ports
<clever> but if you test it from the outside, you will find its already working
<ldlework> we sat in awkward silence for a few seconds and I'm like
<ldlework> do I have to get a public ip?
<ldlework> he's like we can do that!
<clever> lol
<ldlework> I'm like aw man why didn't you just say that
<ldlework> he's like dude I'm so sorry
<ldlework> but we can't do it unless you specifically ask
<ldlework> I look at my phone at arms length
<ldlework> smh
<ldlework> works now tho :)
<goibhniu> oh wow, haha
<clever> ldlework: i heard of a story of somebody that wanted to cancel their cable tv service
<clever> and it turns out, if you dont give a 2 week notice, you have to pay a hefty fee
<clever> "ok, just cancel it in 2 weeks"
<clever> nope!
<clever> you cant undo asking to cancel it :P
<ldlework> haha
<clever> thankfully, they have now made that illegal :P
<ldlework> captialism has been great, but it sure has these strange edge cases lol
<infinisil> #nixos-chat?
<genesis> autoPatchelfHook seems to not get that my elf was 32 bits :')
pingveno has joined #nixos
arjen-jonathan has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #45505 → pcre2: fetch src from HTTPS instead of FTP → https://git.io/fALtE
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fALc6
rardiol has joined #nixos
Ariakenom has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @ryantm merged pull request #45502 → treewide: remove mailing list references → https://git.io/fAIje
<{^_^}> [nixpkgs] @ryantm pushed to master « treewide: remove mailing list references »: https://git.io/fALCU
dmj` has quit [Quit: Connection closed for inactivity]
drakonis__ has joined #nixos
<ldlework> that minimal overlay is so beautiful
<ldlework> thanks again clever
<ldlework> last question I have I guess
<ldlework> if the package already defines a name that interpolates version
<ldlework> how do I override version such that, the name will properly get interpolated without having to redefine name=
<infinisil> Ya can't
<ldlework> lol
<ldlework> ah
<ldlework> i remember that
<ldlework> we need a knowledge-bot like in #emacs
<infinisil> ,help
<{^_^}> Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<infinisil> That?
<{^_^}> nixlang++ defined
<ldlework> uh oh
<ldlework> $(which kitty) says it is pointing at kitty-0.11.2/bin/kitty
<ldlework> there we go
<{^_^}> [nixpkgs] @Mic92 merged pull request #45436 → mono5.x: mark mono >= 5 broken on aarch64 → https://git.io/fAUdA
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fALWS
<ldlework> clever: huh so it really matters that the overlay is applied to the unstable overlay directly
sigmundv_ has quit [Ping timeout: 260 seconds]
Thra11 has joined #nixos
<ldlework> infinisil: do you have any idea if it is possible to use overlays with home-manager?
<infinisil> Of course, why wouldn't it
<ldlework> No idea.
<ldlework> In NixOS I set
<ldlework> nixpkgs.overlays = oimport ./.;
<ldlework> to set all my overlays, what's the home-manager way?
<ldlework> home.overlays ?
<ldlework> I guess I can rummage the source.
<infinisil> There's nixpkgs.overlays as well :)
<ldlework> oh hmm
lassulus has quit [Ping timeout: 240 seconds]
<ldlework> infinisil: that worked thanks
<ldlework> yay i don't need to maintain two sets of overlays
lassulus has joined #nixos
logzet has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #45507 → Update Jetbrains IDEs → https://git.io/fALnf
<{^_^}> [nixpkgs] @Mic92 pushed 10 commits to master: https://git.io/fAL4L
mayhewluke has quit [Ping timeout: 276 seconds]
mayhewluke has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed 10 commits to release-18.03: https://git.io/fAL4V
Ariakenom has joined #nixos
jperras has joined #nixos
azdle has quit [Remote host closed the connection]
heinrich5991 has quit [Ping timeout: 268 seconds]
heinrich5991 has joined #nixos
azdle has joined #nixos
clever has quit [Disconnected by services]
clever has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #45504 → radicale: 2.1.9 -> 2.1.10 → https://git.io/fALvr
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fALBD
lawlesseel has quit [Ping timeout: 250 seconds]
azdle has quit [Remote host closed the connection]
heinrich5991 has quit [Ping timeout: 268 seconds]
heinrich5991 has joined #nixos
statusbot has joined #nixos
azdle has joined #nixos
rardiol has quit [Read error: Connection reset by peer]
sigmundv_ has joined #nixos
worldofpeace has quit [Quit: worldofpeace]
troydm has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #45410 → Mark broken kernel modules on Linux 4.18 → https://git.io/fAJlA
<{^_^}> [nixpkgs] @Mic92 pushed 8 commits to master: https://git.io/fAL01
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fALEt
<{^_^}> [nixpkgs] @Mic92 merged pull request #45373 → pythonPackages.pycrc: init at 1.21 → https://git.io/fAfvg
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fALEY
<{^_^}> [nixpkgs] @7c6f434c pushed to master « fbterm: update source link towards the current Google's archive for Google Code »: https://git.io/fALED
<ldlework> why does the ranger wrapper add the package's /bin to the path? https://gist.github.com/dustinlacewell/1da1e9ecaec1a91c0ab3630392dfd2c3
<ldlework> i made a writeScriptBin "ranger" which I want to always be called when "ranger" is invoked
<ldlework> but when I call ranger, then, the path is such that, if ranger is called from within itself, then it doesn't invoke my writeScriptBin, it invokes the actual ranger
<ldlework> kind of annoying
sir_guy_carleton has joined #nixos
<{^_^}> [nixpkgs] @bkchr closed pull request #42076 → WIP: anbox: Init → https://git.io/vhX5w
<genesis> anbox seems the last alternative i'd try to make a gps device for my vehicle
jethroksy has joined #nixos
jethroksy has left #nixos [#nixos]
<ldlework> I guess this is something that the python builder does >:
worldofpeace has joined #nixos
troydm has joined #nixos
<{^_^}> [nixpkgs] @Yardanico opened pull request #45509 → Mark nvidia driver as broken on 4.18 → https://git.io/fALzk
vmandela has joined #nixos
<Izorkin> How to fix error nixop deploy - https://pastebin.com/DTf7Ligh
<Thra11> Is stdenv.hostPlatform.isArm the same as stdenv.hostPlatform.isAarch32?
aarvar has joined #nixos
simukis has joined #nixos
<clever> Izorkin: what version of nix is running on that remote machine?
<srhb> isArm = isAarch32
<srhb> Thra11: # Deprecated after 18.03
<Izorkin> clever: 2.0.4
<{^_^}> [nixpkgs] @Yardanico closed pull request #45509 → Mark nvidia driver as broken on 4.18 → https://git.io/fALzk
<Thra11> srhb: Why do I only get a deprecation warning for stdenv.isArm, and not for stdenv.hostPlatform.isArm?
<clever> Izorkin: if you ssh into root on that machine, what does `type nix-store` return?
<Izorkin> clever: nix-store is /run/current-system/sw/bin/nix-store
<{^_^}> [nixpkgs] @matthewbauer pushed to master « firefox: readd --disable-xcode-checks »: https://git.io/fALz1
<clever> Izorkin: command 9 was added on august 3rd, and greatly reduces memory usage
<clever> Izorkin: you may need to downgrade the nix on the deployer side temporarily
<clever> Izorkin: on the remote system, do `realpath /run/current-system/sw/bin/nix-store`, then on the nixops machine, add that bin dir to the start of `$PATH`, and the deploy should pass
<clever> Izorkin: a bug should also be fixed on nix
trcc has joined #nixos
vmandela has quit [Quit: Leaving]
rauno has quit [Ping timeout: 265 seconds]
Cale has quit [Ping timeout: 260 seconds]
<Izorkin> clever: working with downgrade nix to 2.0.4 on nixops machine
trcc has quit [Remote host closed the connection]
Cale has joined #nixos
<simukis> what is the best way to generate nix for python packages?
<simukis> notably this is not a library I’m looking to produce a `.nix` of, but rather an executable
qknight has quit [Quit: Lost terminal]
Fare has quit [Quit: Leaving]
Fare has joined #nixos
cfricke has joined #nixos
<{^_^}> [nixpkgs] @Thra11 opened pull request #45510 → qtcreator: apply patch on aarch64 → https://git.io/fALaR
romildo has joined #nixos
<disasm> Izorkin: if it's not something I'm planning on pushing upstream, I tend to use pypi2nix. Give it a requirements.txt and it gives you fairly good nix expressions for building it.
<Izorkin> disasm: did not use pypi2nix
<clever> simukis: ^^
<chreekat> When nix-store --realise or nix-build runs, it starts with a message, 'Fetching [...]; Building [...]'. Is there any way to get that list of deps in a tree format (like nix-store -q --tree) without actually building the output?
<simukis> I tried both python2nix and pypi2nix on the package I have and neither work
<hyper_ch> who's running plex on a headless nixos server? I thought after installing plex I'd have to go to IP:32400/web to start the configuration
<simukis> python2nix fails to run at all, and pypi2nix fails to find package version that seems to exist on pypi.
hodapp has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to master: https://git.io/fALVI
<chreekat> Oh, looks like I might have got it with the -u in "nix-store -q -u --tree $(nix-instantiate)"
<clever> hyper_ch: i installed plex ~2 days ago, and had the exact same problem
<disasm> chreekat: I think you can nix-instantiate to get the drv and then use that to query
<clever> hyper_ch: you can only configure it via 127.0.0.1:32400/web
<hyper_ch> clever: it's headless :(
<clever> hyper_ch: you must use `ssh IP -L 32400:127.0.0.1:32400` to cheat that
<hyper_ch> clever: I fail to comprehend
<clever> which re-routes the localhost 32400, to the localhost of the remote machine
<hyper_ch> clever: also what did you set to datadir?
<clever> i left datadir at the default
gspia has quit [Quit: Leaving]
<hyper_ch> clever: I still fail to see how ssh would help when I need to access it by browser
<chreekat> No, that's still the derivation and its dependencies, not the output and its dependencies
<disasm> my plex listens on my ipv4 addr, not 127.0.0.1
<clever> hyper_ch: once you do that ssh, http://127.0.0.1:32400, will connect to ssh, which relays it to 127.0.0.1 on the plex machine
<disasm> oh, you mean initial config :)
<clever> disasm: the root problem, is that it listens on both, but gives 127.0.0.1 special access for the initial config
<clever> yeah
<hyper_ch> clever: you run it on your machine or on the server?
<disasm> haven't done that in years :)
<clever> hyper_ch: on the not-headless machine
<{^_^}> [nixpkgs] @vcunat merged pull request #45510 → qtcreator: apply patch on aarch64 → https://git.io/fALaR
<hyper_ch> clever: I get now served a xml file
<clever> hyper_ch: open /web
<disasm> that reminds me, I should update plex
<hyper_ch> Plex is down for maintenance
<hyper_ch> Don't worry, it will be back soon
<clever> hyper_ch: what is your configuration.nix?
<clever> hyper_ch: id say remove the user and group also, it already has its own user&group
<hyper_ch> disasm: are you the plex maintainer?
<acowley> Has anyone experimented with putting a prompt before a rebuild when using direnv?
<hyper_ch> clever: now I get connection refused
<hyper_ch> hyper@servi:~$ channel 2: open failed: connect failed: Connection refused
<disasm> hyper_ch: no, I override in my nixops config the version.
<hyper_ch> channel 2: open failed: connect failed: Connection refused
<clever> hyper_ch: you may have broken the datadir on the remote end when changing the user, check journalctl
<acowley> I'm trying to figure out a way to prevent builds from automatically starting as it tends to catch me unawares and not take kindly to killing
<disasm> mainly because I have a plexpass account
* gchristensen copies
<hyper_ch> clever: ok, removed datadir, restarted service
<hyper_ch> and back to
<hyper_ch> Plex is down for maintenance
<hyper_ch> Don't worry, it will be back soon
<gchristensen> (I have plexpass too, but cba to go find the updates :))
<clever> hyper_ch: anything in the journal?
<clever> ive also found the matching in plex to be rather anoying, and the UI to be somewhat glitchy
<clever> there is no "fix match" option on a series, until i view it details, then go back to the page where that menu option previously didnt exist
<disasm> gchristensen: I got the version/vsnHash override from your network repo :) Are you not using that anymore?
<clever> and it sometimes claims season 264, because the dir has h264 in the name, lol
<gchristensen> oh haha
<gchristensen> disasm: uhh one sec
revtintin has quit [Quit: WeeChat 1.9.1]
<clever> /var/lib/plex/Plex Media Server/Logs
<clever> hyper_ch: check the logs in here
<clever> Aug 23, 2018 16:01:41.270 [0x7f46087fe700] DEBUG - Request: [192.168.2.15:57022 (Subnet)] GET /library/sections/2/all?type=2&includeCollections=1 (7 live) TLS Page 50-166 GZIP Signed-in Token (cleverca22@gmail.com)
<clever> i can see events like this
<Izorkin> how to change extraConfig in linux kernel? linuxPackages_4_17 = pkgs.linuxPackages_4_17.overrideDerivation - not work, error - attribute 'overrideDerivation' missing
<clever> Izorkin: linuxPackages_4_17 is a set, not a package, so override cant be used on it directly
<clever> Izorkin: you need to override the kernel the set was made from
<hyper_ch> seems it wants to auto-update?
<gchristensen> disasm: one more upgrade... one sec...
<clever> hyper_ch: nothing obvious, any ad blocker?
<hyper_ch> yes... and umatrix
<clever> hyper_ch: and if you disable it?
<hyper_ch> then it seems to work
<clever> once you register the server as being under your control, you can go back to the normal IP:32400/web, or even app.plex.tv
<Izorkin> clever: replaced to - linuxPackages_4_17.kernel = pkgs.linuxPackages_4_17.kernel.overrideDerivation - error - attribute 'extend' missing
<clever> Izorkin: you must override the kernel in pkgs, not linuxPackages_4_17
<hyper_ch> clever: I got it working
ThatDocsLady_ has joined #nixos
<clever> Izorkin: nixpkgs will then use one of those kernels to generate pkgs.linuxPackages_4_17
ThatDocsLady has quit [Ping timeout: 256 seconds]
<hyper_ch> how does plex handle tv shows that have no seasons but continuous numbering?
<gchristensen> probably a better question for #plex
<clever> gchristensen: ah, didnt think they would have a room here
<hyper_ch> gchristensen: well, just though because there's so many experts here
<gchristensen> yeah but even more experts theer
<clever> hyper_ch: and there are 400 experts in #plex
<gchristensen> clever++ :D
<clever> thats nearly as many nixos users in here, lol
<disasm> oh, nice, so you can just copy the hash from there and not run nix-prefetch-url to get it!
<hyper_ch> I was so disappointed in dlna support.... the tv almost plays nothing when using dlna over the network... but whne putting same shows on usb stick the tv plays them
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/f094fd6379b (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/7974e45689a (from 61 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<clever> hyper_ch: my cable box supports some weird form of upnp, but it only works with a specific ipad app, the android variant of the app does not work
<clever> hyper_ch: and the ipad app streams the content, so if the ipad turns off at any point, the stream breaks
<clever> the app also does not disable automatic shutoff, so the OS will try to shut off the ipad mid-stream :P
<hyper_ch> well, got now appl tv 4k as well to have server (plex) -> apple tv 4k -> tv (hdmi)
<clever> have fun trying to watch a movie!
jD91mZM2 has quit [Ping timeout: 272 seconds]
<hyper_ch> still need to find free power plug, free ethernet slot and hdmi cable
goibhniu has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @LnL7 opened pull request #45511 → bats: 0.4.0 -> 1.1.0 → https://git.io/fALrP
<Izorkin> clever: thanks
romildo has quit [Quit: Leaving]
<chreekat> there's this enticing "WantMassQuery: 1" line in the standard /nix-cache-info document returned by nix-serve. What does that mean; how is it used?
<clever> chreekat: when using something like `nix-env -qA`, it can check the binary cache to see if things are pre-built or not
<clever> chreekat: and depending on your search terms, it may wind up checking every single package in all of nixpkgs
<clever> which would result in over 10,000 requests for .narinfo files
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/f094fd6379b (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<chreekat> clever: That makes sense, but I do not see the connection to WantMassQuery. Does a value of 1 mean the server is happy to respond to 10,000 such requests?
<clever> yeah
<clever> and a value of 0 prevents nix-env from performing a DoS attack
* chreekat nods
Judson1 has joined #nixos
<Judson1> I'm contemplating fiddling with my pulseaudio configuration.nix stuff so that the service will restart on wake-from-sleep.
<Judson1> (it breaks w/r/t bluetooth on my laptop)
<clever> Judson1: note, that chromium looses the ability to capture any audio if pulseaudio has restarted
<Judson1> I'm wondering if this is worth contributing back, or just my idiosyncracy?
<clever> Judson1: and you must then restart chromium
<Judson1> To *capture* audio.
<clever> yeah, only capture
<clever> it claims you lack a capture device
<Judson1> Like, video chats you'll suddenly not be able to speak?
<clever> exactly
<Judson1> So that's why *that* happens.
<clever> i figured it out on the 3rd day after needing to use hangouts for daily voice chats
<clever> prior to that, i wasnt using capture in the browser enough to notice the patterns
<clever> Judson1: see if you can fix it with unload-module and load-module via pactl instead
<clever> and maybe unload the bluetooth BEFORE you go into standby
worldofpeace has quit [Remote host closed the connection]
rardiol has joined #nixos
<{^_^}> [nixpkgs] @LnL7 merged pull request #45163 → mypy-protobuf: init at 1.6 → https://git.io/fNhKy
<{^_^}> [nixpkgs] @LnL7 pushed 3 commits to master: https://git.io/fAL6W
lewo has joined #nixos
<chreekat> I want some service to be running when tests run for a package, and I want to clean it up even when things crash and burn. Is there any notion of 'catch' or 'finally' when it comes to build commands? Or a standard practice? (Maybe a shell trap?)
erickomoto has joined #nixos
<clever> chreekat: if you are using multi-user nix, then the nix-daemon will kill every proccess in the build user after the build has finished
<erickomoto> Hi! I am trying to get nix installed in a server owned by my supervisor and he's got me talking to the administrator. He mentions that to be extra safe he would like to install nix in its own partition with nosuid and nodev options. Has anyone tried this? And does it work? (I'm not very well versed on this so I am also asking him what exactly are we protecting against.)
<emily> I'm pretty sure it'd work fine with nosuid
<emily> I mean, programs that require setuid won't work, of course
<emily> I run NixOS on a filesystem that doesn't allow setting capabilities and the only consequence is I have to "sudo ping" rather than ping etc., so I don't expect it'd cause a problem for normal Nix usage
<clever> emily: nix also has the rule that there be no setuid binaries in the store
<clever> so such things would already be broken on a normal nix install
<clever> emily: what does `type ping` return?
<emily> it's /run/wrappers/bin/ping. it's just that the actual setcap fails on nixos-rebuild.
<clever> ah
<clever> sudo should be equally broken then, it uses the same system
<emily> I should probably stub it out so that it doesn't try to setcap stuff at all, but there's other failures I'd have to deal with too (e.g. it trying to remount stuff)
<emily> clever: for whatever reason the filesystem these containers are on allows setuid but not setcap
<emily> it's in a user namespace
<clever> ah, weird
<emily> perhaps giving random capacities to theoretically unprivileged executables rather than just making them fake-uid-0 is too scary, I dunno.
<emily> ideally I'd tell NixOS to just setuid any binary that uses caps, but I haven't figured out any way to do that from my configuration.nix, it'd probably require nixpkgs patching.
<clever> but the fake uid 0 can still use ping, which is a cabability
<emily> yeah *shrug*
<emily> I don't really understand it.
<clever> erickomoto: in general, you can just mkdir /nix ; chown erickomoto /nix, and then do the entire install without ever gaining root
<clever> erickomoto: and if you never gain root, you cant make setuid or device nodes, so both flags are pointless
<erickomoto> Ok cool. Thanks emily and clever! I'm not really well versed in this area but I will relay the info. (I am literally searching for "what's suid"). [regarding chown erickomoto, admin wants to set multiuser install]
<clever> erickomoto: ah, for multi-user, then you do need the daemon running as root, and i can see why he would want nosetuid then to be paranoid
<emily> is there any obstacle to having it run as a non-root user?
<emily> and just having /nix be owned by that user
* emily isn't sure why nix-daemon requires root
<clever> emily: ive not tried a multi-user non-root install
<clever> but a non-root setup means that you cant do automatic cleanup, which would solve the issue chreekat was asking earlier
<adamantium> clever: after talking with you last week, i put /nix in a separate zfs pool, along with /boot/grub, but now i'm debating putting it all back in zroot/ROOT/nixos
<adamantium> Talk me out of it ! I dont need to keep my backups for more than 3-7 days and i think a ROOT pool with all of nixos could add extra benefits
<clever> adamantium: i keep nix on its own filesystem, within the same pool
<clever> adamantium: and then i can turn snapshots off for just /nix
<erickomoto> Thanks DigitalKiwi
<adamantium> I'm sorry! It's all in the pool, I used the wrong word, just I mean all in one dataset.
<adamantium> s/pool/dataset
<DigitalKiwi> erickomoto yw. That'll give you a bit of an idea as a start
Denommus has quit [Remote host closed the connection]
<adamantium> clever: will putting all in ONE dataset really take up //that// much more extra disk space when a snapshot happens on /nix after a nixos-switch? I don't forsee large changing of the nix-store often nor keeping zfs snapshots or nix store environemnts more than 7 days
<clever> adamantium: the snapshot itself is basically free, but it means anything you delete with nix-collect-garbage will then not be deleted, for a week
<adamantium> do /nix snapshots grow astronomically fast?
<adamantium> alright
<adamantium> well i will just try it, and see which method i prefer
<adamantium> i think i will have to test it both ways
<adamantium> i'm just much more comfortable with the traditional zfs on root situation.
Denommus has joined #nixos
<mkaito> nix's error messages sure are something else. not only are they absolutely never even remotely helpful, they are quite often downright misleading. ┻━┻ ︵ヽ(`Д´)ノ︵ ┻━┻
<clever> mkaito: can you pastebin one as an example?
<mkaito> I'd have to sanitize the living bejeezus out of it or risk getting fired. I just wanted to vent to people who know my pain lol
<mkaito> but basically, I'm fetching something with fetchGit, wrapping it in mkDerivation, calling that with callPackage, and according to nix, the result is not of type package. so (ノ ゜Д゜)ノ ︵ ┻━┻
<clever> mkaito: why is it wrapped with mkDerivation?
<mkaito> I tried without it, saw it was not of type package, so tried wrapping it in a derivation.
<mkaito> the repo I'm fetching has a default.nix
<mkaito> so... it should work
<clever> how many args did you pass to callPackage?
<mkaito> none
<mkaito> or rather, an empty set
<clever> ah, that should be good then
<clever> it should return whatever the default.nix returns
<clever> does that return a set? a package?
<mkaito> actually, let me go make sure about that
<mkaito> removed the wrapping mkDerivation, now it's complaining about calling a set and not a function, so I guess that derivation was necessary after all
<clever> can you pastebin the nix expression?
<mkaito> I seem to have hit a different snag now, somehow. let me follow this rabbit hole and I'll get back to you if that doesn't work out :)
<LnL> type package, is this in the context of nixos modules?
<mkaito> yep
ok2 has joined #nixos
jperras has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #45429 → astrolabe-generator: init at 3.3 → https://git.io/fAUGV
<{^_^}> [nixpkgs] @xeji pushed commit from @bignaux to master « astrolabe-generator: init at 3.3 (#45429) »: https://git.io/fALDT
jperras has joined #nixos
ok2 has quit [Remote host closed the connection]
mayhewluke has quit [Ping timeout: 255 seconds]
<Judson1> clever, I'll have to try the pactl solution...
cfricke has quit [Quit: WeeChat 2.1]
trcc has joined #nixos
mayhewluke has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #45329 → testdisk-photorec: init at 7.0 → https://git.io/fAvn2
<{^_^}> [nixpkgs] @xeji pushed commit from @fgaz to master « testdisk-photorec: init at 7.0 (#45329) »: https://git.io/fALDo
trcc has quit [Remote host closed the connection]
trcc has joined #nixos
JonReed has joined #nixos
<{^_^}> [nixpkgs] @guibou opened pull request #45512 → bazel: move darwin ad hoc code to darwin patch → https://git.io/fALym
trcc has quit [Ping timeout: 252 seconds]
simukis has quit [Quit: simukis]
<{^_^}> [nixpkgs] @xeji merged pull request #45351 → gnatsd: init at 1.2.0 → https://git.io/fAvVg
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/fALyB
<{^_^}> [nixpkgs] @xeji merged pull request #45481 → ocamlPackages.piqi{,-ocaml}: fix build with OCaml 4.06 → https://git.io/fAkxH
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/fALya
<{^_^}> [nixpkgs] @xeji merged pull request #45511 → bats: 0.4.0 -> 1.1.0 → https://git.io/fALrP
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/fALyA
Watcher7 has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to master: https://git.io/fALS0
<Watcher7> Hey y'all. I'm attempting to install NixOS in a KVM guest, but I'm encountering an issue when `nixos-install` attempts to write grub to /dev/vda. I've got /dev/vda formated with a single ext4 partition, and I have those attributes defined in the NixOS configuration file. The target grub device is also "/dev/vda" in the NixOS configuration file. I've tried both virtio-scsi (device: /dev/sda) and virtio-blk
<Watcher7> (device: /dev/vda) as device interfaces. The error is "error: cannot find a device for /boot/grub (is /dev mounted?)." and afterwards "installation of GRUB on /dev/vda failed". Any ideas?
<clever> Watcher7: grub needs a partition table to install into the root of a disk
<Watcher7> Oh so it's expecting its own boot partition in this case rather than just installing to the head of the disk?
<Watcher7> Thanks.
<clever> it doesnt need its own boot partition
<clever> but it needs a gap between the partition table and the 1st partition
<Watcher7> Oh, I've already done that.
<clever> the alignment for the partitions ensures that gap
<clever> so vda1 is ext4
<clever> ah, misread your question a bit
<clever> Watcher7: can you pastebin the output of lsblk ?
<drakonis__> Watcher7, sup
chreekat has quit [Ping timeout: 256 seconds]
<Watcher7> First partition starts at 2048. correct vda1 is ext4.
<Watcher7> sure
<Watcher7> drakonis__, hello.
<drakonis__> vda1? isn't it normally sda1?
<Watcher7> When using virtio-scsi, yes
<Watcher7> I switched to virtio-blk.
<clever> drakonis__: depends on which driver your using
<drakonis__> huh well
<drakonis__> a new thing learned
<{^_^}> [nixpkgs] @xeji merged pull request #45366 → subberthehut: init at 20 → https://git.io/fAvHW
<{^_^}> [nixpkgs] @xeji pushed commit from @jqueiroz to master « subberthehut: init at 20 (#45366) »: https://git.io/fALSX
<{^_^}> [nixpkgs] @xeji merged pull request #45326 → ocamlPackages.camlp5: 7.05 -> 7.06 → https://git.io/fAvGD
<{^_^}> [nixpkgs] @xeji pushed commit from @vbgl to master « ocamlPackages.camlp5: 7.05 -> 7.06 (#45326) »: https://git.io/fALSy
<clever> Watcher7: and what is the exact command you ran, and its full output, when it fails?
<Watcher7> I'll paste my configuration as well if you want.
<clever> Watcher7: and also the output of `mount`
<drakonis__> does grub handle vda properly?
<drakonis__> also
<drakonis__> isn't systemd-boot the default on nix instead of grub?
<drakonis__> Watcher7, are you doing it with zfs?
<clever> drakonis__: systemd-boot lacks A LOT of the options grub has
<drakonis__> i'm aware
<{^_^}> [nixpkgs] @Mic92 opened pull request #45513 → tor: fix build by upgrading openssl → https://git.io/fAL9U
<drakonis__> grub is the swiss army knife of bootloaders
<{^_^}> [nixpkgs] @xeji merged pull request #45358 → eunomia-font: init at 0.200 → https://git.io/fAvi9
<{^_^}> [nixpkgs] @xeji pushed 10 commits to master: https://git.io/fAL9k
<Watcher7> drakonis__, ZFS, where?
<Watcher7> drakonis__, yes it will/should handle vda fine.
<clever> Watcher7: did you mount vda1 to /mnt/ ?
<Watcher7> clever, no. /mnt currently seems to be the installer ISO.
<clever> Watcher7: thats why everything is failing
<Watcher7> or, not the installer ISO, but some filesystem related to it.
<clever> your installing nixos to the tmpfs in ram
<clever> and grub cant find the device behind that tmpfs
<Watcher7> Oh? Weird, the guide I was looking at had me just generate into /mnt. Does generate also copy the OS contents over?
<clever> you must mount the filesystems to /mnt before you run nixos-generate-config
<Watcher7> I guess they didn't state that they had mounted the new partition into /mnt
<Watcher7> Ok, I see.
<{^_^}> [nixpkgs] @lopsided98 opened pull request #45514 → spl: use correct version to fix binary substitution → https://git.io/fAL9g
<ij> I want to trace values of some sets, but they show up as <CODE>. How do I deep eval 'em?
<{^_^}> [nixpkgs] @xeji merged pull request #45272 → arangodb: 3.3.12 -> 3.3.14 → https://git.io/fNjwW
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « arangodb: 3.3.12 -> 3.3.14 (#45272) »: https://git.io/fAL9P
<clever> ij: i pass them thru builtins.toJSON
<{^_^}> [nixpkgs] @xeji merged pull request #45182 → metabase: 0.29.3 -> 0.30.0 → https://git.io/fNhHM
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « metabase: 0.29.3 -> 0.30.0 (#45182) »: https://git.io/fAL99
<Watcher7> That makes sense. Thanks for the help.
<{^_^}> [nixpkgs] @Mic92 merged pull request #45513 → tor: fix build by upgrading openssl → https://git.io/fAL9U
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAL97
<{^_^}> [nixpkgs] @xeji merged pull request #45131 → syslogng: 3.16.1 -> 3.17.2 → https://git.io/fNhLb
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « syslogng: 3.16.1 -> 3.17.2 (#45131) »: https://git.io/fAL9x
<{^_^}> [nixpkgs] @Mic92 merged pull request #45514 → spl: use correct version to fix binary substitution → https://git.io/fAL9g
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fALHe
<Watcher7> clever, one more thing. Now it's telling me I'm failing an assertion that requires "boot.loader.grub.devices", but I've already got a device defined in my configuration.
<ij> clever, Great idea! I've apparently screwed something, because nix is complaining about inf recursion
<clever> Watcher7: check again, when you mounted vda1 onto /mnt, it hid all the old config
<Watcher7> and modifying that option to be "devices" instead of "device", and using a list containing a single device
<Watcher7> clever, right, I was aware that would happen so I upped a serial console and manually copied over the same confguration from pastebin
<Watcher7> it's the same confguration as before
<Watcher7> and modifying that option to be "devices" instead of "device", and using a list containing a single device doesn't make the assertion go away
<clever> Watcher7: what does pwd and ls output?
<clever> ls -l
<Watcher7> ls -l for what directory? /mnt?
<clever> Watcher7: the current working directory
<Watcher7> current directory is /root, so nothing
<{^_^}> [nixpkgs] @xeji merged pull request #45294 → scs: init at 2.0.2 → https://git.io/fAe8J
<{^_^}> [nixpkgs] @xeji pushed commit from @bhipple to master « scs: init at 2.0.2 (#45294) »: https://git.io/fALHX
<clever> Watcher7: cat /mnt/etc/nixos/configuration.nix and throw it into a pastebin
__monty__ has quit [Quit: leaving]
jperras has quit [Ping timeout: 260 seconds]
<drakonis__> Watcher7, arent you doing the thing most folks do with zfs, which is installing to a pool?
<Watcher7> I--, you know what happened. I typo'd the directory when nano-ing over the old configuration.
<Watcher7> Silly me.
<drakonis__> jolly good.
<Watcher7> drakonis__, I only use FreeBSD and ZFS for my home NAS. My virtualization server runs OpenSUSE with lvm+mdadm for its storage layer, with XFS on top for /, and VMs installed to logical volumes.
<drakonis__> ah right
<drakonis__> silly me, my experience with freebsd's irc denizens is that they run only freebsd
<drakonis__> so i stand corrected
<drakonis__> so, what're you trying to do with nixos atm, just experimentation?
<{^_^}> [nixpkgs] @xeji merged pull request #44452 → llvmPackages_34: remove unused → https://git.io/fNPQQ
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/fALQG
<Watcher7> Planned on using it for kubernetes.
<drakonis__> also important to ask, VMs installed to logical volumes you say?
<Watcher7> Also potentially using it as a wireguard appliance to replace some of my IPSec tunnels.
<drakonis__> was looking into using a partition as a vm block
<Watcher7> Yes, it's similar to `zvols`. With LVM I create a logical volume on my volume group, and then pass that to guests as a block device.
<drakonis__> ah it needs lvm for that, alright
<drakonis__> interesting trick
<Watcher7> LVM is nice, I did a live migration from 4 LVM covered disks, to raid 10 on said same disks all with pv migrations and removal/replacement
<drakonis__> not too keen on using freebsd anymore
sigmundv_ has quit [Ping timeout: 260 seconds]
ericsagnes has joined #nixos
<drakonis__> wonder if there's an easy migration path to lvm
<Watcher7> I use w/e I find to be the best tool for the job. NixOS's configuration method in this case I find attractive. I've become used to network appliances that have their own unified configuration that abstracts service configuration behind the scenes, and this seems to be that, but more general.
<Watcher7> My curent NOS of choice lacks wireguard support, so I plan on sticking NixOS infront of it in the mean time.
<drakonis__> NOS?
<Watcher7> Network(ing) Operating System
<drakonis__> huh i see
drakonis__ has quit [Remote host closed the connection]
<Watcher7> clever, thanks for the assistance.
<clever> Watcher7: yep
<clever> Watcher7: #nixos-on-your-router may also be of interest to you
<infinisil> That channel needs a smaller name lol
<infinisil> #nixos-router or so
logzet has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @sterfield opened pull request #45516 → Bumping mono to 5.4.1.6 → https://git.io/fALdm
<{^_^}> [nixpkgs] @LnL7 pushed 51 commits to staging-18.03: https://git.io/fALdB
erickomoto has quit [Ping timeout: 264 seconds]
Denommus has quit [Remote host closed the connection]
<Watcher7> clever, ah interesting ok. Yeah. Tbh I was hoping NixOS had some form of zone-like abstraction for firewalling. The current distro I use for routing has zones which are really easy to audit.
<{^_^}> [nixpkgs] @LnL7 merged pull request #45437 → darwin: macOS 10.14 compatibility → https://git.io/fAUpZ
<{^_^}> [nixpkgs] @LnL7 pushed 4 commits to staging-18.03: https://git.io/fALFg
<{^_^}> [nixpkgs] @magnetophon opened pull request #45517 → synthv1: 0.9.0 -> 0.9.2 → https://git.io/fALFa
norfumpit has joined #nixos
<{^_^}> [nixpkgs] @magnetophon opened pull request #45518 → guitarix: 0.37.1 -> 0.37.2 → https://git.io/fALFi
rardiol has left #nixos [#nixos]
<norfumpit> so does nixos have any integration with dconf? im looking to use nix to configure gnome
Ariakenom has quit [Read error: Connection reset by peer]
<gchristensen> nothing really, no
<ashkitten> how can i get nvidia driver version 396 working? it's dropped 32-bit kernel support but still should build 32-bit libraries, right? but it outputs 64-bit libraries in the 32-bit lib paths
knupfer has joined #nixos
<ashkitten> other distros seem to be fine with the change so i'm confused why it's stopped working
Wharncliffe has joined #nixos
Drakonis[m] has joined #nixos
<clever> ashkitten: are you importing nixpkgs at any point?, how are you requesting a 32bit version?
<norfumpit> gchristensen: how do yall do your gnome configurations then? im looking at services.xserver.desktopManager.gnome3.extraGSettingsOverrides
<gchristensen> I don't :$
<clever> same with xfce
sbdchd has joined #nixos
<ashkitten> clever: i've modified the nixpkgs tree. it built 32-bit versions before, so i don't understand why it's not now?
<clever> ashkitten: how are you telling nix to generate a 32bit build?
<infinisil> norfumpit: Umm.. #43268
<{^_^}> https://github.com/NixOS/nixpkgs/pull/43268 (by jtojnar, 6 weeks ago, merged): Drop gnome3.gconf
<gchristensen> what a PR description.
<ashkitten> clever: i mean, i didn't even have to before, but i tried adding (pkgs.pkgsi686Linux.linuxPackages.override { libsOnly = true; }) to hardware.opengl.extraPackages32
<LnL> :o
<emily> norfumpit: you can set global dconf stuff in your configuration.nix.
<emily> norfumpit: I can show you a snippet if you'd like.
<emily> it's not, like, supported, but you can just put the right files into etc
<gchristensen> emily: nice
<clever> ashkitten: that override is setting a flag that doesnt exist
<ashkitten> clever: the flag does exist tho
<emily> I was going to use the gsettings override stuff but it looked like I'd have to enable all of gnome-on-X to get that, unless I just copy-pasted the code, which I was too lazy to do.
<clever> ashkitten: not on linuxPackages
<norfumpit> emily: please
<ashkitten> clever: oh sorry i forgot a path element. linuxPackages.nvidia_x11_beta
<clever> ashkitten: ah, that one i would expect to see working, but nixos should deal with that automatically when you have 32bit dri enabled
<ashkitten> clever: exactly!
<ashkitten> clever: and it builds the libraries, but they come out as 64-bit
taktoa has joined #nixos
taktoa has quit [Remote host closed the connection]
<emily> norfumpit: https://clbin.com/xpfvp
<emily> (maybe this should go on the wiki or something.)
taktoa has joined #nixos
<emily> norfumpit: also, dconf profiles are fancy.
erickomoto has joined #nixos
<norfumpit> emily: oh i know about that one, but i kinda don't want to set this system-wide
<emily> for instance, I bet you didn't know you could do this to avoid the binary database format: "A "service-db" line instructs dconf to place the binary database file for the user database in XDG_RUNTIME_DIR. Since this location is not persistent, the rest of the line instructs dconf how to store the database persistently. A typical line is service-db:keyfile/user, which tells dconf to synchronize the binary
<emily> database with a plain text keyfile in $XDG_CONFIG_HOME/dconf/user.txt. The synchronization is bi-directional."
<emily> (which might also help you in your quest)
<emily> norfumpit: if you just want to like, configure gnome-terminal with nix, take a look at home-manager
<emily> I think it has dconf integration of some sort
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
* emily doesn't know what mechanism it uses.
<norfumpit> emily: ill check that out thanks
tzemanovic has joined #nixos
<norfumpit> home-manager seems to do it by running dconf load on a generated file
<emily> oh, yeah, you also need to do "dconf update" in an activation script to use this, sorry :/
<emily> I forgot how annoying it was to get this working.
Fare has quit [Ping timeout: 252 seconds]
<Drakonis[m]> the patience of a saint
<norfumpit> i think ill go with something based on home-managers gnome-terminal configuration
<qyliss^work> looking at that dconf profile gave me a flashback
<qyliss^work> what a nightmare
<{^_^}> [nixpkgs] @magnetophon opened pull request #45519 → drumkv1: 0.9.0 -> 0.9.2 → https://git.io/fALb7
Thra11 has quit [Ping timeout: 240 seconds]
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thc202 has quit [Ping timeout: 276 seconds]
thc202 has joined #nixos
erickomoto has joined #nixos
erickomoto has quit [Client Quit]
lassulus has quit [Ping timeout: 264 seconds]
<{^_^}> [nixos-homepage] @magnetophon opened pull request #233 → about.tt: update number of packages → https://git.io/fALNt
<ashkitten> clever: any ideas?
<{^_^}> [nixpkgs] @xeji merged pull request #45516 → Bumping mono to 5.4.1.6 for Emby package → https://git.io/fALdm
<{^_^}> [nixpkgs] @xeji pushed commit from @sterfield to master « Bumping mono to 5.4.1.6 (#45516) »: https://git.io/fALNG
<clever> ashkitten: what do you have videoDrivers set to?
<ashkitten> clever: nvidiaBeta
<Drakonis[m]> which kernel do you have?
<Drakonis[m]> are you on 4.18?
<ashkitten> 4.14.63
<ashkitten> do i need 4.18?
<Drakonis[m]> should be fine then
<Drakonis[m]> nah
<ashkitten> okay
<Drakonis[m]> the problem is when your kernel is newer than the driver
<Drakonis[m]> 4.17 was broken on long lived branches for a few weeks until the fix got pushed
<Drakonis[m]> same for the short lived branch
<clever> ashkitten: where are you looking to find the 64bit libs, and expect to see 32bit libs?
<ashkitten> clever: /run/opengl-driver-32/lib/libGLX_nvidia.so
<Drakonis[m]> what are you trying to do atm?
<Drakonis[m]> run wine proton?
<ashkitten> yeah
<Drakonis[m]> oh
<{^_^}> [nixpkgs] @xeji merged pull request #45517 → synthv1: 0.9.0 -> 0.9.2 → https://git.io/fALFa
<{^_^}> [nixpkgs] @xeji pushed commit from @magnetophon to master « synthv1: 0.9.0 -> 0.9.2 (#45517) »: https://git.io/fALNw
kyren has joined #nixos
<Drakonis[m]> has the steam package been updated to deal with the situation?
<{^_^}> [nixpkgs] @xeji merged pull request #45518 → guitarix: 0.37.1 -> 0.37.2 → https://git.io/fALFi
<{^_^}> [nixpkgs] @xeji pushed commit from @magnetophon to master « guitarix: 0.37.1 -> 0.37.2 (#45518) »: https://git.io/fALN6
<{^_^}> [nixpkgs] @magnetophon opened pull request #45520 → padthv1: 0.9.0 -> 0.9.2 → https://git.io/fALNi
<ashkitten> should be fine. afaik the package is just a bootstrapper
<ashkitten> i'm on the beta channel
<clever> ashkitten: cant think of anything else to check
<ashkitten> yeah it's super weird
<clever> ashkitten: this module should be automating it all and doing things properly
<{^_^}> [nixpkgs] @magnetophon opened pull request #45521 → samplv1: 0.9.0 -> 0.9.2 → https://git.io/fALN5
<Drakonis[m]> the issue is perhaps the steam package
<ashkitten> everything is the same except the version (and a bit in nvidia/generic.nix to account for there not being a separate 32bit version) but it's outputting 64bit libs
<clever> ashkitten: can you pastebin your diff?
<{^_^}> [nixpkgs] @magnetophon opened pull request #45522 → distrho: unstable-2018-01-01 -> 2018-04-16 → https://git.io/fALNp
<ashkitten> Drakonis[m]: even pkgsi686Linux.glxinfo doesn't work
<Drakonis[m]> oh
<Drakonis[m]> do you have 32bit gl?
<ashkitten> clever: https://ptpb.pw/X5zw
<ashkitten> Drakonis[m]: it's supposed to generate 32-bit libraries, yes
<ashkitten> Drakonis[m]: it doesn't have anything to do with steam
<{^_^}> [nixpkgs] @magnetophon opened pull request #45523 → lilv 0.24.0 -> 0.24.4 → https://git.io/fALAI
<Drakonis[m]> wine proton unfortunately has extra deps not covered
<Drakonis[m]> although
<Drakonis[m]> i'm missing some details
<clever> ashkitten: if the version is not older then 396, it will not give 32bit libs
<clever> ashkitten: your if statement is flawed
<ashkitten> clever: that's just specifying the download location
<ashkitten> clever: because 396 doesn't have a separate 32-bit download
<clever> ashkitten: the source doesnt exist, so it can only get the arch that is within the .run file
<clever> ah, then you need to modify the build process to select the 32bit libs from the combo 32+64 .run
<ashkitten> okay
<ashkitten> how do i do that?
ghormoon13 has joined #nixos
<ghormoon13> (((((((((((((\
<ghormoon13> ))))))))(__/~;;\
<ghormoon13> |( o) (o ) |
<ghormoon13> | |
<ghormoon13> \ O /
<ghormoon13> \ (::u::) /
<ghormoon13> \_______/
ghormoon13 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<clever> ashkitten: read builder.sh in the same directory
<ashkitten> aight
<clever> also, why is that in builder.sh?, that could have just been attributes on the derivation
<ashkitten> that's why i was confused i guess
<LnL> I was just going to say, builder.sh?
<Drakonis[m]> zzz there's a catch here
<Drakonis[m]> what's the issue?
<Drakonis[m]> is it complaining about libraries?
<{^_^}> [nixpkgs] @magnetophon opened pull request #45524 → sratom: 0.6.0 -> 0.6.2 → https://git.io/fALA2
<ashkitten> we'll worry about steam later
<clever> Drakonis[m]: its silently providing 64bit libs in a 32bit build
<ashkitten> and yeah
<Drakonis[m]> right
<Drakonis[m]> which one is providing 64 bit libraries? nvidia?
<ashkitten> yeah
<Drakonis[m]> right
<{^_^}> [nixpkgs] @magnetophon opened pull request #45525 → serd: 0.28.0-> 0.30.0 → https://git.io/fALAS
<Drakonis[m]> nvidia only provides vulkan for 64 bit
<Drakonis[m]> the short lived branch is only 64 bit
<ashkitten> okay but it's generating a 64bit libGLX_nvidia.so
<Drakonis[m]> it shouldn't have a 32 bit build anymore if doing shortlived
<Drakonis[m]> it should do that
<ashkitten> in the 32bit out directory
Fare has joined #nixos
<ashkitten> it's not supposed to do that, the 32-bit only change only means the kernel
<{^_^}> [nixpkgs] @xeji merged pull request #45519 → drumkv1: 0.9.0 -> 0.9.2 → https://git.io/fALb7
<{^_^}> [nixpkgs] @xeji pushed commit from @magnetophon to master « drumkv1: 0.9.0 -> 0.9.2 (#45519) »: https://git.io/fALAH
<clever> ashkitten: it just builds whatever is in the lib dir i think
<{^_^}> [nixos-homepage] @magnetophon opened pull request #234 → index.tt: update number of packages → https://git.io/fALAQ
<clever> you need to modify it to do the right thing if a lib32 exists
<ashkitten> hmm
<{^_^}> [nixpkgs] @magnetophon opened pull request #45526 → sord: 0.16.0 -> 0.16.2 → https://git.io/fALAx
<Drakonis[m]> hmm, it actually still produces 32 bit libraries even on 64 bit builds
<Drakonis[m]> you just don't have 32 bit only builds anymore
<{^_^}> [nixpkgs] @xeji merged pull request #45520 → padthv1: 0.9.0 -> 0.9.2 → https://git.io/fALNi
<{^_^}> [nixpkgs] @xeji pushed commit from @magnetophon to master « padthv1: 0.9.0 -> 0.9.2 (#45520) »: https://git.io/fALxf
<Drakonis[m]> its for compatibility
alexteves has quit [Remote host closed the connection]
hamishmack has joined #nixos
<ashkitten> i'm confused what to change tbh. i'm not super experienced with this stuff.
<{^_^}> [nixpkgs] @xeji closed pull request #45525 → serd: 0.28.0-> 0.30.0 → https://git.io/fALAS
<Drakonis[m]> is it breaking anything?
alex`` has quit [Ping timeout: 255 seconds]
<ashkitten> i'm not sure what you mean
<{^_^}> [nixpkgs] @xeji closed pull request #45526 → sord: 0.16.0 -> 0.16.2 → https://git.io/fALAx
<ashkitten> it's fine for 64-bit applications but it doesn't copy 32-bit libs to the package
<{^_^}> [nixpkgs] @xeji merged pull request #45521 → samplv1: 0.9.0 -> 0.9.2 → https://git.io/fALN5
<{^_^}> [nixpkgs] @xeji pushed commit from @magnetophon to master « samplv1: 0.9.0 -> 0.9.2 (#45521) »: https://git.io/fALxs
<Drakonis[m]> right, then that should be dealt with
<ashkitten> is there a way to step through the build manually to see what files are being generated?
<clever> ashkitten: add `set -x` to the top of builder.sh and re-build it with nix-build
lassulus has joined #nixos
Fare has quit [Ping timeout: 265 seconds]
<ashkitten> hmmm
<ashkitten> nix-build /etc/nixos/nixpkgs -A pkgsi686Linux.linuxPackages.nvidia_x11_beta --arg libsOnly true
<clever> --arg doesnt support overrides
<ashkitten> oh
<clever> use -E and give it a full expression to import and override
erasmas has quit [Quit: leaving]
<ashkitten> okay uh
<ashkitten> how about monitoring the files being generated?
<{^_^}> [nixpkgs] @magnetophon closed pull request #45523 → lilv 0.24.0 -> 0.24.4 → https://git.io/fALAI
<clever> `set -x` will show everything builder.sh is doing
<clever> you can also just throw an ls command into it to poke around
<ashkitten> fair
<clever> because its using builder.sh, i dont think it will co-operate with nix-shell very well
<ashkitten> ah fair
jperras has joined #nixos
<Drakonis[m]> worth looking at a regular build
<Drakonis[m]> something worth doing, creating a package for proton itself
<Drakonis[m]> https://github.com/ValveSoftware/Proton given it has a repo
<ashkitten> okay so uh, the 32-bit build will have a `32` directory containing 32-bit libraries
<ashkitten> simple enough
<clever> yep, so now if $system == i686-linux, copy the 32bit ones
<Drakonis[m]> its unsupported btw
jperras has quit [Ping timeout: 260 seconds]
<Drakonis[m]> its a "on your risk" solution
<ashkitten> isn't everything
<ashkitten> lol
tertle||eltret has joined #nixos
<Drakonis[m]> but why are you running 32 bit nixos
knupfer has quit [Ping timeout: 276 seconds]
<ashkitten> i'm not
<ashkitten> why would you think that
<clever> Drakonis[m]: some programs like skype and steam only use 32bit libs half the time
spear2 has joined #nixos
hamishmack has quit [Ping timeout: 252 seconds]
<tertle||eltret> i like steam
<Drakonis[m]> i'm aware
<tertle||eltret> whats the command to update my packages?
<{^_^}> [nixos-homepage] @magnetophon closed pull request #233 → about.tt: update number of packages → https://git.io/fALNt
<clever> tertle||eltret: nix-channel --update, as root
<{^_^}> [nixos-homepage] @magnetophon closed pull request #234 → index.tt: update number of packages → https://git.io/fALAQ
<tertle||eltret> ty clever
<Drakonis[m]> hmm, prebuilt libraries have to be patched, right?
<clever> Drakonis[m]: yeah
<Drakonis[m]> well, looks like proton will be a pain in the ass
<Drakonis[m]> can't be installed directly through steam
<Drakonis[m]> its a lot of prebuilts in the package
<clever> the steam FHS package deals with most of that
<tertle||eltret> jsut play Dota liek I do?
<tertle||eltret> there are really good games that work on linux natively, but thats a different conversation so I apologize
<Drakonis[m]> eh, it doesn't work the same way as steam itself
<Drakonis[m]> its a depot you install through steam itself
<{^_^}> [nixpkgs] @magnetophon closed pull request #45524 → sratom: 0.6.0 -> 0.6.2 → https://git.io/fALA2
<tertle||eltret> i hadnt heard of proton
<tertle||eltret> it looks brand new, i bet its still unpolished
<ashkitten> what do you mean it can't be installed through steam Drakonis[m]
<elvishjerricco> Where would I see error messages from xmonad? Doesn't seem to be in `.xsession-errors`
<clever> elvishjerricco: did you check journalctl -f -u display-manager?
<elvishjerricco> clever: Yea
<ashkitten> Drakonis[m]: i have it installed through steam just fine, it's just that the drivers aren't up to date and there are some bugs
<clever> elvishjerricco: are you sure its actually starting xmonad?
<elvishjerricco> clever: Yea, xmonad is working fine. I just want to see why the command that one of my key bindings is supposed to launch is failing
<clever> elvishjerricco: find the pid of xmonad, and run `ls -l /proc/PID/fd/` and then look at where 1 and 2 point
Fare has joined #nixos
rprije has joined #nixos
<elvishjerricco> clever: `pipe:[31629938]`
<clever> for both 1 and 2?
<elvishjerricco> yea
<clever> then its piped into something else, youll need to find another process with an id + or - 1 of that
<clever> ls -l /proc/*/fd/* | grep pipe | egrep '31629937|31629939' --color
<ashkitten> clever: does this look okay? feel like i might've missed some stuff but it works fine https://ptpb.pw/FmBN
<tertle||eltret> Drakonis[m]: hopefully someone will make a .nix to accomidate the requirements for Proton
<clever> ashkitten: probably, just make sure to also build the 64bit version, and confirm that one still works, and has 64bit libs
<ashkitten> well i did a nixos-rebuild switch and everything is working (didn't reboot, but since everything still works that means it didn't rebuild the kernel module and the 64bit drivers are intact)
<adamantium> i've decided to read the manual. first thing i noticed was chapter 7 recommends to source prefix/etc/profile.d/nix.sh -- how do i find my prefix ?
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/f094fd6379b (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
<clever> ashkitten: if your using a single-user nix, it will be in ~/.nix-profile/
<clever> adamantium: nixos already sources it for you
ericsagnes has quit [Ping timeout: 264 seconds]
<ashkitten> clever: what will be?
<clever> wrong a name tab-completed
<ashkitten> ah okay
<adamantium> hmm, thanks
<ashkitten> lmao, doom is still broken with new driver. there goes that idea
orbekk has quit [Quit: WeeChat 2.0]
dmc has quit [Quit: WeeChat 2.2]
<ashkitten> Drakonis[m]: you're right that the steam runtime is out of date, i think
jackdk has joined #nixos
<Drakonis[m]> i certainly am
<ashkitten> lol
<ashkitten> i was getting there :P
orbekk has joined #nixos
<Drakonis[m]> that sounds terrible
<ashkitten> i don't know why
<Drakonis[m]> its that there's steam the runtime and proton itself
<ashkitten> steam can download proton fine