<Baughn>
Threadripper isn't fully supported by KVM/qemu yet, which manifests as incredibly poor IO performance.
coot has quit [Ping timeout: 260 seconds]
BlessJah has quit [Ping timeout: 240 seconds]
<Baughn>
No, that's not right. I mean, it's right, but... oh dear lord.
<Baughn>
The CPU cache is disabled for virtualization.
<Baughn>
Kernel bug. Um. Let me see..
<dhess>
:O
mkoenig has quit [Read error: Connection reset by peer]
badi has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] shlevy opened pull request #1844: Add user-defined extra builtins. (master...extra-builtins) https://git.io/vNjVh
NixOS_GitHub has left #nixos [#nixos]
<Baughn>
Fixed for 4.15. Yay.
<Baughn>
Which... I can't install because ZFS.
<Baughn>
Oh well.
<Baughn>
Workaround: Turn off NPT. Fine, I don't actually need that.
Tobba has joined #nixos
BlessJah has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
Tobba_ has quit [Ping timeout: 260 seconds]
mkoenig has joined #nixos
TonyTheLion has quit [Ping timeout: 260 seconds]
erasmas has quit [Quit: leaving]
__monty__ has joined #nixos
<__monty__>
How do I install a package with a specific python version? Tried nix-shell -p ranger --option pythonPackages python36Packages
<johnw_>
nix-shell -p python36Packages.ranger?
<__monty__>
Oh, duh.
<__monty__>
Thanks, johnw_.
<__monty__>
johnw_: Any movement on myEnvFun?
<johnw_>
myEnvFun continues to fulfill a certain niche that nix-shell does not satisfy
<johnw_>
i've been talking with it in #nix-darwin with LnL, and he's been working on a myEnvFun replacement that's simpler
Itkovian_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<__monty__>
Ok, thanks for the update.
<__monty__>
Btw, would be nice if you could update all packages and all envs with one command.
<johnw_>
well, I can do that now :)
<johnw_>
thanks to myEnvFun
<johnw_>
nix-env -u --leq
<__monty__>
Oh, that's what I'm missing I guess. You need --leq because nix considers the env versions equal?
<johnw_>
yes
<johnw_>
they'll never update with just -u
<genesis>
666 PR on nixos
<genesis>
damn.
<__monty__>
Thank you, just what I needed.
mkoenig has quit [Read error: Connection reset by peer]
ebzzry has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
<nahamu>
another overlay question. It seems like overlays are only relevant for packages, and that all nixos services live under the nixos directory rather than under pkgs. Does that mean overlays can't define services for nixos (or at least not easily)?
stephenjudkins has joined #nixos
<gchristensen>
nahamu: overlays cannot define services, but it is easy to add more services
<nahamu>
gchristensen: easy outside of the nixpkgs tree?
stephenjudkins has quit [Remote host closed the connection]
<gchristensen>
yeah
stephenjudkins has joined #nixos
mkoenig has joined #nixos
<gchristensen>
in your configuration.nix, imports = [ ./your-new-service.nix ]; andn it is as if that file were in nixpkgs/nixos :)
<nahamu>
well, this is for building pxe bootable media, not a running system.
<nahamu>
*not the current running system.
<gchristensen>
sure
<__monty__>
Hmm, seems like ranger isn't part of python36Packages. The derivation has a pythonPackages argument how do I set that to a specific python version?
<nahamu>
so '${pkgs.path}/nixos/<whatever>' to reference stuff in the nixpkgs tree, and e.g. './modules/netboot.nix' to reference stuff in my local tree?
randomstrangerb has quit [Ping timeout: 248 seconds]
mkoenig has quit [Read error: Connection reset by peer]
<gchristensen>
ohhh yeah aszlig!
ambro718 has quit [Quit: Konversation terminated!]
ryanartecona has joined #nixos
hakujin has quit [Ping timeout: 260 seconds]
johnw_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dhess>
Does anyone here have one of the Travis-CI subscriptions?
<gchristensen>
I did for a while
alexteves has quit [Read error: Connection reset by peer]
<gchristensen>
to get out of the free tier line and build things without the massive delays
<dhess>
gchristensen: Interesting. I was asking because there's no obvious indication in the paid plan details that it will speed anything up
<dhess>
other than multiple concurrent jobs
<gchristensen>
I can't conclusively say it doesn't speed things up, but I can conclusively say it was still super slow to build
<dhess>
gchristensen: what delays are you talking about that being on a plan made better?
<dhess>
hehehe yeah ok
<dhess>
I'd like to make each build job faster, basically. I was hoping they had a plan that would put you on less loaded hosts or something
johnw_ has joined #nixos
<dhess>
gchristensen: any experiences with Jenkins?
<gchristensen>
a veritable hellscape to administer but ultimately flexible
mkoenig has joined #nixos
<gchristensen>
what type of software are you building?
<gchristensen>
and on what platforms
<simpson>
That is the best description of Jenkins ever.
<dhess>
It's all open source Haskell projects. My Hydra is awesome, but it can't test builds in a non-Nix environment, so I need to supplement with something "standard" like Travis-CI or Jenkins
<nahamu>
Could your Hyrda kick off a docker container?
<nahamu>
*Hydra
<gchristensen>
dhess: hydra.nixos.org uses some tooling to launch Debian VMs ... :D
<nahamu>
A full vm could work too. :)
<dhess>
nahamu: hmm maybe I could figure out a way to add jobs to my release.nix that did something like that.
<__monty__>
Is there no way to install a package that depends on python with a specific python version?
<dhess>
it's an interesting thought but I haven't seen any examples of it out in the wild
<gchristensen>
dhess: one sec...
<dhess>
gchristensen: got a pointer to any release.nix-ish files that do the Debian thing?
<dhess>
I like the Docker idea, it doesn't have to be any particular flavor of Linux
<dhess>
just as long as I can use cabal-install and stack without relying on any Nix tooling
<nahamu>
And if it's generally just userspace binary stuff, Docker will be a little lighter than a full VM.
<nahamu>
But the code gchristensen is digging up will likely point you in the right direction.
<dhess>
sure, this is all Haskell stuff so it's fully userspace
<samueldr>
nix is a lice product, they probably scrape brand names
<samueldr>
(and / or it's short)
mkoenig has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
<kini>
what environment variable contains the path of the build dir during nixpkgs package building?
<kini>
my packages produces an output file that hard-codes the path to a build artifact, and I want to use substituteInPlace to fix it to point to the final location of the artifact in the $out dir
<kini>
s/my packages/my package/
<samueldr>
if there are none, could you YOUR_VAR="$PWD" ?
<kini>
oh, I guess that should work.
<kini>
assuming all phases start from the build dir
<Baughn>
clever: I'm not sure why, but the qemu build you gave me runs the installer far faster than the installer tests.
<Baughn>
Which is interesting..
brodavi has joined #nixos
pkill9 has quit [Ping timeout: 260 seconds]
<Baughn>
That being said, it also runs much faster on a xeon I had lying around.
<Baughn>
Which is annoying.
Arcaelyx has joined #nixos
stepcut has joined #nixos
<brodavi>
hi folks! :) I set up a nixos-container for development, everything seem to be mostly working, but when I do `nixos-container show-ip mycontainer` I get `/run/current-system/sw/bin/nixos-container: cannot get IP address`. The container has httpd running, which is accessible from host on localhost, so I'm not sure what's up.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vNjPf
mkoenig has quit [Read error: Connection reset by peer]
stepcut has quit [Remote host closed the connection]
mkoenig has joined #nixos
<clever>
nahamu: yeah, those look fine, i also modified it like that so you could easily .overrideDerivation more flags in
mkoenig has quit [Read error: Connection reset by peer]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to staging: https://git.io/vNjXK
<NixOS_GitHub>
nixpkgs/staging 9548028 Tuomas Tynkkynen: Merge remote-tracking branch 'upstream/master' into staging...
NixOS_GitHub has left #nixos [#nixos]
pkill9 has joined #nixos
mkoenig has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stepcut has joined #nixos
<pie__>
Mic92, i dont mean to nag just don't know if you noticed my reply, do you have any pointers on how to get a newer version of alacritty to build successfully? (thanks)
mkoenig has quit [Read error: Connection reset by peer]
<genesis>
using fetchFromGitHub, archive doesn't provide .git of course, so i can't get submodules, i look if there is a tricks or i can add option to fetchFromGitHub
<genesis>
fetchSubmodules = true;
<genesis>
hum i'm being tired.
mbrgm has joined #nixos
<genesis>
i doubt it works for fetchFromGitHub.
<clever>
genesis: it does
stepcut has quit [Remote host closed the connection]
<clever>
genesis: if you supply that flag, it switched to fetchgit behind the scenes
<genesis>
yes
<genesis>
grat :)
<genesis>
it won't refetch anyway
stepcut has joined #nixos
<dtz>
pie__: <3 <3
mkoenig has joined #nixos
<clever>
genesis: you need to increment a digit on the hash
stepcut has quit [Remote host closed the connection]
<genesis>
thanks
<genesis>
works well.
thc202 has quit [Ping timeout: 240 seconds]
stepcut has joined #nixos
coot has joined #nixos
xcmw has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
fragamus has joined #nixos
coot has quit [Ping timeout: 240 seconds]
stepcut has quit [Remote host closed the connection]
zearen has quit [Ping timeout: 256 seconds]
<samueldr>
anyone with a hidpi device wants to test something? (I'm burning on USB to test on a non-hidpi device)
<samueldr>
gchristensen: you may want to check if you have a couple minutes
<samueldr>
I'm not entirely sure how it'll work on real-world devices, but on qemu-ovmf it (apparently) switched resolution as expected
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
Supersonic112 has quit [Disconnected by services]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] clacke opened pull request #34646: hledger: build correctly on darwin (master...hledger-darwin) https://git.io/vNjM9
NixOS_GitHub has left #nixos [#nixos]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
stephenjudkins has quit [Ping timeout: 264 seconds]
Synthetica has quit [Quit: Connection closed for inactivity]
Drakonis has quit [Read error: Connection reset by peer]
ivanivan has joined #nixos
<ivanivan>
Is it possible to reload a kernel module without rebooting NixOS?
<ivanivan>
I'm working on a custom module and have been rebooting after each `nixos-rebuild switch`, as the rebuild alone doesn't seem to reload the module.
<ivanivan>
I've been reading about modprobe, but not sure how to use it.
<ivanivan>
My module is located in /run/current-system/kernel-modules/lib/modules/4.9.76/misc/i8042_debounce/i8042_debounce.ko
pkill9 has quit [Ping timeout: 268 seconds]
<samueldr>
tried insmod?
<clever>
ivanivan: you need to do rmmod, then modprobe
<clever>
nixos doesnt know to reload modules
<ivanivan>
samueldr: I haven't
<ivanivan>
clever: thanks, let me try that
<samueldr>
oh, I misread the path and though it wasn't in the kernel-modules path
<samueldr>
thought*
<ivanivan>
clever: it worked! thanks for the help
ivanivan has quit [Quit: WeeChat 1.9.1]
klntsky has quit [Ping timeout: 255 seconds]
bind has quit [Ping timeout: 256 seconds]
zearen has joined #nixos
babyflakes has quit [Quit: Connection closed for inactivity]
ebzzry has quit [Ping timeout: 260 seconds]
<fearlessKim[m]>
samueldr: cool stuff
zearen has quit [Ping timeout: 256 seconds]
bind has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrkgnao has joined #nixos
brodavi has quit [Ping timeout: 260 seconds]
srdqty has joined #nixos
<pie__>
hod do i delete a nix-build's @result?
<clever>
pie__: rm result
srdqty has quit [Client Quit]
<pie__>
doesnt that leave it in the store though or something?
<clever>
it will be deleted later when you do a garbage collection
<pie__>
oh ok
<pie__>
i thouht it wouldnt know that it can be gc-d
<clever>
nix knows where the result symlink is/was
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jraygauthier opened pull request #34647: pythonnet: Init at 2.3.0 (master...jrg/pythonnet-rebased) https://git.io/vNjSV
NixOS_GitHub has left #nixos [#nixos]
<clever>
and the missing result link allows it to be GC'd
<pie__>
uh. should i need to sudo it?
<clever>
depends on who owns the directory where result is
<pie__>
* says read only file system
<clever>
"rm result", not "rm result/"
<pie__>
rm doesnt work becuase "is a directory"
<pie__>
oh
<pie__>
ok
<pie__>
that worked :|
<clever>
"rm result" deletes the symlink
<clever>
"rm result/" tries to delete the directory the link points to
<pie__>
yeah thats what i figured after the fact
<pie__>
thanks
pkill9 has joined #nixos
hakujin has joined #nixos
mkoenig has quit [Remote host closed the connection]
hakujin has quit [Ping timeout: 240 seconds]
mkoenig has joined #nixos
pkill9 has quit [Ping timeout: 248 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schoppenhauer has quit [Ping timeout: 265 seconds]
schoppenhauer has joined #nixos
colescott has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
<mkaito>
I'm interested in the language as far as it will help me with nixos and nixops :)
griff_ has joined #nixos
babyflakes has joined #nixos
fragamus has joined #nixos
jfred has joined #nixos
rauno has quit [Ping timeout: 240 seconds]
<mkaito>
is there a syntax to add to an option declaration? for example, say I want to add a certain group to a user, but there's already a list in users.johndoe.groups
<mkaito>
can I do something like `users.johndoe.groups += [ "foo" "bar" ];`?
<contrapumpkin>
mkaito: they get appended automatically
<contrapumpkin>
(the options aren't ordered, so there's not really a notion of +=, because that implies doing things in order)
eceuv has joined #nixos
srdqty has joined #nixos
srdqty has quit [Client Quit]
<mkaito>
oh they do? that's convenient. but what if I want to reset an option, then? say I want to clear a user's groups and set it to just one known value?
<clever>
it depends on the type
<eceuv>
When I start a pure shell with git on darwin, I get an error about being unable to access the certificate verify location. I see many issues in the tracker about this and there's a recent one that claim to solve it, but it doesn't seem to actually work even after switching my nixpkgs to use latest definitions
<eceuv>
Any thoughts as to what could be going on?
<bsima>
but basically shows how jweigley puts a list of overlays like you said
<clever>
bsima: you can also put an overlay.nix in a certain directory
<clever>
and then the directory has the "list" of files
catch22 has joined #nixos
leat has quit [Ping timeout: 256 seconds]
rauno has joined #nixos
fragamus has joined #nixos
MercurialAlchemi has joined #nixos
colescott has joined #nixos
stephenjudkins has joined #nixos
vaninwagen has joined #nixos
zarkone has joined #nixos
<johnw>
I have a snippet of Nix code in my darwin.nix that reads in a directory full of files defining functions
<zarkone>
Hi! already asked this question, but still strugle to find the answer.. How could I get current machine private network IP in case of aws deploy? Want to setup NGINX to listen only private network
vegai has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] mnacamura opened pull request #34651: R: add libcxx to default LDFLAGS and CPPFLAGS on Darwin (master...r-darwin-libcxx) https://git.io/vNjNe
NixOS_GitHub has left #nixos [#nixos]
stephenjudkins has quit [Remote host closed the connection]
vaninwagen has quit [Ping timeout: 240 seconds]
atrx has joined #nixos
stephenjudkins has joined #nixos
Arcaelyx has quit [Ping timeout: 260 seconds]
Arcaelyx_ has joined #nixos
<jluttine>
how can i delete old nixos configurations? at boot time i have the 100 most recent configurations to choose from. i tried `nix-collect-garbage --delete-older-than 30d` but it didn't remove any of them although there are configurations much more than 30d old
<pie_>
if i have a nix expression thats a function returning a derivation, how do i call it from nix-shell again?
<pie_>
the function arguments are the contents of pkgs, i think thats how that works
<pie_>
i tried variations on callPackage with -p and -E but couldnt quite get it
leat has joined #nixos
zarkone has left #nixos ["ERC (IRC client for Emacs 26.0.91)"]
<NixOS_GitHub>
[nixpkgs] peti pushed 2 new commits to master: https://git.io/vAevE
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master a9268dd Peter Simons: Merge pull request #34404 from deepfire/x-ghc-8.4-overrides...
asdfjkljkl has joined #nixos
<pie_>
i tried this: install (TARGETS Bonzomatic RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) but that doesnt seem to have been enough
<pie_>
ive never written cmake
fragamus has joined #nixos
<pie_>
it only needs that one binary
alex`` has quit [Ping timeout: 256 seconds]
MP2E has quit [Remote host closed the connection]
alex`` has joined #nixos
fragamus has quit [Ping timeout: 252 seconds]
Ubercow has quit [Quit: Ubercow]
<asdfjkljkl>
Hello! My nixos-install fails while doing `install-grup.pl` with `error: will not proceed with blocklists`. Does somebody know, what I did wrong?
<asdfjkljkl>
Ah I think the beginning area is too small, so I should create my first partition in a later sector
jensens has joined #nixos
<sphalerite>
pie_: probably easiest to just run plain make and then have an installPhase like mkdir -p $out/bin; cp Bonzomatic $out/bin
<clever>
asdfjkljkl: gpt or mbr, and are you using efi?
<clever>
asdfjkljkl: then you must create a bios boot partition, 1mb, no filesystem, dont mount it
<clever>
asdfjkljkl: and grub will use that
<manveru>
y0no[m]: where does `/usr/lib/oracle/12.2/client64/lib` come from?
<manveru>
y0no[m]: is that on nixos?
<srhb>
gchristensen: You have an uncanny intuition for this sort of thing usually: Why didn't this build bump nixos-unstable? https://hydra.nixos.org/build/68742064
<asdfjkljkl>
clever: thanks!
vidbina has joined #nixos
<pie_>
how do i tell cmake the right rpaths for installed libs?
<pie_>
i mean it has some libs and the binary, and i need to install them both, and then have the rpaths set
cmacrae has joined #nixos
atrx has quit [Quit: Leaving]
<y0no[m]>
manveru: It is created when installing oracle-instantclient. But when you want to install cx_Oracle, this path is required for the package tests.
<manveru>
y0no[m]: so it's like "${oracle-instantclient}/usr/lib/oracle/12.2/client64/lib" ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] markus1189 opened pull request #34655: zookeeper.service: option for package and add to environment (master...zookeeper-package-option) https://git.io/vAeUE
NixOS_GitHub has left #nixos [#nixos]
cmacrae has quit [Read error: Connection reset by peer]
cmacrae has joined #nixos
<y0no[m]>
manveru: thank you, it seems to fix the problem!
cmacrae has quit [Read error: Connection reset by peer]
cmacrae has joined #nixos
<Leo`>
Hey there. I want to setup a Radicale server which seems pretty easy since there is already a module providing service.radicale. But I need this auth module: https://github.com/marcoh00/radicale-auth-ldap which is supposed to be isntalled with pip... As far as I understand it (I'm mot a Python expert) it just needs to be present in the PYTHONPATH of the server. But how can I achieve this without re-implenting
<Leo`>
all the service config myself? Something along the liens of just overriding the PYTHONPATH of the service defined by service.radicale.
cmacrae has quit [Remote host closed the connection]
cmacrae has joined #nixos
tmaekawa has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
asuryawanshi has quit [Remote host closed the connection]
cmacrae has quit [Remote host closed the connection]
lonokhov has joined #nixos
cmacrae has joined #nixos
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
cmacrae has quit [Read error: Connection reset by peer]
cmacrae has joined #nixos
<fiatjaf>
I'm building a simple haskell program with nix-build, but it takes too long (about 30 seconds)
<fiatjaf>
is that because it is building from scratch each and every time?
Eisfreak7 has quit [Quit: WeeChat 2.0.1]
arjen-jonathan has joined #nixos
Myrl-saki has joined #nixos
bennofs has joined #nixos
<lewo>
fiatjaf: Each time you run nix-build, a clean build environment is set up. So, your program are recompiled from scratch but your program dependencies are not.
<infinisil>
lewo: unless he uses buildStackProject, in which case every dependency will get built from scratch on every nix-build
ThatOtherGuy has joined #nixos
klntsky has joined #nixos
pie_ has quit [Read error: Connection reset by peer]
pie_ has joined #nixos
<sphalerite>
fiatjaf: Yeah, those builds aren't incremental. If you're developing, you'll probably want to use a more traditional workflow within a nix-shell.
<pie_>
are relative rpaths ok in nix packages?
<sphalerite>
pie_: as long as they resolve correctly I guess.
Matrixiumn has quit [Read error: Connection reset by peer]
<pie_>
when a bin and its libs get installed in a derivation does it use relative paths or absolute ones?
<pie_>
i mean really the problem is idk how to get the abs path
<sphalerite>
iirc stdenv includes a bit in the fixupPhase that does the appropriate magic which results in them being absolute anyway
<sphalerite>
try checking readelf -d result/bin/*
cmacrae has quit [Read error: Connection reset by peer]
<freeman42x[NixOS>
mkDerivation I assume is a function
<pie_>
sphalerite, ok i did the things but my derivation is empty...
<pie_>
things get installed to bin and lib in the build dir
<pie_>
is there some kind of cmake variable i should be prefixing with?
<sphalerite>
freeman42x[NixOS: same as usual, it's a function. The whole file evaluates to a function which takes a set containing mkDerivation, base, bindings-DSL, etc
<sphalerite>
oh yeah, I think that doesn't show them either
<pie_>
eh whatever ill make an issue and just put blocked until bass is separated out
<pie_>
for the moment
<rauno>
shachaf, Intel Corporation Ethernet Controller X710 for 10GbE SFP+
<rauno>
sphalerite, Intel Corporation Ethernet Controller X710 for 10GbE SFP+
<shachaf>
I'll keep that in mind.
<rauno>
wrong tag :)
<rauno>
sorry
vidbina has quit [Ping timeout: 240 seconds]
<sphalerite>
rauno: I don't actually know much about NICs ;) but yeah maybe see if it works better on another uplink or with another NIC, or another network cable, etc etc
seanparsons has joined #nixos
<pie_>
these are what get passed: cmake flags: -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/jynl6xkdzv1qg1skwlnps10d1il4inb2-bonzomatic-19-10-2017/include -DCMAKE_INSTALL_LIBDIR=/nix/store/jynl6xkdzv1qg1skwlnps10d1il4inb2-bonzomatic-19-10-2017/lib -DCMAKE_INSTALL_NAME_DIR=/nix/store/jynl6xkdzv1qg1skwlnps10d1il4inb2-bonzomatic-19-10-2017/lib -DCMAKE_INSTALL_PREFIX=/[....]
<pie_>
...ok but only some of those get passed....???
<pie_>
oh i guess thats what prefix is for
__monty__ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] thorstenweber83 opened pull request #34658: slic3r-prusa3d: init at 1.38.7 (master...add-package-slic3r-prusa3d) https://git.io/vAeYN
NixOS_GitHub has left #nixos [#nixos]
<pie_>
this is really weird. install(FILES "${CMAKE_SOURCE_DIR}/external/bass/x64/libbass.so" DESTINATION "${CMAKE_INSTALL_LIBDIR}") results in the lib getting in the derivation
<pie_>
but install(TARGETS ${BZC_EXE_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") does not exist
<__monty__>
The derivation for ranger accepts a pythonPackages argument, how do I pass this from nix-shell? nix-shell -p ranger --arg pythonPackages python36Packages says python36Packages is undefined.
<pie_>
CMAKE_INSTALL_PREFIX is wrong...
knupfer has joined #nixos
ottidmes has joined #nixos
chisui has joined #nixos
simukis has joined #nixos
tmaekawa has quit [Ping timeout: 264 seconds]
ssmike has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg opened pull request #34659: nmapsi4: init at 0.5-alpha1 (master...p/nmapsi4) https://git.io/vAe3i
<chisui>
Is there a way to get htop to strip the nix store prefix from the command column in htop? Its pretty much unreadable unless I fullscreen the terminal
<tilpner>
chisui - Press p
<chisui>
tilpner: Huh, Thanks
<chisui>
tilpner: Must have missed that option when reading the docs
hiroshi- has joined #nixos
hiroshi has quit [Ping timeout: 268 seconds]
hiroshi- is now known as hiroshi
<pie_>
sphalerite, what do you mean?
oida has joined #nixos
<chisui>
Is there any trick in enabling sway?
arianvp has quit [Ping timeout: 240 seconds]
hyper_ch2 has joined #nixos
Havvy has quit [Ping timeout: 268 seconds]
Itkovian has joined #nixos
bennofs has quit [Ping timeout: 276 seconds]
tv has quit [Ping timeout: 256 seconds]
Havvy has joined #nixos
yrashk has quit []
yrashk has joined #nixos
kier has quit [Ping timeout: 268 seconds]
<srhb>
Is there any nice way to get to nixpkgs/nixos when I don't have this nixpkgs handy in NIX_PATH? Or will I have to go through nixpkgs.path?
<srhb>
Right. This is what leads me to believe that it should have bumped. I'm not sure any more information is available through the web UI to determine what the holdup/failure is.
kier has joined #nixos
tv has joined #nixos
<sphalerite_>
chisui: if you don't have X, you'll need to set hardware.opengl.enable = true; manually. Other than that it should just be a matter of logging into a console and running sway
hakujin has joined #nixos
<sphalerite_>
oh yeah and if you're on nvidia proprietary drivers it probably won't work because their wayland support is bullshit
<chisui>
sphalerite_: Is there a way to get SDDM to pick up the wayland session?
<sphalerite_>
wayland support isn't integrated into nixos's config at all yet, afain AFAIK
<sphalerite_>
yeah but that's not nixos :)
hakujin has quit [Ping timeout: 265 seconds]
<chisui>
I know, but isn't that describing the general mechanism to register a wayland WM with window managers? That should work in NixOS as well
tv has quit [Ping timeout: 248 seconds]
orivej has quit [Ping timeout: 264 seconds]
<sphalerite_>
chisui: right but it's not installed to a global namespace in nixos
<sphalerite_>
the directory containing all the X sessions is generated in nixpkgs/nixos/modules/services/x11/display-managers/default.nix
Synthetica has joined #nixos
kitemikaze has quit [Ping timeout: 260 seconds]
<sphalerite_>
srhb: how would that work, not having nixpkgs but still getting to nixpkgs/nixos?
<srhb>
sphalerite: Sorry, I mean not having <nixpkgs>
<sphalerite_>
right but isn't that basically the same thing?
<srhb>
sphalerite: Essentially I'm lacking a way to get from pkgs. back to the nixos functions. I don't think it actually exists in the tree, so I have to go through the filesystem.
<sphalerite_>
I mean, you could find / -name nixpkgs but I'm guessing that's not the solution you want :p
<sphalerite_>
oh right
<clever>
sphalerite_: pkgs.path + "/nixos"
<sphalerite_>
"${pkgs.path}/nixos"?
silver has joined #nixos
<clever>
srhb: oops, ^^
<sphalerite_>
:)
<srhb>
Right, the question was to get there _without_ pkgs.path
<clever>
sphalerite_: that forces nix to intern all of nixpkgs, while mine keeps it as a path
<sphalerite_>
ah right
<clever>
srhb: i cant think of any other easy ways
<srhb>
I don't think any of it is exposed in nixpkgs unfortunately, at least yet.
<srhb>
So I guess I'm stuck with that :)
<srhb>
It's fine. At least eval-config is coming to nixpkgs soonish
<srhb>
Or something like it.
xcmw has joined #nixos
<sphalerite>
srhb: oh. Why do you need that?
<srhb>
I don't desperately need it, I just find it icky to have to go down to filesystem level :-P
orivej has joined #nixos
<srhb>
I mean, I have a nicer representation of the repository right here in my attribute set!
<srhb>
(Only it doesn't know about NixOS) :-P
<sphalerite>
Fair enough
<sphalerite>
Maybe one day we'll also be rid of the "module" system
<srhb>
Hehe
chisui_ has joined #nixos
tv has joined #nixos
chisui has quit [Ping timeout: 260 seconds]
chisui_ has quit [Client Quit]
chisui has joined #nixos
tv has quit [Ping timeout: 276 seconds]
orbekk has joined #nixos
raynold has quit [Quit: Connection closed for inactivity]
tv has joined #nixos
Itkovian has quit [Remote host closed the connection]
Itkovian has joined #nixos
Ivanych has joined #nixos
klntsky has quit [Remote host closed the connection]
<genesis>
more i use nixos, more i love it :)
ssmike has quit [Remote host closed the connection]
<genesis>
s/nixos/nix
ssmike has joined #nixos
klntsky has joined #nixos
coot has joined #nixos
<pie_>
sphalerite, turns out the cmake file was doing a bad tihng(tm)....
yann-kaelig has joined #nixos
clefru has joined #nixos
<sphalerite>
pie_: yeah that's what I thought/meant
<__monty__>
Still haven't been able to figure out how to open a nix-shell for a derivation with a specific python version. Is this impossible?
<gchristensen>
how about -p python36Packages.python ?
<sphalerite>
genesis: that seems to be a lot of people's experience :D
<__monty__>
gchristensen: Will other packages that depend on "pythonPackages" use that python?
iMatejC has quit [Remote host closed the connection]
iMatejC has joined #nixos
<gchristensen>
no
<clefru>
I am getting "(java:11): GLib-GIO-ERROR **: Settings schema 'org.gnome.system.proxy' is not installed", and haven't found the package that would provide the right schemas to glib. Can somebody give a hint where to find that?
<__monty__>
gchristensen: To avoid the XY problem, what I actually want is to install nixpkgs.ranger with a specific version of python (3.6.4 in this case), nix-shell -p ranger installs python 2.7.14, how do I do this?
ssmike has quit [Remote host closed the connection]
<gchristensen>
nice thinking w.r.t. XY
tv has quit [Ping timeout: 248 seconds]
Munto has joined #nixos
yegortim1 has joined #nixos
yegortimoshenko has quit [Remote host closed the connection]
nuncanada has joined #nixos
<gchristensen>
__monty__: via nix-shell -p, NixOS's systemPackages or other?
coot has quit [Ping timeout: 268 seconds]
<__monty__>
If ranger were part of python36Packages I would just do nix-shell -p python36Packages.ranger but it's not. I've tried passing --arg pythonPackages python36Packages but the 36 variable is undefined.
FRidh has quit [Ping timeout: 260 seconds]
<ertes-w>
has 'let' become recursive by default?
<__monty__>
I want this in a nix-shell it's so I can test ranger with specific versions of python or other (optional) dependencies.
<gchristensen>
__monty__: yeah but where exactly are you going to do this?
<ertes-w>
apparently it has: let x = x; in x
<ertes-w>
error: infinite recursion encountered, at (string):1:9
<__monty__>
Not sure what you mean. I'm not on nixos if that's the question.
<gchristensen>
ertes-w: the semantics of `let` haven't changed, afaik
tv1 has joined #nixos
<ertes-w>
gchristensen: i might be wrong, but i recall having to use a recursive record explicitly… maybe i had just messed up or misinterpreted an error message
<__monty__>
gchristensen: Thank you, I think that's what I was missing.
<gchristensen>
__monty__: glad to help :)
<__monty__>
What is the --arg flag for if not overriding arguments to derivations? (The docs aren't clear to me.)
<gchristensen>
ertes-w: ah, possibly
<gchristensen>
__monty__: the args get passed to functions which nix commands see... so maybe you could use --arg with nix-shell -p ranger.override --argg..
orivej has quit [Ping timeout: 240 seconds]
<__monty__>
Oh, because nixpkgs.ranger is actually the derivation already applied?
<gchristensen>
right
<gchristensen>
("applied" was the word I was looking for ...)
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<__monty__>
New level of understanding achieved! Hours of confusion left to achieve the next level (42)
<gchristensen>
=)
ssmike has joined #nixos
Leo` has quit [Remote host closed the connection]
<pie_>
__monty__, thats a nice phrase. /steals this meme/
<srhb>
gchristensen: I've once lost my google public ip because spooky action at a distance!
<srhb>
And I never understood what happened.
<srhb>
(MOst of my NixOps gripes are about spooky action-at-a-distance)
<gchristensen>
jikes! was this like an "elastic" IP that you had attached to your instance?
<srhb>
Yeah.
<gchristensen>
jeepers
xcmw has joined #nixos
coot has joined #nixos
<ottidmes>
Is there an easy way to allow someone to only execute one program on my desktop? Right now I am trying SSH + restricted shell + chroot. Does anybody know a simpler solution, or do they know how to setup a simple chroot environment for a SSH user to login to? I see that nix-user-chroot exists, but I am unclear how I could leverage that in this use case considering you have to start the shell with that command
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] adevress opened pull request #34662: rocksdb: 5.1.2 to 5.10.2 (master...rocksdb) https://git.io/vAeuK
NixOS_GitHub has left #nixos [#nixos]
ssmike has quit [Remote host closed the connection]
<gchristensen>
ottidmes: SSH can restrict the user to a single command
ssmike has joined #nixos
ma27 has joined #nixos
<gchristensen>
ottidmes: in the authorized_users SSH config file, prefix their SSH public key with `command="/bin/true" ` and they'll only be allowed to run /bin/true
<gchristensen>
ottidmes: caution: if you use a shell as their authorized command, they can do anything the shell can do
freeman42x[NixOS has quit [Ping timeout: 240 seconds]
freeman42x[NixOS has joined #nixos
stepcut has joined #nixos
coot has quit [Ping timeout: 260 seconds]
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
alexteves has joined #nixos
chrios has quit [Ping timeout: 256 seconds]
ssmike has quit [Remote host closed the connection]
<ottidmes>
gchristensen: That was why I was thinking to use a restricted shell, but your suggestion is way better, so I read /bin/false breaks the running of all commands, including the one you allowed, but with /bin/true they would be able to run it, but nothing else? That would solve my problem, and would probably be easier then setting up a chroot + restricted shell
<gchristensen>
no
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bignaux opened pull request #34663: squashfuse: init at 0.1.101 (master...squashfuse) https://git.io/vAezp
NixOS_GitHub has left #nixos [#nixos]
chrios has joined #nixos
<gchristensen>
with command="/bin/true" they can _only_ run /bin/true. with command="/bin/which" they can _only_ run /bin/which
periklis has joined #nixos
<genesis>
it's me bignaux :D
<nahamu>
bash's rbash feature is pretty cool.
<nahamu>
if you can set up the environment that rbash finds itself in correctly, you can lock someone down to a very limited set of commands while still allowing interactivity.
<ottidmes>
gchristensen: and then the shell of the user does not matter?
<gchristensen>
there is no shell involved, they can only run the command via `ssh yourcomputer /bin/which`
<ottidmes>
nahamu: That was what I was trying, but I found setting up the environment a pain, I was hoping NixOS had some tooling for this
<nahamu>
ottidmes: Ah.
xcmw has quit [Ping timeout: 265 seconds]
<ottidmes>
gchristensen: The manual says: "The command is invoked by using the user's login shell with the -c option." At least about ForceCommand, but I guess that is the same thing?
<gchristensen>
ahh maybe I'm not quite certain about the details then :$
<betaboon>
gchristensen: nvm for now, i just noticed that i forgot that i had a custom patch on top of nixops which allowed doing what i currently thought to be broken. I'm just investigating what i did months ago :/
<betaboon>
gchristensen: to elaborate some more: we're deploying into local virtualbox (for development environments) and into AWS (for production). some ppl in our team are on macos, therefore they have to use a nixos-virtualbox to build linux-packages. we do this by configuring remote-systems for the nix-daemon.
<betaboon>
so i was talking about 'remote-systems' but accidently called them 'remote-workers' XD
<freeman42x[NixOS>
trying to add Lamdu expressions in Nixpkgs repo but I don't know what changes I need to make to default.nix so that it can be built/installed, see: https://paste2.org/2YWU9OZL
<freeman42x[NixOS>
the error I am getting is: error: attempt to call something which is not a function but a set, at /home/neo/Forks/nixpkgs/lib/customisation.nix:74:12
<freeman42x[NixOS>
because obviously default.nix is not a derivation, just an expression that tells how to build lamdu derivation
<hyper_ch2>
infinisil: you're familiar with clever's tool right?
<gchristensen>
betaboon: gotcha, cool!
xcmw has joined #nixos
periklis has quit [Ping timeout: 256 seconds]
Tehnix2 has joined #nixos
<tilpner>
hyper_ch2 - kexec_tarball?
xcmw has quit [Client Quit]
rauno has quit [Remote host closed the connection]
Tehnix has quit [Ping timeout: 252 seconds]
oida_ has joined #nixos
spear2 has joined #nixos
oida has quit [Read error: Connection reset by peer]
<hyper_ch2>
tilpner: already worked it out - I hope :) trying to install it now really on a remote server but still a bit unsure if I need to pass ethernet kernel module as well
MercurialAlchemi has quit [Ping timeout: 256 seconds]
ebzzry has quit [Read error: Connection reset by peer]
<hyper_ch2>
I think I need to add the network card module as well but no idea which one it is
<hyper_ch2>
server is not too new though
<hyper_ch2>
but yes, it's about clever's kexec.... I run it fine on a OVH server but now trying to do encrypted root zfs
oscarduignan has quit []
oida_ has quit [Ping timeout: 256 seconds]
oscarduignan has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vAe6U
<NixOS_GitHub>
nixpkgs/master 104551e Ryan Mulligan: bcunit: 3.0 -> 3.0.2
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 5f17cd4 adisbladis: Merge pull request #34669 from ryantm/bcunit...
pkill9 has joined #nixos
ssmike has quit [Remote host closed the connection]
<gchristensen>
(also cc joepie91, peterhoeg, globin, manveru, ocharles, Wizek)
<aminechikhaoui>
oh nice
edofic has quit []
<Baughn>
Am I... am I doing this wrong?
* Baughn
has been waiting for the NixOS tests to complete since yesterday.
christiaanb has quit []
edofic has joined #nixos
<Baughn>
nixos-install appears to be writing at ~200 kB/s...
christiaanb has joined #nixos
<ma27>
gchristensen: thanks for notifying me (may I ask why :-) ), will try to have a closer look at this tonight %)
<gchristensen>
Baughn: what are you running the test on? (what is your host)
<gchristensen>
ma27: you're the #22 contributor to NixOps
<Baughn>
Threadripper, 1950x.
<gchristensen>
so not running in a VM already?
<Baughn>
No.
<gchristensen>
do you have /dev/kvm?
<Baughn>
Yep.
<ma27>
gchristensen: ooops :-D
<Baughn>
And the test would fail if I didn't, right?
<gchristensen>
I don't think it would...
<Baughn>
It's passing -enable-kvm
<Baughn>
...and -cpu kvm64
<nh2[m]>
gchristensen: I wouldn't go as far as saying the terraform backend should *replace* the existing backends (already because it's easy to make some quick fixes in Python code when direct APIs are available), but I'd be very happy to have a terraform backend already because it would unlock a lot more providers, and also more features in existing providers. I think I'd be happy in a world where I could choose to deploy to AWS
<nh2[m]>
either via nixops's inbuilt stuff, or via the Terraform-AWS backend
<nh2[m]>
in general I'd be super exited to see this happen
<Baughn>
machine# [ 603.787994] hrtimer: interrupt took 2023721 ns
oida_ has joined #nixos
<gchristensen>
nh2[m]: I would (and did) go so far as to say they should replace it, but good to know :) obviously nobody is going to go deleting the code from nixops any time soon.
<hyper_ch2>
so, I succefully locked myself out of the server :)
smola has quit []
smola has joined #nixos
ebzzry has quit [Ping timeout: 268 seconds]
<Profpatsch>
gchristensen: On FOSDEM somebody mentioned at the Nixos meeting that there is already work going on in that direction.
<gchristensen>
Profpatsch: near as I can tell, this is it.
<Profpatsch>
I think by the nixops author
<Profpatsch>
What’s their name?
<gchristensen>
I skipped the "prior art" section (but perhaps I should put it back as an explainer) because the prior art is currently a semi-abandoned readme
<gchristensen>
Rob / ikwildrpepper
ssmike has joined #nixos
<Baughn>
Oh, there was a nixos meeting? I couldn't find it on their page.
pchiusano has quit []
<__monty__>
Missed any and all nixos going's on at fosdem too.
<Profpatsch>
So we write a terraform plugin, and terraform knows how to “infect” various (cloud) providers.
<Profpatsch>
And then nixos takes it from there?
pchiusano has joined #nixos
<Profpatsch>
Baughn: __monty__ yeah, it was kind of spontaneous. There are so called BoFs (like self-organized sessions), but I’m not sure whether they were listed anywhere.
<Profpatsch>
I found out because I met a few people and through #nixos-fosdem
badi has quit [Quit: WeeChat 1.9.1]
<Profpatsch>
I think some info went to the mailing list as well.
badi has joined #nixos
badi has quit [Client Quit]
<__monty__>
I don't have a pocket sized spy device yet so connectivity's an issue at fosdem.
<gchristensen>
Profpatsch: the _primary_ feature here is terraform can be used to extract the hardware-configuration.nix from terraform-managed hosts and put it on your system. a _secondary_ feature is the ability to use nixos-infect/lustrate/kexec on hosts otherwise setup by terraform (however the implementation of infect/lustrate/kexec has no knowledge of the providers)
<Profpatsch>
gchristensen: But we can use terraform to do the initial setup, right?
<gchristensen>
right
<Profpatsch>
That would be a major work reduction on our side.
<gchristensen>
iyeah :)
<gchristensen>
basically rm all the .py files that mention aws/do/gcp
Sonarpulse has joined #nixos
grulli has joined #nixos
Tucky has quit [Quit: WeeChat 2.0.1]
Arcaelyx has joined #nixos
leat has joined #nixos
sdemos has quit []
justanotheruser has quit [Quit: WeeChat 1.9.1]
sdemos has joined #nixos
justanotheruser has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lisanna has joined #nixos
<Unode>
while packaging a python package, how can I restrict the package to only be available for specific python versions?
<Unode>
and to make any package depending on it conditional based on these versions?
<Profpatsch>
Unode: There’s an attribute in buildPythonPackage
<y0no[m]>
Unode: you can do something like "disabled = !(isPy3k);"
<Profpatsch>
yes
<Unode>
Basically I'm trying to package a python module that depends on pyqi only if running under python 2.7
<Profpatsch>
Ah, then
<Baughn>
gchristensen: Looks like the tests are not in fact using KVM, to judge by mprime. Weird...
<Baughn>
Well. This should be easier to fix than most of the alternatives.
<Profpatsch>
Unode: You mean exactly py27 or py27 and earlier?
ssmike has quit [Remote host closed the connection]
<Unode>
exactly py27 works for now.
<Profpatsch>
because there’s also packages with stuff like disabled = isPy26 || isPy27 || isPyPy;
ssmike has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
<Unode>
I'm not even sure it worth packaging this for py26 anyway... doubt anyone is using that combination of versions.
<Profpatsch>
You should just try if it works on py26.
<Unode>
not even sure it's supported upstream actually
<Profpatsch>
Can’t hurt to have that if it works. Otherwise I’d disable it and add an “untested for 2.6” comment.
<Unode>
Profpatsch: while we are at it, a quick question, in which situations would "propagatedBuildInputs = with self; ..." be prefered over "propagatedBuildInputs = ..."?
<Profpatsch>
Unode: Just a matter of taste. with self; brings everything from self in scope.
<Profpatsch>
So (with self; [ foo bar baz ]) == [ self.foo self.bar self.baz ]
<Unode>
checking...
<Profpatsch>
Provided there’s no let in the scope around that introduces a binding of the same name.
<Unode>
Profpatsch: and self in this context means the package definition?
<Profpatsch>
let stuff = { foo = 42; };
<Profpatsch>
foo = 23;
<Profpatsch>
in with stuff; foo
<Profpatsch>
== 23
<Profpatsch>
not 42, as one might expect.
<Profpatsch>
Unode: Nope, self is all python packages.
<Unode>
that's surprising
<manveru>
gchristensen: that looks pretty neat
<Unode>
ah ok then I see why self would be used here. Looking at top-level/python-packages.nix
<Profpatsch>
Unode: self is a conventional naming we use for overlays.
<Profpatsch>
If you look at line 18, you see:
<Profpatsch>
packages = ( self:
<Profpatsch>
Unfortunately, the lines after that are not indented correctly, so that’s confusing.
<Profpatsch>
Probably to save on indentation for each declaration afterwards.
<Unode>
I still get a little confused as to why some packages live in top-level/python-packages.nix while others have their own folder and simply a 'callPackage' on the top-level file.
<Profpatsch>
I’m not very accustomed to the python part of nixpkgs.
<Profpatsch>
It seems these are pretty arbitrary.
<Unode>
That's what I'm juggling right now :) Trying to get some stuff to work but missing some dependencies on nixpkgs. (science branch).
<Profpatsch>
e.g. hackagePackages.nix for haskellPackages is generated automatically.
<Profpatsch>
That’s not feasible for pypi afaik, or it’s just that nobody has done it yet.
<Profpatsch>
pie_: I packaged that for UltrastarDX, no idea how the library works.
<pie_>
yeah i mean the package, i have something that uses it
<Profpatsch>
But I see I managed to name a binding “dropBass”, so the last line in the definition is
<pie_>
then again, its distributed in it's repo so eh...
<Profpatsch>
in stdenv.lib.mapAttrs dropBass allBass
rizary has quit []
<pie_>
lol
<Profpatsch>
v proud of that actually
<pie_>
ok i think this is breaking because im trying to make a derivation thats not actually anything?
<pie_>
whats the right way to make an environment
rizary has joined #nixos
<Unode>
Profpatsch: I think there's some degree of automation that has been tried. pypi2nix and such. But I don't think the aim is to do so for all of pypi.
<Unode>
At least the recommended use is, pypi2nix to create your own nix-shell based python environment (virtualenv on steroids).
magnetophon has joined #nixos
<Profpatsch>
pie_: pkgs.mkShell
<Profpatsch>
There’s a bit of documentation in nixpkgs/doc/shell.md
<Profpatsch>
pie_: What doesn’t work about libbass?
<pie_>
no it works fine
<pie_>
i was just pondering that maybe i should separate it out
<pie_>
but i gues sdont break what aint broken yet
<Profpatsch>
Hm, maybe they distribute a different version, true.
<Profpatsch>
pie_: But! You have to look at the licenses.
<Profpatsch>
libbass has a crude shareware license iirc
<pie_>
i think ill leave the rest of that for tomorrow
<Profpatsch>
What’s the build output? still the same?
<pie_>
these derivations will be built: /nix/store/czri08cbar3dk5hnz5xiwp173aacch17-lab-env-0.1.drv
<pie_>
building path(s) ‘/nix/store/bs9r59a3y8x863x3vlyaghia98v8q3l7-lab-env-0.1’
<pie_>
nobuildPhase
<pie_>
This derivation is not meant to be built, aborting
<Profpatsch>
Ah, mkShell is only meant to provide a shell environment.
winem_ has quit [Ping timeout: 276 seconds]
<pie_>
?that's what I want?
<Unode>
any recommendations on how to solve: collision between `/share/nix/store/83v3ccnbiqzpyr1wr3a50h9iv3yh8369-python2.7-configparser-3.5.0/lib/python2.7/site-packages/backports/__init__.pyc' and `/share/nix/store/qdwzz23yxrfc9qxgr8hmpcn1j8d99ijr-python2.7-backports.shutil_get_terminal_size-1.0.0/lib/python2.7/site-packages/backports/__init__.pyc` ?
<Profpatsch>
did you call it with nix-shell?
<pie_>
yeah
<pie_>
no
<pie_>
xD
<Profpatsch>
Ah!
<Profpatsch>
:D
spietz is now known as sgeop
<Profpatsch>
Sometimes I think I’m crazy for a minute, then I notice I’ve been doing nix-shell insteald of nix-repl
<pie_>
Profpatsch, i want there to be a derivation for it htough so that gc wont clear 5 gigs of crap and make me rebuild :(
<pie_>
i mean an anchored derivation or something
<pie_>
also i think my github issue count has quadrupled this week
<pie_>
thats probably not a good thing
<Profpatsch>
means that you are doing stuff.
<Profpatsch>
Which is good™
<pie_>
im supposed to be doing other stuff xD
<pie_>
ok well, at the least ive got the shell now
<pie_>
\o/ thanks for the sanity check
betaboon has quit [Quit: WeeChat 1.9.1]
<Profpatsch>
np
<Unode>
In the case above, I'm not depending on those 2 packages directly... how can I set a priority for them?
hakujin1 has joined #nixos
<acowley>
I've been wondering about the speed of nix-shell startups, and noticed that with nix-shell -p, each package adds ~0.3s to the startup time atop a ~1.5s baseline. Anyone have any tips for speeding it up?
sgeop has quit [Remote host closed the connection]
spietz has joined #nixos
<Unode>
acowley: if you make your environment permanent it might help a little but <- beginner here
erasmas has joined #nixos
<joepie91>
actually, do we have profiling data on this kind of stuff?
<acowley>
Right, I could use nix-env and work in a common environment for multiple projects. But I really like having per-project project environments!
<Unode>
joepie91: likely sensitive to hardware, in particular SSD vs non-SSD disk.
<gchristensen>
acowley: how does the performance change if you use nix-shell with shell.nix's instead of -p's?
<acowley>
gchristensen: My initial irritation is with a shell.nix, so I gathered those timings with -p since it was easy to time different variations.
<gchristensen>
annoying :/
<pie_>
is it possible to have multiple homepage links?
<Unode>
pie_: 1 link multiple destinations ?
spietz has quit [Client Quit]
<pie_>
i mean meta = { homepage = ...}
<acowley>
gchristensen: My shell.nix takes 30s or so to start. It's a nuisance.
stepcut has quit [Remote host closed the connection]
<pie_>
any easy way for me to set -O3?
FRidh has quit [Quit: Konversation terminated!]
<Unode>
I'm trying to create a python environment but am running into collisions from packages which I do not directly depend on. I checked the colliding files and they are mostly identical (one has an extra comment). I don't know which packages are depend on those that trigger the collision but, how can I ignore collisions in this expression: http://dpaste.com/0NN5D1S ? Thanks
asuryawanshi has joined #nixos
klntsky has quit [Remote host closed the connection]
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<grulli>
I installed nix as a user on debian following https://nixos.org/nix/manual/#chap-quick-start - I'm wondering how to start a service like ssh or apache. where do i find the startscripts?
<grulli>
sorry for the beginner question, my nix-google-foo is not strong yet
pmeunier has quit [Quit: leaving]
<__monty__>
grulli: Nixos services aren't supported on non-nixos.
pmeunier has joined #nixos
rihards has joined #nixos
<Profpatsch>
pie_: Isn’t O3 problematic?
stephenjudkins has joined #nixos
<Profpatsch>
Without testing the binary could break from what I hear.
<pie_>
Profpatsch, i dont know actually
<grulli>
__monty__: thx
leotaku has quit [Ping timeout: 260 seconds]
<Profpatsch>
Also, sometimes the optimizations are leading to binaries with worse runtime behaviour iirc.
<Profpatsch>
So wouldn’t set anything to O3 without proper testing and benchmarks.
<Profpatsch>
If the library recommends O3, it should be mentioned somewhere or activated in the Makefile, no?
<pie_>
makes sense i guess
Guest27207 has quit [Changing host]
Guest27207 has joined #nixos
Guest27207 is now known as TweyII
leotaku has joined #nixos
<pie_>
ok i gotta run for a bit
coot has joined #nixos
mrkgnao has quit [Quit: WeeChat 2.0]
[0x4A6F] has joined #nixos
pie_ has quit [Ping timeout: 265 seconds]
GiGa has joined #nixos
GiGa has quit [Changing host]
GiGa has joined #nixos
ixxie has quit [Ping timeout: 260 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] teto opened pull request #34672: buildLinux: add overrides for modules (staging...kernel_overrides) https://git.io/vAeAy
<Profpatsch>
Yeah, nix-build tries to evaluate do a derivation.
<Profpatsch>
So mkDerivation gets called, which requires src to be set.
<Profpatsch>
What’s your final goal?
<Unode>
I want to have a folder (2.7-modules-v1) containing a python environment with the listed python modules available.
<Unode>
I had http://dpaste.com/0NN5D1S before but this gives a collision that I don't know how to solve
<Profpatsch>
To replace virtualenv?
<Unode>
Profpatsch: not necessarily but yes. The goal is to have a stable path pointing to a 'rich' python installation containing a bunch of modules. Potentially extending it in the future.
<Profpatsch>
How do you want to source it then?
<Unode>
I don't, I will refer to it by full path.
<Profpatsch>
Ah, okay.
<hyper_ch>
hmmm, seems kimsufi doesn't offer any kvm or remote vnc when boot up goes haywire
<Profpatsch>
python.withPackages should do what you want, though I’m not entirely sure whether it will output a path or just a shell environment
<warbo>
I can currently use the Hydra binary, but can't build it myself
<genesis>
oki thanks i'll have a look later.
<warbo>
looking at the definition of the hydra package, it's not a direct dependency
<warbo>
but it would be nice if I could do something like '(pkgs.withSomeOverrides { perlPackages = ...; }).hydra'
<Profpatsch>
warbo: The easiest way is to just apply the patch to your nixpkgs version.
<Profpatsch>
And call that.
xcmw has quit [Ping timeout: 276 seconds]
<Profpatsch>
Apart from that it depends on whether perl uses the top-level fixpoint or a separate override mechanism.
<warbo>
yeah
<Profpatsch>
And if that has changed between your version and master3
<Profpatsch>
So the easiest way is to just apply the patch.
<srhb>
It would be cool if we could deep-override any argument in the (recursive) set of dependencies by name, rather than having to override ... .override ... .override
<Profpatsch>
Normally overriding deeply for a simple bug fix just isn’t worth it.
<warbo>
a, just got to the bit which says 'with :;' uses dynamic scope :P
<ma27>
`/buffer 42
<gchristensen>
42 buffers is too many buffers, ma27
<infinisil>
Profpatsch: Just skipped through that before, seems overly complicated (haven't looked deep into it though)
detran has joined #nixos
tgunb has joined #nixos
<srhb>
It's interesting re. callPackage. Before reading it, I was imagining something like having each package instead taking all of pkgs as argument. I think that would be way more problematic though.
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
* srhb
imagines huuuge trees
<srhb>
Would be nifty though!
stepcut_ has joined #nixos
<Lisanna>
I've been trying without much luck to find some comprehensive documentation / examples of specifying an SSHFS mount with NixOS. Does anyone have an example of this in their config that they think is good?
orivej has quit [Ping timeout: 260 seconds]
sigmundv has joined #nixos
stepcut has quit [Ping timeout: 256 seconds]
hakujin1 is now known as hakujin
<pie_>
Profpatsch, ugh part of mystuff is still brokne
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] shlevy pushed 2 new commits to master: https://git.io/vAvkF
<NixOS_GitHub>
nix/master 47dc607 Will Dietz: release-common: use shell from nixpkgs, provide fallback for compat
<NixOS_GitHub>
nix/master 694b6d2 Shea Levy: Merge branch 'fix/busybox-sandbox-shell-attribute' of git://github.com/dtzWill/nix
NixOS_GitHub has left #nixos [#nixos]
<pie_>
the rpackages that should be installed, arent
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] shlevy closed pull request #1843: release-common: use shell from nixpkgs, provide fallback for compat (master...fix/busybox-sandbox-shell-attribute) https://git.io/vNh7S
NixOS_GitHub has left #nixos [#nixos]
<pie_>
this worked before ;_;
<pie_>
(with mkderivation)
<pie_>
err well that was proably with nix-shell -E
* pie_
scratches head
<Profpatsch>
infinisil: Well, I imagine what we really want is complete non-strictness (everything first builds a data structure that is run by an interpreter at the very end) combined with (van-Laarhoven) lenses.
<Profpatsch>
Maybe with syntax support for lenses.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] taktoa opened pull request #1847: Added documentation generation with doxygen (master...doxygen) https://git.io/vAvIq
<Profpatsch>
Of course the problem is that everything has to be changed, like SOS requires everything to be changed.
<duncan^>
Is there a rootfs tarball available for aarch64 (and other architectures)?
<Profpatsch>
Without a migration story (or automatic migration), that seems like a lost cause tbh.
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srhb>
Profpatsch: I have a hard time imagining how lenses would help here. Isn't that the same story? Duplicate (lazily) nixpkgs at every derivation and throw some finish at it?
<Profpatsch>
warbo: Yes, that’s what multi-layer overrides lead to.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #34677: busybox-sandbox-shell: extract basic shell to new attribute (staging...feature/busybox-sandbox-shell) https://git.io/vAvIR
<srhb>
Then just flatten everything (which admittedly I don't know how to do with packagesets like haskellPackages...) and trust in laziness to do the right thing
<srhb>
I suppose that's part of what the deriver business was about.
<Profpatsch>
srhb: Well, you could do (haskell notation) `pkgs ^. perlPackages . ParamsValidate <>= "export LD=$CC"` instead.
<warbo>
I thought the use of lenses would imply that we'd compose functions
<Profpatsch>
That would lens right into the derivation and append the string.
<warbo>
i.e. rather than making package sets which override package sets, etc.
<warbo>
you'd be composing override-functions with override-functions
<srhb>
I see what you're getting at.
<Profpatsch>
warbo: Hm, not sure.
<Profpatsch>
I think those two can be combined (overlays and lenses)
<Profpatsch>
But I’m not exactly sure if overlays have an analogue in Haskell-land.
duncan^ has quit [Remote host closed the connection]
<warbo>
there's probably a monad for that :P
<Profpatsch>
Maybe a special case of recursion-schemes?
<Profpatsch>
Well, it’s just a simple fix-point.
<srhb>
I think monad is somewhat antithetical to overlays.
<Profpatsch>
With a rather narrow generality to be honest.
<srhb>
Well, aside from -> :P
<srhb>
Needs more functor.
duncan^ has joined #nixos
<srhb>
Ah well
<Profpatsch>
There’s structures like histomorphisms which let you inspect and use every previous step of a recursive computation.
<Profpatsch>
^ This is an absolutely awesome multi-part introduction to that stuff.
<srhb>
Ugh, no, that doesn't solve composition at all..
* srhb
just wants to boil it all down to a single fixpoint on pkgs
* Profpatsch
wants the same for now
<srhb>
also fire the goshdarn missile already. :-)
<Profpatsch>
srhb: Do you have any idea how we could include e.g. haskellPackages or perlPackages into the top-level fixpoint?
<srhb>
Profpatsch: No, but if something like that package specific deriver idea could at least *expose* the packagesets as if they were top level, we could at least work on that.
<srhb>
Even if we'd have some magic in each packageset
<srhb>
As long as we can ignore that...
<Profpatsch>
I have a hunch, over lunch three days ago, nbp just pointed to SOS and said that it would solve these problems. :P
<srhb>
Hmm!
<Profpatsch>
But threading the self/super pair *into* the haskellPackage set might also work.
<Profpatsch>
What I imagine is a `zoom` function.
<Profpatsch>
`zoom "haskellPackages" self
yegortim1 has quit [Ping timeout: 255 seconds]
<srhb>
I can't really envision that. My lenses are rusty. :-)
detran has quit [Remote host closed the connection]
hamishmack has quit [Quit: hamishmack]
stephenjudkins has quit [Ping timeout: 240 seconds]
<teozkr>
jluttine: ask them to use a specific version of nixpkgs, rather than their channel
<teozkr>
the simplest would probably be to add a submodule
<teozkr>
that points to whatever version you want to pin it against
stephenjudkins has joined #nixos
<teozkr>
jluttine: then you can just say run `nix-build 'nixpkgs/nixos' ...blah` instead of `nix-build '<nixpkgs/nixos>' ...blah`
griff_ has quit [Quit: griff_]
<jluttine>
teozkr: ok. that's my repo so i can write iso.nix whatever i want. don't know how to modify it so that it'd pin nixpkgs so users would get the same nixpkgs version by default
<Unode>
Profpatsch: sorry I was summoned by higher powers.
bpa has joined #nixos
rardiol1 has joined #nixos
<teozkr>
jluttine: iso.nix can't decide the version, since it's invoked by nixos
<teozkr>
(which is in turn invoked by the user)
<teozkr>
so you need to provide the correct revision to them
<teozkr>
one way to do that is to run `git submodule add https://github.com/NixOS/nixpkgs`, and then checking out the correct version inside the new folder that was created
<teozkr>
then you need to replace references to <nixpkgs> (aka "find nixpkgs on the NIX_PATH) with references to ./nixpkgs ("nixpkgs in the current directory")
griff_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nix/master 6f6bfc8 Eelco Dolstra: Update the progress bar at most 20 times per second...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nix] edolstra pushed 1 new commit to master: https://git.io/vAvY4
stephenjudkins has quit [Remote host closed the connection]
<jluttine>
though i don't know how to modify that to my case because iso.nix is a function that takes pkgs as an argument..
<rardiol1>
is there some way to "bump" a pull request? It's been 3 weekswith no comment
<Unode>
Profpatsch: I'm still missing something... http://dpaste.com/27TE6JC if you can spare a few moments. Tried checked the manual but I don't find a clear explanation of what <> stands for. You also suggested "with <packages>;" but doesn't this lead to another level of nesting?. Sorry I'm confused.
<teozkr>
jluttine: because iso.nix is just a configuration file that tells the nixpkgs you're already building what to do
gfixler has quit [Ping timeout: 240 seconds]
<infinisil>
Profpatsch: srhb: Interesting discussions! I guess I'll have to take a closer look at SOS
<teozkr>
you *could* ignore `pkgs` and provide your own, but that would give you a weird franken-nixos where some services are pinned, but the rest are whatever the user's channel contained
chreekat has joined #nixos
digitus has quit [Remote host closed the connection]
ryanartecona has quit [Quit: ryanartecona]
coot has quit [Quit: coot]
orivej has joined #nixos
<Acou_Bass>
hey folks, I'm struggling with playonlinux... it's saying no file or directory found when it's trying to run the prefix version of wine it's downloaded into my home folder (despite it actually clearly being exactly where its looking) not sure if it's nixos specific issue
xcmw has joined #nixos
stephenjudkins has joined #nixos
User1680 has joined #nixos
<mog>
Acou_Bass, are you trying to use the packaged version of playonlinux or one you downloaded
ssmike has quit [Ping timeout: 256 seconds]
hamishmack has joined #nixos
<Acou_Bass>
packaged
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 2 new commits to master: https://git.io/vAv3S
<NixOS_GitHub>
nixpkgs/master 685ceb9 Tuomas Tynkkynen: kernel: Fix missing config options from platform...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master c9d1bf3 Tuomas Tynkkynen: platforms.nix: Include RPi 3 serial port in the kernel config
<Acou_Bass>
installing steam via that version of POL pulls in wine 2.12-staging and puts it into .Playonlinux/wine/bin/wine
<Acou_Bass>
but then when i get it to actually run the steam installer it tells me that wine couldn't be found
ryanartecona has joined #nixos
ditadi has joined #nixos
<manveru>
Acou_Bass: afaik PoL has been broken for ages now... haven't gotten it to work yet
<User1680>
hello, I'm trying to use overlays. I found how to add new packages without forking nixpkgs, and that's very easy. However, I'm failing at overriding gdb package to add a custom patch
<Acou_Bass>
doh! manveru thanks for letting me know :P
<User1680>
i've created a gdb-overlay.nix in ~/.config/nixpkgs/overlays, https://pastebin.com/E4efmBQg . when installing it with nix-env -i gdb, I get
<mog>
intesting Acou_Bass i havent used it before but i assumed it worked
<Unode>
how can I find which .nix file defines a given function? For instance buildEnv ?
<User1680>
"warning: there are multiple derivations named ‘gdb-8.0.1’; using the first one" and it seems my overlay is not installed
stephenjudkins has quit [Remote host closed the connection]
<symphorien>
User1680: use nix-env -iA instead of nix-env -i
<Acou_Bass>
i think there are POL alternatives so i may switch to another for the time being, i don't use wine often enough for it to be a painful transition :P
<User1680>
symphorien: nix-env -iA gdb => "error: attribute ‘gdb’ in selection path ‘gdb’ not found"
<Acou_Bass>
brb bouncer reboot!
<mog>
User1680, its probably nixos.gdb
<symphorien>
You must prefix gdb with nixos or nixpkgs according to your situation
<symphorien>
User1680: then, replace gdb= with mygdb= in your overlay and install nixos.mygdb to understand what happens
i-am-the-slime has joined #nixos
<symphorien>
nixpkgs
<andrewrk>
hi, sorry I forgot, how do you `nixos-rebuild switch` against a nixpkgs fork?
<symphorien>
Instead of nixos.
<symphorien>
andrewrk: -I nixpks=path
<andrewrk>
thanks!
GiGa has quit [Remote host closed the connection]
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
GiGa has joined #nixos
<User1680>
symphorien: that's "better" with mygdb, in the sense that it gives some clue. nix-env -iA nixpkgs.mygdb works and installs a gdb binary, but doesn't recompile gdb. So, my overlay is found, but doesn't add the patch as I thought
<symphorien>
Can you paste your overlay somewhere ?
Mateon3 has joined #nixos
Harpalus has quit [Remote host closed the connection]
<symphorien>
You must use gdb.overrideAttrs(old: {patches =....})
Lisanna has quit [Ping timeout: 276 seconds]
leotaku has joined #nixos
kiloreux has quit [Remote host closed the connection]
<leotaku>
what is the best way to use more than one GitHub repo in one custom package/overlay?
<leotaku>
/is there any sensible way?
<mwahl>
hi, i am quite new to nixos and nix. i want to install clang_5, llvm_5 and lldb_5 to work on a project. i got all of them installed, but it doesnt seem usable. it can't find system header files like cmath that are referenced by llvm, a dependecy i have.
<johnw>
{^_^}: there's a downside with that approach, however
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<johnw>
which clever and I were discussing in #nix-darwin recently
<johnw>
there are libraries that I need, which I need without access to Internet
<johnw>
if I rely on nix-shell, I may or may not have available what I need when I need it
<andrewrk>
do we have a plan for automatic security update installation?
<hyper_ch>
2 minutes till Tesla Roadster makes its way to mars :)
chreekat has quit [Ping timeout: 248 seconds]
leotaku has quit [Ping timeout: 268 seconds]
<tokudan[m]>
andrewrk: there's no difference between security updates and regular updates with nix. they only update if your system builds
<mwahl>
symphorien: so i need to do smth along those lines: nix-shell -p clang_5 llvm_5 ... --run make config=debug whenever i want to compile my code?
<andrewrk>
tokudan[m], so like if I have a server running that I don't log in to for a few months
<andrewrk>
it should probably auto install security updates right?
<johnw>
I think myEnvFun is a good way to keep libraries available in one's environment
<johnw>
this is what I do to make sure they're always available and updated, without putting them into the global environment
ambro718 has joined #nixos
<symphorien>
mwahl: yes. What I usually do is nix-shell -p libfoo --command zsh and then I do my dev stuff inside this shell
<johnw>
symphorien: so what do you do if libfoo isn't up to date on your system, and you're away from the Internet?
<mwahl>
symphorien: thx, will try that
<symphorien>
johnw: You can add all this stuff in a buildEnv derivation and add it a a dependency of your system
xcmw has joined #nixos
Ubercow has joined #nixos
<symphorien>
This will create a gc-root for your libs
<johnw>
symphorien: doesn't that then put it into the global environment as wel?
<johnw>
I ended up having conflicting paths in multiple buildEnvs, the last time I tried that
<johnw>
which myEnvFun dosen't run into
<Baughn>
gchristensen: I suspect my KVM speed issues was from using the tests (and thus qemu) from master instead of what's on my system. Some incompatibility or other.
<johnw>
symphorien: that's cool! but what about multiple versions of a compiler that then have path conflicts?
pie_ has quit [Ping timeout: 256 seconds]
<symphorien>
Otherwise somewhere there is a gist with a nix-shell wrapper which adds a gc-root in the dir just like nix-build
<johnw>
yeah, manually managing gc-root is a no go
<symphorien>
If they are not in the same buildEnv they won't conflict
<Baughn>
...never mind. It un-fixed itself.
<johnw>
symphorien: ah cool, that's good to know
<johnw>
symphorien: I think I'll give that a try
<symphorien>
(I expect at least)
leotaku has joined #nixos
<Baughn>
Hmm.
<johnw>
symphorien: well, if that's true, it solves that part of my problem at last
<symphorien>
:)
<Baughn>
Would anyone (on Intel) mind running a test for me? `time nix-build $NIXPKGS/nixos/tests/installer.nix -A simple`
simendsjo has joined #nixos
<Baughn>
It'll take a long time.
<johnw>
symphorien: in fact, that could solve my dependence on myEnvFun; I'll give this a try tonight
Lisanna has joined #nixos
klntsky has quit [Remote host closed the connection]
simukis has quit [Ping timeout: 256 seconds]
<Profpatsch>
Happy Falcon Heavy test flight!
<Profpatsch>
That syncronous landing was unreal.
chreekat has joined #nixos
<__monty__>
johnw: Feel free to memo me on that if I'm not around.
oida has joined #nixos
<leotaku>
can one fetch more than one Github repo in a custom package/overlay, without having to resort to command fetching in one of the build phases?
<Profpatsch>
Unode: Ah, sorry for the confusion.
stephenjudkins has quit [Remote host closed the connection]
<Profpatsch>
I used <foo> as a standin in that case.
<Profpatsch>
But that’s a bad choice for nix expression code, yes, since <foo> stands for a global attribute foo.
<Unode>
Agreed the sync landing was impressive. The bottom cameras confusing though. I can almost swear they were streaming the same feed.
<johnw>
__monty__: thanks
<Profpatsch>
Like the <nixpkgs> stands for the path to the nixpkgs folder3
<__monty__>
johnw: I don't often get thanked for giving someone work ; ) I meant update me on the result, can't really help with it.
<mwahl>
symphorien that worked indeed! thank you very much!
<symphorien>
:)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/vAvch
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master edeacd0 Joachim Schiele: security.acme: default name value via module system (#34388)
<Unode>
Profpatsch: though I think I'm still missing something. From what I gather of the nix language, "with context; {} " defines context for what follows. So if I simply want the defined list to be passed in as-is I need another argument no?
<Unode>
Profpatsch: sorry was writing when you sent that. I'm already there.
<Profpatsch>
Ah, I see.
civodul has joined #nixos
stepcut_ has quit [Remote host closed the connection]
<Unode>
Profpatsch: weird, can't seem to write there
<gchristensen>
is matthewbauer ever here?
<Profpatsch>
Unode: Okay, that’s a strange thingy.
<Profpatsch>
Basically it should work like it is now.
<Unode>
I see your text.
<Unode>
I think I tried as-is now but let me double check.
<Profpatsch>
After going through that, you should be just fine with normal nix-isms
<Profpatsch>
(takes a while to load, since it loads a JS-version of nix
<Unode>
nope still not correct: anonymous function at /share/nix/channels/nixos1709/pkgs/build-support/buildenv/default.nix:5:1 called with unexpected argument _extraLibs_, at /share/nix/channels/nixos1709/lib/customisation.nix:74:12
simendsjo has quit [Remote host closed the connection]
<Unode>
Profpatsch: It might fail on your system as some of the packages listed aren't in nixpkgs yet (biomformat for instance)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 1 new commit to master: https://git.io/vAvC9
<NixOS_GitHub>
nixpkgs/master 4de7e5c Luke Sandell: dump1090: fix html path...
<freeman42x[NixOS>
running gradle build from terminal works successfully, running it via nix-build throws Failed to load native library 'libnative-platform.so' for Linux amd64. Any idea what library I am missing?
<Profpatsch>
Unode: Ah, yes, buildEnv is a function and doesn’t need .override
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 3 new commits to master: https://git.io/vAvWI
<NixOS_GitHub>
nixpkgs/master 1137ba5 Michael Raskin: Merge pull request #27734 from jfrankenau/add-desktop-entries...
<NixOS_GitHub>
nixpkgs/master 776de25 Johannes Frankenau: freecad: Add desktop entry file and mime xml
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 9f90399 Johannes Frankenau: ddccontrol: Add desktop entry file for gddccontrol
<Unode>
Profpatsch: \o/ thanks for https://nixcloud.io/tour/ if you knew how much I looked for this page. Found it once by accident did the first few lessons, browser crashed, didn't bookmark and lost it. Google gave me a bunch of stuff but not the right page
<Unode>
Profpatsch: dropping .override doesn't help. Same error message.
<Unode>
ah wait
arjen-jonathan has quit [Ping timeout: 268 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c closed pull request #31312: emacs-packages: Cleanup and document for overrides (master...emacs-package-set-overrides) https://git.io/vFl41
NixOS_GitHub has left #nixos [#nixos]
mwahl has quit [Ping timeout: 256 seconds]
<Unode>
/nix/channels/nixos1709/pkgs/build-support/buildenv/default.nix:7:1 called without required argument _name_. Seems like I'm now missing something else.
<Unode>
hum.. seems like if I use buildEnv there's a lot of stuff I also need to pass...
<Unode>
I asked before but, how can I find the definition of a function? I mean, if I find some function I don't recognize being used in some .nix file, how can I know where to find its definition?
<gchristensen>
Unode: I use search.nix.gsc.io and "function ="
<symphorien>
Unode: the path is in the error message you pastes
<symphorien>
*pasted
the has joined #nixos
<Unode>
gchristensen: Nothing for you, Dawg. with "function = buildEnv"
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vAvWM
<NixOS_GitHub>
nixpkgs/master cefec62 Michiel Leenaars: lwan: init at 0.1
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master fdcbb26 Michael Raskin: Merge pull request #32579 from leenaars/lwan...
<gchristensen>
Unode: try "buildEnv =" :)
<Unode>
gchristensen: tricky there's a bunch of hits
<gchristensen>
yeah :9
<mog>
who is the relase manager for 18.03?
<Unode>
symphorien: thanks, I saw that, just wondering if there's a better way...
<gchristensen>
mog: globin and vcunat
<globin>
Nope fpletz and vcunat
<gchristensen>
oops :)
<Profpatsch>
Unode: You can search for the regex "buildEnv.=" and it will show you definitions of buildEnv
<mog>
thanks gchristensen want to get fpletz and vcunat info about shirts stickers and logos for the release
<gchristensen>
ooh yes please!!
<mog>
i got them in the mail yesterday
<mog>
pretty happy with them
<Profpatsch>
Unode: Caused by the happenstance that function definition syntax always looks like <identifier><space><=>
<Unode>
Profpatsch: I see.
<Profpatsch>
Unode: Wait!
<Profpatsch>
I just noticed that there is a python.buildEnv!
<Unode>
though still lost about the errors I'm getting. First it complained "required argument name", then "required argument paths", I passed both and now I get "unexpected argument extraLibs"
<Profpatsch>
Which also takes an ignoreCollisions argument.
<Unode>
maybe that's what I want?
<Unode>
I didn't get that there were more than one buildEnv
<Profpatsch>
Unode: yeah, there’s multiple functions named that.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 3 new commits to master: https://git.io/vAvlo
<NixOS_GitHub>
nixpkgs/master 907474e Michael Raskin: Merge pull request #33088 from exFalso/add-subdl...
<NixOS_GitHub>
nixpkgs/master 9cfe7e7 exfalso: subdl: init at 4cf5789
<NixOS_GitHub>
nixpkgs/master 4b48168 Michael Raskin: Add a date to name
NixOS_GitHub has left #nixos [#nixos]
asuryawanshi has quit [Ping timeout: 248 seconds]
<Unode>
Sorry... I'm still wrapping my head around nix and digging down on all the concepts.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c closed pull request #33306: haskell: Recommend use of hoogle --local (master...patch-2) https://git.io/vbpUo
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dotlambda opened pull request #34683: nixos/acme: Fix xml (master...acme) https://git.io/vAvlb
NixOS_GitHub has left #nixos [#nixos]
<Unode>
Profpatsch: so python.buildEnv clearly isn't right: nix is telling me it's a set. So .override there works but complains name and paths aren't valid arguments. Removing those is now making progress!
rihards has quit [Quit: rihards]
<Unode>
but half of the world collides xD
stephenjudkins has joined #nixos
<Unode>
still, seems like nix was happy and actually made and environment :O
<Unode>
how... I don't get it
stephenjudkins has quit [Read error: Connection reset by peer]
<Unode>
before I used "python36.withPackages (ps: with ps; [ packages ])", one package had a collision and nix aborted. Now using "python.buildEnv.override { ignoreCollisions = true; extraLibs = [ packages ]; }" worked... I guess ignoreCollisions had an effect.
<Unode>
Although I'm not sure I should be seeing that many collisions.
<Unode>
oh with ignoreCollisions = false it aborts on the first collision. I see
<Unode>
seems like most of the collisions are things like: "-python-2.7.14/include/python2.7/stringobject.h" "-python-2.7.14-env/include/python2.7/stringobject.h" so python internal files. Could it be that more than one package is trying to pull python-2.7 into the environment?
<User1680>
Baughn: time nix-build $NIXPKGS/nixos/tests/installer.nix -A simple => "real36m34,559s // user19m12,312s // sys8m4,116s"
__monty__ has left #nixos [#nixos]
<Baughn>
Thanks. ...hmm.
<Baughn>
It's weird. That result matches mine, roughly speaking, but I don't understand *why* it's this slow.
<Unode>
The wiki is actually quite rich in content. I wonder why it doesn't rank higher on Google hits. I always get nix and nixOS manuals
<Profpatsch>
Probably because it’s pretty new.
Drakonis has joined #nixos
griff_ has joined #nixos
stepcut has joined #nixos
<Unode>
Someone should poke google to have it reindexed then. Seems like a lot of the questions I've been having are answered there. Or at least there's links there that reference other useful material.
<Unode>
(bookmarked)
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rauno has joined #nixos
xcmw has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] flokli opened pull request #34684: svn_all_fast_export: init at 1.0.11 (master...svn-all-fast-export) https://git.io/vAvR6
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nix] AmineChikhaoui opened pull request #1848: [WIP] support multi threaded xz encoder (master...parallel-xz) https://git.io/vAvRP
alunduil has joined #nixos
hakujin has quit [Ping timeout: 265 seconds]
<samueldr>
Unode: google knows it exists, it's being ranked better and better
<samueldr>
I think that an issue with its ranking may come from an older wiki attempt that still has most of the same content on github... it should probably be nuked (with links)
<mog>
also its .wiki
<mog>
i think google weights com, org and net
<Unode>
does being .wiki affect it's ranking?
aarvar has quit [Quit: Leaving.]
dan_b has joined #nixos
<Unode>
I only see it as a hit if I search "nixos wiki". If I use "nixos" it doesn't show up (checked first 2 pages).
User1680 has quit [Ping timeout: 260 seconds]
bpa has quit [Read error: Connection reset by peer]
bpa has joined #nixos
<samueldr>
newness doesn't help, all other nixos ressources are much older, though domain name shouldn't affect it *that* much, it will progressively float up as it ages
chreekat has quit [Ping timeout: 240 seconds]
<Unode>
maybe it would help if it's linked from the main nixos page. Though it doesn't seem like Google has parsed that one either to have subsections automatically indexed and visible on search results.
<Unode>
Anyway... don't mind me. Just thinking out loud and wondering if small changes would be of any help here.
<mog>
newness / lack of link backs is the biggest reason id think
<Unode>
So we need to also promote it more often here :)
<Unode>
Can someone edit the channel's topic :)
digitus has joined #nixos
tgunb has quit [Ping timeout: 260 seconds]
Neo-- has joined #nixos
<Unode>
oh by the way, o/ gchristensen . I didn't link your username here with the one on GitHub. Thanks for the very useful ofBorg :)
stepcut has quit [Remote host closed the connection]
<mojjo>
hi! say there's a configuration.nix that describes a webserver.. One can build it easily with `export NIXOS_CONFIG=webserver.nix; nixos-rebuild switch --build-vm` .. and start the vm from the 'result link'. Is is possible to access this guest machine from a host machine via a virtual network? Like one can do with virtualbox for instance..
Neo-- has quit [Ping timeout: 256 seconds]
michaelpj_ has quit [Ping timeout: 240 seconds]
matthewbauer has joined #nixos
hiratara has quit [Remote host closed the connection]
hiratara has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 closed pull request #33871: llvm-5: add extra 'python' output for opt-viewer tool (staging...fix/llvm-5-python-closure) https://git.io/vNc1J
NixOS_GitHub has left #nixos [#nixos]
digitus has quit [Remote host closed the connection]
digitus has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
Drakonis has quit [Read error: Connection reset by peer]
gawa has joined #nixos
hakujin has joined #nixos
the has quit [Ping timeout: 260 seconds]
gawa has quit [Quit: WeeChat 2.0.1]
stepcut has quit [Remote host closed the connection]
hakujin has quit [Ping timeout: 276 seconds]
<freeman42x[NixOS>
is there any way to get more documentation of what Nix symbols do? For example: what is the differrene between name and pname keys of a mkDerivation
<matthewbauer>
basically pname should have no effect
<Dezgeg>
damn these people writing into other peoples' IRC :)
mojjo has quit [Ping timeout: 260 seconds]
Canaimero-e64b1 has joined #nixos
Canaimero-e64b1 has quit [Remote host closed the connection]
[0x4A6F] has quit [Quit: [0x4A6F]]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] cransom opened pull request #34685: v8_3_16_14: fix on darwin (master...fix-darwin-v8_3_16_14) https://git.io/vAvaO
NixOS_GitHub has left #nixos [#nixos]
<cransom>
gah. hub pull_request doesn't add any of the contributing cruft.
Guest95165 is now known as judson
hakujin has joined #nixos
<judson>
I'm having trouble with NixOps - it was working great and now it just says "error: 'NoneType' object has no attribute 'get'"
<judson>
Is there a way to get a backtrace or something?
brodavi has joined #nixos
vidbina has quit [Quit: leaving]
hellrazor has joined #nixos
hellrazo1 has quit [Ping timeout: 256 seconds]
<brodavi>
hey folks quick question... does nixos have something like ubuntu's 'build-essential'? also related, where can I find the 'ar' program? :)
azertyieio has joined #nixos
kwork has quit [Ping timeout: 260 seconds]
alex`` has quit [Ping timeout: 260 seconds]
<brodavi>
nevermind found it in binutils
oida has quit [Quit: WeeChat 1.6]
alexteves has quit [Ping timeout: 260 seconds]
jluttine has joined #nixos
kwork has joined #nixos
<genesis>
does matthewbauer come here ?
ndrei has quit [Ping timeout: 240 seconds]
<matthewbauer>
yes
<mog>
brodavi, buildessentials doesnt really exist, the best way to build things in nixos is by incorporating them into nix
matthewbauer has left #nixos ["ERC (IRC client for Emacs 25.3.2)"]
<Profpatsch>
lel
<genesis>
i'm so tired, :D
matthewbauer has joined #nixos
<genesis>
was speaking with this killing me softly people @ appimagekit
<Profpatsch>
genesis: Your question has been answered.
<genesis>
let's discuss in private if you like matthewbauer :)
<genesis>
Profpatsch : i see but i'm not very very ok with your idea, let me some time
<brodavi>
thanks mog ... this was due to the ever-so-troublesome 'node-sass' npm module... a node project that somehow requires gcc, make, python, etc...
<mog>
yup something like that youd want to build in a nix-shell first and then turn into a normal derivation
<brodavi>
small world mog :) I'm nyko from ML256
<mog>
WAAHH
<genesis>
thanks for the review anyway Profpatsch , but i'd prefer spend time later on that, since i've to patch it to turn it into a library, i'll have a look in the build process .
<judson>
Figured it out - missing securityGroup fields.
stepcut has quit [Remote host closed the connection]
coot has joined #nixos
<judson>
Is there a plan or interest to extend nixOps to e.g. use a central DB?
stepcut has joined #nixos
<brodavi>
mog I'm brand new to nixos but absolutely loving it on this laptop... just dabbled in nix-shell so far, still learning about derivations
bpa has quit [Read error: Connection reset by peer]
stepcut has quit [Remote host closed the connection]
bpa has joined #nixos
<mog>
brodavi, its the best. if you like a machine that always just works
<brodavi>
mog: that is indeed what I like :) and nixos-containers are too sweet for words. I haven't been this excited about computing in a long, long time
<mog>
nice
<mog>
i look forward to when you realize how awesome nixops is as well
abathur has joined #nixos
GiGa has quit [Remote host closed the connection]
bpa has quit [Read error: Connection reset by peer]
<brodavi>
I have been looking at the nixops docs... looks so very nice and clean... can't wait to play with it :)
bpa has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
kwork has joined #nixos
<freeman42x[NixOS>
matthewbauer, weird, I seen pname used in some expression, so I don't know what it does. Really nothing?
d4g has joined #nixos
<pkill9>
for people who are familiar with Guix, what's the main difference(s) between the language used by Guix to create packages and the one used by Nix to create packages?
<mog>
pkill9, guix is just scheme, where as nix is a dsl
<freeman42x[NixOS>
most of those were generated with cabal2nix
<matthewbauer>
freeman42x[NixOS: yeah I think haskellPackages has its own mkDerivation
<pkill9>
mog: is nix better for making package definitions?
<pkill9>
it's langguae i mean
<pkill9>
language*
<pkill9>
DSL is domain-specific language isn't it?
<mog>
i find it to be much more readable
<pkill9>
so is it better if it's a language made for nix
<mog>
but im clearly biased as ive been using nixos for a few years now
d4g_ has quit [Ping timeout: 240 seconds]
<yorick>
when I set up hydra, how do I give it access to my github repos?
<mog>
i imagine a scheme programmer would prefer parts of guix
bpa has quit [Remote host closed the connection]
leotaku has quit [Quit: WeeChat 2.0]
knupfer has quit [Ping timeout: 260 seconds]
kwork has quit [Ping timeout: 240 seconds]
kwork has joined #nixos
i-am-the-slime has quit [Ping timeout: 256 seconds]
griff_ has quit [Quit: griff_]
lord| has joined #nixos
<abathur>
I'm trying to get up on my legs, but I'm struggling to figure out why the commands for a package in my config aren't in my path
<abathur>
probably something obvious
matthewbauer has quit [Remote host closed the connection]
morgib has joined #nixos
<abathur>
so I have p7zip in my config, and I've run a nixos-rebuild test, generating my 6th profile
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] teozkr opened pull request #34687: libinput-gestures: init at 2.32 (master...libinput-gestures-2.32) https://git.io/vAv6W
NixOS_GitHub has left #nixos [#nixos]
<abathur>
when the UEFI loader comes up it's only showing me 5 options, none matching today's date
<abathur>
so that's confusion 1; is the loader only showing me alternatives? or is it truncated? or is its absence indicating that something isn't working?
<abathur>
I guessed that if I do nothing, the loader will pick the correct profile; after the system comes up I run nix-env -p /nix/var/nix/profiles/system --list-generations, I see all 6, with the new one marked (current)
ambro718 has quit [Quit: Konversation terminated!]
<abathur>
but 'which 7za' doesn't find anything
<abathur>
in /nix/var/nix/profiles I see system -> system-6-link
<abathur>
and the 7za command *does* exist at /nix/var/nix/profiles/system/sw/bin/7za