<{^_^}>
[nixpkgs] @offlinehacker opened pull request #78059 → xss-lock: add patch to allow setting session → https://git.io/JvITa
<{^_^}>
[nixpkgs] @mkg20001 opened pull request #78060 → cinnamon.cinnamon-desktop: init at 4.4.0 → https://git.io/JvITV
cosimone has quit [Ping timeout: 260 seconds]
<noonien>
can i pass an argument of type path to nix-build using -attr ?
seanparsons has quit [Ping timeout: 268 seconds]
alex`` has quit [Ping timeout: 258 seconds]
Rusty1 has joined #nixos
alexherbo2 has quit [Ping timeout: 240 seconds]
<noonien>
sorry, using --arg
eri has joined #nixos
seanparsons has joined #nixos
<infinisil>
noonien: Sure
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 272 seconds]
mbrgm_ is now known as mbrgm
<noonien>
how would i go about doing that? `--arg foo ./file` seems to try to parse a nix expression from the file
<infinisil>
noonien: That's not caused by that, it must be elsewhere in your code
fendor_ has quit [Ping timeout: 265 seconds]
b42 has quit [Ping timeout: 248 seconds]
sameerynho has quit [Ping timeout: 265 seconds]
<Valodim[m]>
what's a good way to deal with acme certificates that should be used by multiple services?
<Valodim[m]>
for instance, I want to use a cert for a domain with both nginx and postfix
<infinisil>
Valodim[m]: See security.acme.certs.<name>.allowKeysForGroup
<Valodim[m]>
so I should let all related services run under a common services group then?
<infinisil>
Valodim[m]: You can have users have auxiliary groups, see users.users.<name?>.extraGroups
<noonien>
this is my test.nix file: `{test}: (import <nixpkgs> {}).hello`, when i try to do `ix-build ./test.nix --attr test './main.go'`, i get the following: `error: syntax error, unexpected ')', at /path/to/main.go:5:11`
<noonien>
this happens no matter what i name the attr
<infinisil>
noonien: --arg
<noonien>
ARGGGGG
<noonien>
i'm dumb
<noonien>
thanks :D
<infinisil>
Nah, happens to all of us :)
<Valodim[m]>
ooh. so I can make a group "cert" and put the postfix user into that group
<Valodim[m]>
nice
<noonien>
awesome, it works! thanks!
<infinisil>
Valodim[m]: Yeah something like that should work :)
<infinisil>
noonien: :D
<Valodim[m]>
will give that a shot. thanks!
remirol is now known as lorimer
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
m0rphism has quit [Ping timeout: 268 seconds]
<Valodim[m]>
do I need to say that groups exist, or will they generally be created on demand?
<Valodim[m]>
(can't quite figure that out from the nixpkg files)
<infinisil>
You do need to declare it yourself
<Valodim[m]>
alright
<Valodim[m]>
it fixed up the group for existing certs, but not the chmod :(
cyraxjoe has quit [Quit: No Ping reply in 180 seconds.]
<infinisil>
Valodim[m]: I think I fixed that in #72056, maybe you're using a nixpkgs without that change in though
<{^_^}>
[nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/JvILp
<Vikingman>
someone know how to connect to wifi the installer so far im not able to do it
snajpa has joined #nixos
<evanjs>
vikingman: is nmtui available in the installer?
<Vikingman>
nope
<Vikingman>
only wpa_supplicant as i know
lorimer has quit [Ping timeout: 272 seconds]
<evanjs>
from the wiki: "To manually configure the wifi on the minimal installer, run wpa_supplicant -B -i interface -c <(wpa_passphrase 'SSID' 'key').
<evanjs>
see if that works
<evanjs>
s/wiki/manual
<Vikingman>
tried it but no success
<evanjs>
do you get an error message, or what happens?
<danderson>
no idea, but that sounds like xmonad failing. Might be related to how it's packaged in nix/nixos, but troubleshooting should start in xmonad.
<zeta_0>
danderson: thanks for the tips, i'll check tomorrow to see if anyone responded to my issue
<CMCDragonkai>
is there a difference between `import (pkgs.path + "/nixos/release.nix")` vs `import "${pkgs.path}/nixos/release.nix"`
<infinisil>
CMCDragonkai: Yeah, the former doesn't import pkgs.path into the nix store
kvda has joined #nixos
<CMCDragonkai>
the former?
<CMCDragonkai>
ok so the former is better
<infinisil>
s/better/different
<infinisil>
Though right now I can't think of a reason why anybody would explicitly want to have it in the nix store
<CMCDragonkai>
so the reason why it would bei n the store is cause of the `pkgs.path` ends up being a dependency of the string
<CMCDragonkai>
is that true, if `pkgs.path` was just a random string?
<CMCDragonkai>
import "${somerandomstring}/a"
<infinisil>
CMCDragonkai: It's a matter of path vs string. The expression `./some/path` is a path. When a path is interpolated in a string (e.g. "${path}"), it is imported into the store and the store path is used instead
<xa0[m]>
lewo: any chance you could update next to 1.4.0
<infinisil>
CMCDragonkai: Another thing is that if the first argument of a `+` is a path, the result of that operation is a path as well
<CMCDragonkai>
infinisil: ok, i can use `toString` to convert path to string
<CMCDragonkai>
what's the other way around?
<infinisil>
CMCDragonkai: And yet another thing is that `import some-path` imports the path directly, without going through string interpolation
<infinisil>
CMCDragonkai: You can use `+` to do that. e.g. `./. + "some-string"` or `/. + "some-string"`
<Orbstheorem>
I'm having a bit of trouble with nix-shell. For some reason the derivation results are not available from within the shell: https://paste.gnugen.ch/raw/SPzz
<CMCDragonkai>
should we be using localhost in nix-build checkPhase?
<kini>
dumb question about Nix expressions -- I'd like to add `randomEncryption = true` to all my swapDevices, but I don't want to edit hardware-configuration.nix. How can I override this from configuration.nix?
Neo-- has joined #nixos
<CMCDragonkai>
if I have `./. + "a"` i get `/current/directorya` instead of `/current/directory/a`.
<CMCDragonkai>
how do i get the latter instead?
<CMCDragonkai>
even `./. + "/" + "a"` doesn't work
<infinisil>
CMCDragonkai: ./. + "/a"
<CMCDragonkai>
infinisil: i want to avoid doing that
<CMCDragonkai>
the `a` in question is a another nix expression
<infinisil>
./. + "/${expr}"
<CMCDragonkai>
ok it appears to work
<kini>
I guess it's an associativity thing since `./. + ("/" + "a")` works
<infinisil>
Ah true, that might be nicer
hyper_ch2 has quit [Remote host closed the connection]
tpanum has quit [Read error: Connection reset by peer]
<kini>
Wow, that looks more complicated than I expected. Thanks! Just to understand correctly, this is basically overriding the definition of the swapDevices option to make the randomEncryption attribute default to true, and then allowing hardware-configuration.nix's assignment of swapDevices, which doesn't specify randomEncryption, to use this new option instead of the old one?
dansho has joined #nixos
<infinisil>
kini: Not quite. The option doesn't get overridden, but rather all option declarations get merged together, which also merges the types, which makes it use all declared submodules
tpanum has joined #nixos
<infinisil>
So in essence, this adds a submodule that enables randomencryption by default
domogled has joined #nixos
mac10688 has quit [Ping timeout: 240 seconds]
<infinisil>
while keeping everything else
<infinisil>
Oh and in that expression I think `config.randomEncryption.enable` can be changed to just `randomEncryption.enable`
<kini>
I tried adding `options.swapDevices = with lib.types; lib.mkOption { type = listOf (submodule { randomEncryption.enable = true; }); };`, but I got the error "Module `/mnt/etc/nixos/configuration.nix` has an unsupported attribute 'boot'. This is caused by assignments to the top-level attributes 'config' or 'options'."
<{^_^}>
#78079 (by CMCDragonkai, 37 seconds ago, open): IPXE cannot be built with `PRIVKEY` make flag
chagra_ has quit [Ping timeout: 265 seconds]
<infinisil>
kini: Hard to explain in a short time, and I'm about to go sleep :)
<kini>
OK, sure. Thanks for all the help :)
<infinisil>
:D
<kini>
I found https://nixos.wiki/wiki/Module which says that not writing `config = ` is a "shorthand for modules without any declarations".
<kini>
So I guess I should think of `config = ` as the canonical form, and not writing `config = ` as something that will be transformed somehow into the `config = ` form... but only if the module is simple enough to do so
<kini>
Argh, this is not going to work that well, lol -- there's an assert in the code handling swap devices which refuses to allow me to turn on randomEncryption if the device is specified according to its `/dev/disk/by-uuid/...` path
<kini>
but `nixos-generate-config` finds the swap device and writes it into hardware-configuration.nix by its `/dev/disk/by-uuid/...` path
Tucky has joined #nixos
liam1 has joined #nixos
phreedom_ has quit [Remote host closed the connection]
phreedom has joined #nixos
lovesegfault has joined #nixos
Makaveli7 has joined #nixos
Neo-- has joined #nixos
<liam1>
hey #nixos, I've got a problem with some options in my configuration.nix. I'm getting this error from nixos-rebuild:
<liam1>
The option `services.jellyfin' defined in `/etc/nixos/configuration.nix' does not exist.
chagra_ has joined #nixos
<liam1>
the nixpkgs channel is set to unstable
<liam1>
Does anyone know where to start debugging this problem?
<lovesegfault>
liam1: look at man configuration.nix
<lovesegfault>
then search for your service
<liam1>
lovesegfault: classic answer :P Thanks, I'll read now
<lovesegfault>
In particular I see it here, so make sure:
<lovesegfault>
1. your channel is up-to-date
chagra_ has quit [Client Quit]
<lovesegfault>
2. try commenting out the line, doing nixos-rebuild switch --upgrade, then try again
<liam1>
alright, man config.nix is amazing. I've been using the nix options website this whole time
<liam1>
lovesegfault: 1. Yes: Ran nix-channel --update
<liam1>
2. Yes, also done that.
<lovesegfault>
Yeah the manpage has everything, which is awesome
<liam1>
The service isn't in `man config`, which I imagine is the problem
chagra has joined #nixos
<lovesegfault>
liam1: Ah, then that's the issues
<lovesegfault>
check:
<lovesegfault>
hmm
<liam1>
"19.03"
<lovesegfault>
O.o
<liam1>
oh my god....
* lovesegfault
isn't sure whether it matters for this but might as well check
<lovesegfault>
bump it to 09, nixos-rebuild boot --upgrade; reboot, then try :D
<liam1>
haha, alright
<lovesegfault>
liam1: What's your system.stateVersion
<etu>
uhm, liam1 which channel are you on?
<etu>
In general it's not recommended to bump stateVersion
<liam1>
etu: unstable, according to nix-channel
<etu>
Ok
<liam1>
etu: so I've been told
<liam1>
what should it be for unstable? Seems weird to have 19.09
<liam1>
or anything other than unstable I would think
cfricke has quit [Ping timeout: 272 seconds]
<etu>
Current unstable will become 20.03, so if you want to break your system you can change it :D
<etu>
Or, risk breaking things
<etu>
like databases
<etu>
etrc
<etu>
etc
<liam1>
it's just a personal desktop at the moment, so worst case is I come back here on my laptop :)
<liam1>
etu: lovesegfault: see you soon
liam1 has quit [Quit: rebooting]
<lovesegfault>
Always keep the stateVersion at the latest stable, despite being on unstable; it's the secret to a happy life
liam1 has joined #nixos
chagra_ has joined #nixos
chagra has quit [Ping timeout: 272 seconds]
cfricke has joined #nixos
snicket has joined #nixos
<srhb>
This should not matter in general, nor should you ever update your stateVersion just like that :)
<lovesegfault>
srhb: define "just like that" ?
<snicket>
I have mounted my partition containing "/nix/store" on "/mnt", but "/mnt/nix/store" is still not writeable ("Read-only file system") even though it's not a mountpoint! How does this magic work?!
<srhb>
stateVersion should only be carefully changed once you've read necessary migration steps and either concluded that there are none for the modules you use, or you've taken manual steps to do the bump.
<lovesegfault>
Fair
<snicket>
sorry, my bad
cfricke has quit [Client Quit]
gkmngrgn has joined #nixos
<liam1>
lovesegfault: etu: srhb: Didn't seem to change much anyway, still no luck
<lovesegfault>
I'm confused then, what does `sudo nix-channel --list` show?
<srhb>
liam1: Did you paste the output of `nix-shell -p nix-info --run nix-info` yet?
<liam1>
I feel the channel is to blame for this
<liam1>
alright, here it comes
<srhb>
liam1: Yes, that's likely. :)
<liam1>
you're supposed to run nix-channel with sudo? ://////
<lovesegfault>
eoli3n_: One of the compute nodes at the datacenter we (company) own
<lovesegfault>
There are ... 12 of these?
<eoli3n_>
nice
<lovesegfault>
they also have 4xNVidia titans or w/e
<lovesegfault>
for the ML people
gxt has joined #nixos
<lovesegfault>
*Tesla V100
<kraem>
looking at modules/services/networking/ssh/sshd.nix: Protocol 2 is written by default to the config file, but it's not there doing `cat /etc/ssh/sshd_config`. am i missing something?
<{^_^}>
[nixpkgs] @marijanp opened pull request #78096 → Add hledger web service → https://git.io/JvIch
orcus has quit [Client Quit]
karetsu has joined #nixos
orcus has joined #nixos
gkmngrgn has quit [Quit: WeeChat 2.6]
gkmngrgn has joined #nixos
cfricke has quit [Quit: WeeChat 2.7]
<karetsu>
I'm reading this: https://nixos.wiki/wiki/OpenVPN and trying to set up my vpn, I would like to define multiple but only have one available on demand (its a work VPN and they wouldn't appreciate all the twitch.tv traffic!) but I can't see how to achieve that
<karetsu>
how does it decide which is the one it will actually use?
snicket has quit [Ping timeout: 240 seconds]
<karetsu>
ah, found the autoStart var, I was expecting an 'enable' the same way everything else that's a service has one
<ToxicFrog>
Ok, I have git repo that I've downloaded with a `default.nix`. I can build it with `nix-build default.nix`, and then run it directly from the store, but ideally I'd like it (temporarily) in $PATH without faffing around with nixpkgs.
<ToxicFrog>
`nix-shell default.nix` gives me the build environment, not the runtime environment.
<phil_d>
I am having trouble with building singularity images, it looks like /tmp keeps running out of space. vmTools doesn't seem to be respecting export TMPDIR=~/build
<rsoeldner>
Hi, I'm runnig nixos and included `zlib zlib.dev` in my configuration.nix. When running `cabal v2-install ghcide` it fails due to missing `zlib` dependency. Is there a trick ? :)
iyzsong has quit [Ping timeout: 246 seconds]
<gentauro>
rsoeldner: I know how to `fix` it with stack -> cat ~/.stack/config.yaml
<gentauro>
enable: true
<gentauro>
- zlib
<gentauro>
packages:
<gentauro>
nix:
<gentauro>
but I don't know how to do it with `cabal`. Do you have a similar `config` file?
<noonien>
hello, is there a way to set a limit on how much size a nix-build can use?
knupfer has joined #nixos
<__monty__>
Note that for builds during development you still want to use cabal-install.
<__monty__>
noonien: Not really afaik. Builds will just fail if you run out of memory.
<Shoubit>
How do I go about using a separate nixpkgs in configuration.nix where the nonfree flag is set to true? I'm calling the imported nixpkgs with `config = { nixpkgs.config.allowUnfree = true; };` but it seems to have no effect
<noonien>
ok, thanks
<__monty__>
I'm on very restricted hardware so I sometimes use systemd-run to limit the memory available to nix. That works unless nix needs the memory, then it just fails : )
<noonien>
hmm, if a build uses too much ram, will the oom killer kill it first?
<__monty__>
Linux' OOM killer basically never seems to do anything if you have swap enabled ime.
<noonien>
i have swap disabled
<__monty__>
Then I can't comment. But I suspect it still won't kill a process before it crashes.
<{^_^}>
[nixpkgs] @grahamc merged pull request #77433 → Document how to backport a change into a release channel → https://git.io/JvvDf
<{^_^}>
[nixpkgs] @alyssais pushed commit from @ianmjones to master « onedrive: 2.3.12 -> 2.3.13 »: https://git.io/JvIBT
tlater[m] has joined #nixos
knupfer has joined #nixos
tlater[m] has left #nixos ["User left"]
tlater[m] has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 opened pull request #78109 → home-assistant: add icloud support → https://git.io/JvIBO
<tlater[m]>
I'm a little stuck trying to nixify my stumpwm configuration - trying to add additional lispPackages as runtime dependencies. Would here be the right place to ask?
<infinisil>
tlater[m]: Sure
knupfer has quit [Ping timeout: 265 seconds]
<tlater[m]>
In essence, I'm trying this: https://pastebin.com/raw/3fB0SU0v. I want to override the stumpwm package, and add `lispPackages.clx-truetype` and `lispPackages.xembed` so that they're simply available for asdf to pick up when stumpwm runs.
orivej has joined #nixos
<tlater[m]>
As far as I can tell I want propagatedBuildInputs for that
<tlater[m]>
But the packages don't appear in the asdf load path, and don't seem to be anywhere in my nix profile
<tlater[m]>
I'm using home-manager to install this, but just as a normal package, so I don't think my config there is really relevant.
<tlater[m]>
But that's extremely verbose and requires handling reverse dependencies manually
gustavderdrache has joined #nixos
snicket has quit [Ping timeout: 240 seconds]
<tlater[m]>
Home-manager docs on that: https://rycee.gitlab.io/home-manager/options.html#opt-xdg.configFile - simply creates `~/.config/common-lisp/source-registry.conf` and fills the source-registry with all the packages I need for `lispPackages.clx-truetype` and `lispPackages.xembed` for me.
<__monty__>
I doubt you want propagatedBuildInputs.
<tlater[m]>
__monty__: That's entirely possible, I've still not entirely grokked how this works :)
<__monty__>
The propagated doesn't mean it's available at run-time. It has something to do with cross-builds. According to docs: "This would be called `depsHostTargetPropagated`..."
<__monty__>
You most likely just want buildInputs.
Rusty1 has joined #nixos
<__monty__>
But that probably won't solve the problem.
<__monty__>
I *think* only things *used* by a derivation are made available to it at run-time.
<__monty__>
Or it's only the things explicitly copied to $out by the derivation.
<tlater[m]>
Yup, I thought propagatedBuildInputs propagates them even when they aren't used
<tlater[m]>
But that's just misreading the docs on my end
<__monty__>
Nah, it's bad naming.
<__monty__>
Tons of people make that mistake.
<__monty__>
Not that the "should" name is any better imo >.<
<CRTified>
Hi, I'm currently restructuring my system config and test it by building a VM. is there a way to add a network device so that the resulting VM is reachable from the host? As far as I can tell, it is possible to add a flag to run-nixos-vm in the result?
<tlater[m]>
__monty__: So, I suppose my question is, is there something to force out what I thought `propagatedBuildInputs` does? Or do I need to try and rewrite things so that my configuration file depends directly on those packages?
<clever>
CRTified: it should have network by default, do you see a device in `ifconfig` ?
<CRTified>
Yes, there are two devices, but I'm not able to reach services on the VM (I've disabled the firewall for testing)
<clever>
CRTified: it has outgoing access only by default
<__monty__>
tlater[m]: I'm not sure tbh. If these packages provide binaries why can't you simply list them in your home.packages?
<infinisil>
,runtimeDeps
<{^_^}>
In order of preference: Patch source OR ((if it uses PATH -> wrap with new $PATH) AND (if it uses dlopen, (patchelf --set-rpath in postFixup OR wrap with new LD_LIBRARY_PATH)))
<{^_^}>
[nixpkgs] @teto pushed commit from @nloomans to master « hakuneko: 5.0.8 -> 6.1.7 »: https://git.io/JvIEf
<siers>
that's
<siers>
that's "*"... what a fat fingered tucker I am
alex`` has quit [Ping timeout: 268 seconds]
alexherbo2 has quit [Ping timeout: 258 seconds]
jb55 has joined #nixos
<siers>
I've src/picker/rofimoji.py... what should I put in $out/bin/rofimoji? A script that calls it, right? So buildPhase = '''echo "wholescriptwithnewlines" > $out/bin/rofimoji''';?
<clever>
siers: if you only want a single shell script, pkgs.writeScriptBin "name" ''contents''
<Shoubit>
siers, you can also use makeWrapper for this purpose (or a python equivalent if it exists?)
<wedens[m]>
ddima: what can I expect? some useful backtrace or will it just reboot on a hard lockup?
<tmplt>
Question regarding building Rust projects in Nix: I'm trying to build <https://github.com/ruabmbua/hidapi-rs> which requires libusb-1.0; but a `nix-shell -p libusb1 --run 'cargo build'` fails with pkg-config not finding the library. Settings PKG_CONFIG_PATH="${libusb1}/lib" yields the same error.
acarrico has quit [Ping timeout: 268 seconds]
vidbina_ has quit [Ping timeout: 268 seconds]
Izorkin has joined #nixos
<tilpner>
tmplt: What is the exact error?
<wild_buffalo>
qyliss: thanks! That's exactly what I was looking for
waleee-cl has quit [Quit: Connection closed for inactivity]
ixxie has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
ixxie has quit [Ping timeout: 268 seconds]
alexherbo25 has joined #nixos
gagbo has quit [Ping timeout: 268 seconds]
alex`` has quit [Ping timeout: 258 seconds]
alexherbo2 has quit [Ping timeout: 268 seconds]
alexherbo25 is now known as alexherbo2
alex`` has joined #nixos
domogled has joined #nixos
bgamari has quit [Ping timeout: 272 seconds]
tmplt has quit [Quit: leaving]
c382feb9 has joined #nixos
rogue_koder_ has joined #nixos
Chiliparrot has joined #nixos
cosimone_ has joined #nixos
cosimone has quit [Ping timeout: 248 seconds]
domogled has quit [Ping timeout: 268 seconds]
cosimone_ has quit [Client Quit]
drakonis has joined #nixos
domogled has joined #nixos
<c382feb9>
hi :) does anyone know how to override desktop entries generated by packages (e.g. firefox) to include firejail?
<tlater[m]>
Huh, finally got to the bottom of this stumpwm malarkey. Turns out the `propagatedBuildInputs` _works_ (for whatever reason), but sbcl will not actually come with the packages pre-installed - you need to launch it with a special launcher script.
<tlater[m]>
I should probably write an issue/some documentation about that...
domogled has joined #nixos
aswanson has quit [Quit: WeeChat 2.4]
aswanson has joined #nixos
jeremieh has joined #nixos
werner291 has quit [Remote host closed the connection]
<jeremieh>
hello!
<ddima>
wedens[m]: sorry, was afk. depends on the type of lockup we're talking. there is no guarantee that for your particular case it will work, but it should basically "drop" into a separate kernel and give you access to a kernel coredump which you should be able to try and extract info from, that otherwise might not have been persisted due to the panic/lockup. you can force such a crash via sysrq and see what
<ddima>
this would look like.
<aswanson>
any idea why my version of nixos-19.09 is missing some postgresql options? I'm attempting to set `services.postgresql.ensureUsers` and my installation of nixos doesn't have that option available. I can see it defined on https://nixos.org/nixos/options.html#postgresql.ens but it isn't in my `man configuration.nix`...
<clever>
aswanson: when did you last nix-channel --update?
silver_hook has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
<o1lo01ol1o>
I've got a nix gitlab runner (docker/ alpine linux) that's failing to access my aws credentials during subsitutaion. I had thought putting them in root's ~/.aws/credentials was the way to go, does anyone know where they should be put to allow the nix daemon access?
<lordcirth_>
o1lo01ol1o, what user does gitlab run as?
<lordcirth_>
It may be 'gitlab' or 'www-data' for example
<aswanson>
clever: nope. I've had that happen a couple of times now, but they were far enough apart that I didn't learn from it haha
feepo has quit [Ping timeout: 260 seconds]
<jeremieh>
I'm upgrading my nixos installation and downloads from cache.nixos.org are slow (~50k/s), After visiting https://cache.nixos.org I found a link to a diagnostic script, results are posted here : http://ix.io/27UY. Anybody can help me figure out why downloads are slow?
cqc has quit [Read error: Connection reset by peer]
mudri has quit [Read error: Connection reset by peer]
tnks has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @mkg20001 opened pull request #78117 → cinnamon.muffin: init at 4.4.1 → https://git.io/JvIrw
carter has quit [Read error: Connection reset by peer]
mudri has joined #nixos
nh2 has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @mkg20001 opened pull request #78119 → cinnamon.cinnamon-translations: init at 4.4.0 → https://git.io/JvIr1
<kraem>
i'm trying to fetch some additional sources from a dependency within my nix expression before building a package. i noticed i can't call curl in a prephase. is it convention to to make a wrapper derivation like in nix pills 20 or does anyone have any examples i can look at? tried searching through nixpkgs but couldn't find anything. thanks!
<infinisil>
kraem: Nix runs build in a sandbox, so you won't have network access during it
<kraem>
that's what i noticed :)
<infinisil>
kraem: If you need additional sources you can fetch with a derivation trhough pkgs.fetch* functions
orivej has quit [Ping timeout: 258 seconds]
<{^_^}>
[nixpkgs] @Profpatsch opened pull request #78120 → at-spi2-core: propagate glib and dbus → https://git.io/JvIr9
<kraem>
infinisil: thanks! can you think of any example i can have a look at?
mexisme_ has quit [Ping timeout: 246 seconds]
chagra has joined #nixos
<{^_^}>
[nixpkgs] @mkg20001 opened pull request #78121 → cinnamon.cinnamon-menus: init at 4.4.0 → https://git.io/JvIr7
dan34 has quit [Remote host closed the connection]
gkmngrgn has quit [Ping timeout: 272 seconds]
klntsky_ has quit [Remote host closed the connection]
klntsky_ has joined #nixos
sameerynho has joined #nixos
UndefinedIsNotAF has quit [Read error: Connection reset by peer]
UndefinedIsNotAF has joined #nixos
work_ has joined #nixos
ixxie has joined #nixos
aswanson has joined #nixos
<ddima>
jeremieh: i think the script is a bit outdated, as it still includes pings to cloudfront but its all fastly (cdn) now. I take it you have tried some other sites and download speeds were fine? are the download speeds always so low or do they go up for larger packages? you could for instance try to manually download sth large like GHC and measure
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #78028 → [19.09] Remove myself from maintainers on some packages → https://git.io/Jvkdb
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to release-19.09: https://git.io/JvIo2
aswanson has joined #nixos
wildtrees has joined #nixos
<jeremieh>
ddima: downloading `https://downloads.haskell.org/\~ghc/8.8.2/ghc-8.8.2-x86_64-deb9-linux.tar.xz` takes a lot more time, download speed is 50-100k/s
<ddima>
jeremieh: alright, so you'd be expecting >100mbit for larger files then? releases still seems to be on cloudfront, so thats an interesting data point. where roughly are you, continent/country?
mexisme_ has joined #nixos
selfsymmetric-pa has joined #nixos
<jeremieh>
ddima: I'm in france. I don't expect to download everything at full speed :) , just wondering if everything works fine
<selfsymmetric-pa>
How do I install a Perl module through my configuration file? For example if I want to do the equivalent of `cpan RPC::EPC::Service`?
<ddima>
jeremieh: so, what it looks like is that cloudfront is real fast for you, some general internet (haskell.org, nix fastly CDN) not so much right now. there can be a bunch of temporary and not temporary reasons for that - depending on your country. Some parts of the world lack local CDN presence for example. It might be good if you could collect sth like `mtr -c 100 -r -T cache.nixos.org` (with -4 and -6 if
<ddima>
you have both) and put it in your gist too
sondr3 has joined #nixos
dyon[m]1 has joined #nixos
<ddima>
jeremieh: Im currently getting >50mbit for the GHC nar download, so it's surely not globally broken - but with CDNs depends a bit on the point of presence you end up with.
<infinisil>
,libraries selfsymmetric-pa
<{^_^}>
selfsymmetric-pa: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<{^_^}>
[nixpkgs] @KnairdA opened pull request #78125 → pdfpc: Fix gstreamer video playback issue #73321 → https://git.io/JvIoh
<ddima>
jeremieh: also, is this only sth that happened recently and has been better over the last few weeks or months? capturing more data always makes sense (like the mtr command and a `curl_test` against cache.nix.org/nar/$foo like in the diagnostics, just not cloudfront) but if the issue is very sporadic, might not be actionable for the people doing the cache.
boxscape has joined #nixos
selfsymmetric-pa has quit [Remote host closed the connection]
<bennofs>
how do I make a filesystem optional? Right now, boot blocks if the fileSystem is not available
zeta_0 has joined #nixos
mexisme_ has quit [Ping timeout: 272 seconds]
<infinisil>
bennofs: I believe with `fileSystems.*.options = [ "nofail" ]`
silver_hook has joined #nixos
blaggacao has quit [Quit: Quit]
<jeremieh>
ddima: thanks for your help :) i will get back to you with the mtr results, I have to leave right now. You're right, it should be a local issue, not cache.nixos.org related. I will also look deeper at fastly CDN. I noticed today the cache was slow, but I can't tell precisely for past days, it looked good to me.
<jeremieh>
ddima: i will look at the script and make some measures like you suggest
vandenoever has joined #nixos
<ddima>
jeremieh: np, for nothing. ideally just post them into a collected gist for brevity and then lets see if it persists.
<vandenoever>
my NIC needs to have ethtool run on it after boot to disable transmission flow control (otherwise it can hang)
<{^_^}>
[nixpkgs] @NeQuissimus pushed 4 commits to release-19.09: https://git.io/JvIKn
<vandenoever>
what is the place to call ethtool during boot in configuration.nix?
<vandenoever>
${pkgs.ethtool}/bin/ethtool -K tx off
<lordcirth_>
yeah
<vandenoever>
nice, I already have some similar commands in powerManagement.powerUpCommands
<vandenoever>
powerManagement.powerUpCommands
kleisli has quit [Ping timeout: 265 seconds]
<vandenoever>
i meant to paste: ${pkgs.hdparm}/sbin/hdparm -S180 /dev/sdb
<vandenoever>
to make drives spin down after being unused for a while
zeta_0 has joined #nixos
ambro718 has joined #nixos
<kraem>
infinisil: https://bpaste.net/5ULQ any pointers why the unrar sources aren't available?
rembo10 has joined #nixos
<lordcirth_>
kraem, RAR has a lot of licensing issues in general
growpotkin has joined #nixos
<kraem>
lordcirth_: oh, not from the nixpkgs repo but i'm trying to fetch them, unrar them and use them during the build phase in the nix expression i pasted :)
<lordcirth_>
Ah, so the URL does work for me, but it's not working in your .nix?
<DigitalKiwi>
when evaluating it the build fails because it can't find it, i think
<lordcirth_>
kraem, oh I think I see the problem. You need to either override the default compilePhase to pass --with-unrar /nix/store/... or copy it into the expected location
<lordcirth_>
Probably best to, in prePhase, copy the first src into the second's build dir
<ddima>
the rar2fs url is wrong, not the unrar one. seems to lack a `v` in the version part.
<DigitalKiwi>
would it be --with-unrar ${unrar} or something
<zeta_0>
hello there, i am using ghcide, and it is able locate modules from my home.nix pkgs and nix-shell(default.nix) pkgs, but when i open my xmonad.hs file, ghcide cannot locate the modules from my xmonad installation packages, ghcide throws the error: could not find module Xmonad, why is this? https://gist.github.com/zeta-00/64b006fad838508fffc0fcaad396dd6e
<lordcirth_>
--with-unrar ${unrar} should probably work, yeah
sondr3 has quit [Quit: WeeChat 2.6]
<kraem>
i tried doing `cp ./* ../` in the `untarUnrar`-function before but it still doesn't find them
noogie has joined #nixos
tilcreator has joined #nixos
<zeta_0>
rycee: do i need to set a sessionVariable in home.nix in order for ghcide to recognize the modules in my xmonad pkgs installation?
sondr3 has joined #nixos
<kraem>
lordcirth_: i haven't compiled any c++ before, how can i find out the original compilePhase it is running (so i can add --with-unrar..)
<lordcirth_>
kraem, IIRC, the default NixOS compilePhase is just "./configure; ./make; ./make install"
shabius_ has quit [Remote host closed the connection]
<kraem>
infinisil, lordcirth_ thanks! not quite there yet but i found out that the unrar sources was located in `/build/unrar` and the working dir while configuring is `/build/rar2fs-1.28.0` - was able to set the `--with-unrar` flag.
<lordcirth_>
kraem, nice
o1lo01ol1o has joined #nixos
mexisme has joined #nixos
<DigitalKiwi>
kraem: woot
<bennofs>
do we have any examples for hardware.deviceTree.overlays? It seems that the overlay will be applied to all base overlays available, is that how it should work?
mexisme_ has quit [Ping timeout: 265 seconds]
<{^_^}>
[nixpkgs] @flyfloh opened pull request #78132 → pymetno: init at 0.5.0 → https://git.io/JvIiq
dansho has joined #nixos
Rusty1 has quit [Remote host closed the connection]
iqubic has left #nixos ["ERC (IRC client for Emacs 28.0.50)"]
<lovesegfault>
Mind you this will open a shell with those pkgs in your path
<Tjowers>
It's setting an environment field
<lovesegfault>
Tjowers: envvar, yes; PATH
<Tjowers>
So are the packages actually on my machine or are they held in the nixos distributed cache
<Tjowers>
And pulled in on boot
<lovesegfault>
On your machine, in /nix/store
<Tjowers>
into tmpfs
fendor_ has quit [Ping timeout: 258 seconds]
<LnL>
lovesegfault: possibly, but as a buildInput of stdenv.mkDerivation so it doesn't work if the stdenv you want is customized further
leotaku has joined #nixos
<Tjowers>
Ok so how do I see the package versions available for a specific package
cosimone has joined #nixos
<lovesegfault>
LnL: Ah, yes, indeed :)
<Tjowers>
Do I have to grep nix-env -q | grep GCC
<lovesegfault>
Tjowers: Nix doesn't do versioning like you are used from Arch
<lovesegfault>
Tjowers: use nix search
<lovesegfault>
`nix search gcc`
<lovesegfault>
Packages have only one version, which is w/e version is in the channel; if you really need parallel existant versions they are different packages, like python38 and python37
<lovesegfault>
or rust_1_38_0 and rust_1_40_0
<Tjowers>
Gotcha -- so what about code I'm writing, how do I install custom code?
<Tjowers>
Do I have to make a package?
<lovesegfault>
Tjowers: Yep, that's what I do
<simpson>
Yeah, but the actual Nix expression is only a few dozen lines of code, usually. And you won't have to install what you build; you'll run nix-build and get a symlink to the result.
<kraem>
ddima: thank you for catching the url. everything built fine with the wrong url for some reason but when i tried to execute ./result/bin/.. i got something along the lines "unrecognized symbol". after retyping the url the help msg is printed when executing :) thanks!
acarrico has joined #nixos
<Tjowers>
Hey! I'm moving to San Francisco! lovesegfault
<Tjowers>
This friday!
<lovesegfault>
Tjowers: May God have mercy on your soul
<Tjowers>
Lmao
<Tjowers>
Bout to go ham
<infinisil>
evanjs: It's complementary. When a package is removed you need a `throw` in the package listing so `pkgs.<package>` gives a good error, while a mkRemovedOptionModule is used for the module removal, giving a good error when options are assigned
<Tjowers>
Damnn you guys have a chatbot???
<Tjowers>
I like this -- this could be a thing it's got the concept you just need to convince people
<Tjowers>
I want a tool that helps me visualize the packages I have as dependencies for a given project
<Tjowers>
I might start writing something like that
<Tjowers>
I've been wanting to write a build system for C
<Tjowers>
I even wanted to replace the entire toolchain but maybe later
<Tjowers>
At least replace glibc's threading
<sameerynho>
hey folks, how can i install and isolate nix to a directory ( keeping the store in this directory and call the local version of nix ) ?
<lovesegfault>
Tjowers: You can see the full dep tree of pkgs with graphvix
<infinisil>
sameerynho: Can you explain a bit more about your usecase and what you're hoping for?
zeta_0 has quit [Quit: rebuilding]
<Tjowers>
Do the Autotools work with NixOS?
<gchristensen>
of course
<Tjowers>
gchristensen exactly -- much more than expected
<lovesegfault>
Yes
<evanjs>
infinisil: alright got it, thanks!
<Tjowers>
But how?? The prefix is set properly
<gchristensen>
Tjowers: you seem to have low exectations for an 18 year old project :) nix-shell -p graphviz --run "nix-store --query --graph $(which bash) | dot -Tpng -oout.png"
<Tjowers>
Yeah I just didn't know this was so mature
<Tjowers>
I didn't know it existed
<gchristensen>
welcome to the community!
<lovesegfault>
I feel like NixOS has been experiencing semi-exponential growth lately :P
<bennofs>
at my university, NixOS seems to be the new Arch
<Tjowers>
Yeah let's make this thing the next enterprise server OS!
<Tjowers>
That's what I've been looking for
<Tjowers>
The perfect development and deployment OS -- you need a server version and workstation version like Ubuntu
<lordcirth_>
I have been tinkering with NixOS in my spare time, and I've been authorized at $WORK to try out NixOps on some spare machines
<Tjowers>
Ubuntu sits on Debian according to an article I read
<Tjowers>
NixOps is something I want to look into
<gchristensen>
stick around a while, see what we have already
<Tjowers>
Google uses Debian
knupfer has quit [Ping timeout: 245 seconds]
<lordcirth_>
I think a "desktop" version would preferably just be "include ./desktop.nix" in configuration.nix, IMHO
<Tjowers>
Lmao I like
<lovesegfault>
Tjowers: Google uses their own thing that vauely resembles Debian at this point
<lordcirth_>
Shipping with a default desktop.nix would be nice
<lovesegfault>
Tjowers: man configuration.nix
orivej has joined #nixos
<lovesegfault>
lordcirth_: Meh, everyone has wildly different needs in that arena
<lordcirth_>
lovesegfault, sure, but it doesn't hurt to ship something sane
<sameerynho>
infinisil: I'm trying to figure out how can i use nix as a package manager for my emacs. I don't want to install nix globally. I want to setup nix local to a directory
emacsomancer has joined #nixos
<Tjowers>
Have a workstation.nix for enterprise workstations -- suited for CI/CD and other buzz words
<Tjowers>
But not just a config have like NixOS Workstation and behind the curtains just install with that config
<Tjowers>
It's all about the aesthetic
<ddima>
kraem: maybe it was already cached locally - can happen when using nix-prefetch-url for instance.
<lovesegfault>
Tjowers: I'm not sure I understand what you are talking about
<simukis__>
how does python.withPackages really pick what it should link. I have a derivation that puts a `.so` into `$out/${pythonPackages.python.sitePackages}` and `withPackages` refuses to link the solib into env anyway
<lordcirth_>
lovesegfault, I believe they are referring to the fact that slapping "Enterprise" on things is meaningless, yet good marketing.
<c382feb9>
lovesegfault, Tjowers: alternative installer images I guess?
<Tjowers>
Like have a preconfigured desktop for development environments and act like it's a separate distribution call it NixOS Workstation
<c382feb9>
Tjowers: I fail to see how fragmenting the branding helps with the aesthetics
<lovesegfault>
I mean, you can just maintain an overlay with that
<kraem>
ddima: ah that's probably what happened.. and the binary later worked because i bumped all versions to the latest ones maybe
<lovesegfault>
problem solved
<gchristensen>
yeah, some pre-packaged configuration and branding could be done
<c382feb9>
lovesegfault: that's the technical side of the issue though
<Tjowers>
You want the brand to communicate the purpose
<lovesegfault>
I want NixOS Gamer
<lovesegfault>
with red accents
<c382feb9>
lovesegfault: think "helping people discover it" as opposed to "making it"
<lovesegfault>
RGB lighting on the website
<c382feb9>
lol
<c382feb9>
a NixOS-endorsed config repo would be nice!!
<Tjowers>
NixOS Enterprise
<ddima>
lovesegfault: please with properly preconfigured RBG tools for the gaming MoBos too.
<Tjowers>
I really like "NixOS" it looks really nice
<c382feb9>
only experimenters would install someone's overlay from GitHub
<lordcirth_>
It would be nice to have some kind of semi-official desktop config that can you subscribe to and expect to generally not break
<Tjowers>
Just like ArchOS but slightly better
vandenoever has quit [Read error: Connection reset by peer]
<lovesegfault>
Tjowers: As someone who works for an enterprise, I don't care at all about the naming, the things that keeps us from using NixOS are ISO certifications, etc
<lovesegfault>
Thise are more important than slapping Enterprise on it
<gchristensen>
lovesegfault: please PM me with details :)
<Tjowers>
lordcirth_ exactly -- and actually be picked up by enterprise
<lovesegfault>
gchristensen: Doing
<{^_^}>
[nixpkgs] @Infinisil opened pull request #78136 → lib/attrsets: Fix error in comment for getAttrFromPath → https://git.io/JvIPx
<gchristensen>
lovesegfault: (since other BigCorps with BigLiability don't seem worried)
vandenoever has joined #nixos
<c382feb9>
lordcirth_: with the community maintaining nixpkgs, a public repo for everyone's high-level configs would be viable - in the vein of www.$DE-look.org i guess
<c382feb9>
still, someone has to build and maintain it
<samueldr>
it's certified, our installer image is a .iso, it's written in the filename, lovesegfault :^)
<lordcirth_>
lel
<c382feb9>
samueldr: lol
<lovesegfault>
samueldr: I'm sending that to my VP of Eng right now
<lovesegfault>
problem solved
<simpson>
Tjowers: Being picked up by the enterprise isn't necessarily a good thing. Corporate influence is to be avoided, usually, in favor of community-steered decisions and code.
<gchristensen>
the philosophy of Nix is a good thing and a bad thing. a good thing when everybody else did the work, a bad thing when I have to do the work
<lovesegfault>
gchristensen: What do you mean?
<lovesegfault>
Tjowers: We need to package all the OFED pkgs for that :P
<evanjs>
Blah. What's an alternative to why-depends that doesn't require building all packages? Or is that possible?
<gchristensen>
making things pure is hard and I promise it is okay when I'm not doing it purely
<Tjowers>
Yeah but the community would be too strong for any single corporation to dominate it -- look at linux
<evanjs>
e.g. `nix why-depends nixpkgs.onedrive nixpkgs.llvm`
<lovesegfault>
Tjowers: Linux is strongly dominated by bigCo
<evanjs>
pretty sure it's just dmd but
<lovesegfault>
Tjowers: c.f. the Linux Foundation
<lovesegfault>
which steers everything and is just BigCos
<lovesegfault>
evanjs: nix-store --query --graph?
<Tjowers>
Ok, but maybe there's a way to keep corporate users in control -- keep them behaving -- at most they can do is submit a pull request or fork and not push their changes back
<gchristensen>
there are a lot of ways for corporations to take control and leave the community in the dust
<lovesegfault>
^
<Tjowers>
So it's whether the people want to do what the corporations want -- they ultimately have no real grounds, in a legal sense at the least
<lovesegfault>
You don't need to do something illegal to do something that sucks
<Tjowers>
Yeah.
<Tjowers>
I think you're right they could pull some shit
<Tjowers>
They would find a way
<gchristensen>
Tjowers: I'm grateful for your interest here. I think you might find it interesting to hang around a while and see how things are going, who is doing what, the culture of the community for a bit
<lovesegfault>
e.g. BigCo offers Nix free hosting, compute,etc; we take it; bigCo proposes change X, we say no; BigCo pulls all resources, and so on
<simpson>
Tjowers, lovesegfault: Ignore corporations, focus on what's good for people. You may find that all that is required to maintain power is to take responsibility.
<gchristensen>
simpson++
<{^_^}>
simpson's karma got increased to 15
<Tjowers>
Yeah, I agree
<Tjowers>
gchristensen sorry bad habit
<gchristensen>
no worries, just keep it in mind :)
<Tjowers>
I perhaps got overwhelmed with an impulse in the id
<simpson>
lovesegfault: Concretely, (and crucially, not speaking with any authority), AIUI the worst that would happen if we lost corporate sponsorship would be a slowdown in contributions to some core components, as well as a smaller or absent public package cache.
<lovesegfault>
simpson: That very last one sounds pretty damming
<simpson>
lovesegfault: I've used Gentoo before. It's hardly the end of the world. It means that we'd have to *care* about what's in the cache. Right now, the public cache holds just about everything ever built, which is only possible because of sponsorship.
<{^_^}>
[nixpkgs] @Infinisil merged pull request #78136 → lib/attrsets: Fix error in comment for getAttrFromPath → https://git.io/JvIPx
<lovesegfault>
simpson: I used Gentoo for a long time too, and the problem is most people aren't willing to have to build their own pkgs because it _is_ annoying
<evanjs>
*shivers* gentoo masks and flag conflicts... *vomits*
<lovesegfault>
evanjs: flag conflicts rock!
<gchristensen>
that said, I don't think it is worth being concerned, I think we're in a position where we would sort out caching
<lovesegfault>
So many fun afternoons
<gchristensen>
enough BigCorps with BigMoney use NixOS
<jackdk>
pre-nixpkgs, gentoo was my favourite system to write packages for
<evanjs>
gchristensen: do we have a nice "Look who uses NixOS!" list somewhere?
<Tjowers>
That would help a lot
<gchristensen>
there have been some lists in the past
<lovesegfault>
evanjs: We do, but we're a SmallCorps with MediumMoney (https://standard.ai)
<gchristensen>
groq.com is another interesting one. Target. I can't really talk about many.
work_ has quit [Quit: Connection closed for inactivity]
<Tjowers>
Ok so I want to set up a git repo to start writing some code -- what's y'alls workflow on Nix
<Tjowers>
C/C++ Vim Autotools
<lovesegfault>
Tjowers: What do you mean?
<Tjowers>
Just normal? The whole no /sbin /bin thing I think is irrationally throwing me off
<Tjowers>
Just second guessing my understanding of everything now itll take some getting used to
<lovesegfault>
If I want to write a C project, I write a Makefile, then I write my default.nix with mkDerivation, then I write a shell.nix with all my dev stuff (like clangd)
<Tjowers>
Ok so what do those do -- by derivations do we mean dependencies?
<evanjs>
once you do start needing to manage libraries or etc for projects, direnv, and by extension, lorri, might prove useful https://github.com/target/lorri/
<evanjs>
lovesegfault: and yeah same more or less re use in production :P hopefully we get to use it more moving forward
zeta_0 has joined #nixos
<DigitalKiwi>
big mood 21:47 gchristensen: the philosophy of Nix is a good thing and a bad thing. a good thing when everybody else did the work, a bad thing when I have to do the work
<simpson>
DigitalKiwi: Somebody Else's Mood Field
<Tjowers>
If derivations == dependencies I LOVE IT much better name
<simpson>
Tjowers: A derivation is a recipe for building stuff. You'll usually create them by asking a stdenv to make one, based on instructions you give it for how to build a package.
<Tjowers>
Ok so it's like a docker image?
<gchristensen>
no, though a derivation can describe how to make a docker image
fendor_ has joined #nixos
<simpson>
Yes, but no. You'll see.
zeta_0 has quit [Client Quit]
<Tjowers>
What are these stdenv direnv etc what's the motiff?
<DigitalKiwi>
"what'd you do today?" "submitted a 6 line of code PR to fix a package" "oh, that must have been fast. wjat" "IT TOOK ALL DAY"
<DigitalKiwi>
"what'd you do today?" "submitted a 6 line of code PR to fix a package" "oh, that must have been fast. what'd you do the rest of the day?" "IT TOOK ALL DAY"
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #78004 → nixos/multitouch: remove (properly known as mtrack) → https://git.io/Jvk2R
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/JvIXz
<simpson>
Tjowers: direnv is a shell utility; stdenv is part of nixpkgs. Relatively unrelated things. direnv upstream ships Nix integration: https://github.com/direnv/direnv/wiki/Nix
<{^_^}>
[nixpkgs] @snicket2100 opened pull request #78137 → firejail: updated the homepage address → https://git.io/JvIXg
<simpson>
I have a bunch of directories with a shell.nix and an .envrc with `use nix`. It is pretty comfortable.
<DigitalKiwi>
also, lorri
<Tjowers>
I guess the "env" bit is referring to a new process environment -- rather than call it a process it's being called an environment, just in the cmdline program name
rsoeldner has quit [Ping timeout: 265 seconds]
<DigitalKiwi>
i don't have python installed, but if i type nix-shell -p python3 i have an environment with python
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<DigitalKiwi>
you can make a shell.nix with w/e other things you want. and then when you cd into it direnv will automatically load it. helpful for making editors have the right paths
<simpson>
Tjowers: The *environment* is all of the ambient things that *surround* a process. Environment variables, for example.
__monty__ has quit [Quit: leaving]
o1lo01ol1o has quit [Remote host closed the connection]
<Yaniel>
well if you can come up with an actually solid way to achieve consensus you'll basically have solved the internet
<Tjowers>
Yaniel I was just looking into hash functions yesterday. That is something I want to solve
<Tjowers>
I believe the hash function is the key -- that's my current hunch
<Tjowers>
It's literally the key in a sense
<Yaniel>
hash functions won't be any key as long as hash collisions can be fabricated
<Tjowers>
As in someone can force a hash collision maliciously?
kvda has joined #nixos
<Yaniel>
intentionally, malicious or not
<Tjowers>
Misuse of the term malicious -- but yeah so how does someone do this? They create several accounts?
<Yaniel>
I mean there aren't really many non-malicious reasons to force a hash collision
<Yaniel>
but the intent does not matter
<infinisil>
Tjowers: Yaniel: That sounds like a discussion for #nixos-chat, the offtopic channel :)
<Tjowers>
Gotcha
<infinisil>
(Well not entirely offtopic, but mostly unrelated)
srid has joined #nixos
<Tjowers>
Do you want to carry that over Yaniel?
<Yaniel>
might as well entertain the thought for a while
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
<AmandaC_>
Do I need to do anything special to make hydra auto-collect-garbage?
<AmandaC_>
or is that something I'm supposed to do some other way
<AmandaC_>
the VM I'm running Hydra on keeps running out of disk space due to old builds.
sigmundv__ has quit [Read error: Connection reset by peer]
AmandaC_ is now known as AmandaC
<lordcirth_>
AmandaC, I would just cron a check to see if you are low on space, and trigger it
sigmundv__ has joined #nixos
<lordcirth_>
But I don't know hydra
<ajs124>
AmandaC: you can tell hydra how man builds (probably evaluations?) to keep
<AmandaC>
ajs124: I do do that, but either 6 total evaluations is larger than I thought, or it's not doing the garbage collection part itself automatically. if I ssh in and run `nix-collect-garbage` a bunch of stuff gets deleted, but nothing automatically
fendor_ has quit [Quit: Leaving]
vidbina_ has quit [Ping timeout: 240 seconds]
<ajs124>
ah, might be that it just deletes the gcroots and you still need to run a regular nix-store --gc.
<YellowOnion>
Docker is giving me issues so now I can't test this
ambro718 has quit [Quit: Konversation terminated!]
fendor has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @flokli opened pull request #78140 → nixos/buildkite-agent: set StateDirectory=buildkite-agent, extend vm test → https://git.io/JvI1w
kleisli has joined #nixos
sondr3 has quit [Quit: WeeChat 2.7]
<YellowOnion>
weird...it's causing issues with another part of the script now.
<YellowOnion>
cannot coerce a set to a string, at /opt/nixpkgs/nixos/lib/make-iso9660-image.nix:49:3
UndefinedIsNotAF has quit [Read error: No route to host]
bvdw has quit [Quit: bvdw]
<{^_^}>
[nixpkgs] @Infinisil opened pull request #78141 → sta: init at 2016-01-25 → https://git.io/JvI17
bvdw has joined #nixos
silver_hook has quit [Ping timeout: 258 seconds]
silver_hook has joined #nixos
gustavderdrache has joined #nixos
Tjowers has quit [Remote host closed the connection]