johnsonav has quit [(Ping timeout: 246 seconds)]
newhoggy has joined #nixos
<gchristensen> catern: sorry, can you say precisely what NixOS/nix/release.nix is?
nh2 has quit [(Quit: Leaving.)]
<disasm> gchristensen: I think he's referring to https://github.com/NixOS/nix/blob/master/release.nix
<ben> Can I disable the kernel and the initrd in nixos?
<ben> Like if I only wanna be userland.
<disasm> ben: you mean boot a different linux system and use nix?
<ben> Not really
<ben> Run nixos, but booting from someone else's kernel
<ben> I still want it to be in charge of all the services and everything.
boj_ has joined #nixos
<gchristensen> ben: may I ask why you want to do that?
<ben> gchristensen: I'm playing around with the cloud VMs offered by scaleway and they appear to give you a limited set of option for kernel+initrd combinations
<catern> gchristensen: the release.nix in the nix repo
<ben> I sorta manage to start nixos, roughly, but besides the part where all the stuff the initrd is supposed to do isn't done, I get a bunch of random errors and warnings about how it can't do all the things it's used to
<gchristensen> ben: ohh yes that is tricky
<ben> (most critically it doesn't seem to mount /run so I don't have /run/current-system/sw/bin/bash, so root can't login :') )
<gchristensen> catern: hmm not sure, other than maybe the one in the nix repo is designed more for dev, or packaging outside of nix (like debs, rpms, etc.)
jgertm has quit [(Ping timeout: 246 seconds)]
snikkers has quit [(Ping timeout: 260 seconds)]
<clever> ben: boot.isContainer will turn off the kernel and a number of other things, might turn off too much though
<ben> ah!
<clever> ben: and to make /run exist, you must run the init script in /nix/var/nix/profiles/system/init
<clever> normally, the absolute path to that is embeded into grub.cfg
<clever> and you have a choice between different builds
<ben> cool
<ben> thanks :)
taktoa has quit [(Remote host closed the connection)]
<clever> ben: ive also been working on something related lately: https://github.com/cleverca22/nix-tests/tree/master/container-generator
<clever> ben: this generates a tarball containing a full nixos container, and some bash scripts to enter it from another distro that lacks systemd
digitalmentat has quit [(Ping timeout: 268 seconds)]
eacameron has joined #nixos
<ben> neat
eacameron has quit [(Ping timeout: 255 seconds)]
k0001 has quit [(Ping timeout: 240 seconds)]
<catern> where is the repo for https://nixos.org/nix/install ?
ryanartecona has quit [(Quit: ryanartecona)]
<gchristensen> great question :) homepage
<catern> oh, neat that it's generated that way
<catern> that's a bit unfortunate for me perhaps, since I want to make my own modifications to itwanting t
<catern> so that it sets up a multi-user installation instead of a single-user one
filterfish_ has quit [(Ping timeout: 246 seconds)]
garbas has quit [(Ping timeout: 260 seconds)]
fnljk has quit [(Ping timeout: 240 seconds)]
kline has joined #nixos
garbas has joined #nixos
* catern wonders if he should set up a full mirror of the nixos-homepage...
stallion has quit [(Quit: stallion)]
fnljk has joined #nixos
armijn has quit [(Remote host closed the connection)]
stallion has joined #nixos
filterfish has joined #nixos
stallion has quit [(Ping timeout: 258 seconds)]
<disasm> catern: probably what you want in that case is to create your own tarball
fnljk has quit [(Disconnected by services)]
fnljk_ has joined #nixos
<catern> yeah
<catern> that's what I started doing
<catern> but then I realized that if someone subsequently installed Nix
<catern> they wouldn't have my customizations
<catern> oh I neglected to mention that I have some customizations I want to do too :)
<catern> anyway
<catern> for now I'll have a script on top of the tarball install, and later on I'll build my own tarball that does everything right and has the correct patches to change defaults to what I want
newhoggy has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
<catern> hey #nixos
<catern> which of gcroots/profiles/temproots should be world-writable in a multi-user Nix install?
stallion has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
<disasm> catern: another option would be a wrapper script that installs the default nix, and then does something similar to what sphalerite does with his dotfiles repo: clone your customizations to /nix-base-setup run nix-env -f /nix-base-setup -ir (see: https://github.com/lheckemann/dotfiles)
newhoggy has joined #nixos
ris has quit [(Ping timeout: 255 seconds)]
stallion has quit [(Ping timeout: 240 seconds)]
newhoggy has quit [(Remote host closed the connection)]
<catern> er sorry what exactly would that do?
danl1240 has quit [(Quit: My iMac has gone to sleep. ZZZzzz…)]
<jake__> clever: running boot, pushd and popd are not found
danl1240 has joined #nixos
m0rphism has joined #nixos
<jake__> clever: as a result all the devices are in root
<disasm> catern: it would install everything configured in default.nix from the base setup repo.
danl1240 has quit [(Client Quit)]
fnljk_ has quit [(Ping timeout: 240 seconds)]
<catern> oh I see
<catern> I didn't get what you meant by clone
<catern> but you meant git clone :)
mizu_no_oto has joined #nixos
<disasm> yeah :)
Supersonic112 has quit [(Ping timeout: 240 seconds)]
s33se_ has joined #nixos
<disasm> catern: I haven't done much nix outside of nixos myself, but I think only /nix/var/nix/profiles/per-user and /nix/var/nix/gcroots/per-user should be world writeable.
<catern> ok
<catern> btw, why doesn't the daemon just handle making gc roots?
<catern> that seems like that would allow creating some actual policy/mechanism later on
<catern> about what kind of gc roots could be made
<catern> or quota about how much store space you can keep live
Supersonic112 has joined #nixos
s33se has quit [(Ping timeout: 240 seconds)]
<clever> jake__: oh, it probably needs bash, not sh
<clever> jake__: just normal cd dev and cd .. should also work the same
<jake__> clever: i did that, but now it doesnt work at all
<jake__> clever: mkdir isn't found, fork can't allocate memory, and wait_for has no record of the process
jake__ has quit [(Ping timeout: 240 seconds)]
marsel has joined #nixos
lambdamu has joined #nixos
mbrgm has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
lambdamu_ has quit [(Ping timeout: 240 seconds)]
zeus_ has quit [(Remote host closed the connection)]
zeus_ has joined #nixos
ryanartecona has joined #nixos
zeus_ has quit [(Ping timeout: 258 seconds)]
digitalmentat has joined #nixos
ryanartecona has quit [(Client Quit)]
boj_ has quit [(Ping timeout: 255 seconds)]
ebzzry has joined #nixos
marsel has quit [(Ping timeout: 255 seconds)]
eacameron has joined #nixos
filterfish has quit [(Ping timeout: 255 seconds)]
taktoa has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
boj_ has joined #nixos
jake_ has joined #nixos
boj_ is now known as boj
jake_ has quit [(Ping timeout: 255 seconds)]
tmaekawa has joined #nixos
tmaekawa has quit [(Client Quit)]
orivej has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
ryanartecona has joined #nixos
marusich has quit [(Ping timeout: 255 seconds)]
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
eacameron has quit [(Ping timeout: 240 seconds)]
ryanartecona has quit [(Client Quit)]
digitalmentat has quit [(Remote host closed the connection)]
digitalmentat has joined #nixos
digitalmentat has quit [(Client Quit)]
ryanartecona has joined #nixos
MinceR has quit [(Ping timeout: 260 seconds)]
MinceR has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
hiratara has quit [(Ping timeout: 255 seconds)]
hiratara has joined #nixos
hellrazo1 has joined #nixos
hellrazor has quit [(Ping timeout: 240 seconds)]
boj has quit [(Quit: byte byte)]
boj has joined #nixos
<dtzWill> meow meow
ison111 has quit [(Ping timeout: 240 seconds)]
ison111 has joined #nixos
zeus_ has joined #nixos
ison111 has quit [(Ping timeout: 260 seconds)]
ison111 has joined #nixos
iyzsong has joined #nixos
isHavvy has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
isHavvy has joined #nixos
eacameron has quit [(Ping timeout: 268 seconds)]
drtop is now known as threshold
iyzsong has quit [(Ping timeout: 240 seconds)]
jbgi has joined #nixos
kiloreux has quit [(Remote host closed the connection)]
filterfish has joined #nixos
alx741 has quit [(Quit: alx741)]
jgertm has joined #nixos
<ebzzry> With regards to Nix, what are the consequences of changing a username?
Filystyn has joined #nixos
<nixy> ebzzry: What do you mean by that? Changing them using something like `usermod` or in configuration.nix
jbgi has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] taku0 opened pull request #26664: flashplayer: 26.0.0.126 -> 26.0.0.131 (master...flashplayer-26.0.0.131) https://git.io/vHppJ
NixOS_GitHub has left #nixos []
jacob_ has joined #nixos
jacob_ is now known as Guest6484
<ebzzry> nixy: usermod
<ebzzry> nixy: Will it mess anything up?
<nixy> If the user isn't managed through configuration.nix, then it probably won't. It could also depend on how the user is definied in configuration.nix
<nixy> I believe if the users.users.<name>.uid is unset it will see the user doesn't exist and create it with a new UID
<nixy> If it is set, then it should change that user to match the described parameters.
<nixy> Note that I am saying "should" and "believe" as I haven't tested these. It would probably be better to either manage users entirely through normal unix utils or entirely through configuration.nix
<ebzzry> nixy: How about if it is declared in extraUsers?
<ebzzry> nixy: in configuration.nix
<nixy> extraUsers is just an alias of users.users, so same thing
<nixy> If you already have a user I would find their UID, set that in the extraUsers then make any name changes you want to make
<nixy> You will also want to set the home variable to point to their old home directory.
<ebzzry> nixy: Ok, so if the user is declared in users.extraUsers with a uid, all I need to do is to change the username in configuration.nix?
<nixy> Looks like it. Since I am unsure on this I would recommend creating a new user to test this before making any changes to a user you care about
<ebzzry> Also, will it automatically rename /home/oldname to /home/newnawe?
<nixy> ebzzry: No, it wouldn't do that. That is why I suggested you set `users.extraUsers.newname.home = /home/oldname`
<ebzzry> Ok, if that’s the case, then can I manually rename oldname to newname?
<ebzzry> Before or after nixos-rebuild?
<nixy> Yeah you could do that. I think it would be better to do that before
iyzsong has joined #nixos
<ebzzry> Ok. What will happen to ~/.nix-profile? Will it update the symlink?
<nixy> I don't believe it would. My understanding is it only creates the users .nix-profile if it doesn't exist
<nixy> You could move ~/.nix-profile to ~/.nix-profile.old
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/ada9e94355 (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<ebzzry> nixy: Ok!
<ebzzry> nixy: So, if I’m going to move .nix-profile, that means I have to redo all nix-env commands that I have made?
nahamu has quit [(Ping timeout: 260 seconds)]
nahamu has joined #nixos
<nixy> Yes, the "new" user would have their own set of profiles in `/nix/var/nix/profiles/per-user/new-user`
<nixy> Each profile in that directory is just a symlink to a profile in the store though
<nixy> You could symlink the new users profile to the same profile as the old users profile
<ebzzry> Yes, and that the symlinks it the store point to absolute paths, as part of the design of Nix.
<nixy> The only caveat to that is you would lose your former generations as generations are tracked by the symlinks in the users folder
<ebzzry> Yes. There are no guarantees.
<ebzzry> I need to weigh whether renaming the user outweighs the efforts.
<nixy> Well why are you renaming the user?
<ebzzry> It’s a user request.
S0rin_ has joined #nixos
endformationage has quit [(Quit: WeeChat 1.7)]
S0rin has quit [(Ping timeout: 246 seconds)]
<nixy> Neato. Like I said earlier, you could just not have them in configuration.nix and use `users.mutableUsers` with traditional unix stuff
<nixy> But yeah, that is kind of a sticky situation to be honest
yenzenz has joined #nixos
<ebzzry> nixy: that’s ok! =)
ebzzry has quit [(Quit: WeeChat 1.7)]
jgertm has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
newhoggy has quit [(Ping timeout: 255 seconds)]
evangeline has quit [(Ping timeout: 246 seconds)]
Guest6484 has quit [(Quit: Lost terminal)]
evangeline has joined #nixos
evangeline has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
k0001 has joined #nixos
eacameron has joined #nixos
ambro718 has joined #nixos
newhoggy has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
filterfish has quit [(Remote host closed the connection)]
newhoggy has quit [(Ping timeout: 246 seconds)]
filterfish has joined #nixos
eacameron has joined #nixos
evangeline has joined #nixos
k0001 has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
k0001 has joined #nixos
filterfish has quit [(Ping timeout: 246 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
evangeline has quit [(Ping timeout: 258 seconds)]
newhoggy has quit [(Ping timeout: 240 seconds)]
proteusguy has joined #nixos
newhoggy has joined #nixos
filterfish has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
zeus_ has quit [(Remote host closed the connection)]
<MichaelRaskin> ebzzry: consider asking user if it is OK to create a new login and just let the user do the move as they see fit
<MichaelRaskin> (having access to both accounts)
zeus_ has joined #nixos
roconnor has quit [(Ping timeout: 246 seconds)]
<MichaelRaskin> It is such a great excuse to clean up the $HOME file layout, that they could actually agree.
<nixy> They aren't here anymore, but yeah that too. I also realized you don't actually have to muck around with symlinks for ~/.nix-profile and can leave it as is. The name in the per-user directory would just be different
catch22__ has joined #nixos
newhoggy has joined #nixos
zeus_ has quit [(Ping timeout: 255 seconds)]
newhoggy has quit [(Ping timeout: 240 seconds)]
SvenDowideit has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vHhvc
<NixOS_GitHub> nixpkgs/staging 304391b Vladimír Čunát: Merge branch 'master' into staging...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to master: https://git.io/vHhvE
<NixOS_GitHub> nixpkgs/master 5ca644c Parnell Springmeyer: Fixing attribute name mistake: setguid => setgid
<NixOS_GitHub> nixpkgs/master c416641 Vladimír Čunát: Merge #26657: nixos security.wrappers: fix a typo...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat closed pull request #26657: Fixing attribute name mistake: setguid => setgid (master...parnell/fix-wrapper-logic) https://git.io/vHxdS
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.03: https://git.io/vHhvg
<NixOS_GitHub> nixpkgs/release-17.03 a889c4c Vladimír Čunát: Merge #26657: nixos security.wrappers: fix a typo...
NixOS_GitHub has left #nixos []
Bane^ has quit [(Ping timeout: 246 seconds)]
Bane^ has joined #nixos
oida_ has joined #nixos
fnljk has joined #nixos
filterfish has quit [(Ping timeout: 255 seconds)]
oida has quit [(Ping timeout: 240 seconds)]
simukis has joined #nixos
Bane^ has quit [(Ping timeout: 260 seconds)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
Bane^ has joined #nixos
boomshroom has quit [(Ping timeout: 260 seconds)]
newhoggy has joined #nixos
moet has joined #nixos
filterfish has quit [(Remote host closed the connection)]
eacameron has joined #nixos
filterfish has joined #nixos
eacameron has quit [(Ping timeout: 246 seconds)]
k0001 has quit [(Remote host closed the connection)]
k0001 has joined #nixos
filterfish has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #26619: ocamlPackages.containers: 0.22 -> 1.2 (master...ocaml-containers) https://git.io/vHxUT
NixOS_GitHub has left #nixos []
lambdael has quit [(Quit: WeeChat 1.7.1)]
thc202 has joined #nixos
magnetophon1 has quit [(Ping timeout: 240 seconds)]
lambdael has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
k0001 has quit [(Ping timeout: 240 seconds)]
<nixos-users-wiki> "List of applications" edited by Mic92 https://git.io/vHhJf
newhoggy has quit [(Ping timeout: 258 seconds)]
newhoggy has joined #nixos
newhoggy has quit [(Read error: Connection reset by peer)]
newhoggy has joined #nixos
yenzenz has quit [(Ping timeout: 240 seconds)]
lambdael has quit [(Quit: WeeChat 1.7.1)]
magnetophon1 has joined #nixos
<nixos-users-wiki> "Wine" edited by Mic92 https://git.io/vHhJ8
arjen-jonathan has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
Itkovian has joined #nixos
newhoggy has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vHhJ9
<NixOS_GitHub> nixpkgs/master f094fad taku0: flashplayer: 26.0.0.126 -> 26.0.0.131
<NixOS_GitHub> nixpkgs/master 05547db Jörg Thalheim: Merge pull request #26664 from taku0/flashplayer-26.0.0.131...
NixOS_GitHub has left #nixos []
marsel has joined #nixos
monaderror has joined #nixos
orivej has joined #nixos
<monaderror> Hi, does anyone know the best way of updating a package version in configuration.nix? I'm using packageOverrides but it doesn't look to be working. This is the relevant snippets from my config https://pastebin.com/ubCkkVV1
[0x4A6F] has quit [(Ping timeout: 240 seconds)]
<LnL> what's the problem?
bennofs has joined #nixos
pie_ has quit [(Ping timeout: 255 seconds)]
<monaderror> I declare a new version of crashplan to be used but it looks like the packageOverrides isn't taken effect and the old version is still used
Mateon1 has quit [(Remote host closed the connection)]
<monaderror> If I check the file hashes they are the same in the nix store even though I updated the sources
<monaderror> A full snippet can be seen of what i'm doing / seeing is at https://pastebin.com/ubCkkVV1
Wizek__ has joined #nixos
magnetophon1 has quit [(Ping timeout: 268 seconds)]
arjen-jonathan has quit [(Ping timeout: 260 seconds)]
lambdael has joined #nixos
bennofs has quit [(Ping timeout: 240 seconds)]
<LnL> the override looks ok, where did you get that expected sha?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
bennofs has joined #nixos
<monaderror> I manually downloaded the artifact from the fetchurl then manually run the installPhase to extract it from the CrashPlan_${version}.cpi file and used sha256sum.
<monaderror> It looks like i'm still seeing the default "4.8.0" install from 17.03 so wasn't sure if the override was correct or not
Itkovian has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
moet has quit [(Ping timeout: 255 seconds)]
newhoggy has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vHhUo
<NixOS_GitHub> nixpkgs/master 0d4431c Piotr Bogdan: fakeroot: apply patch to ignore EINVAL errors as well...
NixOS_GitHub has left #nixos []
<monaderror> Looking at the nix store it does look like it's picking up the version override.../nix/store/*-crashplan-4.8.3-r1/lib/com.backup42.desktop.jar, however I'm guessing the crashPlanArchive / srcs are not being correctly picked up?
spinus has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] armijnhemel opened pull request #26665: bluez5_28: remove expression for bluez5_28, as it is no longer needed (master...bluez5_28_removal) https://git.io/vHhU5
NixOS_GitHub has left #nixos []
armijn has joined #nixos
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
magnetophon1 has joined #nixos
mpcsh has joined #nixos
mudri has joined #nixos
newhoggy has joined #nixos
magnetophon1 has quit [(Ping timeout: 240 seconds)]
newhoggy has quit [(Ping timeout: 255 seconds)]
<gchristensen> Mic92: ahh nice
<gchristensen> looks also like vcunat started an eval
arjen-jonathan has joined #nixos
newhoggy has joined #nixos
hellrazo1 has quit [(Ping timeout: 240 seconds)]
ambro718 has quit [(Ping timeout: 240 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
newhoggy has quit [(Ping timeout: 268 seconds)]
<Filystyn> nix-shell ignores allow unfree in configuation.nix why ?
<LnL> only nixos-rebuild look there, nix-build/nix-shell use config.nix
bennofs1 has joined #nixos
bennofs has quit [(Ping timeout: 240 seconds)]
Jackneill has joined #nixos
arjen-jonathan has quit [(Ping timeout: 255 seconds)]
Bane^ has quit [(Ping timeout: 260 seconds)]
magnetophon1 has joined #nixos
<Mic92> Filystyn it reads ~/.nixpkgs/config.nix instea
<Mic92> instead
Bane^ has joined #nixos
<Filystyn> ooo
<Filystyn> thx
zarel has joined #nixos
<zarel> hello!
<domenkozar> chromium crashes for me while scanning wifi access points
<domenkozar> #saturdaythings
pie_ has joined #nixos
<gchristensen> nice, domenkozar ... :(
<gchristensen> morning zarel
Itkovian has joined #nixos
pie_ has quit [(Changing host)]
pie_ has joined #nixos
snikkers has joined #nixos
Bane^ has quit [(Ping timeout: 246 seconds)]
marsel has quit [(Ping timeout: 240 seconds)]
<monaderror> In https://github.com/NixOS/nixpkgs/blob/17.03/pkgs/applications/backup/crashplan/default.nix , is the fact the version is in a `let` statement the reason why it can't be overridden with `overrideAttrs`, essentially it's hardcoded not an argument?
Bane^ has joined #nixos
cpennington has joined #nixos
ris has joined #nixos
Isorkin has quit [(Ping timeout: 246 seconds)]
<gchristensen> monaderror: unfortunately no, version is (almost always) used too early, before overrideAttrs can use it
<gchristensen> and unfortunately https://github.com/NixOS/nixpkgs/blob/17.03/pkgs/applications/backup/crashplan/default.nix#L34 makes it impervious to being overriddden
Isorkin has joined #nixos
lambdael has quit [(Quit: WeeChat 1.7.1)]
<monaderror> Yes, I was thinking line 34 was the issue, any suggestions on a patch?...still getting familiar with Nix
<gchristensen> a few things: it is very likely that CrashPlan_*.cpi will work instead of hard-coding the version
Bane^ has quit [(Ping timeout: 260 seconds)]
<gchristensen> I would change " srcs = [ crashPlanArchive ];" to just be src = fetchurl {...
arianvp2 has joined #nixos
<gchristensen> ie: skip creating the crashPlanArchivee variable, and use the `src` parameter instead of the `srcs` parameter
<monaderror> Yes makes sense, a simple fix on the `CrashPlan_*.cpi`, I was thinking a function String => Derivation.
nh2 has joined #nixos
<monaderror> I'll try a figure out how to run a local channel from the docs and give it a try
<gchristensen> ah :) yeah, that is possible but perhaps a bit over complicated
<gchristensen> monaderror: if you clone nixpkgs you can do nix-build . -A crashplan
GiGa|Laptop has joined #nixos
carlosda1 has joined #nixos
* gchristensen crosses his fingers on https://hydra.nixos.org/build/54649669#tabs-summary
fnljk has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
GiGa|Laptop has quit [(Ping timeout: 268 seconds)]
newhoggy has quit [(Ping timeout: 260 seconds)]
simendsjo has joined #nixos
GiGa|Laptop has joined #nixos
turion has joined #nixos
mudri has quit [(Ping timeout: 240 seconds)]
GiGa|Laptop has quit [(Client Quit)]
<turion> My first 24 hours with nixos have been good, but not perfect ;) Major remaining problem: cpupower doesn't work as expected. The frequency stays at 800 MhZ although it should be capable of 1.8 GHz and I've each set the governor to performance and the frequency to 1.8 GHz directly
mudri has joined #nixos
<turion> How can this be? I've not experienced anything like this before
snikkers has quit [(Ping timeout: 260 seconds)]
Mateon1 has joined #nixos
<MichaelRaskin> You mean cpufreq?
<turion> MichaelRaskin: Yes
<MichaelRaskin> What modules is loaded for cpufreq hardware handling? acpi_cpufreq?
<turion> I'm calling "cpupower frequency-set -g performance"
<turion> MichaelRaskin: powernow_k8
<turion> (It's a 10 years old machine)
<MichaelRaskin> Erm
<turion> (But I remember it working fine with arch linux 7 years ago)
<MichaelRaskin> I don't know anything about that cpupower stuff
<MichaelRaskin> There is /sys/devices/system/cpu/cpu0/cpufreq
<MichaelRaskin> (it is per-core)
ris has quit [(Ping timeout: 255 seconds)]
<turion> That command should be nearly the same as "cpufreq-set -g performance" or so
<turion> MichaelRaskin, ah interesting, I don't have that path on my system
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 25 new commits to master: https://git.io/vHhLP
<NixOS_GitHub> nixpkgs/master 0d92084 Will Dietz: at: Don't set fancy bits on install
<NixOS_GitHub> nixpkgs/master 3d5409a Will Dietz: cron: don't set special permissions
<NixOS_GitHub> nixpkgs/master 714cd37 Will Dietz: logcheck: Don't set special permissions
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat closed pull request #26628: Fix various setuid/setgid permissions fallout (master...fix/perms-fallout-misc) https://git.io/vHxZ1
NixOS_GitHub has left #nixos []
<turion> MichaelRaskin: Sorry, I'm so new to nixos that I don't know where to start. Does nixos create the kernel config as well? Can I inspect or edit that or should I do that through a .nix file?
<MichaelRaskin> lsmod | grep cpufreq
<MichaelRaskin> You can _view_ config via /proc/config.gz
<MichaelRaskin> It is very rarely needed to change it, it is mostly everything-as-module
<turion> MichaelRaskin, yes, shows acpi_cpufreq, cpufreq_ondemand, cpufreq_userspace
<MichaelRaskin> Hm, maybe try ondemand instead of performance in the command then?
<MichaelRaskin> Maybe no, not sure
<turion> Yes, just tried that, stays on 800 MHz although htop says I've got 100 % CPU load :/
<MichaelRaskin> find /sys | grep cpufreq
<MichaelRaskin> (yes, I don't believe all that tooling around the long-term kernel interfaces, as you can notice)
<turion> MichaelRaskin: Haha, that's great, I'm learning a lot about how things really work under the hood right now
ris has joined #nixos
<MichaelRaskin> I mean, ifconfig → ip, iwconfig → iw, because the kernel logic has changed a bit. That was like once in a dozen years or what? Now look at all that wrapper kaleidoscope and share the despair
<turion> MichaelRaskin: I understand that viewpoint, but I'm happy I can use networkmanager to just connect to a network quickly without having to mess around with wpa_supplicant directly (as long as there is a way to get rid of it quickly)
<turion> Ah, and now we've found the right place I believe, /sys/devices/system/cpu/cpu0/
<MichaelRaskin> That's the trouble — you invest half an hour once, then wpa_supplicant is actually simpler _and it stays the same over years_
<MichaelRaskin> Does it have cpufreq subdirectory, though?
<turion> Yes
sdhand has quit [(Excess Flood)]
sdhand has joined #nixos
<MichaelRaskin> Did you load some additional module? Because then this cpufreq directory is exactly at the path I initially mentioned
sdhand is now known as Guest43932
<turion> (Argh, how does copy/paste work on xmonad..?)
darlan has joined #nixos
darlan has quit [(Client Quit)]
<MichaelRaskin> Isn't left-drag to select, middle-click to paste universal in X11 and sane apps?
<turion> Hmm if I had a middle mouse button I could test ;)
<MichaelRaskin> Maybe left+right click would work
<nixy> Left + Right = Middle?
<MichaelRaskin> It is sometimes enabled
<turion> Would make sense, but doesn't quite work
<nixy> If you are using a touchpad you can usually configure how a middle click is performed
Neo-- has quit [(Ping timeout: 255 seconds)]
<nixy> I think you have to edit some X config files for synaptic tho
<turion> nixy: Ah yes, that's on my long list of things to get the system usable
<MichaelRaskin> For synaptic you can just run synclient, if SHM control is on
<MichaelRaskin> Nowadays you have also a chance of xinput agreeing to configure stuff
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ajevans85 opened pull request #26666: crashplan: refactor allowing local version bumping with overrideAttrs (master...feature/enable_crashplan_overrideAttrs) https://git.io/vHhLp
NixOS_GitHub has left #nixos []
m0rphism has quit [(Quit: WeeChat 1.8)]
Guest43932 has quit [(Changing host)]
Guest43932 has joined #nixos
Guest43932 is now known as sdhand
<turion> well, cat cpuinfo_max_freq says 1800000 and cat cpuinfo_cur_freq says 800000
ris has quit [(Ping timeout: 260 seconds)]
sdhand has left #nixos ["Leaving"]
<MichaelRaskin> You can read the current governor
<MichaelRaskin> And the list of available governors
Jackneill has quit [(Ping timeout: 255 seconds)]
octe_ is now known as octe
<Mateon1> Hi, I'm having freezing problems with the amdgpu driver on a radeon RX 470. How do I debug those? journalctl spews a bunch of errors from when this happened. A bunch of QKcbConnection errors happen in xsession (unsure if related), then 2 seconds later I get several lines of "kernel: amdgpu 0000:01:00.0: GPU fault detected: 147 0x0178c802" ... "amdgpu 0000:01:00.0: IH ring buffer overflow (0x00080B70, 0x00000080, 0x00000B80)" - after which the system
<Mateon1> (Non-graphical daemons continue running, however, I could access my samba share)
<turion> MichaelRaskin: Yes, I have ondemand, userspace and performance available, and all frequencies available
<MichaelRaskin> And what is the current governor?
hellrazo1 has joined #nixos
<turion> ondemand
<MichaelRaskin> What if you echo performance to that file?
<turion> Now it's performance, but the frequency stays low
<MichaelRaskin> And if you set to userspace and manually change performance?
<turion> MichaelRaskin: How do I do that? If I echo to cpuinfo_cur_freq, it says permission denied
<turion> Maybe that's the bug?
<MichaelRaskin> After setting userspace as the governor?
<MichaelRaskin> Order matters
<turion> Yes
<MichaelRaskin> Ah. scaling_setspeed
catch22__ has quit [(Remote host closed the connection)]
<gchristensen> eeee the ova job got past the previous hurtle
turion has quit [(Ping timeout: 240 seconds)]
vaartis has joined #nixos
<vaartis> > So.. bugzilla requires the configure script to be ran by somebody in wwwrun group, but nixbld user is not in that group, how can i add it to group?
<vaartis> Just asking here too, maybe anybody knows
<gchristensen> "here too" where else did you ask?
<gchristensen> I'd fix theconfigure script to not require the wwwrun group
<vaartis> In github PR i'm working on
turion has joined #nixos
<MichaelRaskin> scaling_setspeed has crashed your system?
<vaartis> gchristensen: it needs one, cuz else it makes most files publically available
<turion> MichaelRaskin: No, just an internet hickup
<turion> I've looked at the kernel config, it seems right
Neo-- has joined #nixos
lambdael has joined #nixos
carlosda1 has quit [(Ping timeout: 260 seconds)]
<turion> Weird... maybe I should talk to kernel devs?
<turion> Can it even be that it's a nixos problem?
<MichaelRaskin> So, scaling_setspeed also does nothing?
<turion> MichaelRaskin: No
<MichaelRaskin> Hm
<MichaelRaskin> Maybe there are some complaints in dmesg?
<turion> MichaelRaskin, nothing unusual... dmesg | grep cpu mostly says that the powernow driver found the CPU and that's it
<MichaelRaskin> Well, you could try different kernel versions
<turion> MichaelRaskin: Ah... hmm how does that work on nixos *^_^* ?
[0x4A6F] has joined #nixos
<turion> I'll make myself some lunch and try that later. Thanks for your help!
<MichaelRaskin> config.boot.kernelPackages
<turion> Ok!
<gchristensen> https://hydra.nixos.org/build/54649680#tabs-summary <- ova passed on nixos-unstable!
<gchristensen> go, channel update! go!
Itkovian has quit [(Ping timeout: 255 seconds)]
Itkovian has joined #nixos
leat has quit [(Ping timeout: 255 seconds)]
<nixy> Is there any way to tell how many people on Nix use certain packages? Something like Debian's popularity contest?
<MichaelRaskin> I guess niksnut has some approximation in terms of unique IPs asking for a package from binary cache
<nixy> That's what I figured, but that isn't exactly opt-in so I wouldn't feel great peeking at that
<nixy> I'm just curious what different WM/DEs people use with NixOS
<gchristensen> I don't think we have data per-package, since it'd be such a nightmare to correlate
<gchristensen> also I think there is indeed a desire to not be too invasive
<turion> Here is a thing I don't really understand about the cpufreq business: In the nixos philosophy, I should just have to set the governor somewhere in a config and do nixos-rebuild switch, and that's it.
<turion> So if that setting is set incorrectly somehow, am I even able to change it by echoing values to /sys etcetera /scaling_setspeed?
<gchristensen> indeed, you are. nixos is still based on the linux kernel and doesn't that deeply modify the linux kernel
<nixy> /sys is a pseudo filesystem anyways, so Nix can only do so much to modify it
leat has joined #nixos
<turion> Ah, so it doesn't replace everything in there by symlinks to some /nix/store ;) I'm a bit relieved, actually
<gchristensen> yeah, that'd be too much
<gchristensen> turion: you _can_ set the governor in nix, but it just does like echo > /sys/...
simukis has quit [(Ping timeout: 240 seconds)]
<turion> gchristensen, ah ok, where do I do that?
<turion> I'm sorry I'm asking so much all the time, but it seems like there is next to no information on the internet except the guide
<turion> wiki, you're dearly missed
<nixy> turion: Even without the wiki you can find quite a bit out about nixos just by searching the options with `nixos-option` or http://nixos.org/nixos/options.html
<nixy> So for example searching governor on nixos.org/nixos/options will find the option you need
<nixy> It also provides links straight to github where it is defined which is pretty neat
mudri has quit [(Ping timeout: 268 seconds)]
<gchristensen> or `man configuration.nix`
<gchristensen> see also these links: https://nixos.org/nixos/wiki.html
page has quit [(Quit: leaving)]
<JayVii> quick question: has firefox-54 landed in NixOS-17.03 yet? (the PR certainly has been merged yet)
<gchristensen> JayVii: I believe so, and if it hasn't been released to users just yet it will be within the next day or so.
<JayVii> doesn't appear to be released for users, yet. thanks gchristensen :)
<LnL> woot, channel update
page has joined #nixos
jacob_ has joined #nixos
stanibanani has joined #nixos
jacob_ is now known as Guest12303
ilyaigpetrov has joined #nixos
phinxy has joined #nixos
lorilan has joined #nixos
<lorilan> hello, i'm trying to write my first nix expression but I'm running into some trouble figuring out how to use nix-build
<lorilan> I'm following the doc https://nixos.org/nix/manual/#chap-writing-nix-expressions , I'v written a pretty simple/dummy expression with a builder that print its environment and exit
<lorilan> If I try 'nix-build nixpkgs/pkgs/applications/audio/gpmdp/.' (the place where is my default.nix file), i got error: cannot auto-call a function that has an argument without a default value (‘stdenv’)
<lorilan> and if I try 'nix-build -A gpmdp nixpkgs/pkgs/top-level/.' I got error: cannot auto-call a function that has an argument without a default value (‘localSystem’)
<gchristensen> it'd be really neat if webkitgtk wasn't so big :P
<lorilan> I'm sure it's nix 101 but if I could get a little boost to start, that would be great !
<gchristensen> lorilan: I would recommend adding it to pkgs/top-level/all-packages.nix (follow the numerous examples in there... don't worry _too_ much about when you put it) and then do nix-build . -A name, where name is `name = pkgs.callPackage ...`
lambdael has quit [(Quit: WeeChat 1.7.1)]
arianvp2 has quit [(Ping timeout: 255 seconds)]
arianvp2 has joined #nixos
<lorilan> where am I suppose to do "nix-build . -A name" ?
<gchristensen> directly inside of the nixpkgs checkout
<lorilan> because I already put "gpmdp = callPackage ../applications/audio/gpmdp {};" in all-packages.nix
<gchristensen> ah!
<lorilan> ha ?
<gchristensen> cd nixpkgs, nix-build . -A gpmdp
<lorilan> >_<
<lorilan> ok
<lorilan> it's working !
<gchristensen> alright!
<lorilan> thanks a lot !
<gchristensen> you're welcome! super glad to help :)
<MichaelRaskin> gchristensen: it would be really neat if web browser engines didn't have a need to be so big
gchristensen has left #nixos ["WeeChat 0.4.2"]
gchristensen has joined #nixos
<gchristensen> yes! I agree!
<MichaelRaskin> Are you complicit in maintaining any web pages that don't work at all without JS for no good reason?
<MichaelRaskin> If so, you have a chance to push towards the change you want to see, one corner of web at a time
<gchristensen> well https://channels.nix.gsc.io/graph.html does, and I work for Tumblr which, well, lol. but I don't have anything to do with web dev at work :/
<MichaelRaskin> I think if I open tumblr without JS it does show at least something
<gchristensen> oh, that is good news :D
turion has quit [(Ping timeout: 240 seconds)]
<gchristensen> if you help me fix that graph to output a regular picture (svg output of gnuplot?) I'd replace it
<MichaelRaskin> I mean, I do write shell scripts to launch gnuplot, but usually the work is around the data source
<MichaelRaskin> plotting is simple
<gchristensen> gnuplot escapes me :(
Mateon1 has quit [(Remote host closed the connection)]
Mateon1 has joined #nixos
<gchristensen> I have https://gist.github.com/grahamc/4ba8c14226b6f0e9a8e5a4c0fa8fa86a as the data I create, I use the second numbers (3, 5, 11) just as a way to make them show up on different levels, they don't mean anything.
calvertvl has quit [(Read error: Connection reset by peer)]
stanibanani has left #nixos []
<MichaelRaskin> Hm
<MichaelRaskin> I am not sure an SVG plot is an improvement. I would say that a text column of UTC timestamps like «2017-06-15 13:40 UTC: nixos-17.03-small updated to a commit from 2017-06-14 21:10 UTC» could be better
<MichaelRaskin> I mean next step after no JS is a small screen or a text browser
<gchristensen> yeah, I really like the visual
<MichaelRaskin> But you lose the second part of the data!
stanibanani1 has joined #nixos
<gchristensen> but I can do whatever: https://channels.nix.gsc.io/nixos-unstable-small/history
<MichaelRaskin> Maybe a true scatter-plot then?
<gchristensen> sure!
<MichaelRaskin> I would still ask for a text log of updates, too (maybe JS could collapse it when it is enabled)
<MichaelRaskin> I am not sure how to make date-linked labels correctly, though
zarel has quit [(Quit: Leaving)]
<gchristensen> sure, I can make a text log
<gchristensen> would you collate the channels by date?
<MichaelRaskin> I thought the point is exactly to see if we are lagging by days or by hours
<MichaelRaskin> So, just unix timestamps should be OK
<MichaelRaskin> Seems that gnuplot has something for that
turion has joined #nixos
<gchristensen> oh so you're saying show the latest version per channel, not a history of each channel
<MichaelRaskin> basically, I would ask just for two columns of timestamps
<MichaelRaskin> No-no, history of course
<MichaelRaskin> Two columns of timestamps per channels
<MichaelRaskin> per every channel
<turion> nixy, gchristensen, thanks, that's useful to see!
<vaartis> Damn. httpd seems to ignore perl5lib and says it can't find libs, but they are right there tho
<gchristensen> MichaelRaskin: what would be different between the two columns? or: what would the headings on the columns be?
<MichaelRaskin> «Commit timestamp» and «Channel update timestamp»
<gchristensen> oh I see, thath is interesting, I realize now I don't actually capture when it updated, but when the commit is from. I should fix that :)
<MichaelRaskin> I actually thought it is the other way round
<gchristensen> I generate latest and the history lines with this command: git show -s --format="%H %at" "$remote/$branch"
<MichaelRaskin> Ah right, Git is so advanced there is no good way to track when a commit was added to a branch
<gchristensen> :D
<MichaelRaskin> Maybe timestamp tags?
<gchristensen> yeah, I mean it would be simple to just capture the timestamp at the time I detect the change
<MichaelRaskin> As in channel branches with tags like update-140123456
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 3 new commits to master: https://git.io/vHh3a
<NixOS_GitHub> nixpkgs/master 9be1951 Franz Pletz: imagemagick7: 7.0.5-7 -> 7.0.6-0
<NixOS_GitHub> nixpkgs/master 5f803db Franz Pletz: imagemagick: 6.9.8-9 -> 6.9.8-10
<NixOS_GitHub> nixpkgs/master de74d20 Franz Pletz: kernelPackages.zfs: 0.6.5.9 -> 0.6.5.10
NixOS_GitHub has left #nixos []
<gchristensen> oh, yeah, we could, but we'd probably not want that in nixos/nixpkgs
<gchristensen> it can make the github and git UI very slow
<MichaelRaskin> We had a separate channels repository, no?
<gchristensen> we do
<gchristensen> but I can't make changes to it :)
<MichaelRaskin> Can we just export all the history to SVN and start anew?
<MichaelRaskin> I feel like Git workflow NixPkgs uses took a few wrong turns somewhere
<gchristensen> :)
<MichaelRaskin> (and Git per se was also one, but oh well)
<lorilan> I have another question, I'm in nixpkgs root directory, I do nix-env -f . -q 'my*', It go 'my*' selector matches no derivation, but after I successfully does a nix-env -f . -i 'my-package', the previous command works ... is there a way to make it work without actually installing (and knowing ?!!) the package ?
<dash> i'm almost over being mad that git won
<dash> maybe we can switch to pijul in a few years? ;-)
<gchristensen> dash: they are nixos users
<gchristensen> indeed
<MichaelRaskin> I don't expect pijul to reach feature parity with SVN, though
<dash> MichaelRaskin: i would hope not, svn had plenty of bad features ;)
<MichaelRaskin> Sorry? The problem is that it had quite a few good ones that everyone pretends never existed
<MichaelRaskin> I mean, actually everyone, even Monotone who does do a lot of things right
<MichaelRaskin> And I think the problem pijul wants to solve is not the problem NixPkgs repository has…
<MichaelRaskin> I am not sure we often have accidentally-complex merges
<dash> it's a pityy bzr never got fast, it had most of the nice stuff from svn IME
<MichaelRaskin> Meh. I want a union of features of Subversion, Monotone and probably Pijul, yes
<dash> i never got around to trying monotone
<MichaelRaskin> And when I say features I mean model-level features, I am good at shell scripting
carlosda1 has joined #nixos
nh2 has quit [(Quit: Leaving.)]
<MichaelRaskin> But partial checkouts are not about scripting, they are about core assumptions!
<gchristensen> yeah subversion did several nice things
<gchristensen> like having lots of binary blobs without having to download them -all-
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/d88c0cf867 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<MichaelRaskin> Yes, this is what I call partial checkouts
<dash> ah, yeah, i never worked on anything that really benefited from partial checkouts
<dash> ISTR using them in the workflow at one job but it wasn't due to blobs
<gchristensen> MichaelRaskin: partial checkouts but also partial history
ris has joined #nixos
newhoggy has joined #nixos
<MichaelRaskin> gchristensen: oh well, I assume that you can do sane stuff, I mean partial both in depth and in breadth
carlosda1 has quit [(Ping timeout: 268 seconds)]
<vaartis> Ugh. I hate perl already ~_~
carlosda1 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] primeos pushed 1 new commit to master: https://git.io/vHhsk
<NixOS_GitHub> nixpkgs/master a071a06 Michael Weiss: quiterss: 0.18.4 -> 0.18.5
NixOS_GitHub has left #nixos []
<vaartis> Maybe i should try nginx again..
nh2 has joined #nixos
Isorkin has quit [(Ping timeout: 240 seconds)]
<MichaelRaskin> You can fo builtin Perl scripts in Nginx, too!
<MichaelRaskin> gchristensen: anyway, can we agree that the data is a series of two-column files with Unix timestamps?
newhoggy has quit [(Ping timeout: 240 seconds)]
Isorkin has joined #nixos
<vaartis> Perl says there are no Apache2 in @INC, but it IS there when building the package..
<vaartis> And then PERL5LIB resets
<gchristensen> MichaelRaskin: sure, I can do that
<MichaelRaskin> You mean, not preserved in runtime? Well, you need to explicitly make a wrapper that sets it
m0rphism has joined #nixos
<MichaelRaskin> gchristensen: well, you could want to also plot job count maybe, but that's another plot I guess
<MichaelRaskin> gchristensen: can you create a test dataset for that so that it is easier to see how the plot will look like in reality?
<vaartis> MichaelRaskin: you mean, by using makeWrapper? It is an apache submodule and work with mod_perl, so do i need to wrap apache?
<gchristensen> hmmm yep, give me 5 minutes
eacameron has joined #nixos
<MichaelRaskin> vaartis: ouch, didn't guess the situation, sorry
<vaartis> Yep, that's the problem.. Apache also seems to ignore PerlFlags -I
magnetophon1 has quit [(Ping timeout: 240 seconds)]
<vaartis> Alright, it seems like you can add environmental variables in .htaccess
sigmundv has joined #nixos
<gchristensen> MichaelRaskin: https://gist.github.com/grahamc/774c5af68f053f3897941aac13848966 I just added 250 to the first column to simulate an update delay
<vaartis> Nope, did not help
simendsjo has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #26170: wirelessInterfaces: Add a missing parameter (master...wlan-fix) https://git.io/vHcYF
NixOS_GitHub has left #nixos []
yenzenz has joined #nixos
<MichaelRaskin> 4 minutes sound unrealistically small
<MichaelRaskin> I hoped you have a better guess
<gchristensen> heh
gchristensen has left #nixos ["WeeChat 0.4.2"]
gchristensen has joined #nixos
<gchristensen> yeah, an hour would be closer to reality
<vaartis> Uh, i dont think i'll finish bugzilla service any time soon
magnetophon1 has joined #nixos
<MichaelRaskin> I also hoped for a variation estimate
<gchristensen> I have no good info :(
<MichaelRaskin> Pity!
<gchristensen> we could capture the info and talk again in a week
<MichaelRaskin> I can plot somehow and then maybe you will be able to tune it
k0001 has joined #nixos
grumble has quit [(Max SendQ exceeded)]
grumble has joined #nixos
magnetophon1 has quit [(Ping timeout: 240 seconds)]
<MichaelRaskin> gnuplot <<< "set term svg; set output 'channel.svg'; set title 'Channel updates'; set timefmt '%s'; set format x '%m-%d'; set xdata time; plot 0, 'channel' using 1:(\$2-\$1)/3600 with linespoints title 'nixos-whatever';"
<MichaelRaskin> gchristensen: you could try that
<catern> hey #nixos I had a thought
<MichaelRaskin> That plots date and delat
<MichaelRaskin> delay
<catern> why not make the creation of gc roots (in multi-user setups) be handled by nix-daemon?
darlan has joined #nixos
cpennington has quit [(Remote host closed the connection)]
<catern> this would allow later on creating some higher-level policy about how much store space a user can consume
<catern> BUT I realized an even more significant gain
<catern> this would make store-on-NFS really easy!
<catern> transparent, in fact!
<MichaelRaskin> gchristensen: now you can capture the info and plot as you go
Accord has left #nixos ["http://quassel-irc.org - Chat comfortably. Anywhere."]
nh2 has quit [(Read error: Connection reset by peer)]
endformationage has joined #nixos
darlan has quit [(Quit: Communi 3.5.0 - http://communi.github.com)]
kiloreux has joined #nixos
<kiloreux> I am getting an error not being able to load libbz2 when trying to run ffmpeg installed through nix
<kiloreux> any idea what could be the issue
k0001 has quit [(Ping timeout: 240 seconds)]
vaartis has quit [(Ping timeout: 268 seconds)]
gchristensen has quit [(Quit: WeeChat 0.4.2)]
vanschelven has joined #nixos
nh2 has joined #nixos
<vanschelven> hello I'm a noob that's very enthusiastic to get started with Nix; I fully subscribe at least to the philosophy, now we'll see how it goes in practice :-)
magnetophon1 has joined #nixos
<vanschelven> I got started by fetching the VirtualBox image and setting that up. "It works"
<vanschelven> I've also read the manual once
<vanschelven> now I would like to get this image to behave according to my personal preferences. AFAIK even dotfiles for arbitrary programs should go into nix expressions if you want to "do it right".
<vanschelven> is this the correct understanding?
<vanschelven> hmmm, on second reading that's a big vague, I'll rephrase
<vanschelven> I want to get a number of my preferred programs including my preferred setups over into the newly installed NixOs.
<vanschelven> I think I know how to install the programs
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<vanschelven> but what's the recommended way in the NixOs world to configure them?
<vanschelven> as I understand it the "promise of Nix" is that I'll in the end just have a single file or git repo somewhere which can be used to deterministically rebuild my entire system.
<vanschelven> which file is this
<vanschelven> end of noob question
<dash> vanschelven: /etc/nixos/configuration.nix
<dash> vanschelven: it's not usual to put user dotfiles in your nixos configuration though
<vanschelven> is there a user-equivalent that the dotfiles go into?
grahamc has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
<vanschelven> I'd seen /etc/nixos/configuration.nix, but I'm not properly understanding the relationship between that file and nix-env yet
simukis has joined #nixos
<vanschelven> e.g. I just did a nix-env -iA nixos.vim
roconnor has joined #nixos
iyzsong has quit [(Quit: bye.)]
<vanschelven> as root <- no idea if that's recommended or anti-practice
<vanschelven> should I have rather edited the global configuration.nix? if so, what is the equivalent equivalent way of doing the same in the global configuration.nix ?
<vanschelven> I feel a bit like an idiot asking these questions; the documentation in itself is quite clear, but the thing I'm missing is the "this is how it's done in the NixOs world" document; perhaps it exists, if so please point it out!
<grahamc> :) probably better to put nix in your environment.systemPackages
roconnor_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/vHhnB
<NixOS_GitHub> nixpkgs/master af4056f Domen Kožar: chromium: apply patch to fix chromecast
NixOS_GitHub has left #nixos []
roconnor has quit [(Ping timeout: 246 seconds)]
Ross has quit [(Quit: ZNC - http://znc.in)]
newhoggy has joined #nixos
Ross has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #26667: catch: 1.7.0 -> 1.9.5 (master...upd.catch) https://git.io/vHhnR
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar pushed 1 new commit to release-17.03: https://git.io/vHhnw
<NixOS_GitHub> nixpkgs/release-17.03 df7d0bc Domen Kožar: chromium: apply patch to fix chromecast...
NixOS_GitHub has left #nixos []
<vanschelven> stuff like user-administration of the system, is that also covered by nixos?
<vanschelven> i.e. should I destroy the demo user in a special nix-like way, replacing it with a user bearing my name?
<grahamc> yeah, edit the configuration.nix
<vanschelven> or is that the usual userdel/useradd command
<grahamc> see also man configuration.nix
<vanschelven> I don't see the demo user there though... am I missing something?
monaderror has quit [(Remote host closed the connection)]
<vanschelven> is it implied in the import?
abcrawf has quit [(Ping timeout: 255 seconds)]
<grahamc> hmm I believe so yes
<grahamc> I'd just add your own user on top
<vanschelven> hmmm I will read the friendly manual first, I am now seeing I've read a bit carelessly... thanks!
luigy has quit [(Ping timeout: 268 seconds)]
threshold has quit [(Ping timeout: 246 seconds)]
zombified has quit [(Ping timeout: 258 seconds)]
CodingWithClass has quit [(Ping timeout: 260 seconds)]
newhoggy has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
phI||Ip has quit [(Ping timeout: 268 seconds)]
CodingWithClass has joined #nixos
luigy has joined #nixos
jgertm has joined #nixos
<MichaelRaskin> grahamc: have you noticed the gnuplot script?
newhoggy has quit [(Ping timeout: 240 seconds)]
phI||Ip has joined #nixos
zombified has joined #nixos
<turion> How do I find out what values an option in the config accepts? E.g. what can I plug in for "services.xserver.xkbVariant"?
turion has left #nixos []
abcrawf has joined #nixos
turion has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gleber opened pull request #26668: WIP: erlang: refactor: build packages per Erlang/OTP version. (master...fixpoint-erlang-packages) https://git.io/vHhcs
NixOS_GitHub has left #nixos []
newhoggy has joined #nixos
<grahamc> I did, thank you -- I've saved it and will experiment :) thank you!
<MichaelRaskin> turion: I think nixos-option is the command to ask about options
<gleber_> LnL: Ankhers: yurrriq: ericbmerritt_: please take a look at https://git.io/vHhcs and give me your feedback :)
<vanschelven> /etc/nixos/configuration.nix is read only (for all users); is this the expected situation or did it somehow get into a funny state?
threshold has joined #nixos
lorilan has quit [(Quit: Leaving)]
<turion> MichaelRaskin: Yes, that command helpful, but it doesn't give me a list of valid options or so
<turion> Probably I have to look at its implementation..?
<MichaelRaskin> The list is usually effectively infinite
<MichaelRaskin> For xkbVariant you basically have a few for every layout
<turion> vanschelven: Isn't that editable by root only usually?
<turion> Oh ok, so every string is valid for nix, and it's xserver who has to deal with the values?
[0x4A6F] has quit [(Remote host closed the connection)]
<MichaelRaskin> Yes
newhoggy has quit [(Ping timeout: 260 seconds)]
grahamc is now known as gchristensen
<vanschelven> it's permissions are "r r r" for me; with an override it's editable by root but it seems weird to me that it's not writable by default
<turion> vanschelven: mine is editable by root and readonly for everyone else (and I've installed the system just a day ago, so it's quite pristine)
<vanschelven> hmkay I'll just make it writable then
<turion> vanschelven, who owns your configuration.nix?
<vanschelven> root owns it
<vanschelven> and I'm editing as root too
<turion> hm ok, weird... well, I think most other people on this channel are more knowledgeable on this than I ;)
<vanschelven> for now I'll risk it :-)
newhoggy has joined #nixos
<turion> MichaelRaskin: ah good. Given that I know how to use a text editor and git, how likely is it that I can extend the description to include a link to the coresponding xserver docs and send a PR?
<MichaelRaskin> I am not sure there is a comprehensive description anywhere in X docs…
<MichaelRaskin> Editing description is simple
markus1209 has quit [(Ping timeout: 240 seconds)]
markus1189 has quit [(Ping timeout: 260 seconds)]
<turion> MichaelRaskin, ok I'll have a look, thanks :)
<vanschelven> so I'm following the instructions as provided here: https://nixos.org/nixos/manual/#sec-instaling-virtualbox-guest
<vanschelven> which runs into "the unique option boot.loader.grub.device" is defined multiple times
newhoggy has quit [(Ping timeout: 240 seconds)]
<vanschelven> I'm understanding this as "magical nix package associated with the virtualbox install already defines it"; should I use a specific syntax to override definitions from imported packages?
<vanschelven> and more generally: is it wise to try to "undress" the VirtualBox demo, or is it easier to learn Nix by starting with a very slim version of it?
nh2 has quit [(Quit: Leaving.)]
taktoa has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
DanC has joined #nixos
<DanC> does `godoc` work for anyone else? /nix/store/38cqvrf2pns07pzqi0sim4l0hn01j14y-go-1.8.1/bin has only go and gofmt
markus1189 has joined #nixos
markus1199 has joined #nixos
<DanC> I see #3930 "When go-1.3 is installed, cannot use godoc" closed as if it's fixed,but it doesn't seem to be fixed.
newhoggy has quit [(Ping timeout: 246 seconds)]
newhoggy has joined #nixos
nh2 has joined #nixos
JagaJaga has joined #nixos
<endformationage> Are there any ponyc users? I'm looking to confirm possible problem with Pony's garbage collection hanging under NixOS.
k0001 has joined #nixos
Gravious has joined #nixos
Ross has quit [(Quit: ZNC - http://znc.in)]
<yurrriq> gleber_: Will do today. Thanks!
<Gravious> hi
<Gravious> how does one go about trying to install a setuid program in nix?
newhoggy has quit [(Ping timeout: 255 seconds)]
nh2 has quit [(Client Quit)]
<dash> Gravious: which one?
ryanartecona has joined #nixos
<Gravious> dash: this is a sandbox program called supple
<Gravious> dash: i am trying to package it for nix
<Gravious> dash: but it fails to install cause it can't set suid permissions on the binary
turion has quit [(Remote host closed the connection)]
<dash> Gravious: sure. pastebin your nix expr?
<Gravious> dash: shall do
Ross has joined #nixos
turion has joined #nixos
newhoggy has joined #nixos
<turion> Yay, I managed to configure my keyboard layout in X :) I'll send a PR to the manual
arjen-jonathan has joined #nixos
newhoggy has quit [(Ping timeout: 255 seconds)]
bohan_ is now known as bohan
nh2 has joined #nixos
newhoggy has joined #nixos
<Gravious> "Note that possible setuid and setgid bits are cleared. Setuid and setgid programs are not currently supported by Nix. This is because the Nix archives used in deployment have no concept of ownership information, and because it makes the build result dependent on the user performing the build."
m0rphism has quit [(Quit: WeeChat 1.8)]
<dash> Gravious: right. But!
<Gravious> this raises the question how does nix handle setuid programs such as passwd and the like
<dash> Gravious: nixos modules can make things setuid
nh2 has quit [(Client Quit)]
<MichaelRaskin> And Nix doesn't
<Ankhers> gleber_: Does that actually change anything? nix-review claims nothing changed.
<dash> yeah. it's treated as an OS config issue rather than a per-package issue
<gleber_> Ankhers: it does not change anything among top-level packages, but it does introduce many packages, which are not "exported"
<gleber_> Ankhers: that's also one thing that I'd like to get feedback on. Is this really useful to have such "non-exported" packages defined at all? Should they be "exported"? Does this apply to only binaries, or to libraries too?
newhoggy has quit [(Ping timeout: 240 seconds)]
<Ankhers> gleber_: Oh okay. I will take a look at the changes. I am not sure I will be able to say how useful something like this would be though.
newhoggy has joined #nixos
<gchristensen> `tested` passed. finally. next battle: nix on darwin. :( time for some R&R.
equalunique has joined #nixos
<equalunique> Anyone getting "error: unable to download 'http://mirror.easyname.at/nongnu/acl/acl-2.2.52.src.tar.gz' Couldn't resolve host name (6)" while attempting a fresh install of NixOS?
newhoggy has quit [(Ping timeout: 240 seconds)]
<Gravious> dash: ok, i have no idea what nix modules are
<Gravious> i will do some reading
primeos has quit [(Ping timeout: 258 seconds)]
<Gravious> The NixOS wiki has been shut down. ;.;
primeos has joined #nixos
newhoggy has joined #nixos
<equalunique> Nevermind, I simply didn't have networking configured XD
<turion> Gravious, there is a section about modules in the manual
<stanibanani1> is there a way to build the configuration and test it in a shell?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] leenaars opened pull request #26669: qstopmotion: init -> 2.3.2 (master...qstopmotion2) https://git.io/vHhWl
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lverns opened pull request #26670: libreoffice: fix #25831 (master...libreoffice-fix-xdg) https://git.io/vHhW4
NixOS_GitHub has left #nixos []
<Gravious> turion: cool i will look there
<Gravious> turion: might also look at the nix expression for sudo
<Gravious> since that should be setuid
newhoggy has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 3 new commits to master: https://git.io/vHhWM
<NixOS_GitHub> nixpkgs/master c973a4a Franz Pletz: linux: 4.11.5 -> 4.11.6
<NixOS_GitHub> nixpkgs/master a470aa0 Franz Pletz: linux: 4.4.72 -> 4.4.73
<NixOS_GitHub> nixpkgs/master bbb9182 Franz Pletz: linux: 4.9.32 -> 4.9.33
NixOS_GitHub has left #nixos []
newhoggy has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 3 new commits to release-17.03: https://git.io/vHhWS
<NixOS_GitHub> nixpkgs/release-17.03 d5ac9b0 Franz Pletz: linux: 4.11.5 -> 4.11.6...
<NixOS_GitHub> nixpkgs/release-17.03 b2e0946 Franz Pletz: linux: 4.4.72 -> 4.4.73...
<NixOS_GitHub> nixpkgs/release-17.03 d1fce4f Franz Pletz: linux: 4.9.32 -> 4.9.33...
NixOS_GitHub has left #nixos []
moet has joined #nixos
Tarinaky has quit [(Read error: Connection reset by peer)]
zarel has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 3 new commits to master: https://git.io/vHhWF
<NixOS_GitHub> nixpkgs/master d6e9468 Franz Pletz: atlassian-confluence: 6.1.1 -> 6.2.2
<NixOS_GitHub> nixpkgs/master c0a582f Franz Pletz: atlassian-crowd: 2.11.1 -> 2.12.0
<NixOS_GitHub> nixpkgs/master aa06a6e Franz Pletz: atlassian-jira: 7.3.4 -> 7.3.7
NixOS_GitHub has left #nixos []
newhoggy has quit [(Ping timeout: 255 seconds)]
<pikajude> is there a nixy way to do something like docker-compose where you build and run a handful of VMs all at the same time
<dash> pikajude: write a function
<pikajude> i want to be able to get a brand new postgres instance on demand
<pikajude> i've written a function or two in my time
<pikajude> but
<dash> ;)
<pikajude> not sure such a thing has been scripted yet
<pikajude> i know how to build individual docker images
<pikajude> idk if anything has been done for orchestration
<turion> Am I somehow using xsel incorrectly if I expect the following: I run "cat somefile.txt | xsel" and then I should be able to paste the file contents to a browser window
<dash> pikajude: you specifically want to do this with docker rather than e.g. nixos-container?
<pikajude> dash: well i'm not on nixos
<pikajude> so, yes
<pikajude> turion: i thought you used xclip for that
<pikajude> what does xsel do
<dash> pikajude: ah, ok that's a more complicated problem then
<pikajude> indeed :o
<dash> pikajude: i recommend using docker-compose instead
<pikajude> oh ok
<turion> pikajude: Oh! Must have been a hash collision in my /brain/store then ;) thanks
<pikajude> but i wanna build the docker image using nix
<dash> pikajude: sure
<pikajude> but then you have to specify like
<pikajude> the hash
<pikajude> in the yml file
<pikajude> at least i think you do
<dash> you can also build using nix and push to a repo
<dash> then pull from it in your docker-compose config.
<pikajude> right
<pikajude> well since i already use nixops for deployment, maybe just build and run a virtualbox instead
newhoggy has joined #nixos
<turion> pikajude: In case you're interested, "xsel -b" does the desired thing!
<pikajude> neat
<turion> (xsel has different clipboards, and the one addressed with -b is the one that graphical apps share)
newhoggy has quit [(Ping timeout: 240 seconds)]
JagaJaga has quit [(Ping timeout: 255 seconds)]
newhoggy has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/0d4431cfe9 (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
moet has quit [(Ping timeout: 258 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vHhlz
<NixOS_GitHub> nixpkgs/master 4e8d44c Franz Pletz: feh: build and install man pages
NixOS_GitHub has left #nixos []
ryantrinkle has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
proteusguy has quit [(Ping timeout: 260 seconds)]
proteusguy has joined #nixos
newhoggy has joined #nixos
turion has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vHhlN
<NixOS_GitHub> nixpkgs/master 16118fe Laverne Schrock: libreoffice: fix #25831...
<NixOS_GitHub> nixpkgs/master fd92d81 Michael Raskin: Merge pull request #26670 from lverns/libreoffice-fix-xdg...
NixOS_GitHub has left #nixos []
<gchristensen> :o :o :o nixos-unstable advanced
ryanartecona has quit [(Quit: ryanartecona)]
newhoggy has quit [(Ping timeout: 255 seconds)]
Tarinaky has joined #nixos
mizu_no_oto has joined #nixos
arjen-jonathan has quit [(Ping timeout: 255 seconds)]
mudri has joined #nixos
tanonym has joined #nixos
newhoggy has joined #nixos
<tanonym> Palemoon seems to be missing menu entry in nixos. This is with E21.7 and doesn't appear in the menu even after a restart or relogin.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dywedir opened pull request #26672: nodePackages.javascript-typescript-langserver: init at 2.0.0 (master...javascript-typescript-langserver) https://git.io/vHh8G
NixOS_GitHub has left #nixos []
turion has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
stallion has joined #nixos
newhoggy has joined #nixos
bgamari has quit [(Ping timeout: 246 seconds)]
newhoggy has quit [(Ping timeout: 240 seconds)]
jake_ has joined #nixos
vanschelven has quit [(Ping timeout: 260 seconds)]
newhoggy has joined #nixos
bgamari has joined #nixos
<turion> Is there a magical setting that allows me to turn on tab completion for *all* applications?
<turion> (Like the USE flag in Gentoo)
newhoggy has quit [(Ping timeout: 246 seconds)]
alphor has quit [(Quit: Bye!)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
alphor has joined #nixos
alphor has quit [(Remote host closed the connection)]
alphor has joined #nixos
newhoggy has joined #nixos
tanonym has quit [(Quit: ircII EPIC5-2.0.1 -- Are we there yet?)]
moet has joined #nixos
mizu_no_oto has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
Isorkin has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
<catern> hey #nixos, is there a quick single command to, start building a derivation, grab its sources and make them available, do everything up to invoking the builder... and then invoke a shell instead of the builder so I can poke around?
<catern> it would be kind of like apt-get source
<LnL> nix-shell '<nixpkgs>' -A hello; unpackPhase; cd $sourceRoot
Isorkin has joined #nixos
newhoggy has quit [(Ping timeout: 257 seconds)]
<LnL> you can also run the rest of the build interactively like that
moet has quit [(Ping timeout: 246 seconds)]
michalrus has quit [(Excess Flood)]
k0001 has quit [(Quit: quit)]
michalrus has joined #nixos
newhoggy has joined #nixos
amir_ has joined #nixos
<catern> oh
<catern> huh
amir has quit [(Remote host closed the connection)]
<catern> neat, thanks
<catern> another question: Eelco's thesis says that multiple outputs from a derivation is impossible with the extensional store, and you need an intensional store.
<catern> yet Nix currently has an extensional store, right? and it has multiple outputs? how??
newhoggy has quit [(Ping timeout: 260 seconds)]
lambdael has joined #nixos
alphor has quit [(Quit: Bye!)]
newhoggy has joined #nixos
alphor has joined #nixos
newhoggy has quit [(Ping timeout: 260 seconds)]
alphor has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] basvandijk opened pull request #26673: opencv-3.x: fix build on OS X (master...fix-opencv-contrib-osx) https://git.io/vHh4d
NixOS_GitHub has left #nixos []
eacameron has quit [(Remote host closed the connection)]
alphor has joined #nixos
newhoggy has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
alphor has quit [(Client Quit)]
marsel has joined #nixos
adamCS_ has joined #nixos
adamCS_ is now known as adamCS
<jake_> is there a service that updates resolv.conf and how do i disable it?
reinzelmann has joined #nixos
newhoggy has quit [(Ping timeout: 260 seconds)]
<ison111> Is there any way to get extra modules into python without having to use nix-shell? (I can't use it because the package is calling python directly as the interpreter for my script) I suppose I could import modules directly from the path in the nix store but then the paths might change, so is there any better way to do it?
<catern> ison111: "the package is calling python directly" what package? do you mean some external software not available through nixpkgs? just to be clear
<ison111> catern: No, it's the mod_wsgi module for apache
<catern> ison111: and by directly, do you mean it's calling /usr/bin/python?
mudri has quit [(Ping timeout: 255 seconds)]
<catern> if it's looking up python on the PATH, you can use nix-shell
<catern> or whatever mechanism
<ison111> catern: It's packaged for nix so I'm assuming it's either calling it from the nix store or /usr/bin/env python
newhoggy has joined #nixos
<catern> hmm, i'm pretty new to Nix so I don't know the answer to your problem
<catern> I guess the Nix-y way to do it would be to have a Apache wrapper derivation which specifies the Python binary to use, which you can then point at a Python wrapper which specifies the modules to import
<catern> you might check if such a thing works?
<catern> alternatively if it's using /usr/bin/env python then
eacameron has joined #nixos
<catern> you can install the wrapper that I mentioned ("a Python wrapper which specifies the modules to import") directly with nix-env -i? perhaps?
<catern> (or make it available through nix-shell)
ryanartecona has joined #nixos
<catern> you might check if an Apache wrapper already exists, I mean. I don't think you would be expected to write it yourself :)
newhoggy has quit [(Ping timeout: 240 seconds)]
reinzelmann has quit [(Quit: Leaving)]
<MichaelRaskin> For forbidding resolv.conf updates, I recommend chattr +i
<catern> haha
<LnL> lol
lambdael has quit [(Quit: WeeChat 1.7.1)]
<ison111> catern: Hmm, there is a services.httpd.extraModules option. It's for httpd modules I guess, but I wonder if I can use it to include pythong modules?
newhoggy has joined #nixos
lambdael has joined #nixos
Isorkin has quit [(Ping timeout: 258 seconds)]
<catern> I have absolutely no idea, I'm only guessing based on Dolstra's thesis :)
alphor has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
newhoggy has quit [(Ping timeout: 240 seconds)]
FRidh has joined #nixos
<FRidh> ison111: python.withPackages ? Or simply using PYTHONPATH?
newhoggy has joined #nixos
mudri has joined #nixos
turion has quit [(Ping timeout: 240 seconds)]
newhoggy has quit [(Ping timeout: 255 seconds)]
newhoggy has joined #nixos
puffnfresh_ has joined #nixos
puffnfresh_ is now known as puffnfresh
chris| has joined #nixos
pbogdan has quit [(Ping timeout: 240 seconds)]
jbgi has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
<ison111> On second thought I might just try nginx instead. uwsgi looks like it has more configuration possibilities in nix than mod_wsgi
pbogdan has joined #nixos
turion has joined #nixos
newhoggy has joined #nixos
peacememories has joined #nixos
FRidh has quit [(Ping timeout: 255 seconds)]
FRidh has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
alphor has quit [(Ping timeout: 255 seconds)]
SvenDowideit has quit [(Remote host closed the connection)]
magnetophon1 has quit [(Ping timeout: 240 seconds)]
SvenDowideit has joined #nixos
SvenDowideit is now known as Guest25455
sigmundv has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
nslqqq has quit [(Ping timeout: 268 seconds)]
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
tilpner has joined #nixos
<jake_> clever: i've managed to fix all the errors but one
<jake_> clever: /nix/var/nix/profiles/system/init: line 118: /dev/fd/62: No such file or directory
mizu_no_oto has joined #nixos
simendsjo has joined #nixos
alphor has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] kirelagin opened pull request #26675: bind: Use rndc to control the daemon (master...bind-rndc) https://git.io/vHh0y
NixOS_GitHub has left #nixos []
newhoggy has quit [(Ping timeout: 240 seconds)]
nslqqq has joined #nixos
markus1199 has quit [(Ping timeout: 240 seconds)]
markus1199 has joined #nixos
peacememories has joined #nixos
alphor has quit [(Client Quit)]
newhoggy has joined #nixos
alphor has joined #nixos
peacememories has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 opened pull request #26676: ghcHEAD: Split docs into their own output (master...ghc-head-doc) https://git.io/vHhE3
NixOS_GitHub has left #nixos []
newhoggy has quit [(Ping timeout: 255 seconds)]
justbeingglad has joined #nixos
justbeingglad has left #nixos []
newhoggy has joined #nixos
alphor has quit [(Quit: Bye!)]
alphor has joined #nixos
peacememories has joined #nixos
jbgi has quit [(Ping timeout: 240 seconds)]
newhoggy has quit [(Ping timeout: 260 seconds)]
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
newhoggy has joined #nixos
peacememories has joined #nixos
alphor has quit [(Quit: Bye!)]
alphor has joined #nixos
eacameron has quit [(Remote host closed the connection)]
newhoggy has quit [(Ping timeout: 240 seconds)]
m0rphism has joined #nixos
newhoggy has joined #nixos
jbgi has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
newhoggy has quit [(Ping timeout: 240 seconds)]
<ertes> i have a bunch of disks, each of which may or may not be present at boot time, and they have the same LUKS password… is there a way to cryptsetup-open all the ones that are present and ignore the ones that aren't?
<ertes> without complaining
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] turion opened pull request #26677: Manual: Add paragraph on xserver keyboard layout (master...master) https://git.io/vHhzJ
NixOS_GitHub has left #nixos []
newhoggy has joined #nixos
magnetophon1 has joined #nixos
turion has quit [(Ping timeout: 246 seconds)]
newhoggy has quit [(Ping timeout: 240 seconds)]
amir_ is now known as amir
sigmundv has joined #nixos
sigmundv has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vHhzz
<NixOS_GitHub> nixpkgs/master 858c47c Manuel Bärenz: Manual: Add paragraph on xserver keyboard layout
<NixOS_GitHub> nixpkgs/master 243217f Michael Raskin: Merge pull request #26677 from turion/master...
NixOS_GitHub has left #nixos []
newhoggy has joined #nixos
nh2 has joined #nixos
sigmundv has joined #nixos
newhoggy has quit [(Ping timeout: 260 seconds)]
sigmundv has quit [(Ping timeout: 240 seconds)]
<clever> jake_: just dup over the symlink at /dev/fd
civodul has joined #nixos
<jake_> clever: what exactly do you mean?
<clever> lrwxrwxrwx 1 root root 13 Jan 26 00:18 /dev/fd -> /proc/self/fd
newhoggy has joined #nixos
<clever> jake_: you need this symlink inside the chroot
sigmundv has joined #nixos
<jake_> clever: ohhh
<jake_> clever: okay
<jake_> clever: i'm going to make a pull request in a few
<clever> sure
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus closed pull request #26644: gradle: 3.5 -> 4.0 (master...gradle_4_0) https://git.io/vHxW8
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to staging: https://git.io/vHhgO
<NixOS_GitHub> nixpkgs/staging 9560fcb Tim Steinbach: curl: 7.54.0 -> 7.54.1
<NixOS_GitHub> nixpkgs/staging a81e1fc Tim Steinbach: Merge pull request #26641 from NeQuissimus/staging_curl_7_54_1...
NixOS_GitHub has left #nixos []
sigmundv has quit [(Remote host closed the connection)]
stanibanani1 has left #nixos []
newhoggy has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 2 new commits to master: https://git.io/vHhgG
<NixOS_GitHub> nixpkgs/master dd99d1f John Ericson: ghcHEAD: Split docs into their own output...
<NixOS_GitHub> nixpkgs/master 10493d3 Peter Simons: Merge pull request #26676 from obsidiansystems/ghc-head-doc...
NixOS_GitHub has left #nixos []
yenzenz has quit [(Ping timeout: 255 seconds)]
sigmundv has joined #nixos
Filystyn has quit [(Remote host closed the connection)]
<DanC> endformationage, I'm an occasional ponyc user
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vHhgR
<NixOS_GitHub> nixpkgs/staging 351b59b Vladimír Čunát: cairo: bugfix 1.14.8 -> 1.14.10
NixOS_GitHub has left #nixos []
newhoggy has joined #nixos
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
peacememories has joined #nixos
newhoggy has quit [(Ping timeout: 255 seconds)]
<jake_> clever: sidenote: is there a way to reduce the verbosity during the build?
newhoggy has joined #nixos
zarel has quit [(Quit: Leaving)]
<clever> jake_: -Q
<clever> i almost always build with -Q -j8, and then re-build with -j1 to see the error
newhoggy has quit [(Ping timeout: 260 seconds)]
pie_ has quit [(Read error: Connection reset by peer)]
newhoggy has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jbaum98 opened pull request #26678: gnutls: Fix broken darwin build (master...gnutls-darwin) https://git.io/vHh2P
NixOS_GitHub has left #nixos []
eacameron has joined #nixos
newhoggy has quit [(Ping timeout: 260 seconds)]
<jake_> clever: i'm still confused on how to fix this fd error
stanibanani has joined #nixos
newhoggy has joined #nixos
<jake_> clever: oh wait maybe i have it
stallion has quit [(Quit: stallion)]
eacameron has quit [(Ping timeout: 268 seconds)]
<jake_> clever: no wait here. in init it writes to /proc/self/fd/$logOutFd and that's where the error is
<jake_> clever: line 118
<jake_> clever: or it's reading from it
<clever> jake_: oh, i have a thought, let me double-check
pie_ has joined #nixos
pie_ has quit [(Changing host)]
pie_ has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
<clever> jake_: strange, the source i can find says its 8 and 9, not 62
newhoggy has joined #nixos
<jake_> clever: i made my pull request
<jake_> clever: where are logOutFd and logErrFd set
<jake_> clever: if stage 1 isn't run
<clever> /home/clever/apps/nixpkgs/nixos/modules/system/boot/stage-1-init.sh:logOutFd=8 && logErrFd=9
<clever> good question
<clever> i cant find them being set anywhere
<clever> inserting calls to env would help track it down
<clever> since its a copy of the store, is much safer to bend the rules and just edit stage-2 after you untar
<jake_> clever: and either way should it matter?doesnt' 116 set them up to work, whatever they are
<clever> yeah, 116 should set them up, as long as /dev/fd exists
newhoggy has quit [(Ping timeout: 240 seconds)]
<clever> jake_: i believe that if kmsg is created as a character device, the guest can write to the real dmesg buffer
<clever> on the real containers, its just an ordinary file, and the logs go there to die
<jake_> clever: oh okay. my mistake
<clever> either way works
<jake_> clever: i was trying to fix this problem but it didn't work
<jake_> clever: i think we probalby want it not to be able to write to the real dmesg logs
<jake_> clever: can you make a change to my pr or do i ahve to do it
<clever> you can do it more easily
<clever> edit the file, git add, git commit --amend, git push --force
alx741 has joined #nixos
<jake_> clever: okay sounds good. i put an env on the line before the tee call and they stilla ren't set
newhoggy has joined #nixos
<clever> i also just noticed a minor bug you can fix
<clever> container-helper.nix has to be copied to /etc/nixos/
frankpf has joined #nixos
<jake_> clever: okay i pushed again
arianvp2 has quit [(Ping timeout: 240 seconds)]
<clever> + cp ${./configuration.nix} /etc/nixos/container-helper.nix
<clever> typo!
newhoggy has quit [(Ping timeout: 240 seconds)]
Itkovian has joined #nixos
Infinisil has joined #nixos
<clever> jake_: when i get back from a grocery run, i can merge the PR
<jake_> clever: oops my bad. okay sounds good.
simendsjo has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
<jake_> clever: turns out logOutFd and logErrFd aren't set until the exec line
<jake_> clever: and they're not 62, theyre 10 and 11
Gravious has left #nixos []
stanibanani has left #nixos []
<Infinisil> Hey, on a rebuild, I frequently get the errors "unknown ssl protocol error in connection to cache.nixos.org", ".../bin/xz: file format not recognized" and "error unexpected EOF"
<Infinisil> But just trying it again resolves the issue, sometimes I have to try it multiple times
stanibanani1 has joined #nixos
<Infinisil> Anybody seen that before and knows what the problem is?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] selaux closed pull request #26590: rustRegistry: 2017-05-31 -> 2017-06-15 (master...update-rust-registry) https://git.io/vHb6g
NixOS_GitHub has left #nixos []
newhoggy has quit [(Ping timeout: 260 seconds)]
stanibanani1 has left #nixos []
<jake_> clever: okay it seems that exec {logOutFd}>&1 {logErrFd}>&2 sets logOutFd and logErrFd to two available file descriptors that correspond to stdout and stderr
<jake_> clever: i don't really know why though
newhoggy has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
snikkers has joined #nixos
sigmundv has quit [(Quit: Leaving)]
<Infinisil> Ohh, firefox 54 is there on unstable, nic
Mateon3 has joined #nixos
FRidh has quit [(Quit: Konversation terminated!)]
newhoggy has joined #nixos
Mateon1 has quit [(Ping timeout: 268 seconds)]
Mateon3 is now known as Mateon1
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
newhoggy has quit [(Ping timeout: 260 seconds)]
jgertm has quit [(Ping timeout: 255 seconds)]
Guest12303 has quit [(Quit: Lost terminal)]
sigmundv has joined #nixos
newhoggy has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
kiloreux has quit [(Ping timeout: 240 seconds)]
pie_ has quit [(Ping timeout: 240 seconds)]
<jake_> clever: another next step, can we make it update the system without redoing the entire tarball thing?
jbgi has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
<clever> jake_: nixos-rebuild should work inside the container
Isorkin has joined #nixos
<clever> jake_: and all the stores closed 3 minutes before i started helping you today, lol
<jake_> clever: ahh if i just change configuration.nix or container-helper.nix
<jake_> clever: haha sorry
<clever> yeah, just change the copy it made on boot, and nixos-rebuild
newhoggy has quit [(Ping timeout: 260 seconds)]
Isorkin has quit [(Ping timeout: 268 seconds)]
mellowmaroon has joined #nixos
eacameron has joined #nixos
Isorkin has joined #nixos
eacameron has quit [(Read error: Connection reset by peer)]
kiloreux has joined #nixos
newhoggy has joined #nixos
<mellowmaroon> What's the difference betweeen running nix-shell with things, versus creating an environmet?
pie_ has joined #nixos
eacameron has joined #nixos
<mellowmaroon> That is, nix-shell vs buildEnv
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
hiratara has quit [(Ping timeout: 246 seconds)]
newhoggy has quit [(Ping timeout: 246 seconds)]
eacamero_ has joined #nixos
<mellowmaroon> never mind, found a github discussion about it here: https://github.com/NixOS/nixpkgs/issues/18315
eacameron has quit [(Ping timeout: 246 seconds)]
hiratara has joined #nixos
<mellowmaroon> and myEnvFun was what I meant originally. So nix-shell sounds like the way to go
<jake_> clever: so the only thing we have left is to figure out thsi fd thing
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
newhoggy has joined #nixos
ryantrinkle has quit [(Ping timeout: 240 seconds)]
eacamero_ has quit [(Ping timeout: 240 seconds)]
<Infinisil> jake_: What is your discussion about if I may ask?
Wizek__ has quit [(Ping timeout: 260 seconds)]
newhoggy has quit [(Ping timeout: 255 seconds)]
hellrazo1 has quit [(Ping timeout: 246 seconds)]
ison111 has quit [(Quit: WeeChat 1.7.1)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/10493d393a (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
mellowmaroon has quit [(Quit: Leaving)]
nix-gsc-io`bot has quit [(Client Quit)]
newhoggy has joined #nixos
frankpf has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] nyarly opened pull request #26679: Working Cockroach v1.0.2 (master...cockroach1) https://git.io/vHhoT
NixOS_GitHub has left #nixos []
jake_ has quit [(Ping timeout: 240 seconds)]
newhoggy has quit [(Ping timeout: 260 seconds)]
marsel has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
frankpf has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] nyarly closed pull request #26679: Working Cockroach v1.0.2 (master...cockroach1) https://git.io/vHhoT
NixOS_GitHub has left #nixos []
newhoggy has joined #nixos
justanotheruser has quit [(Quit: WeeChat 1.7.1)]
newhoggy has quit [(Ping timeout: 268 seconds)]
justanotheruser has joined #nixos
mellowmaroon has joined #nixos
justanotheruser has quit [(Client Quit)]
<mellowmaroon> Where does NixOS look for C++ headers? I'm trying to compile a simple OpenGL example, and it can't find freeglut
justanotheruser has joined #nixos
newhoggy has joined #nixos
<sphalerite> tl;dr: compile stuff in nix-shell. For your case, you'd probably want nix-shell -p freeglut gcc
<MichaelRaskin> sphalerite: did you assemble a usage-tracking GC-root-creating script?
<sphalerite> potentially also pkgconfig or cmake or whatever
<mellowmaroon> sphalerite: I tried nix-shell -p freeglut
<sphalerite> MichaelRaskin: Would it surprise you to hear that the answer is no? ;)
<sphalerite> mellowmaroon: how are you compiling it?
<MichaelRaskin> Unfortunately no
hiratara has quit [(Remote host closed the connection)]
<mellowmaroon> sphalerite: g++ main.cpp -lglut
<mellowmaroon> sphalerite: and it says "GL/gl.h: No such file/dir"
hiratara has joined #nixos
<sphalerite> Oh right so you're not missing freeglut, you're missing OpenGL
<sphalerite> If you're on linux, add mesa to the environment
<mellowmaroon> sphalerite: oh...oops. So i need to add `mesa`
<sphalerite> if you're on OSX it's weird
<sphalerite> yeah
<mellowmaroon> sphalerite: right. Let me try it
<mellowmaroon> sphalerite: yep, that worked :) thank you so much
newhoggy has quit [(Ping timeout: 240 seconds)]
<sphalerite> no worries!
<mellowmaroon> sphalerite: I have another quick question, if you don't mind
<sphalerite> go ahead
<mellowmaroon> sphalerite: buildEnv isn't deprecated, isn't it? I'm trying to automate `nix-shell` things a bit
<sphalerite> I don't think it is. But depending on what you're working on it may well not be what you want
<sphalerite> if you're working on a specific piece of software it's more likely you'll want to create a nix expression for that
<mellowmaroon> sphalerite: and I've read disparate things on nix-shell, buildEnv, and myEnvFun. I don't really understand the differences well
newhoggy has joined #nixos
<mellowmaroon> sphalerite: Ah ok
zeus_ has joined #nixos
zeus__ has joined #nixos
<mellowmaroon> sphalerite: That's probably easiest anyway. Is there a way to have per-project nix files to inherit from a global-ish defaults?
phinxy has quit [(Quit: Leaving)]
<sphalerite> Yes, just write a base expression and override it
<sphalerite> Or you can write a function for it
<mellowmaroon> sphalerite: um...what's the difference between expression/function/derivation?
<sphalerite> "expression" is anything you can express in nix
<mellowmaroon> sphalerite: Alternately, if you know of any examples on github, that might be easier for me to pick up on
<sphalerite> function is something that transforms one thing into another
<sphalerite> derivation is some magic I still haven't understood well enough to explain :p
<sphalerite> The nix pills series is very good for introducing this stuff https://lethalman.blogspot.co.uk/search/label/nixpills
<mellowmaroon> sphalerite: that's no problem haha. And perfect, thanks again!
newhoggy has quit [(Ping timeout: 240 seconds)]
zeus_ has quit [(Ping timeout: 246 seconds)]
<sphalerite> TIL zsh variables are case-insensitive. Resulted in great confusion when I wrote a loop that read the "path" variable
jake_ has joined #nixos
newhoggy has joined #nixos
<mellowmaroon> how strange. There may be an option to toggle it
<dash> sphalerite: nope, $path and $PATH are different
<dash> 'path' is a zsh array.
<sphalerite> oh
<LnL> eh? don't think it's case insensitive
<LnL> that would be pretty problematic :)
<Infinisil> jake_: What is your discussion about if I may ask?
<sphalerite> bourne-like shells are generally pretty problematic :p
<dash> more languages than you think are case-insensitive
<Infinisil> (forget that, i pressed up)
<Infinisil> I just tried it, it's case sensitive for me
<sphalerite> yeah I presume it's what dash said and not as I thought
<dash> try 'FOO=1 echo $foo' for comparison
<dash> (note that 'echo $path' gets you a space separated output instead of colon separated)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rushmorem closed pull request #26658: cockroachdb: beta-20160915 -> v1.0.2 (master...cockroach) https://git.io/vHxFm
NixOS_GitHub has left #nixos []
<sphalerite> right, thanks :)
<LnL> sphalerite: yes, it's an array with the entries from $PATH
newhoggy has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor pushed 1 new commit to master: https://git.io/vHhKH
<NixOS_GitHub> nixpkgs/master b4b6982 Michiel Leenaars: qstopmotion: init -> 2.3.2
NixOS_GitHub has left #nixos []
<Infinisil> I really hate that bash scripts are the easiest to use in todays time, such an ugly language, used for so many things
<sphalerite> MichaelRaskin: so I'm just having a look at the thing now. Turns out I have quite a lot of dead paths with no referrers that I really don't care about
<Infinisil> I'd rather use Haskell or something for scripts
<sphalerite> presumably from cancelled builds or so
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor closed pull request #26669: qstopmotion: init -> 2.3.2 (master...qstopmotion2) https://git.io/vHhWl
NixOS_GitHub has left #nixos []
<sphalerite> Infinisil: agreed
<mellowmaroon> Infinisil: I remember seeing something like a scheme shell
mudri has quit [(Ping timeout: 255 seconds)]
<Infinisil> I recently had to look up how to get all arguments to the script space separated in a variable, solution is `var="${@}"`, like what the fuck
newhoggy has joined #nixos
<sphalerite> Infinisil: "$*" should also do
jake_ has quit [(Ping timeout: 240 seconds)]
<sphalerite> of course if any of the arguments have spaces in them you lose the distinction
<clever> i think "$@" handles that?
hellrazo1 has joined #nixos
frankpf has quit [(Quit: Leaving)]
<Infinisil> $@ didn't work, wait I'll test it
bennofs1 has quit [(Ping timeout: 255 seconds)]
<sphalerite> "$@" is a real black sheep because it expands to multiple words even though it's in quotes
<sphalerite> super sensible language design
<sphalerite> clever: with "$@" you get the args as separate words though, not space separated
<clever> which is usualy what you need
<sphalerite> yeah, but Infinisil wanted them space separated in a variable
<clever> ah
<sphalerite> ¯\_(ツ)_/¯
<Infinisil> Hmm, all of those seem to work, "$@", "${@}" and "$*"
simukis has quit [(Ping timeout: 255 seconds)]
leat has quit [(Ping timeout: 258 seconds)]
<Infinisil> But when I do ./script.sh Hello "there test", the var contains "Hello there test", is there some way to include the quotes?
<sphalerite> They do all work, but in different ways
newhoggy has quit [(Ping timeout: 255 seconds)]
<sphalerite> oh right you're setting a variable to that
<sphalerite> forgot about that
<sphalerite> Infinisil: var="$(printf "%q " "$@")" I think
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] nh2 opened pull request #26680: meshlab: 1.3.3 -> 2016.12 (master...meshlab-2016.12) https://git.io/vHh6G
NixOS_GitHub has left #nixos []
<sphalerite> not sure it'll use quotes, but it will escape stuff right. Maybe. Who knows, this is shell script we're talking about
<clever> lol
<Infinisil> ./test.sh Hello "there test" becomes "Hello there\ test"
<sphalerite> right, so you could pass it like that on to something else and the separation would be maintained
<MichaelRaskin> Well, at least it is not creative as some alleged real languages with finding excuses to produce random unrelated code instead of what you have written in the source
<Infinisil> For example?
<sphalerite> MichaelRaskin: C?
newhoggy has joined #nixos
<MichaelRaskin> Well, and C++ — we don't hear about it as much because there noone expected any better in the first place
<sphalerite> MichaelRaskin: Even /nix/store/y44w1zv91454n7mwm7sq3jhqv6x8kj6q-brainfuck-0.1.0.3.drv/nix/store/y44w1zv91454n7mwm7sq3jhqv6x8kj6q-brainfuck-0.1.0.3.drv is a dead path with no referrers — I have no idea how it got there, I haven't written brainfuck in 2 years and I don't think I've ever used any software written in it :
<sphalerite> :p *
markus1209 has joined #nixos
markus1219 has joined #nixos
<MichaelRaskin> Is it just about drv?
<MichaelRaskin> Because dead drvs will be there, for example, after a single test-eval-release run
<MichaelRaskin> Or nox-review
<MichaelRaskin> Or whatever
JagaJaga has joined #nixos
jgertm has joined #nixos
<sphalerite> hm so filter out drvs and locks I guess
<Infinisil> Ohh, wait a moment, regarding the preserving quotes, I tested this with echo, but echo ignores quotation marks...
newhoggy has quit [(Ping timeout: 240 seconds)]
<sphalerite> yes
<sphalerite> echo is almost never a good choice
<Infinisil> what instead? printf?
<sphalerite> printf is almost always better, simply because it's more predictable
<sphalerite> yes
markus1199 has quit [(Ping timeout: 246 seconds)]
markus1189 has quit [(Ping timeout: 240 seconds)]
ryantrinkle has joined #nixos
<sphalerite> Nothing wrong with using echo to just print some hardcoded strings but once variables become involved printf is much better
thc202 has quit [(Ping timeout: 240 seconds)]
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
<ben> When building a package, can I disable running tests during the build on the command line, or is that a property of the derivation that goes into the hash etc?
newhoggy has joined #nixos
<sphalerite> For example with echo $v there's no way to guard against the variable's contents being -n and just nothing being output
<clever> ben: that is a property that will affect the hash
<sphalerite> ben: it is a property that goes into the hash, because it's an environment variable for the builder
<ben> :(
<sphalerite> ben: you can disable it at the commandline using an override though. It's a bit of a mess and not nice to read but you can do it anyway :p
<sphalerite> https://github.com/NixOS/nixpkgs/issues/26400 this seems to be a long-term thing that will hopefully happen so eventually…
<ben> hm
<ben> the tests ended up failing
<ben> maybe i shouldnt be disabling them
<sphalerite> it depends
<ben> (trying to install terraform 0.9.6)
<sphalerite> if they're failing because they're impure, then it makes perfect sense to disable them
<ben> hard to tell
<sphalerite> is it?
<ben> all the stuff at the end of the output looks like it passed
<ben> and i overwrote the log already
newhoggy has quit [(Ping timeout: 246 seconds)]
slyfox has quit [(Ping timeout: 255 seconds)]
slyfox has joined #nixos
<Infinisil> I just recently found out that zfs isn't available on Windows.. I wanted to share all my data with it, but I guess that's not gonna happen now :(
newhoggy has joined #nixos
<sphalerite> Infinisil: a friend of mine has this crazy setup where he runs linux next to windows in a xen hypervisor. Shares stuff between them using samba
<clever> sphalerite: i have a server in the cloud running win7 to handle some legacy junk that relies on windows
<clever> sphalerite: and in the past, i have tried to get gpu passthru under xen to work, but discovered that the host must fully reboot any time the windows reboots
<Infinisil> Why couldn't windows just disappear like 10 years ago
LysergicDreams has joined #nixos
<sphalerite> MichaelRaskin: filtering out the drvs and locks, still way too much noise. Lots of .services for some reason, I don't see why those would exist and not be referred to by some system build
mellowmaroon has quit [(Quit: Leaving)]
<sphalerite> quite a lot of -doc outputs as well, I presume those are from nix-shells
newhoggy has quit [(Ping timeout: 268 seconds)]
<sphalerite> ping @ anybody with push access to patchelf: https://github.com/NixOS/patchelf/pull/123 ?
m0rphism has quit [(Quit: WeeChat 1.8)]
newhoggy has joined #nixos
Ivanych has quit [(Quit: Leaving.)]
<sphalerite> I have a couple of questions regarding nix-store --gc: firstly, what is /nix/store/trash? And secondly, why does it pause for so long after writing "deleting /nix/store/trash"?
<ben> It takes a while to take out the trash
<clever> sphalerite: it moves things from /nix/store/ to /nix/store/trash, because directory moves are atomic
<clever> then when its done, it does a normal rm -rf on trash
<sphalerite> aaaah okay
<Infinisil> Fancy
newhoggy has quit [(Ping timeout: 268 seconds)]
newhoggy has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
Ivanych has joined #nixos
MP2E has joined #nixos
<catern> how large is a full build of nixpkgs?
newhoggy has joined #nixos
<clever> catern: i heard 80gig per eval
<catern> ah
<catern> that's not so big
<catern> ez pz
newhoggy has quit [(Ping timeout: 240 seconds)]
sigmundv has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
Guest25455 is now known as SvenDowideit
SvenDowideit has quit [(Changing host)]
SvenDowideit has joined #nixos
<Infinisil> Maybe some bash wizard can help me here
<Infinisil> `mpc idleloop player` continuously outputs "player" everytime the song changes
<sphalerite> sounds like an mpd question rather than bash :p
<Infinisil> Everytime this happens I want to run the command `mpc current`, resulting in a continuous stream of current songs
<Infinisil> I need to somehow combine `mpc idleloop player` and `mpc current`, but I don't know how
newhoggy has quit [(Ping timeout: 268 seconds)]
<tilpner> Read a line from idleloop, check what event just happened, run current if appropriate
<tilpner> Not via a pipe, but a loop
<Infinisil> Hmm, okay, that's the simple way I guess
<Infinisil> Maybe there's some pipe, xargs, whatever magic though
<tilpner> Tell me if you know a better way :)
<tilpner> s/if/when/
<Infinisil> I will
newhoggy has joined #nixos
<catern> Infinisil: mpc idleloop player | while read line; do mpc current; done
snikkers has quit [(Ping timeout: 260 seconds)]
<catern> assuming it only outputs lines when the song changes, otherwise you need a grep in the middle there
<Infinisil> Yeah that works, maybe I should just use that
markus1189 has joined #nixos
markus1199 has joined #nixos