thineye has quit [(Quit: Leaving.)]
matthewbauer has quit [(Remote host closed the connection)]
systemfault has quit [(Ping timeout: 260 seconds)]
MP2E has joined #nixos
taktoa has quit [(Remote host closed the connection)]
[0x4A6F] has quit [(Ping timeout: 240 seconds)]
mizu_no_oto has joined #nixos
[0x4A6F] has joined #nixos
jabesed has joined #nixos
systemfault has joined #nixos
mizu_no_oto has quit [(Ping timeout: 252 seconds)]
systemfault has quit [(Read error: Connection reset by peer)]
mizu_no_oto has joined #nixos
mizu_no_oto has quit [(Client Quit)]
mizu_no_oto has joined #nixos
Filystyn2 has quit [(Remote host closed the connection)]
vaibhavsagar has joined #nixos
takle has quit [(Remote host closed the connection)]
mizu_no_oto has quit [(Ping timeout: 240 seconds)]
<tilpner> Is there something special about root, that I can not add ssh keys with users.users.root.openssh.authorizedKeys.keys?
<clever> tilpner: root login is disabled by default
meshita has joined #nixos
<clever> tilpner: services.openssh.permitRootLogin = "yes";
<tilpner> clever - I set services.sshd.permitRootLogin to "prohibit-password", but that's also the default
<tilpner> clever - Wouldn't that allow key login?
<clever> hmmm, what does the journal and ssh -vvvv say?
jabesed has quit [(Quit: Konversation terminated!)]
<tilpner> Even setting that to "yes", doesn't allow me to login
<clever> what does the journal say when it rejects a login?
<tilpner> sshd[9169]: Connection closed by .... port 59832 [preauth]
<clever> and what does ssh -vvvvv root@host say?
<tilpner> It asks for a password, I'll check the rest of the log
<gchristensen> sounds like making there was an error copying the public key to the config file
spion has quit [(Ping timeout: 245 seconds)]
takle has joined #nixos
<tilpner> Hmm, after what you said I wondered if I had to remove /root/.ssh/authorized_keys, but that didn't help
<tilpner> Where would it put those keys?
<clever> $ ls /etc/ssh/authorized_keys.d/
<clever> builder clever root
spion has joined #nixos
<clever> AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2 /etc/ssh/authorized_keys.d/%u
<clever> tilpner: the last like is from sshd_config
<clever> it will search all 3 locations and accept a key in any of them
<clever> so the file you deleted should have also made it work, if it had the right pubkey
<tilpner> /etc/ssh/authorized_keys.d/root contains my public key, so that part worked
<clever> tilpner: what are the first 10 chracters of the public key?
justanotheruser has joined #nixos
<clever> tilpner: can you just gist the entire file?
<tilpner> "ssh-rsa AAAAB3NzaC", what file?
<clever> /etc/ssh/authorized_keys.d/root
<simony> so I'm trying to get nixos to work nicely w/ parallels, but having trouble enabling the parallels stuff. I've added hardware.parallels.enable = true; to my config (along with allowing unfree) but when I try to nixos-rebuild, it fails with...
takle has quit [(Ping timeout: 240 seconds)]
justan0theruser has quit [(Ping timeout: 258 seconds)]
<clever> simony: you need to download that iso manualy and run nix-store --add-fixed sha256 on the file
<simony> so i've found a version of the iso in the Parallels package on my local machine, got it onto the vm, and have run nix-store --add-fixed sha256, but that doesn't seem to change anything?
<tilpner> clever - Sorry, I found the error while diffing against the expected key. I was just pasting it wrong, and a newline sneaked in
<clever> simony: the hash of the iso you download has to match the hash that the nixpkgs expression expects
<clever> tilpner: that pesky word-wrap!
<simony> well, this is gonna be awkward then, because I'm not sure where to find this particular version of the iso :o
s33se_ has joined #nixos
<clever> simony: does the version# in there help any?
<simony> clever: hm, it does slightly. I'll see if I can find it, but if that's what I think it is, then it's also 2 major versions behind, as I'm running parallels 12.2.0
s33se has quit [(Ping timeout: 240 seconds)]
<ryantrinkle> is there any way to trace a warning when someone supplies a certain argument to a nix script?
<ryantrinkle> i can see how i'd do it if they *don't* supply the arg
acarrico has quit [(Ping timeout: 240 seconds)]
<ryantrinkle> (i'm trying to deprecate an argument)
<ryantrinkle> (in a record pattern match)
takle has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
takle has quit [(Ping timeout: 258 seconds)]
ibor has joined #nixos
justelex has quit [(Ping timeout: 258 seconds)]
vaibhavsagar has quit [(Ping timeout: 268 seconds)]
takle has joined #nixos
<hodapp> probably because in a month or two I'm just not going to want to touch R for any reason at all
mbrgm has quit [(Ping timeout: 240 seconds)]
<ryantrinkle> is there any way to pass args along when using nix-shell -E ?
<simony> clever: so i'm guessing i'll need to roll my own here? how would I go about doing so? I'd at the very least need to change/replace the src
Vorpal has quit [(Ping timeout: 263 seconds)]
<ryantrinkle> i don't seem to be able to capture anything that's being passed via --arg
derjohn_mob has quit [(Ping timeout: 258 seconds)]
takle_ has joined #nixos
<clever> simony: simplest thing i can think of is to clone nixpkgs, checkout the revision of the channel, and then just edit it
mbrgm has joined #nixos
oida has quit [(Quit: WeeChat 1.7.1)]
systemfault has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
Vorpal has joined #nixos
Vorpal has quit [(Changing host)]
Vorpal has joined #nixos
takle_ has quit [(Ping timeout: 240 seconds)]
derjohn_mob has joined #nixos
takle has joined #nixos
mizu_no_oto has joined #nixos
takle has quit [(Ping timeout: 252 seconds)]
mekeor` has quit [(Quit: crypoanarchism! cybercommunism! digital revolution!)]
andrew has joined #nixos
<andrew> Is there a list of the supported wireless cards for nix?
ertes has quit [(Quit: Bye!)]
ertes has joined #nixos
takle has joined #nixos
jmeredith has quit [(Quit: Connection closed for inactivity)]
agjacome has quit [(Quit: leaving)]
vaibhavsagar has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
simukis_ has quit [(Quit: simukis_)]
simukis_ has joined #nixos
simukis_ has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
<hodapp> huh. wonder if I can nest wrappers, and have it work like expected
takle has joined #nixos
<clever> hodapp: you cant, one will overwrite the other, and then recursively call itself
<clever> need to manualy name things with i thnik raw makeWrapper calls
<clever> makeWrapper takes an output name, and a real-prog name
<clever> while wrapProgram just renames output -> .foo-wrapped and then uses the -wrapped as the real-prog
<clever> and the .foo-wrapped will be the previous wrapped, that calls .foo-wrapped
takle has quit [(Ping timeout: 260 seconds)]
<hodapp> clever: ahh, hrm. What I'm trying to do is fix https://github.com/NixOS/nixpkgs/pull/22219#issuecomment-291801133 by replacing it with a similar thing to how rWrapper does it, but the problem(?) is that RStudio already uses a wrapper
ajp has quit [(Quit: No Ping reply in 180 seconds.)]
<hodapp> and I might be able to reuse that wrapper (and just inject in some variables) but I'm trying to track down why R_LIBS_SITE is just empty if I try to replace R with rstudio in the wrapper
<clever> hodapp: ah, i think rWrapper is a shell function that calls wrapProgram and inserts extra args
<clever> and because wrapProgram is only ran once, you dont have to deal with nested wrappers
<clever> you need to find the definition of rWrapper
ajp has joined #nixos
andrew has quit [(Ping timeout: 260 seconds)]
<hodapp> I did, I'm looking at wrapper.nix right now
<hodapp> it uses makeWrapper, whatever that is
takle has joined #nixos
<hodapp> whereas rstudio uses wrapProgram (which is where I added --set R_PROFILE_USER blahblahblah)
<hodapp> hah. this would be easier to figure out if rstudio didn't take so damn long to build.
<hodapp> but if it didn't take so damn long to build, it wouldn't be necessary to figure out
takle has quit [(Ping timeout: 258 seconds)]
hexagoxel has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
iyzsong has joined #nixos
hexagoxel has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
ibor has quit [(Ping timeout: 240 seconds)]
oida has joined #nixos
takle has joined #nixos
<clever> hodapp: and line 21 of the same file
ogkloo has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
<tilpner> I've asked this before, but it didn't work then. I know how to use a local checkout of nixpkgs manually with -I nixpkgs=/etc/nixos/nixpkgs, but how do I apply that to all nix* and nixos* operations automatically?
<tilpner> Was it that thing about defexpr?
<tilpner> I tried pointing a channel to the local directory, but that didn't go too well
johnsonav has joined #nixos
takle has joined #nixos
<clever> tilpner: you can do the same thing in $NIX_PATH
<clever> tilpner: and there is a configuration.nix option, nix.nixPath to affect the default $NIX_PATH
<tilpner> Oh yes, I tried that too, via nix.nixPath, but I got a lot of errors I didn't know how to interpret. Let me reproduce them
drakonis has joined #nixos
Fare has quit [(Ping timeout: 260 seconds)]
<tilpner> clever - https://ptpb.pw/klNl with nix.nixPath = ["nixpkgs=/etc/nixos/nixpkgs" "nixos-config=/etc/nixos/configuration.nix"];
drakonis has quit [(Remote host closed the connection)]
takle has quit [(Ping timeout: 240 seconds)]
Fare has joined #nixos
<clever> tilpner: does /etc/nixos/nixpkgs/nixos/ exist?
<tilpner> Yes
<clever> and did you manualy specify -I nixpkgs= for that first rebuild?
<clever> the nix.nixPath stuff doesnt take effect until after nixos-rebuild works
<tilpner> Oh, I was somehow expecting it to read that and apply it to the current operation too, but that would be different from everything else, so it doesn't seem likely. I did that, got a new shell, and NIX_PATH was changed, thank you :)
<clever> its the <nixpkgs/nixos> file that does the actual loading of configuration.nix
<clever> so without a nixpkgs in the path, it is unable to even open configuration.nix
<tilpner> Do I need a <nixos> in my PATH? It doesn't complain when it only has <nixpkgs>, but maybe I'm missing something?
<clever> i believe everything goes via <nixpkgs>
<tilpner> That's good, maybe I'll someday get my laptop to a local 17.03 too! :)
takle has joined #nixos
takle has quit [(Ping timeout: 268 seconds)]
<hodapp> clever: not really sure what enlightenment this is supposed to bring
Wizek has quit [(Ping timeout: 260 seconds)]
<dtzWill> depends on what channel you're on, but without more information I'd say E21
<dtzWill> O:)
takle has joined #nixos
* hodapp thwaps dtzWill
matthewbauer has joined #nixos
cpennington has quit [(Remote host closed the connection)]
takle has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
sellout- has quit [(Read error: Connection reset by peer)]
sellout- has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
matthewbauer has quit [(Ping timeout: 252 seconds)]
takle has joined #nixos
alx741 has quit [(Quit: alx741)]
ryanartecona has joined #nixos
matthewbauer has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
RayNbow` has joined #nixos
johnramsden has joined #nixos
RayNbow`TU has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
matthewbauer has quit [(Remote host closed the connection)]
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
elninja44 has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
mizu_no_oto has joined #nixos
maurer has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 268 seconds)]
Guest98689 has joined #nixos
<Ralith> hee
leat has joined #nixos
endformationage has joined #nixos
CMCDragonkai has joined #nixos
CMCDragonkai is now known as Guest56823
engblom has quit [(Read error: Connection reset by peer)]
Guest98689 has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
engblom has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
ryanartecona has joined #nixos
justanotheruser is now known as OfficialJustan
DeaDSouL has quit [(Ping timeout: 240 seconds)]
jacob_ has joined #nixos
jacob_ is now known as Guest41187
takle has quit [(Ping timeout: 240 seconds)]
justelex has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
andymandias has quit [(Ping timeout: 260 seconds)]
Mic92 has joined #nixos
iyzsong has quit [(Ping timeout: 268 seconds)]
cantstanya has joined #nixos
takle has joined #nixos
acertain has quit [(Ping timeout: 252 seconds)]
engblom has quit [(Read error: Connection reset by peer)]
engblom has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
elitak has joined #nixos
osa1 has joined #nixos
osa1 has quit [(Changing host)]
osa1 has joined #nixos
<elitak> Anyone here familiar with building BEAM packages? `buildRebar3` is trying to build src subdirs in $src/_build/default/lib and failing because they are symlinks into the RO store...
CMCDragonkai1 has joined #nixos
takle has quit [(Ping timeout: 258 seconds)]
Guest56823 has quit [(Ping timeout: 252 seconds)]
paperd has joined #nixos
CMCDragonkai2 has joined #nixos
MercurialAlchemi has joined #nixos
CMCDragonkai1 has quit [(Ping timeout: 252 seconds)]
iyzsong has joined #nixos
matthewbauer has joined #nixos
wkennington has joined #nixos
elitak has quit [(Quit: leaving)]
paperd has quit [(Quit: WeeChat 1.7)]
justbeingglad has joined #nixos
justbeingglad has left #nixos []
endformationage has quit [(Quit: WeeChat 1.7)]
__20h__ has quit [(Quit: WeeChat 1.7)]
takle has joined #nixos
natas_ has joined #nixos
<natas_> I'm trying to install vs code, but I don't find it when I do 'nix-env -i vscode', but I don't think I'm doing this right. I'm very new to nixos, but I like it so far.
Fare has quit [(Ping timeout: 260 seconds)]
takle has quit [(Ping timeout: 252 seconds)]
FRidh has joined #nixos
<MichaelRaskin> natas_: it has unfree license, you need to explicitly enable unfree packages
<MichaelRaskin> -iA vscode would actually print a description; you need to add allowUnfree = true; into the attribute set in ~/.config/nixpkgs/config.nix — if the file is not there, you need to put { allowUnfree = true; } into it
CMCDragonkai2 has quit [(Ping timeout: 260 seconds)]
andymandias has joined #nixos
<natas_> MichaelRaskin, thank you, I think I did that, I'll check
<MichaelRaskin> You can also set environment variable NIXPKGS_ALLOW_UNFREE to 1
<matthewbauer> vscode *should* be in the binary cache because it's open source but see https://github.com/NixOS/nixpkgs/issues/17073
CMCDragonkai2 has joined #nixos
<natas_> MichaelRaskin, nice! I got it installed, thank you
<natas_> I am still trying to learn nixos, it's really great, but hard to grasp
<natas_> MichaelRaskin, I was installing browsers like firefox and chromium, do I just install browser extensions as usual or is there a nixos config for that kinda stuff?
<MichaelRaskin> Well,
<MichaelRaskin> to grasp there is a reliable but hard way
takle has joined #nixos
<MichaelRaskin> (read the Nix language manual, then NixOS manual then NixPkgs manual, and maybe Eelco Dolstra's thesis)
<natas_> I'll likely do that, my buddy finally convinced me to switch from Arch
<natas_> So far I like it though
<MichaelRaskin> Browser extensions are normally installed in $HOME, so it is OK to install them as usual
<natas_> Oh, ok, that makes sense
<MichaelRaskin> I don't remember, there may be some support for creating a browser package with some extensions preinstalled
takle has quit [(Ping timeout: 240 seconds)]
sellout- has quit [(Quit: Leaving.)]
<unlmtd[m]> I guess if you choose nixos youre kinda gently pushed to use haskell
<natas_> I've never used haskell, but it seems interesting and I do like functional programming
takle has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
<MichaelRaskin> Hey, we don't have half of the standard library deprecated in Nix
<natas_> haha
takle has quit [(Ping timeout: 240 seconds)]
CMCDragonkai3 has joined #nixos
CMCDragonkai2 has quit [(Ping timeout: 268 seconds)]
Mateon1 has joined #nixos
marsel has joined #nixos
<Jookia> Is there a trick to debug services in systemd?
johnramsden has quit [(Quit: Leaving)]
FRidh has quit [(Quit: Konversation terminated!)]
FRidh has joined #nixos
marsel has quit [(Ping timeout: 255 seconds)]
matthewbauer has quit [(Ping timeout: 252 seconds)]
<Jookia> Since systemd seems to break unprivileged openvpn
engblom has quit [(Read error: Connection reset by peer)]
<MichaelRaskin> Hehe
engblom has joined #nixos
<Jookia> I can run my script as an unprivileged user and as root in the container but as systemd it fails consistently
<MichaelRaskin> Missing environment?
<MichaelRaskin> Like PATH
requisitebits has quit [(Quit: Lost terminal)]
<Jookia> I have no idea, it worked in NixOS as of 20160830
<Jookia> I don't know hwo to check the environment
takle has joined #nixos
<MichaelRaskin> Ah, probably not missing PATH then
natas_ has quit [(Ping timeout: 260 seconds)]
<Jookia> Oh, it's bug #18708
takle has quit [(Ping timeout: 260 seconds)]
<Havvy> Oh, looks like there was a troll in here earlier...DCC exploits, highlight flood, using /notice to the channel because why the heck not, and impersonation of somebody else all in one.
<MichaelRaskin> Not in one, there were multiple connections from different IPs in the same wave
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
inflames has joined #nixos
iyzsong has quit [(Ping timeout: 240 seconds)]
iyzsong has joined #nixos
nicknovi1 has quit [(Ping timeout: 240 seconds)]
m3tti has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
DIzFer has joined #nixos
seanparsons has quit [()]
seanparsons has joined #nixos
takle has joined #nixos
inflames has quit [(Ping timeout: 260 seconds)]
newhoggy_ has joined #nixos
takle has quit [(Ping timeout: 258 seconds)]
takle has joined #nixos
newhoggy has quit [(Ping timeout: 252 seconds)]
newhoggy_ has quit [(Ping timeout: 258 seconds)]
takle has quit [(Ping timeout: 246 seconds)]
thc202 has joined #nixos
ericsagnes has quit [(Ping timeout: 255 seconds)]
Havvy has quit [(Quit: Computer Restarted or Restarting IRC)]
Havvy has joined #nixos
kampfschlaefer has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
seanparsons has quit [(Quit: WeeChat 1.7.1)]
seanparsons has joined #nixos
ielectric has joined #nixos
ielectric is now known as domenkozar
jensbin has joined #nixos
takle has joined #nixos
<srhb> I constantly miss let rec ... in ...
<srhb> Why is this not a thing? :|
<Yaniel> let rec?
<Yaniel> oh right
CMCDragonkai4 has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
CMCDragonkai3 has quit [(Ping timeout: 260 seconds)]
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
ixxie has joined #nixos
wkennington has quit [(Read error: Connection reset by peer)]
joachifm has quit [(Quit: leaving)]
joachifm has joined #nixos
jensbin has quit [(Quit: Leaving)]
ericsagnes has joined #nixos
<jluttine> i get the following error when trying to switch to latest unstable:
<jluttine> sh: pkg-config: command not found
<jluttine> No output from 'pkg-config --libs gimpui-2.0'
<srhb> jluttine: When building what?
<jluttine> and resynth.cc:29:21: fatal error: gtk/gtk.h: No such file or directory
<MichaelRaskin> I have fixed that in master already
MP2E has quit [(Quit: sleep)]
<MichaelRaskin> resynthesizer
<jluttine> srhb: btw, the openvpn issue yesterday was probably this: https://github.com/NixOS/nixpkgs/issues/24808 (i'm now trying to fix the issue by switching to latest in unstable channel)
<srhb> jluttine: Oh, interesting :)
<MichaelRaskin> Gimp got somewhat refactored, so resynthesizer build that was looking and Gimp and taking things from there failed
<jluttine> MichaelRaskin: ok, thanks!
<jluttine> but i suppose it's not very safe to use master, should use unstable channel? i mean, isn't unstable just the latest successful build of master so a bit scary to use unsuccessful build..
joachifm has quit [(Quit: leaving)]
<MichaelRaskin> Well, sometimes the build is just pending, sometimes the failures are unrelated to anything you care about (how about: Firefox test failed because out of HDD space to save a screenshot). You can checkout master and import only specific packages from there, too
<jluttine> well, i'll give master a try, let's see what happens :)
joachifm has joined #nixos
<MichaelRaskin> Well, you know how to roll back via the boot menu, right?
aloiscochard has joined #nixos
<jluttine> but i don't understand how that unstable branch could have that resynthesizer issue, shouldn't the build have failed? and thus, unstable shouldn't point at such a commit
<FRidh> any suggestions on how to use @variable@ on a patch?
<FRidh> runCommand?
<jluttine> or why it failed on my system but not on hydra or travis or what is the system..
<MichaelRaskin> FRidh: substituteAll at some point, I guess
<sphalerite> FRidh: what do you mean? You want to substitute a variable in the patch before applying it?
<MichaelRaskin> jluttine: unstable bump doesn't require _everything_ to be built succesfully
<jluttine> MichaelRaskin: so is there some list which need to be built successfully and which can fail?
<MichaelRaskin> Only the first part, I guess
<jluttine> ok
<jluttine> didn't know that, interesting
<MichaelRaskin> The long tail of the package list takes a few forevers to build after a large change
<jluttine> but aren't they built into the binary cache anyway?
<MichaelRaskin> They are, if they succeed
JagaJaga has joined #nixos
<FRidh> MichaelRaskin: ah, substituteAll, i forgot about that.
<FRidh> I couldn't do the substitution in the postPatch. Odd.
<jluttine> building master, i get the following build errors:
<jluttine> configure: error: in `/tmp/nix-build-ufraw-0.19.2-gimp-2.8.20-plugin.drv-0/ufraw-0.19.2':
<jluttine> configure: error: The pkg-config script could not be found or is too old.
<avn> all gimp plugins broken
<MichaelRaskin> Not all, I have already fixed resynthesizer…
<jluttine> :)
<MichaelRaskin> But seems like there is a problem, yes
<avn> MichaelRaskin: I see ;) If fix relative easy -- I try to fix all others
<MichaelRaskin> Well, add pkgconfig and gtk2 as build inputs
<MichaelRaskin> And hope for the best
jabesed has joined #nixos
<jluttine> i disabled my gimp plugins, now seems to build ok. thanks
roconnor has quit [(Ping timeout: 240 seconds)]
thineye has joined #nixos
Itkovian has joined #nixos
hiberno has joined #nixos
taktoa has joined #nixos
seanparsons has quit [(Quit: WeeChat 1.7.1)]
ixxie has quit [(Ping timeout: 268 seconds)]
__Sander__ has joined #nixos
ixxie has joined #nixos
CMCDragonkai4 has quit [(Ping timeout: 240 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
newhoggy has joined #nixos
musicmatze has joined #nixos
newhoggy has quit [(Ping timeout: 260 seconds)]
newhoggy has joined #nixos
andymandias has quit [(Read error: Connection reset by peer)]
<domenkozar> ugh, someone on freenode exploited segfault on weechat 1.7
<domenkozar> upgraded to 1.7.1
<MichaelRaskin> exploited to get GrahamC offline and grab the nick for a brief time, no less
newhoggy has quit [(Ping timeout: 245 seconds)]
<domenkozar> MichaelRaskin: thanks
newhoggy has joined #nixos
vaibhavsagar has quit [(Ping timeout: 240 seconds)]
newhoggy has quit [(Ping timeout: 245 seconds)]
Wizek has joined #nixos
newhoggy has joined #nixos
andymandias has joined #nixos
andymandias has quit [(Read error: Connection reset by peer)]
<thineye> Has someone currently a working plasma 5 setup with l10n on unstable?
<thineye> l10n build process brokes for me
Jackneilll has joined #nixos
andymandias has joined #nixos
nixy has joined #nixos
<avn> Totally forget how to get attribute with default in nix ;(
<MichaelRaskin> a.b or c
<avn> MichaelRaskin: i want to make buildInputs = [ gimp pkgconfig glib ] ++ plugin.buildInputs _or []_
<MichaelRaskin> I would use more parenthesis, doesn't (plugin.buildInputs or []) work?
thineye has quit [(Remote host closed the connection)]
Itkovian has joined #nixos
CMCDragonkai4 has joined #nixos
m3tti has quit [(Remote host closed the connection)]
seanparsons has joined #nixos
Heffalump has quit [(Quit: leaving)]
newhoggy has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
Kingsquee has quit [(Quit: https://i.imgur.com/qicT3GK.gif)]
newhoggy has quit [(Ping timeout: 255 seconds)]
cmacrae has joined #nixos
simukis_ has joined #nixos
newhoggy has joined #nixos
newhoggy has quit [(Ping timeout: 258 seconds)]
bennofs has joined #nixos
S0rin has joined #nixos
seanpars1 has joined #nixos
seanpars1 has quit [(Client Quit)]
m3tti has joined #nixos
dejanr has joined #nixos
oida has quit [(Ping timeout: 240 seconds)]
ibor has joined #nixos
<symphorien> how can I override a nixos module ?
shanemikel has joined #nixos
osa1 has quit [(Ping timeout: 260 seconds)]
simp__ has joined #nixos
mudri has joined #nixos
oida has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<LnL> you can't currently unless you are on unstable
elninja44 has quit [(Remote host closed the connection)]
<LnL> what do you want to do?
<symphorien> I wanted to add an extra sane backend
<symphorien> I edited configuration.nix, nixos-rebuild switch
<symphorien> but that didn't work because the nixos module is setting an environment variable for the location of /nix/store/.../etc/sane.d and I would have to login/logout for it to have effect
<symphorien> so I wanted to modify the module to just make /etc/sane.d a symlink to /nix/store/whatever so that nixos-rebuild switch works immediately
<srhb> Wait, what's in unstable that allows overriding modules?
<symphorien> and since I am not on unstable I would like to avoid having to switch to unstable just to test that before making the PR
newhoggy has joined #nixos
<LnL> you can use nixos-rebuild build-vm to test it
<DIzFer> checkout the appropiate branch, edit whatever, rebuild
<symphorien> ok thanks
<symphorien> I thought there was a brand new system to override nixos module
<symphorien> that would be simple because that way I can test with hardware (the scanners)
<DIzFer> there may be, I'm expecting LnL's answer too
newhoggy has quit [(Ping timeout: 260 seconds)]
newhoggy has joined #nixos
<LnL> srhb: yes, but it wasn't finished in time for 17.03 checkout the #sec-replace-modules section in the manual from master
<LnL> thought you could link the latest manual from the cache, but can't find it
<symphorien> ah ok
<LnL> you can nix-store -r /nix/store/7k75di0fz9q807zjzznl1gqsmhkn1ak5-nixos-manual and open it locally
newhoggy has quit [(Read error: Connection reset by peer)]
newhoggy has joined #nixos
ixxie has quit [(Ping timeout: 240 seconds)]
<bennofs> LnL: you can get the línk from the hydra build iirc
<LnL> hydra builds are removed immediately after it's uploaded to the cache
newhoggy has quit [(Ping timeout: 240 seconds)]
acarrico has joined #nixos
<bennofs> LnL: ah, so it used to work before the s3 store thing
<bennofs> LnL: hydra seems to know about a different type of output for docs though: http://hydra.nixos.org/build/52194149
<LnL> yeah, but I think the cache only has nar files so I don't think there's a way to link straight to the index.html there
newhoggy has joined #nixos
<bennofs> i'd say this is a bug in hydra. it should either retain the docs or upload them to the cache as well
<LnL> they are in the cache, just not unpacked :)
thineye has joined #nixos
jabesed has quit [(Ping timeout: 255 seconds)]
roconnor has joined #nixos
<m3tti> hi there where do i find flock in a mkDerivation
<bennofs> is it possible to tell nix to use a different build dir for a single derivation?
<bennofs> building android requires something like 100GB of free storage, and I don't have that amount of space in my usual build directory
<MichaelRaskin> I would try setting TMPDIR (and NIX_REMOTE= of course)
Fare has joined #nixos
Itkovian has joined #nixos
Fare has quit [(Ping timeout: 240 seconds)]
stepcut has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
<m3tti> hi there i need flock for a buildscript in an default.nix where can i find it?
cmacrae has quit [(Ping timeout: 260 seconds)]
<m3tti> it is a package from util-linux
takle has quit [(Remote host closed the connection)]
newhoggy has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
<symphorien> what do you want exactly with flowk ?
<symphorien> *flock
<symphorien> I have it there : /nix/store/fhbi7sbpqql0fhv9i62qm8d51snjk7gn-util-linux-2.29.2-bin/bin/flock
newhoggy has quit [(Ping timeout: 268 seconds)]
cpennington has joined #nixos
newhoggy has joined #nixos
acarrico has quit [(Ping timeout: 240 seconds)]
goibhniu has joined #nixos
Profpatsch has joined #nixos
takle has joined #nixos
schoppenhauer has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
Wizek_ has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
newhoggy has joined #nixos
<hodapp> hmm, should I just file an issue for https://github.com/NixOS/nixpkgs/pull/22219#issuecomment-291801133 even though it's solely my fault and I'd basically be using issues as my to-do list?
systemfault has quit [(Quit: Bye!)]
newhoggy has quit [(Ping timeout: 240 seconds)]
<jophish> hodapp: I don't see why not
<MichaelRaskin> Well, unless you already have a good idea how to write the wrapper in question and have time to do that tomorrow
<MichaelRaskin> If not, a visible snapshot of your current knowledge of the situation would make sense
takle has joined #nixos
sellout- has joined #nixos
ryantrinkle has quit [(Ping timeout: 240 seconds)]
takle has quit [(Ping timeout: 246 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 246 seconds)]
goibhniu has quit [(Remote host closed the connection)]
ertes has quit [(Ping timeout: 240 seconds)]
<hodapp> is there a quick idiomatic way to expand 'foo' as either the value of foo if foo isn't null, or just an empty string if it is?
ilyaigpetrov has joined #nixos
<sziszi> what do you using for managing qemu VMs?
<jophish> sziszi: you might want to take alook at nixops
<sziszi> jophish: on localhost?
garbas has joined #nixos
<jophish> hodapp: builtins.toString
<jophish> sziszi: sure, I do that with virtualbox
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<sziszi> Afaik NixOps can only manage NixOS/Nix-capable hosts
<sziszi> And I want to use othes OSes
takle has joined #nixos
<jophish> sziszi: ah, that sounds correct
winmillwill has joined #nixos
<jophish> hodapp: although that allows you to pass in more than strings or null
<jophish> builtins.toString false => ""
<jophish> builtins.toString true => "1"
<jophish> :(
StillerHarpo39 has joined #nixos
<hodapp> alas, it turns out to be a moot point since other things prevented it from working!
Isorkin has joined #nixos
<hodapp> but I think I finally solved the issue
<hodapp> so now that I don't use R anymore, I can use R much more quickly
newhoggy has joined #nixos
<m3tti> symphorien: the zcash build script needs it
<symphorien> so you are in a mkDerivation ?
<m3tti> yes
<m3tti> stdenv.mkDerication
<symphorien> then put eject in buildInputs
<symphorien> according to nix-env -qaP util-linux it is the attribute of util-linux
<m3tti> ok
CMCDragonkai has joined #nixos
<symphorien> or if you use flock explicitly you can just replace it by ${eject}/bin/flock
CMCDragonkai is now known as Guest45034
CMCDragonkai4 has quit [(Ping timeout: 252 seconds)]
newhoggy has quit [(Ping timeout: 260 seconds)]
ibor1 has joined #nixos
marsel has joined #nixos
ibor has quit [(Ping timeout: 240 seconds)]
iyzsong has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
newhoggy has joined #nixos
dejanr has quit [(Quit: WeeChat 1.7)]
<m3tti> symphorien: that worked but now it wants to create a /homeless-shelter folder
<m3tti> in root
<m3tti> i'll take a look
dridus has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
fractal is now known as Guest72263
Guest72263 has quit [(Killed (rajaniemi.freenode.net (Nickname regained by services)))]
k2s has joined #nixos
jabesed has joined #nixos
fractal_ has joined #nixos
newhoggy has joined #nixos
<symphorien> I think that /homeless shelter is the home directory of most nix-related users
<hodapp> wut
newhoggy has quit [(Ping timeout: 260 seconds)]
jabesed has quit [(Ping timeout: 260 seconds)]
newhoggy has joined #nixos
k2s has quit [(Ping timeout: 260 seconds)]
newhoggy has quit [(Ping timeout: 240 seconds)]
MercurialAlchemi has quit [(Ping timeout: 240 seconds)]
Fare has joined #nixos
m3tti has quit [(Ping timeout: 240 seconds)]
<LnL> $HOME is set to that in the build environment, writing things to a user's home would be an impurity
oida has quit [(Ping timeout: 260 seconds)]
newhoggy has joined #nixos
ronny has joined #nixos
oida has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
erasmas has joined #nixos
Guest45034 has quit [(Ping timeout: 260 seconds)]
newhoggy has joined #nixos
DerGuteMoritz has joined #nixos
Guest45034 has joined #nixos
newhoggy has quit [(Ping timeout: 252 seconds)]
ibor1 has quit [(Remote host closed the connection)]
osa1 has joined #nixos
osa1 has quit [(Changing host)]
osa1 has joined #nixos
newhoggy has joined #nixos
christine__ has joined #nixos
christine__ has left #nixos ["Leaving"]
ryantrinkle has joined #nixos
newhoggy has quit [(Ping timeout: 268 seconds)]
agjacome has joined #nixos
newhoggy has joined #nixos
k0001 has joined #nixos
romildo has joined #nixos
eacameron has quit [(Remote host closed the connection)]
newhoggy has quit [(Ping timeout: 268 seconds)]
<romildo> On NixOS unstable the default serif and sans fonts are not working. For instance, with fonts.fontconfig.defaultFonts.sansSerif = [ "Roboto" ] on configuration.nix, fc-match sans gives DejaVuSans.ttf: "DejaVu Sans" "Book".
<romildo> Any clues?
ryanartecona has joined #nixos
marsel has quit [(Ping timeout: 260 seconds)]
<romildo> Similarly, for many fonts I tried setting fonts.fontconfig.defaultFonts.serif to, fc-match serif always reports DejaVuSerif.ttf: "DejaVu Serif" "Book".
<romildo> Mono works, though.
newhoggy has joined #nixos
<avn> jluttine: MichaelRaskin: https://github.com/NixOS/nixpkgs/pull/25393 check please, all plugins now builds succesfully
<jophish> How are people using nix to hadle their dotfiles?
FRidh has quit [(Quit: Konversation terminated!)]
<MichaelRaskin> Well, sometimes just with a VCS, sometimes with handcoded expressions to nix-build
simp__ has quit [(Quit: Connection closed for inactivity)]
<MichaelRaskin> There is NixUP for managing dotfiles, too
Havvy has quit [(Read error: Connection reset by peer)]
disable1 has joined #nixos
disable1 has left #nixos []
Havvy has joined #nixos
newhoggy has quit [(Ping timeout: 260 seconds)]
osa1 has quit [(Ping timeout: 246 seconds)]
<avn> jophish: I still stick with .dotfiles in git (and symlinks), because want to have them cross-system
<gchristensen> jophish: I have hacked together a nixos module to manage my dotfiles
Guest45034 has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin> Well, you can have Nix on various systems
<jophish> avn: yeah, that's more or less what I have at the moment https://github.com/expipiplus1/dotfiles
<jophish> gchristensen: sadly most of my systems are Ubuntu with nix
<gchristensen> that's ifne, the `./result` of nix-build can be the activation script
pmade has joined #nixos
newhoggy has joined #nixos
<avn> jophish: I also like vcsh idea, but it not fully fit my workflows
<jophish> gchristensen: oh yeah, of course
<jophish> avn: multiple repos seems a little overkill
ambro718 has quit [(Ping timeout: 260 seconds)]
<avn> jophish: I am ok with it, but it unable to `vcsh status` without showing unrelated stuff
newhoggy has quit [(Ping timeout: 240 seconds)]
<srhb> jophish: I have some really nasty/easy solution with stow to symlink everything
<srhb> jophish: And I use mir.qualia with git smudge to selectively comment/uncomment based on hostname. It's pretty disgusting. :D
<avn> ...or not, now it looks more usable
dlight has joined #nixos
<avn> srhb: links? ;)
peti has joined #nixos
<avn> ty ;)
<bennofs> I just have $HOME be a git repo
newhoggy has joined #nixos
<bennofs> and ignore everything by default so that I can explictly add things (but I have my user data outside of HOME on a separate partition using xdg configs)
aneeshusa has joined #nixos
pmade has quit [(Quit: ZNC - http://znc.in)]
pmade has joined #nixos
kykim has joined #nixos
mounty has joined #nixos
newhoggy has quit [(Ping timeout: 268 seconds)]
mounty has quit [(Ping timeout: 258 seconds)]
newhoggy has joined #nixos
eacameron has joined #nixos
thaega has joined #nixos
<jluttine> jophish: i use yadm. it's basically just a very thin wrapper for git, but uses nice git defaults and adds some convenient features if you want to encrypt private configs and/or manage dotfiles for multiple machines with some differences
thaega has quit [(Remote host closed the connection)]
newhoggy has quit [(Ping timeout: 240 seconds)]
<srhb> nix-home and nixup do look interesting, though the latter looks like it has never been merged..
<jophish> Thanks for all the suggestions everyone!
thaega has joined #nixos
stepcut has joined #nixos
osa1 has joined #nixos
osa1 has quit [(Changing host)]
osa1 has joined #nixos
seanpars1 has joined #nixos
alx741 has joined #nixos
seanpars1 has quit [(Client Quit)]
seanparsons has quit [()]
goibhniu has joined #nixos
newhoggy has joined #nixos
ertes has joined #nixos
newhoggy has quit [(Ping timeout: 260 seconds)]
thineye has quit [(Quit: Leaving.)]
newhoggy has joined #nixos
thineye has joined #nixos
_0bitcount has joined #nixos
derjohn_mob has quit [(Ping timeout: 255 seconds)]
newhoggy has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
psychon has joined #nixos
<psychon> hi, just wanted to report: when clicking on the "our release page" link at https://nixos.org/wiki/Installing_NixOS_in_a_VirtualBox_guest, you just get an error message from cloudflare
<gchristensen> :(
<gchristensen> psychon: you can get it from http://nixos.org/nixos/download.html
<psychon> yup, I guessed as much, thanks
<nixy> It looks like it refers to something that isn't there anymore. The wiki is pretty out of date :(
<gchristensen> "The NixOS wiki is outdated and is being shut down."
<gchristensen> yeah
<psychon> I was just thinking "hm, I'm bored, let's try out NixOS" and google sent me there when asking for "NixOS VMWare" ;-)
<psychon> I didn't even read that line at the top
<gchristensen> yeah, nobody does ;)
<nixy> I won't comment too much on the wiki since its a sore point, but outdated information can be a bit worse than nothing
<psychon> I know that feeling, perhaps someone here uses awesome as its WM; its partly my fault that the awesomeWM wiki is gone, but yet no one read the warning
<psychon> nixy++
newhoggy has quit [(Ping timeout: 240 seconds)]
aneeshusa has quit [(Ping timeout: 245 seconds)]
Itkovian has joined #nixos
<psychon> I'm just curious and have no real use case, any suggestions on which document to follow for installing NixOS?
revtintin has joined #nixos
<psychon> ok, sorry for asking, I should just check the web page....
<gchristensen> psychon: http://nixos.org/nixos/download.html click the big green "Next Step" button :)
<psychon> thanks :)
newhoggy has joined #nixos
eacameron has quit [(Remote host closed the connection)]
romildo has quit [(Quit: Leaving)]
__Sander__ has quit [(Quit: Konversation terminated!)]
<srhb> Interestingly, if you scroll down, there's perhaps the shortest install guide I've ever seen. :-)
<srhb> (Though admittedly, the nano /etc/nixos/configuration.nix step is kind of cheating ;-))
<gchristensen> haha
<goibhniu> I thought I'd try to figure out how to enable the (github) Oauth extension for the wiki, but I can't see out how the current extensions (Cite, Nuke etc.) end up in the extensions directory ... does anyone happen to be familiar with that?
newhoggy has quit [(Ping timeout: 268 seconds)]
eacameron has joined #nixos
* goibhniu can't see any reference to them in nixpkgs or nixos-org-configurations, except for where they are enabled in webserver.nix
<kykim> I'm setting up my own hydra server, and am starting out by replicating the "gnu:hello-master" jobset. I'm trying to configure it to only build for "x86_64-linux". I've set an Input of "'system' 'String value' 'x86_64-linux'", but everytime I evaluate the jobset, it tries to build for i686-linux and x86_64-darwin. Is what I'm trying to do possible? Or do I need to define my own nix expression (rather than reusing the one defined in
<kykim> git://git.savannah.gnu.org/hydra-recipes.git)?
Guest45034 has joined #nixos
newhoggy has joined #nixos
<clever> kykim: some of the release.nix files take a supportedSystems array as an argument
newhoggy has quit [(Ping timeout: 245 seconds)]
jmeredith has joined #nixos
ambro718 has joined #nixos
_0bitcount has left #nixos ["Leaving"]
newhoggy has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
hotfuzz has joined #nixos
acertain has joined #nixos
<goibhniu> doh! the extensions are included in mediawiki
newhoggy has quit [(Ping timeout: 260 seconds)]
eacameron has quit [(Remote host closed the connection)]
Wizek_ has quit [(Ping timeout: 260 seconds)]
seanz has joined #nixos
seanz has quit [(Client Quit)]
newhoggy has joined #nixos
aloiscochard has quit [(Quit: Connection closed for inactivity)]
<sphalerite> Currently, nix includes the builtin "tryEval" which takes a thing and returns a set containing whether that thing could be evaluated successfully, and, if so, the thing. Wouldn't a higher-order function for this be more idiomatic though?
newhoggy has quit [(Ping timeout: 260 seconds)]
cransom has joined #nixos
derjohn_mob has joined #nixos
<sphalerite> i.e. have something like `tryEval (value: resultIfItWasSuccessful) (resultIfItFailed) (valueToTryEvaluating)
kykim` has joined #nixos
statusbot has quit [(Remote host closed the connection)]
statusbot has joined #nixos
Isorkin_ has joined #nixos
CMCDragonkai has joined #nixos
CMCDragonkai is now known as Guest20366
justelex_ has joined #nixos
statusbot2 has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
nadley_ has joined #nixos
CodeWarr1or has joined #nixos
kier_ has joined #nixos
nahamu_ has joined #nixos
nithor_ has joined #nixos
statusbot has quit [(Ping timeout: 255 seconds)]
chris|_ has joined #nixos
newhoggy has joined #nixos
eacameron has joined #nixos
[0x4A6F]_ has joined #nixos
chris|_ is now known as chris|
[0x4A6F]_ is now known as [0x4A6F]
statusbot has joined #nixos
nicknovi1 has joined #nixos
luigy has joined #nixos
newhoggy has quit [(Ping timeout: 246 seconds)]
hexa- has joined #nixos
statusbot2 has quit [(Ping timeout: 255 seconds)]
jmeredith has joined #nixos
oida has joined #nixos
ronny has joined #nixos
lassulus has joined #nixos
jluttine has joined #nixos
zraexy has joined #nixos
<bachp> Is there an easy way to check if a NixOS update is available? I'm traing to write a small notification script that is running on my Machine and shows me a popup whenever a new version is available and nixos-rebuild switch would update the system. Kind of like the updata available indicator in other distributions.
<clever> bachp: either check the revisions on https://github.com/NixOS/nixpkgs-channels or http://howoldis.herokuapp.com/
<goibhniu> hi bachp, I've been working on something similar, perhaps you can re-use some code: https://github.com/cillianderoiste/NixTrayWidget
<clever> which reminds me, i started something that did that over git, where did i leave it, lol
<gchristensen> In Which Everyone Has Solved This Problem Different Ways
* goibhniu uses JSON from howoldis
<clever> -rw-r--r-- 1 clever users 3.5K Feb 29 2016 main.cpp
<clever> found it, year old, not even in git
<gchristensen> an on feb 29 even
<clever> [clever@amd-nixos:~/apps/nix-tracker]$ ./nix-tracker
<clever> bash: ./nix-tracker: No such file or directory
<clever> and the ld.so got GC'd
<gchristensen> bachp: you might find nixos-version's --hash option useful :)
<bachp> I tought maybe there is a command in nix-channel or nixos-version that chan do something like that. That would have been nice ;)
disasm has joined #nixos
<gchristensen> it would be nice :P
<clever> FILE *ver = fopen("/run/current-system/nixos-version","r");
<clever> looks like my instance reads the nixos version directly
<bachp> gchristensen: nixos-version --hash seems useful
<bachp> clever: What do you check the version against? Directly against the channels url?
newhoggy has joined #nixos
<clever> bachp: it uses a git library to check every branch on https://github.com/NixOS/nixpkgs-channels
<clever> bachp: ah, and the repo it opens on line 89 needs remotes pre-configured
<bachp> clever: Ok I tought about something similar
<bachp> I will probably reuse some of your code but write something in go. The goal is to use it in conjunction with Kubernetes in the end
<goibhniu> bachp: gchristensen also mentioned how to check if the upgrade includes security fixes: `git fetch origin refs/notes/security:refs/notes/security; git log --notes=security e5acde0cf4975282cf26461e6d46db1e4ef90026`
<clever> one side-effect of my design, is that it needs a full clone of nixpkgs, and every time it polls, it downloads new commits
<clever> so the git repo will always be up to date
<gchristensen> goibhniu: let's keep that one quiet for now please lol
<clever> i think the other methods just check a json list and dont download the changes
<goibhniu> gchristensen: oh, how come?
<gchristensen> goibhniu: git notes suck in a lot of ways, I don't think we want to commit to using that process
<goibhniu> ah, cool
<clever> but if your already tracking master a lot for dev, its not an issue
digitus has joined #nixos
eacameron has quit [(Remote host closed the connection)]
guillaum2 has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
<nixy> travis seems to have flagged my request saying 'abuse detected: known offender', can anyone elaborate on why that might have happened?
<gchristensen> nope, might should ask in #travisci or whatever their channel is
<gchristensen> link to the PR?
<nixy> I have a feeling its because I am using git in a way thats somehow silly
<gchristensen> oh?
derjohn_mob has quit [(Ping timeout: 255 seconds)]
nahamu_ is now known as nahamu
<MichaelRaskin> I guess different email in commit and in GitHub profile
<gchristensen> interesting, I don't see _any_ travis status on that page
<nixy> Yeah, that threw me off but if you go to Travis the request shows up as rejected
<gchristensen> I don't ever look at travis' status anyway :/
<MichaelRaskin> If anyone was under illusion that we knew all the possible Travis failure modes and trigger them in NixPkgs — it was a false impression. But now we are one step closer!
<nixy> MichaelRaskin: I believe my email should be the same between my profile and commits
newhoggy has joined #nixos
<MichaelRaskin> Why did it complain of 404 then, I wonder
bennofs has quit [(Ping timeout: 260 seconds)]
newhoggy has quit [(Ping timeout: 260 seconds)]
<nixy> Huh looks like Travis has flagged me as an abuser, whelp thats not nixpkgs problem but thanks for the help
newhoggy has joined #nixos
athan has quit [(Remote host closed the connection)]
<MichaelRaskin> I wonder if it improves your chances of getting things merged; given that most Travis results are false positives…
pie_ has joined #nixos
<nixy> Maybe I should just leave it as is then ;)
<pie_> how can i make things louder than my max volume? :(
<pie_> things are audible fine but i need louder
<MichaelRaskin> Using what?
<pie_> *how can i make my max volume bigger?
<MichaelRaskin> mplayer has af for that
<pie_> well im listening to an mp3 in firefox
<pie_> and i have the little kde audio tray thing
<MichaelRaskin> Firefox… does it go via PulseAudio?
<pie_> probably
<pie_> no th etray says its alsa
<pie_> *the tray
<pie_> everything is maxed
<MichaelRaskin> Well, you can run pavuctl and check whether Firefox goes via PA
<MichaelRaskin> MPlayer can do software over-stretching of the sound
<pie_> i mean the tray says firefox alsa plugin
<MichaelRaskin> I think PulseAudio does support something for that
<MichaelRaskin> I am not sure FF on its own does that
newhoggy has quit [(Ping timeout: 260 seconds)]
<pie_> ah thanks looks like pavu can ive a litlte extra juice
<kykim`> clever: thanks for the hydra config pointers
newhoggy has joined #nixos
<MichaelRaskin> OK, I am not willing to look at _fresh_ PRs
<MichaelRaskin> I was doing the backlog…
newhoggy has quit [(Ping timeout: 240 seconds)]
vagrant- has joined #nixos
tvon has joined #nixos
Tipping_Fedora has quit [(Read error: Connection reset by peer)]
newhoggy has joined #nixos
eacameron has joined #nixos
newhoggy has quit [(Ping timeout: 255 seconds)]
psychon has left #nixos []
systemfault has joined #nixos
newhoggy has joined #nixos
ryanartecona has joined #nixos
Itkovian has joined #nixos
acarrico has joined #nixos
hyphon81 has joined #nixos
<tilpner> If I pass a dictionary/map/object to a function, then mapAttrsToList over it, is there a way to retain the input order? I could also pass a list, but this is prettier
newhoggy has quit [(Ping timeout: 245 seconds)]
jluttine has quit [(Ping timeout: 260 seconds)]
Wizek_ has joined #nixos
<Dezgeg> maps don't have an order
mbirkis has joined #nixos
<tilpner> Ah, okay. Figured I'd just ask in case Nix maps do have one :)
<sphalerite> tilpner: that's why they're usually called "sets" in the nix world
newhoggy has joined #nixos
slyfox has quit [(Quit: :))]
<tilpner> Yes, I don't really know the vocabulary. Unlike most other languages, I'm learning Nix by using it blindly and looking at nixpkgs for examples :D
agjacome has quit [(Quit: leaving)]
oida has quit [(Quit: WeeChat 1.7.1)]
newhoggy has quit [(Ping timeout: 240 seconds)]
dridus has quit [(Quit: znc? wassat?)]
davidak has joined #nixos
newhoggy has joined #nixos
<hodapp> that's how I'm learning Nix too >_>
<hodapp> I need to refresh myself on the language and bridge this gap with how I use Nixpkgs
<nixy> You can't learn something you don't use so crawling blindly is probably the best start IMO
<davidak> does anyone has an idea why i get this strange error?
<davidak> called without required argument ‘lib’
cpennington has quit [(Remote host closed the connection)]
<hodapp> hm. I should learn patchelf well enough that I can move my DraftSight package away from pkgs.buildFHSUserEnv
oida has joined #nixos
c0dehero has joined #nixos
<hodapp> if that buildFHSUserEnv does nothing at all special, it merely uses a handful of targetPkgs, it seems like this shouldn't be awful to write
<tilpner> nixy - Well, you can use something *and* read the manual :P
newhoggy has quit [(Ping timeout: 260 seconds)]
romildo has joined #nixos
jluttine has joined #nixos
dridus has joined #nixos
kykim` has quit [(Ping timeout: 255 seconds)]
slyfox has joined #nixos
bennofs has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<romildo> terminology has efl on buildInputs. efl has curl on propagatedBuildInputs. But I am getting the following message when running terminology:
<romildo> ERR<11834>:ecore_con lib/ecore_con/ecore_con_url_curl.c:288 _c_init() Could not find libcurl.so.5, libcurl.so.4
<nixy> tilpner: Sometimes the manual doesn't make sense till you have already broken everything tho :p
<tilpner> True
<romildo> Shouldn't liburl.so.4 being found when terminology is run?
dridus has quit [(Quit: znc? wassat?)]
<tilpner> Does every buildInput automatically become a runtime dependency?
thineye has quit [(Quit: Leaving.)]
<copumpkin> no
<dtz> tilpner: no
<tilpner> Good, that sounds wasteful. romildo ^
<copumpkin> sadly, every propagated build input does, but in theory we could fix that
<tilpner> Oh, nevermind, I thought that would apply to both
<romildo> curl is not listed by ldd:
<romildo> ldd $(readlink -f $(which terminology)) | grep -i curl
newhoggy has joined #nixos
pmade has quit [(Quit: ZNC - http://znc.in)]
andymandias has quit [(Ping timeout: 260 seconds)]
<romildo> then it should not be needed, right?
Itkovian has joined #nixos
dridus has joined #nixos
newhoggy has quit [(Ping timeout: 260 seconds)]
andymandias has joined #nixos
pmade_ has joined #nixos
matthewbauer has joined #nixos
newhoggy has joined #nixos
StillerHarpo39 has quit [(Ping timeout: 240 seconds)]
pmade_ has quit [(Client Quit)]
pmade_ has joined #nixos
newhoggy has quit [(Ping timeout: 255 seconds)]
dridus has quit [(Quit: znc? wassat?)]
dridus has joined #nixos
johnsonav has quit [(Ping timeout: 246 seconds)]
newhoggy has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
leat has quit [(Read error: No route to host)]
newhoggy has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
matthewbauer has quit [(Remote host closed the connection)]
newhoggy has quit [(Ping timeout: 276 seconds)]
newhoggy has joined #nixos
newhoggy has quit [(Ping timeout: 246 seconds)]
Wizek_ has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
kykim` has joined #nixos
leat has joined #nixos
newhoggy has quit [(Ping timeout: 260 seconds)]
Guest20366 has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin> Oh no, I have given advice how to get some useful feature out of PulseAudio, now I am tainted
<Mic92> romildo: is libdl included in the ldd output
<Mic92> the application may dlopen
alphor_ has joined #nixos
Itkovian has joined #nixos
<Mic92> *may use dlopen()
osa1 has quit [(Ping timeout: 240 seconds)]
<Mic92> MichaelRaskin: the streaming feature or bluetooth?
wak-work has joined #nixos
<Mic92> export PULSE_SERVER=<ip> is quite nice
endformationage has joined #nixos
newhoggy has joined #nixos
<romildo> Mic92, yes, libdl is included in the ldd output.
<Mic92> romildo: use makeWrapper to extend LD_LIBRARY_PATH by libcurl
newhoggy has quit [(Ping timeout: 245 seconds)]
<romildo> It seems to happen with other projects using efl too. For instance, with ephoto I get the same message.
<MichaelRaskin> Mic92: no just its use to do software volume control above 100% for software that cannot do it on its own
alphor has quit [(Quit: Bye!)]
newhoggy has joined #nixos
<MichaelRaskin> And this being Firefox, it is easier to aks PA than to make sure FF uses ALSA and then asking ALSA
<hodapp> huh, I just thought of a thing for why DraftSight might not package right: what do I do when building/installing the package wants to do something graphical?
FRidh has joined #nixos
<hodapp> in this case, dpkg pops up a license agreement window
<joepie91> MichaelRaskin: I, too, have stared into the depths of the Pit Of Actually Useful Things That PulseAudio Can Do...
pie_ has quit [(Changing host)]
pie_ has joined #nixos
<joepie91> hodapp: installers often have a flag for agreeing to the liense
<MichaelRaskin> Well, I have zero objections to running PA, DBus etc as long as they live in a corner and not try to control entire system
<joepie91> license *
<hodapp> joepie91: ah, good point
<joepie91> hodapp: afaik other nixpkgs packages that need to deal with this, handle this by requiring the user to set an option that indicates they agree with the license
<joepie91> so you can agree with the license declaratively ;)
<joepie91> (basically just requires an assert)
<hodapp> lol
<hodapp> yeah, this package is going to require every nasty flag Nix has
<hodapp> looking at https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/adobe-reader/default.nix now, and it looks like all I "should" have to do is put the dependencies into the libPath the same way, and make a builder.sh which calls dpkg and then patchelf
newhoggy has quit [(Ping timeout: 258 seconds)]
acarrico has quit [(Ping timeout: 255 seconds)]
nixy has quit [(Quit: WeeChat 1.7.1)]
<reactormonk[m]> How... opinionated is nix on FS? Could I make a new btrfs subvolume for my root and install nix there and keep my current system alive?
newhoggy has joined #nixos
<MichaelRaskin> Well, it doesn't help you make crazy migrations, and rollback across FS layout change is not something I would expect to be reliable, but whatever you can mount using initrd tools can usually be configure
<MichaelRaskin> Ah wait
<MichaelRaskin> Your current system is not Nix
<DIzFer> reactormonk[m]: I have done that, having gentoo, arch and nix sharing a partition
<DIzFer> all booting fine
<reactormonk[m]> I've got my /home on an entirely different disk.
mudri has quit [(Ping timeout: 240 seconds)]
<reactormonk[m]> DIzFer: separate subvolumes?
<DIzFer> even home was a subvolume in my case
<MichaelRaskin> Different disk is no problem at all
<DIzFer> yeah
<reactormonk[m]> got me some instructions / painpoints?
<gchristensen> nixos is very flexible with filesystems
<gchristensen> its partitioning tool is manual so pretty much "whatever you can dream up" except /nix needs to be on /
<DIzFer> mount options are important, add rootflags=subvol=<subvolume> to the kernel cmdline
<reactormonk[m]> That might be a bit problematic, only 25GB left over... lemme clean up package cache
<MichaelRaskin> Ah, subvolume is just mount option, so no problem
<DIzFer> yeah, and mount it correctly to /mnt before installing. Should go smoothly
<DIzFer> gchristensen: isn't it beautiful? with my setups, installers tend to get in the way...
<gchristensen> yup
<reactormonk[m]> Ok, cleaned up old packages, now I've got 80G again.
<Mic92> never ever let run a btrfs full
<MichaelRaskin> I must admit that Fedora and Debian can be talked into allowing me to partition drives myself. It is also the only usable mode there… On NixOS, though, you can install a partitioning tool of choice to RAM while booting off the installer DVD
revtintin has quit [(Ping timeout: 258 seconds)]
<MichaelRaskin> Mic92: you don't like fun?
newhoggy has quit [(Ping timeout: 276 seconds)]
<Mic92> MichaelRaskin: one reason I use zfs instead, which allows me to reserve space
newhoggy has joined #nixos
<MichaelRaskin> Well, I run on LVM, and I use honest partitions
<c74d> hm, I should set some reservations on my ZFS filesystems
<Mic92> I am glad to not have the pain of partitioning
<Mic92> except for /boot
<MichaelRaskin> I prefer honest partitions for fault-propagation reasons
derjohn_mob has joined #nixos
<MichaelRaskin> And with LVM the main pain goes away
<MichaelRaskin> (But the underlying system is still simple enough to be reliable)
<DIzFer> Mic92: what do you mean "reserve space"?
<Mic92> ZFS is my LVM
<DIzFer> oh, so a kind of reverse quota?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Mic92> DIzFer: yes, was made exactly to fix the issue of having a zpool running full
<DIzFer> yeah, on btrfs you'd have to set quotas for each of the other subvolumes AFAIK
<Mic92> DIzFer: are quotas recommend now on btrfs?
* DIzFer wonders if bcachefs has that on its roadmap...
<DIzFer> i doubdt it. last time I checked, they didn't take copy-on-write into account...
newhoggy has quit [(Ping timeout: 240 seconds)]
<DIzFer> you modified a 1K file a thousand times, you filled a 1G quota
<Mic92> the known issue section makes me running away: https://btrfs.wiki.kernel.org/index.php/Quota_support#Known_issues
acarrico has joined #nixos
<DIzFer> oh dear
newhoggy has joined #nixos
<MichaelRaskin> > Bugs in accounting code might cause false out of space situations
<MichaelRaskin> Is there something in BtrFS that _cannot_ create false out of space situation?
<Mic92> cheesefs
sigmundv_ has joined #nixos
<MichaelRaskin> It did get better integrity-wise
FRidh has quit [(Quit: Konversation terminated!)]
<MichaelRaskin> But ENOSPC is still a fun game.
pascal has joined #nixos
<Mic92> except your whole fs becomes unmountable
<Mic92> which happend to me twice
<MichaelRaskin> I have had this like five time
<MichaelRaskin> But that was a few years ago now
<MichaelRaskin> (spread over a few years)
<DIzFer> should I consider myself lucky then? never had an unmountable btrfs
<DIzFer> since ~2012
<Mic92> DIzFer: did you use snapshots?
<DIzFer> (using)
<MichaelRaskin> Somewhat lucky
<Mic92> I still wonder if that was the reason
<DIzFer> yes, I even set snapper for a while, when I was using Arch
<joachifm> pretty smooth for me as well, but all I ever hear about btrfs is how bugged it is ...
<gchristensen> back in 2014 using btrfs was a very effective means of ensuring I replaced my servers a lot
newhoggy has quit [(Ping timeout: 260 seconds)]
<Mic92> DIzFer: on a laptop with power outages from time to time?
<DIzFer> my issues with btrfs amounted to terrible, horrible, vomitive performance lately
<DIzFer> desktop
<MichaelRaskin> Just /nix/store usage (not too light, though) on a laptop corrupted my BtrFS quite fine
<DIzFer> my last nixos install on that desktop was with root on XFS (replacing windows) because of the mentioned performance issues
<DIzFer> previous install wasn't heavily used, guess I dodged a bullet
<DIzFer> that's a 1TiB partition safe
<MichaelRaskin> I think I managed to run XFS on /tmp into a situation where it performed way below both ext4 and btrfs
<sphalerite> nixpkgs is amazing.
<DIzFer> on tmp?
<MichaelRaskin> It is the build location
<DIzFer> oh oh
<gchristensen> sphalerite: you're amazing (ノ◕ヮ◕)ノ*:・゚✧
<DIzFer> right
Itkovian has joined #nixos
<Mic92> I also heard horror storries about XFS
<sphalerite> gchristensen: aww thanks ♥ you too
<gchristensen> xfs has been a super good base for mysql
<MichaelRaskin> Mic92: that got fixed
<DIzFer> hmm, I'm now on xfs because I wanted to test, and ext4 had been trolling me on another different desktop. turned out to be hardware problem though
<MichaelRaskin> But on ENOSPC it did ran RAM-only until you freed some place
<MichaelRaskin> A good way to get a few files with just a hole
<hodapp> hmm, so --set-rpath is also obliterating an rpath that's needed to $ORIGIN/../Libraries in this binary blob
<DIzFer> that's scary... current disk use is 94%
<MichaelRaskin> I think I am talking about 2013 or something
newhoggy has joined #nixos
<DIzFer> xfs is problematic for me because it can't shrink, and if removable media is improperly removed, say because of a faulty USB cable, I can't remount until reboot
<steveeJ> sphalerite: I've tried to use your gist (https://gist.github.com/lheckemann/dab21b498697b9e18578f2e23ffe4040) and I'm getting an assertion error when I want to use the gccStaticStageFinal
<hodapp> I see patchelf has things like --add-needed but I'm not sure what's needed, except that this binary is pointing probably to /usr/lib/blahblah but also to $ORIGIN/../Libraries for various ones that are distributed with it
<DIzFer> I'd love to check out both zfs and bcachefs, but I can't find how I booted any install media on my current laptop (and only breathing pc)
<hodapp> oh, wait, I can give multiple paths
newhoggy has quit [(Ping timeout: 260 seconds)]
<sphalerite> steveeJ: nix-build kobo.nix -A gccCrossStageStatic works for me on "17.03.1052.aa0383397a"
<sphalerite> which version are you on?
<hodapp> "error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory" bah
newhoggy has joined #nixos
<sphalerite> hodapp: use readelf -d on the binary to see everything it's looking for and where it's looking
<hodapp> sphalerite: prior to patchelf?
<steveeJ> sphalerite: how do I check this again in the shell?
simony has left #nixos []
<steveeJ> sphalerite: interesting, nix-build works. I have tried with "nix-shell -p gccCrossStageStatic"
<sphalerite> nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion
<sphalerite> steveeJ: keep in mind that nix-shell -p will use <nixpkgs> and not the current directory
<sphalerite> maybe you wanted nix-shell -p 'with import ./.; gccCrossStageStatic'
tvon has quit [(Remote host closed the connection)]
<steveeJ> sphalerite: oh, even if default.nix is available?
<hodapp> sphalerite: it's just looking for libstdc++.so.6, among other things, but its starting rpath is only $ORIGIN/../Libraries
newhoggy has quit [(Ping timeout: 240 seconds)]
tvon has joined #nixos
<sphalerite> steveeJ: yep see the section on --packages in man nix-shell
<steveeJ> so -p implicitlly does something like "with import <nixpkgs>{}", I haven't looked at that part of the nix-shell code
<sphalerite> hodapp: right. So you could set its rpath to that plus the paths to the libraries
newhoggy has joined #nixos
tvon has quit [(Ping timeout: 240 seconds)]
<hodapp> sphalerite: just libstdcxx5 or something?
<hodapp> not sure how else to point it to libstdc++.so.6
<sphalerite> it seems to be in gcc's lib output
newhoggy has quit [(Ping timeout: 240 seconds)]
<clever> hodapp: you want to set the rpath, not the needed field
newhoggy has joined #nixos
<steveeJ> sphalerite: great, so far it works! do you have an idea how to install libraries and headers for this compiler to find?
<clever> steveeJ: nix builds will never look at what you "installed", so that wont help it
Mateon1 has quit [(Remote host closed the connection)]
<clever> you always want to use nix-shell for that kind of thing
<sphalerite> steveeJ: you'll want to use them from nixpkgs and write expressions for the software that you want to build with it
<steveeJ> clever: I already do, and for non-cross gcc it works like that
<sphalerite> steveeJ: e.g. if you want libpng you'd want nix-shell -p 'with import ./.; [ stdenv libpng ]'
<sphalerite> then it'll build libpng for the architecture and the compiler will be able to find libpng
newhoggy has quit [(Ping timeout: 245 seconds)]
<hodapp> clever: I am setting rpath now, but not sure how to get it to libstdc++.so.6
<steveeJ> sphalerite: do you know how "nativeBuildInputs" are handled? does native refer to the host?
<sphalerite> steveeJ: yes. packages like cmake that run as part of the build process should be nativeBuildInputs
<clever> hodapp: i believe its in gcc.cc
<clever> hodapp: there is also this, which both gives a patchelf example, and can also be used to generate a bash script that does patching for you
newhoggy has joined #nixos
Wizek_ has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<steveeJ> sphalerite: thanks a lot. I was at this point before but never tried to install other packages from the cross-configured-pkgs other than the compiler itself
<hodapp> clever: separate bash script is what I'm using now... I have --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" already but I guess I need gcc as a buildInput?
<clever> hodapp: buildInputs mean absolutely nothing to patchelf
<clever> hodapp: you need to call makeLibraryPath on a list of packages (gcc.cc has libstdc++) and then use the result in --set-rpath
JagaJaga has quit [(Ping timeout: 258 seconds)]
<sphalerite> steveeJ: no worries. Yeah that's what I find so amazing about nixpkgs: all the information on building the package is there and it can then just build it natively or cross-build it!
<hodapp> clever: oh, I was a bit confused because you mentioned gcc.cc, then sent your example, which mentioned gcc only in buildInputs
Itkovian has joined #nixos
<steveeJ> sphalerite: I have been through all of this before on gentoo with portage and crossdev but it was very unreliable at the time (or I was not patient enough). but I eventually switched to crosstool-ng
<clever> hodapp: i think that gcc in the inputs was to get $NIX_CC, because of recent changes to runCommand
<clever> hodapp: if your using stdenv.mkDerivation, gcc is already in the inputs
pascal has left #nixos ["ERC (IRC client for Emacs 25.1.1)"]
<sphalerite> steveeJ: but nixpkgs actually manages the target-platform packages in the same way as the native packages, which I think is a lot more elegant. I don't know how portage does it. But with crosstool-ng all you get is a cross-compiler, not any of the libraries that you need
sigmundv_ has quit [(Ping timeout: 260 seconds)]
<hodapp> clever: alright, thanks, that got me to libstdc++.so.6
<hodapp> now I just need to figure out why things like libgobject-2.0.so.0, libcups.so.2, and libglib-2.0.so.0 aren't there despite glib and cups being seemingly available in the rpath...
<clever> hodapp: you want cups.lib
newhoggy has quit [(Ping timeout: 245 seconds)]
<steveeJ> sphalerite: so this should work https://github.com/htwg-syslab/nix-expressions/commit/0f4630693e237ec7b98278dfb2950a94e0ab223e#diff-b6e5396c9616ae6fc2ddd4b531dd5fddR354 I assume. some of this seems to pull in perl. which I wonder if that's going to cross-compiler
<hodapp> using cups.lib instead of cups isn't changing anything
<clever> hodapp: can you gist your nix expression and the error?
<sphalerite> steveeJ: I'm not sure how the native stdenv would interact with that or if it will work at all. I don't see why it would pull in perl
<sphalerite> but it could work.
<steveeJ> sphalerite: it definitely pulls in perl. I'm building at the moment
<steveeJ> sphalerite: some background. I'm using this to prepare nix-shell environments with a functional cross compiler available
<steveeJ> sphalerite: I think the kernel actually pulls in perl
<hodapp> clever: yeah, getting it up on github soon here... the error is simply "./result/bin/DraftSight: error while loading shared libraries: libcups.so.2: cannot open shared object file: No such file or directory" and indeed if I look in 'ldd ./result/bin/DraftSight' it can't find libcups.so.2, yet 'readelf -d' shows /nix/store/lxq08n9psklfa9zlkg3c63g8j2b4wi20-cups-2.2.2-lib/lib in the runpath
<clever> hodapp: is DraftSight 32 or 64bit?
<sphalerite> hodapp: are both RPATH and RUNPATH set, by any chance?
<hodapp> 64-bit, afaik
<clever> hodapp: you almost never want to use builder.sh
<hodapp> sphalerite: would readelf show me this? if so, I only see RUNPATH
<sphalerite> hodapp: yes, it would
<hodapp> clever: it'd be awesome if https://nixos.org/nixpkgs/manual/#chap-quick-start wouldn't tell me that I should use adobe-reader as an example then
<clever> hodapp: what does this command output: "file ./result/bin/DraftSight"
<gchristensen> what is this license? https://github.com/NixOS/nixpkgs/blob/master/COPYING
<steveeJ> clever: any clue how I can get glibc without pulling perl?
<hodapp> it's a symlink; for what it's symlinked to, "/nix/store/ln8nkkl5znhv3vx7r8fs09n7dyc14szs-draftsight-tmp/draftsight/opt/dassault-systemes/DraftSight/Linux/DraftSight: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /nix/store/78w6a8zinhp7awdmrh5qbvxyci2pb8b4-glibc-2.25/lib/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24,
<hodapp> BuildID[sha1]=bb17cc05b3c04cf2f3ed064fc6876c8f2b38e20e, not stripped"
<clever> hodapp: then it is 64bit for sure
<clever> hodapp: would you be able to send me a copy of the .deb file?
seanparsons has joined #nixos
<steveeJ> I'm also wondering why perl is trying to be cross-compiled, since it must be used on the host
seanparsons has quit [(Client Quit)]
<sphalerite> gchristensen: MIT I believe
<clever> hodapp: yeah thats working, let me edit it a bit
<sphalerite> gchristensen: I copied the licence text and ran it through md5sum, then googled the hash which yielded https://github.com/eahanson/Expectacular/blob/master/MIT.LICENSE — highly reliable way of determining it obviously
<gchristensen> neat
goibhniu has quit [(Ping timeout: 246 seconds)]
<MichaelRaskin> MD5
<sphalerite> gchristensen: https://github.com/NixOS/nixpkgs/commit/6b0b4586945e3531a04561f4fcffd7e5f666513d "MIT-style" according to eelco
<clever> hodapp: first thing i did, not yet tested: https://gist.github.com/cleverca22/3ad111fa77b17854e1fcca25bfd13544
<sphalerite> MichaelRaskin: md5 tends to be the most google-able hash type
<clever> hodapp: brb
<sphalerite> I just realised, what I'm doing is essentially abusing google as a content-addressable store
<Ralith> haha
<hodapp> clever: I'll try it myself
<sphalerite> but yeah, identifying a file through its md5 hash and google is one of my favourite crazy hacks
<clever> hodapp: dang, heading out now, leave a msg in a PM if you get it working, and if not, i can look at it when i get back
<hodapp> clever: this is certainly cleaner, but exhibits the same issue with libcups et al
marsel has joined #nixos
<clever> hodapp: and check the rpath again after nix-build finishes, it may change in unexpected ways
<clever> bbl
<hodapp> "Library runpath: [/nix/store/av675477wjr9hipa4mi0h44hpkihmdk2-gcc-5.4.0-lib/lib:/nix/store/873nbh5cbpbafcbgxw569pfqr6n4kxa4-libX11-1.6.5/lib:$ORIGIN/../Libraries]"
<hodapp> errrr.
<hodapp> that runpath is now missing a lot
<clever> hodapp: you may also want to see what happens if you set dontPatchELF=true; in the derivation
<clever> bbl
tvon has joined #nixos
<steveeJ> sphalerite: any I idea how to switch to musl for the cross environment? I assume that wouldn't need the kernel and perl
<hodapp> raaaawr. 'readelf -d' now shows /nix/store/ldqd2kbr3ss78j28mxdlc0lfna24jw9j-cups-2.2.2-lib/lib in RUNPATH *after* everything (I used dontPatchELF = true)... yet still, it can't find libcups.so.2
<romildo> Mic92, regarding EFL applications (packaged separated from efl) not finding curl.so when run, besides curl being in efl propagatedBuildInputs: wrapping libcurl in LD_LIBRARY_PATH in the binary fixes it.
reinzelmann has joined #nixos
<Mic92> romildo: propagatedBuildInputs does not work for shared libraries anyway.
<romildo> Mic92, but there are applications in several packages using efl. Will all of them have to be wrapped individually?
<hodapp> so... how's it possible that libcups.so.2 is sitting directly in a directory that is in the RUNPATH, yet ldd isn't able to see it?
<romildo> Mic92, is there a mechanism for that?
<Mic92> romildo: extending "rpath" with patchelf might also helps
<Mic92> (but in postFixup)
<Mic92> not in install
seanparsons has joined #nixos
seanparsons has quit [(Client Quit)]
<Mic92> romildo: If this is a systematic problem there could be a build-support hook in efl
<romildo> Mic92, but that would still have to be done for every program depending on efl, right?
<Mic92> setup-hooks
<Mic92> romildo: yes
<Mic92> I am not aware of a different way to set this.
<sphalerite> steveeJ: nixpkgs doesn't support musl currently
<sphalerite> steveeJ: see libcCrossChooser in all-packages.nix. uclibc is also woefully out-of-date and doesn't really work unfortunately
Guest41187 has quit [(Quit: Lost terminal)]
<steveeJ> sphalerite: glibc obviously is not well supported either ;-)
<sphalerite> idk, it works for me
<sphalerite> I managed to build rsync with glibc for my ereader using the expression as gisted
<steveeJ> sphalerite: even busybox pulls in perl
<steveeJ> sphalerite: did you use static or dynamic linking?
<sphalerite> steveeJ: dynamic, I think. I just did nix-build -A rsync kobo.nix
jbo has joined #nixos
seanparsons has joined #nixos
<steveeJ> sphalerite: and then you copied the libraries with it?
seanparsons has quit [(Client Quit)]
<jbo> Hi there -- just upgraded to unstable & am getting 'iwconfig command not found' - has it been replaced or am I missing a key package?
<sphalerite> steveeJ: yeah. tar cf rsync-closure.tar $(nix-store -qR result), then untarred that in / on the ereader
<MichaelRaskin> Well, you are supposed to use iw nowadays
<jbo> MichaelRaskin: also 'command not found' :-/
romildo has quit [(Quit: Leaving)]
<steveeJ> sphalerite: I see. well it is not the worst option, although I would've preferred a compiler that has a static glibc available
<steveeJ> sphalerite: thanks for withstanding my questions ;-)
<MichaelRaskin> package iw
<jbo> MichaelRaskin: hmm - looks like I need 'iproute2' -- is there a way to provide downloads to a machine that has no networking ?
<sphalerite> steveeJ: it's possible too of course, but I don't know how :D
<sphalerite> steveeJ: and particularly how much effort is required
<MichaelRaskin> Do you have Nix on networked machine?
<MichaelRaskin> Well, for iproute and iw you can just download the sources and do nix-prefetch-url file:///$PWD/file.tar.gz
<MichaelRaskin> (the build is reasonably sized)
reinzelmann has quit [(Quit: Leaving)]
ertesx has joined #nixos
ertes has quit [(Ping timeout: 260 seconds)]
ertesx is now known as ertes
romildo has joined #nixos
sellout- has quit [(Quit: Leaving.)]
exarkun has joined #nixos
alphor_ is now known as alphor
<jbo> MichaelRaskin: is there a way to get a list of all the urls that need to be downloaded? working through the deps one at a time atm
seanparsons has joined #nixos
newhoggy has joined #nixos
joelpet has joined #nixos
joelpet has quit [(Changing host)]
joelpet has joined #nixos
<seanparsons> I've overridden weechat to include an extra python package with extraBuildInputs, which works...Unless I run it from tmux. If I do that I get an ImportError on that module.
<ericnoan> Anyone using a Firefox fork they can recommend?
newhoggy has quit [(Remote host closed the connection)]
seanpars1 has joined #nixos
<pikajude> seanparsons: are you using a new tmux session
<pikajude> either way, run `env` where it works and where it doesn't and compare
nevermind has joined #nixos
<seanparsons> Oddly I just fixed it by using a naked `weechat` invocation rather than one that is a fully resolved /nix/store reference.
<seanparsons> Quite literally tried it by chance.
<pikajude> when you overrode weechat, did you make sure to use the new store path
<pikajude> is the weechat you're running the same one that you think you're running
newhoggy has joined #nixos
thineye has joined #nixos
<sphalerite> ericnoan: why?
<sphalerite> as in why use a fork
<ericnoan> sphalerite: just curious
<jbo> Anyone else know a way to ask nixos-rebuild to print out all the urls it needs so that I can download them & supply them to nix-prefetch-url (on a machine where I broke networking)
<ericnoan> I know there is one called palemoon
sellout- has joined #nixos
<seanparsons> pikajude: I somewhat assumed it would be the one at ${weechat}/bin/weechat, I'm guessing that I'm wrong in that assumption?
<pikajude> seanparsons: it would be
<pikajude> but if you overrode weechat
<pikajude> you have at least two weechats in your store
Fare has quit [(Ping timeout: 240 seconds)]
<pikajude> was just wondering whether you had accidentally run the old one
<MichaelRaskin> Well, with -k you the build will at least keep going and printing complaints
<ericnoan> jbo: I have thought of that as well... I haven't heard of something like that, but would be interested
<jbo> ericnoan: emerge in gentoo has it -- handy at times
newhoggy has quit [(Ping timeout: 260 seconds)]
<ericnoan> jbo: It would be cool to have a storage of all the sources going into a nix-rebuild ... you could instantly build a complete nixos even if your internet is down
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<ericnoan> jbo: I first though of simply adding a HTTP proxy between Nix and the internet, that way the proxy can supply the files transparently
itscaleb has joined #nixos
<MichaelRaskin> You can achieve it once you have built the system with connection once
<ericnoan> MichaelRaskin: my point is doing it completely offline
<ericnoan> you would need another mechinism
<MichaelRaskin> Well, you can do it but that's annoying
<ericnoan> MichaelRaskin: do you mean if you enable every single package?
<MichaelRaskin> I mean, you can do it without an online Nix-carrying machine
<MichaelRaskin> 3DFor a given system
<ericnoan> what do you mean, sorry I don't follow
Fare has joined #nixos
<dash> ericnoan: the nix store _does_ contain the sources to build it.
<MichaelRaskin> Well, when nixos-rebuild fails, it tells you the system derivation
kykim` has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
<ericnoan> dash: it does? hmm
<ericnoan> the upstream source?
<MichaelRaskin> After a succesful build
<MichaelRaskin> Not before
<MichaelRaskin> So, you do nix-store -qR /nix/store/hash-system.drv
bennofs has quit [(Ping timeout: 240 seconds)]
<ericnoan> alright I have to install Hydra now
<MichaelRaskin> This gets you a list of all derivations needed
<MichaelRaskin> Then you list the drv files containing outputHashAlgo
<MichaelRaskin> Give or take a couple these are the files that are fixed-output, which usually means network access
<MichaelRaskin> (to have network access the build needs to commit to the hash of the output in advance)
<ericnoan> ok, I think I have a lot more reading to do
<MichaelRaskin> Then you cat all the drv-s, they are just text, and replace " with linefeed and grep for ://
k0001 has quit [(Ping timeout: 268 seconds)]
<MichaelRaskin> You get a list of URLs closely approximating what you need to download
<ericnoan> when you say "drv" what do you mean?
<MichaelRaskin> The failed system build says «build of ….drv failed»
<ericnoan> derivation?
seagreen has joined #nixos
<MichaelRaskin> This is the derivation file
<MichaelRaskin> It can be manipilated with nix-store, and it can be inspected as text
<ericnoan> yes I see... so basically parsing every single .nix for their sources, and downloading them?
<MichaelRaskin> Not every single one
<MichaelRaskin> Parsing the result of preparing to build your specific system
<MichaelRaskin> Finding all the source references
<MichaelRaskin> Of course at some point it becomes even more annoying, because there are VCS checkouts
<ericnoan> Yes, I figured it wouldn't be so easy
<MichaelRaskin> If you can have a weak machine with Nix (not necessary NixOS) and network connection, you can use much saner ways
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
roconnor has quit [(Ping timeout: 260 seconds)]
<ericnoan> It has already been implemented? Can you point to an url?
<ericnoan> or do you simply mean to use the weak machine to build nixos=
<ericnoan> ?
<MichaelRaskin> Well, once you have Nix, you can do a lot of weird tricks
<MichaelRaskin> Basically, if you have two boxes with Nix (same-CPU-arch) and a USB drive, sharing is easy
<MichaelRaskin> Then you try to build NixOS on the weaker one (you can build NixOS without installing it) and make sure everything non-fixed-output fails (for example)
seanpars1 has quit [(Quit: WeeChat 1.7.1)]
seanparsons has quit [()]
<MichaelRaskin> nix/scripts/nix-reduce-build.in was at some point basically my collection of such stupid tricks
Itkovian has joined #nixos
<ericnoan> wait, is what you are you talking about related to nix-serve or nix-copy-closure?
<MichaelRaskin> Well, there is nix-store --export
<MichaelRaskin> Because the other two things require direct connection
<MichaelRaskin> And --export achives can be just transferred
hiratara has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin> nix-serve and nix-copy-closure are nice, but they do not like air gaps
seanparsons has joined #nixos
MP2E has joined #nixos
hiratara has joined #nixos
<LnL> I'm pretty sure there's an impurity in buildPythonPackage :(
<MichaelRaskin> Do you use sandbox?
<LnL> yes, that's why I'm noticing missing dependencies
<LnL> (I assume)
marsel has quit [(Ping timeout: 276 seconds)]
<MichaelRaskin> And not just because of bitrot and me doing 40 merges over two days?
k0001 has joined #nixos
<simpson> What kinds of tricks are available for NixOS machines to keep them responsive over SSH even under high load?
<MichaelRaskin> cgroups?
seanparsons has quit [(Quit: WeeChat 1.7.1)]
<simpson> That's a good call. I have a service (Prometheus) and I wanna limit it; would it be easy to just tap into the systemd config and do it?
<MichaelRaskin> Dunno, I do not use mainline NixOS specifically to avoid systemd, so I don't know any complicated stuff about systemd configuration
<simpson> 'k.
seanparsons has joined #nixos
seanparsons has quit [(Client Quit)]
seanparsons has joined #nixos
<ericnoan> MichaelRaskin: I will have to do some research, I will get back to you :)
dridus has quit [(Quit: znc? wassat?)]
<MichaelRaskin> I am 7c6f434c at GitHub
<MichaelRaskin> (and the email I use for commits is also like that)
romildo has quit [(Quit: Leaving)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Jackneilll has quit [(Remote host closed the connection)]
tvon has quit [()]
estewei has quit [(Quit: Quit)]
ryanartecona has quit [(Quit: ryanartecona)]
hiratara has quit [(Quit: ZNC - http://znc.in)]
roconnor has joined #nixos
hiratara has joined #nixos
k0001 has quit [(Ping timeout: 260 seconds)]
jmiven has quit [(Quit: WeeChat 1.7.1)]
jmiven has joined #nixos
newhoggy has joined #nixos
thc202 has quit [(Ping timeout: 246 seconds)]
<gchristensen> MichaelRaskin: which brings up my long-term question, why?
<MichaelRaskin> What — why?
newhoggy has quit [(Ping timeout: 260 seconds)]
<gchristensen> where does your nick come from?
takle has quit [(Remote host closed the connection)]
<MichaelRaskin> It just so randomly happened…
<MichaelRaskin> Actually, it does come from /dev/urandom
<MichaelRaskin> As in, literally
<MichaelRaskin> (back in the day I was too lazy for base 36 so it is just base 16)
<gchristensen> lol
<gchristensen> nice
acertain has quit [(Remote host closed the connection)]
<MichaelRaskin> I want different mailboxes for different projects
<MichaelRaskin> And at some scale it is just plain not ecological to grab names someone else could have a reason to desire
ryantrinkle has quit [(Ping timeout: 240 seconds)]
<gchristensen> fair enough, interesting
elninja44 has joined #nixos
digitus has quit [(Quit: digitus)]
<gchristensen> trying to delete an s3 bucket, I have to delete millions of things insside of it _first_ so I'm at Total Objects: 1000 Deleted: 560,000 (100%)
nevermind has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
newhoggy has joined #nixos
hamishmack has quit [(Quit: hamishmack)]
nicknovi1 has quit [(Ping timeout: 258 seconds)]
orivej has quit [(Ping timeout: 255 seconds)]
takle has joined #nixos
mudri has joined #nixos
takle has quit [(Ping timeout: 258 seconds)]
hamishmack has joined #nixos
Raimondi has joined #nixos
orivej has joined #nixos
<gchristensen> "(-49.7%)"
hamishmack has quit [(Quit: hamishmack)]
<sziszi> gchristensen: I realised just yesterday I still have all of my config generacions since I installed nixos
<gchristensen> hehe, wow
<sziszi> garbage collector took some time
<sziszi> it was 3 months I guess
hamishmack has joined #nixos
nh2 has quit [(Ping timeout: 240 seconds)]
hamishmack has quit [(Ping timeout: 240 seconds)]
LnL has quit [(Ping timeout: 260 seconds)]
orivej has quit [(Ping timeout: 276 seconds)]
erasmas has quit [(Quit: leaving)]
ambro718 has quit [(Ping timeout: 260 seconds)]
nevermind has joined #nixos
markus1189 has joined #nixos
markus1199 has joined #nixos
nh2 has joined #nixos
markus1209 has quit [(Ping timeout: 255 seconds)]
markus1219 has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
oida_ has joined #nixos
takle has quit [(Ping timeout: 276 seconds)]
kampfschlaefer has quit [(Ping timeout: 258 seconds)]
oida has quit [(Ping timeout: 240 seconds)]