gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
<samueldr> drakonis: the last comment in this issue seems to say that wineWow does exist in nixpkgs, https://github.com/NixOS/nixpkgs/issues/32435#issuecomment-351014351
<drakonis> now yes it does
<drakonis> but it isn't the default
<Myrl-saki> To this day, no one knows the maximum amount of vs you can pass to Nix.
<drakonis> 2^64 v
<Myrl-saki> drakonis: Probably 2^64-1, don't you think?
<infinisil> I'd think there's some limit to argument length
<Myrl-saki> infinisil: Not only that, you'd need 2^64-1 bytes. :P
<drakonis> yes yes
<zybell_> 256M
<samueldr> don't forget that --quiet reduces the verbosity level, so as long as --quiet can be appended, more Vs can!
<drakonis> i was going to correct myself but i wasn't sure if my math was going to be right
<drakonis> it should be (2^64)-1
<zybell_> more dont go in args
<drakonis> i'm having a hard time dealing with spyder not working
<zybell_> thats 2^28
ryanartecona has joined #nixos
<drakonis> something something
<drakonis> libgl
asuryawanshi has joined #nixos
<drakonis> seems to be happening to other applications
<zybell_> And then you need to subtract the command name
<drakonis> python is a pain
ryanarte_ has joined #nixos
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/1768eb65316 (from 11 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
srdqty has quit [Ping timeout: 256 seconds]
<Myrl-saki> clever: I'm so stupid. It was in front of my face all along!
<Myrl-saki> clever: Clearly, the only way to use ARM is to use Qemu so that you can run x86 on it.
ryanartecona has quit [Ping timeout: 248 seconds]
srdqty has joined #nixos
drakonis has quit [Remote host closed the connection]
<infinisil> Currently thinking about how the module system could be sped up by only including the modules you need
drakonis has joined #nixos
ptech has quit [Ping timeout: 260 seconds]
<drakonis> hmm, how do i bootstrap any distro into my filesystem
day|flip has joined #nixos
<drakonis> doesn't seem like debootstrap works
<nur0n0> drakonis: bootstrap an arbitrary distro from nixos?
<drakonis> yes
<drakonis> i want to bootstrap an distro so i can use systemd-nspawn to run things that can't run on nixos under regular conditions
chreekat has joined #nixos
<drakonis> a tool i can use to do that, requires python dependencies but turns out it can't find those if i install them through nix-env nor if i use nix-shell
<nur0n0> drakonis: I previously used https://github.com/tokland/arch-bootstrap to bootstrap arch on a debian system
<nur0n0> it worked painlessly last time I used it
<nur0n0> iirc it does not require python
seville has quit [Quit: Leaving]
<nur0n0> also, arch in general has worked well within containers
<nur0n0> its funny, I was using arch systemd-nspawn containers to do package management before I switched over to nix. I'm planning on replacing the most I can with nix, but those containers are still handy tools to get something running quick and dirty
<drakonis> at least here i can get internet :v
harumph has quit [Ping timeout: 260 seconds]
<drakonis> hmm
<drakonis> how can i make an nspawn binding
<drakonis> an nspawn file
<drakonis> because i clearly can't put it inside the proper places
vandenoever has quit [Ping timeout: 256 seconds]
lukec has quit [Ping timeout: 256 seconds]
chreekat has quit [Quit: quitting]
iyzsong has joined #nixos
lukec has joined #nixos
<Myrl-saki> Dammit. :(
<Myrl-saki> nix-store import is running out of memory.
<Myrl-saki> I checked my strace, and it says 1 GB file. I have 1GB RAM + 4GB rwap.
<Myrl-saki> swap*
nur0n0 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<infinisil> Myrl-saki: Seems to be a recurring problem for multiple people with Nix 2.0
Arcaelyx has quit [Read error: Connection reset by peer]
<infinisil> I also had it running out of memory with 8GB RAM
<infinisil> Wait no that was even 16GB
<Myrl-saki> infinisil: Hah, me too. :P
<infinisil> Rebooting fixed it though
Arcaelyx has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<drakonis> this seems like an issue "/etc/localtime does not point into /usr/share/zoneinfo/, not updating container timezone."
xcmw has joined #nixos
ryanarte_ has quit [Quit: ryanarte_]
<Myrl-saki> infinisil: I sholud try nix1. Thanks.
regulus_ has quit [Ping timeout: 240 seconds]
<Myrl-saki> /nix/store/3aahcjw6pjanlz83a8cqnq0acl8yl1vm-1.55_07.tar.gz
<Myrl-saki> ...NOPE
<Myrl-saki> That shit is crazy. Nope nope nope.
iwxzr has joined #nixos
Lisanna has joined #nixos
<Lisanna> omg the number of ways to specify build/runtime dependencies has exploded recently
<iwxzr> hmmm so i'm running into an issue where nixops deploy -d $mydeployment errors out with "The ‘fileSystems’ option does not specify your root file system.", even though, if I ssh into that machine, fileSystems."/" is set in /etc/nixos/hardware-configuration.nix
<Lisanna> iwxzr nixops doesn't use /etc/nixos/hardware-configuration.nix
<Lisanna> on the target machine
<iwxzr> :o
<iwxzr> okay
<iwxzr> where is it pulling from, then
<Lisanna> the local evaluation
<iwxzr> do you mean this error message is actually referring to my local environment, then
<zybell_> drakonis:container is like chroot /etc and /usr/share/zoneinfo/TZ file have to be copied.That is known and accounted for.But if /etc/localtime points to /nix/store... systemd doesnt know how to handle that.
<Lisanna> hardware-configuration.nix just gets pulled into configuration.nix
<drakonis> why are you telling me that
<Lisanna> so, you have a configuration.nix locally in your nixops directory, right?
<drakonis> this is done by systemd-nspawn
<zybell_> *sytemd-nspawn
<iwxzr> Lisanna: yes
<Lisanna> iwxzr alright, and does it reference a ./hardware-configuration.nix ?
<zybell_> sorry that the typo led to misunderstanding
<iwxzr> wait, what do you mean by that? locally, i just have a file network.nix containing {<machine description>, <machine description>, ...}
<Lisanna> iwxzr grep all your local nixops code for "hardware-configuration.nix"
<Lisanna> iwxzr surely you have a mention of it somewhere
vidbina has quit [Read error: Connection reset by peer]
<Lisanna> the moral of the story is that, nixops doesn't care what's in the target's /etc/nixos directory, it only cares about the files you give it locally
<Lisanna> so, if you need ot import a hardware-configuration.nix, you need to have that file locally
<iwxzr> you mean grep my local nix store? all i have in this deployment is a pair of files specifying the deployment i want
<iwxzr> i'm entirely new to nix so i'm somewhat confused, sorry
<Lisanna> iwxzr it's okay
<Lisanna> iwxzr what's in your network.nix? can you pastebin it or something?
<iwxzr> i expected that if i just pointed my machine description at an ip with deployment.targetHost ="xxx.xxx.xxx.xxx"; it would Just Work
<iwxzr> ummm sure i'll pastebin it
<Lisanna> to be fair the nixops manual isn't /that/ helpful or clear, even for people who are experienced with NixOS
<simpson> Lisanna: The Collected Notes and Musings of Nixops Users
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<iwxzr> it's pointing at a DO droplet which i ran https://github.com/elitak/nixos-infect on
<Lisanna> iwxzr this is the only code you have?
<iwxzr> yes
<Lisanna> iwxzr so, that's not enough code to fully specify a nixos deployment. you also need all the stuff that normally goes into hardware-configuration.nix
<iwxzr> FUCK what
<iwxzr> i followed the manual...
<Lisanna> have you used nixos a lot?
<iwxzr> not at all
<iwxzr> beyond tweaking the config on my partner's vps a bit
vidbina has joined #nixos
<Lisanna> okay, so, what you could do is copy /etc/nixos/configuration.nix and /etc/nixos/hardware-configuration.nix from your target machine to your local machine
<Lisanna> iwxzr then edit network.nix to look like this: https://hastebin.com/fasipibase.swift
<iwxzr> i guess i don't get why the manual says i can just do this: https://nixos.org/nixops/manual/#sec-deploying-to-physical-nixos
<iwxzr> oh fuck
jmeredith has quit [Quit: Connection closed for inactivity]
<iwxzr> does the configuration need to _exactly mirror_ the remote one?
<Lisanna> the remote one doesn't matter
<wilornel> I'm not sure how to use `fetchFromGithub`
<wilornel> is there a place that explains it?
<Lisanna> nixops only evaluates what you give it locally
<Lisanna> it doesn't go hunting on the target machine for extra code
<iwxzr> ahhhhhhhhhhhhh
<iwxzr> why does the manual not explain that you need to have all the necessary configuration locally
<Lisanna> iwxzr because the manual sucks
<Lisanna> :p
<simpson> Lisanna: Actually, I should be constructive. I'll check my notes to see if there's anything interesting I know about nixops which isn't in the manual.
<gchristensen> https://search.nix.gsc.io/?q=fetchFromGitHub%20%7B&i=nope&files=&repos= here are a number of examples, wilornel
<iwxzr> like, the examples seem to imply you can just have a tiny little config that enables services
<Lisanna> it's not really a "how-to", just a collection of useful examples
<gchristensen> iwxzr: that should definitely be improved
<Lisanna> iwxzr it assumes you have a decent working knowledge of nixos
Arcaelyx has quit [Ping timeout: 268 seconds]
<iwxzr> it's rather frustrating
<iwxzr> the main reason i'm interested in nix _is_ nixops
<iwxzr> because i'm fucking ~doooone~ with ansible
<Lisanna> iwxzr totally understandable, that user experience needs some work
* iwxzr sighs
<iwxzr> it works now
<iwxzr> thank y'all so much
<simpson> Yay!
<gchristensen> glad to hear it :) what do you think the documentation should say w.r.t. this issue?
<iwxzr> perhaps it shouldn't advertise examples like the one on the frontpage, where there's not enough configuration to actually get a machine running in the general case
<iwxzr> the easiest way to explain this imo is that "nixops will not find out anything about your remote system for you. it will take the config you give it and copy it over the one on the remote machine"
johnw has quit [Ping timeout: 240 seconds]
<gchristensen> I agree
<Lisanna> iwxzr glad you got it working!
<iwxzr> Lisanna: thank you for your help!
silver has quit [Read error: Connection reset by peer]
<Lisanna> I think the manual's main issue is that it assumes you know how the nix system works in general, not accounting for users who want to get into nix because of nixops
<gchristensen> definitely
daveo has quit [Remote host closed the connection]
chreekat has joined #nixos
genesis has quit [Ping timeout: 246 seconds]
mbrgm has quit [Ping timeout: 248 seconds]
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
mbrgm has joined #nixos
vidbina has quit [Ping timeout: 264 seconds]
genesis has joined #nixos
Supersonic112 is now known as Supersonic
vidbina has joined #nixos
zybell_ has quit [Ping timeout: 256 seconds]
ptech has joined #nixos
<ptech> Anyone figured out how to descend recursively into emacs-packages-deps so the load-path can actually see stuff like Org?
<ptech> Alternatively, any reason that emacs-package-deps isn't getting linked into /run/current-system/sw?
zybell_ has joined #nixos
raynold has joined #nixos
raynold has quit [Max SendQ exceeded]
raynold has joined #nixos
Arcaelyx has joined #nixos
spear2 has joined #nixos
tertle||eltret has quit [Quit: Connection closed for inactivity]
chreekat has quit [Quit: quitting]
vidbina has quit [Read error: Connection reset by peer]
hph^ has quit [Ping timeout: 260 seconds]
jperras has quit [Ping timeout: 240 seconds]
ivanivan has joined #nixos
<ivanivan> has anyone run into errors fetching metadata from rubygems.org while trying to use bundix?
<ivanivan> I'm getting "UnknownHostError: timed out" when trying to install ffi
ivanivan has quit [Quit: WeeChat 2.0]
pie__ has joined #nixos
pie_ has quit [Read error: Connection reset by peer]
daveo has joined #nixos
<ptech> Update: Got it working to my satisfaction with a derivation like this: https://pastebin.com/6reYw2Bj
<daveo> hi, is there any way to ldd/patchelf a binary automatically in nixos?
monokrome has quit [Quit: MEOW]
<simpson> daveo: Probably. What are you trying to package, and what have you tried so far?
ptech has quit [Quit: Page closed]
semilattice has joined #nixos
<daveo> simpson: a couple of times, to get a binary to work I've had to use ldd to find which libraries were unlinked, locate to find those libraries on my system (sometimes I have to install them), and patchelf with the paths to the libraries so the binary can work. this is a manual process that is straightforward. thought it may be already automated. I had to do this with Daedalus wallet and linux-chromedriver
<simpson> daveo: This can be automated by writing a Nix expression which has those libraries as build inputs and has the application in its output. More generally, we should prefer to build packages from source when we can, so that we don't have these problems.
Mateon3 has joined #nixos
<daveo> simpson: thanks!
Mateon1 has quit [Ping timeout: 248 seconds]
Mateon3 is now known as Mateon1
semilattice has quit [Quit: No Ping reply in 180 seconds.]
pie__ has quit [Read error: Connection reset by peer]
pie_ has joined #nixos
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/b68697c3a49 (from 7 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
breadjpg has joined #nixos
breadjpg has quit [Client Quit]
breadjpg has joined #nixos
breadjpg has quit [Client Quit]
breadjpg has joined #nixos
orivej has quit [Ping timeout: 248 seconds]
<daveo> how do I list potential Attributes for a nix-build in an existing project?
semilattice has joined #nixos
<daveo> seems like they are all listed in default.nix in the project
day|flip has quit [Remote host closed the connection]
johnw has joined #nixos
<Myrl-saki> clever: /run/binfmt/arm ./qemu-x86_64-static /nix/store/dky1kkw7hid0w5vgb21s9in9ijjdvp3a-system-path/bin/ls
<Myrl-saki> Am I doing something wrong?
semilattice has quit [Ping timeout: 276 seconds]
s2mitrov has quit [Read error: Connection reset by peer]
Rusty1_ has quit [Quit: Konversation terminated!]
<Myrl-saki> clever: Also, just for reference. It doesn't actually work that well because x86_64 qemu can't quite handle signals.
<Myrl-saki> clever: i386 qemu works perfectly though, it seems.
<buckley310> im testing nixos on a surface pro 3, but cannot get past the luks prompt with the built-in keyboard. need to use a USB one. any suggestions? i tried adding "usbhid" to boot.initrd.availableKernelModules, but no dice
drakonis has quit [Remote host closed the connection]
MP2E has quit [Remote host closed the connection]
sanscoeu_ has quit [Remote host closed the connection]
<robstr> `Morning, what is the way to pass secrets with nixops ? Like database password, ....
kerrhau has quit [Ping timeout: 240 seconds]
<robstr> Ok, found it `deployment.keys`
<kuri0> clever, looking at those links you gave it seems if i build it on a ilp32 system the resulting binaries will be ilp32 ?
codygman has joined #nixos
<kuri0> how do I rebuild the aarch64 sd image on my laptop without having to rebuild it on my raspberry pi
<kuri0> since it would probably take a while on the pi
breadjpg has quit [Quit: Lost terminal]
Arcaelyx_ has joined #nixos
semilattice has joined #nixos
Arcaelyx has quit [Ping timeout: 276 seconds]
FareTower has joined #nixos
simukis has joined #nixos
griff_ has joined #nixos
Arcaelyx_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<jophish> Is there a shorthand for this: nix-store --realise $(nix-store --query --references $(nix-instantiate something.nix))
<jophish> (to build all the dependencies of a package)
sanscoeur has joined #nixos
sanscoeur has quit [Ping timeout: 256 seconds]
<hl> Trying to update to 18.03, is it normal for sudo nixos-rebuild switch --upgrade to seem to hang at 'building the system configuration...', with a few warnings 'warning: unknown setting 'signed-binary-caches''
<hl> Oh, it's running. Took quite a while.
<jophish> s
<hedning[m]> hl: yeah, the `signed-binary-caches` warning is normal, you can just ignore it.
justan0theruser has quit [Quit: WeeChat 1.9.1]
aarvar has quit [Ping timeout: 240 seconds]
pie_ has quit [Ping timeout: 240 seconds]
rauno has quit [Remote host closed the connection]
griff_ has quit [Quit: griff_]
nD5Xjz_ has joined #nixos
Geraldus has joined #nixos
<Geraldus> join #haskell
<Geraldus> :D Hi folks!
<steveeJ> Geraldus: you're still in #nixos
nD5Xjz has quit [Ping timeout: 248 seconds]
<Geraldus> steveeJ: yep, I know ;)
clever has quit [Ping timeout: 256 seconds]
Acou_Bass has quit [Ping timeout: 256 seconds]
alex`` has joined #nixos
johnw has quit [Ping timeout: 240 seconds]
<Geraldus> Since recent NixOS update (I'm on unstable Nix channel) I'm facing issues with my Haskell setup
<Geraldus> Here is an output, stack yaml and cabal file contents https://gist.github.com/geraldus/13a7cbd39038e43e6f54566a0668f5ee
<Geraldus> Any suggestions?
johnw has joined #nixos
phry has quit [Quit: WeeChat 2.0]
phry has joined #nixos
clever has joined #nixos
clever has joined #nixos
clever has quit [Changing host]
shabius_ has quit [Quit: Leaving]
daveo has quit [Ping timeout: 276 seconds]
phry has quit [Quit: WeeChat 2.0]
phry has joined #nixos
mounty has quit [Ping timeout: 240 seconds]
<Lisanna> jophish aside from just using the shortened version of those flags? probably not
johnw has quit [Ping timeout: 248 seconds]
jensens has joined #nixos
<Geraldus> How can I know the version of nixpkgs I use?
michas_ has joined #nixos
spear2 has quit [Ping timeout: 264 seconds]
coot has joined #nixos
kreetx has joined #nixos
semilattice has quit [Ping timeout: 276 seconds]
mounty has joined #nixos
<michas_> Hi, is anyone using kubernetes on nixos? https://stackoverflow.com/q/49963703
<etu[m]> Geraldus: nix-info can tell you that
<Lisanna> etu[m] it can?
<etu[m]> It does for me... :p
<etu[m]> system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.0, channels(root): "nixos-18.09pre135256.6c064e6b1f3", nixpkgs: /etc/nixos/nixpkgs
<Lisanna> etu[m] doesn't for me :/
<Lisanna> that isn't telling you the version of nixpkgs
<Lisanna> it just says where it is
<etu[m]> 6c064e6b1f3 is the revision
<Lisanna> to get the version you would have to do "cat /etc/nixos/nixpkgs/svn-revision"
<Lisanna> that's your nixos nixpkgs revision
<steveeJ> michas_: so far I'm using it in local mode only on my laptop. I would like to explore the cluster set up though. I would start experimenting with nixops and 3 virtual machines
FareTower has quit [Quit: Leaving]
<Lisanna> Geraldus but, to start, run "nix-shell -p nix-info --run nix-info"
nD5Xjz_ has quit [Ping timeout: 260 seconds]
nD5Xjz has joined #nixos
<steveeJ> michas_: I will look into this eventually. since we should document this more officially, would you mind creating an issue on nixpkgs and mention me also?
<bkchr[m]> While trying to cross compile gettext I get the following error: "libtool: error: error: relink 'libgettextsrc.la' with the above command before installing it". Is there any successful report of cross compilation of gettext?
blankhart has quit [Ping timeout: 268 seconds]
<Lisanna> "error: while evaluating the attribute 'passAsFile' of the derivation 'environment' at /nix/store/hw6d8lzdb4l3xzzawijgrmkr9zqg0kdf-source/pkgs/stdenv/generic/make-derivation.nix:148:11:
<Lisanna> cannot convert a function to JSON"
<Lisanna> damnit
<Lisanna> why do I always get all the weird nonsensical errors...
<Lisanna> the core nixpkgs code needs more assertions and error/warning messages
<Lisanna> this is silly
<Geraldus> etu[m]: thanks
<Geraldus> Lisanna: Thank you. The output was the same as for `nix-info`
<Geraldus> Above commands does not show me exact version or git commit of packages
<Geraldus> Still no clues how to fix my Haskell setup
derchris has quit [Read error: Connection reset by peer]
<Lisanna> Geraldus you could always try checking out nixpkgs from git directly and using that
<Lisanna> rather than using nix-channel
<Lisanna> so you can easily hop between versions
sanscoeur has joined #nixos
<Geraldus> Lisanna: how can do this?
<Lisanna> Geraldus NIX_PATH=nixpkgs=/path/to/nixpkgs/checkout
lo_mlatu_ has joined #nixos
<Geraldus> Lisanna: very cool!
<Lisanna> echo your NIX_PATH and you'll see what hte defaults are
<Lisanna> nix-channel sets that stuff up
<Lisanna> but you can override it easily :)
<michas_> steveeJ: Sure, I can open an issue. What kind of documentation are you thinking of? Most of the time it feels like the nixpkgs code seems to be the only documentation available.
<Lisanna> Geraldus whenever you type <something> in a .nix expression, nix just looks for "something" in your NIX_PATH variable
sanscoeur has quit [Ping timeout: 268 seconds]
<vaibhavsagar> how do I get emoji on NixOS?
<Geraldus> Lisanna: got it. Cloning pkgs
<sphalerite> vaibhavsagar: get fonts supporting them
<sphalerite> vaibhavsagar: e.g. noto-fonts-emoji{,-color}
<sphalerite> or do you mean typing them?
<vaibhavsagar> do I just put those into fonts.fonts?
<sphalerite> yep
<vaibhavsagar> and then everything magically works, or do I need to change font settings in my apps too?
derchris has joined #nixos
<sphalerite> it should magically work. You may need to restart applications though.
<steveeJ> michas_: we could add a section to the nixpkgs manual
derchris has quit [Read error: Connection reset by peer]
<vaibhavsagar> awesome, thanks sphalerite!
<Lisanna> anyone around with a hint on how to use the nixos module type system in non-nixos code?
kirchner has joined #nixos
<Lisanna> I want to typecheck a value against a type and have it fill default values for attrs not specified
<tilpner> Lisanna - Could look at home-manager
<Lisanna> tilpner okay, uhh, where in it specifically? :p
<tilpner> Well, what part are you looking for?
<Lisanna> isn't home-manager just a nixos module?
<tilpner> No, I don't think so
derchris has joined #nixos
<Lisanna> it looks like it just does what nixos does
<tilpner> You just give a bunch of modules to lib.evalModules
<Lisanna> I have myType = lib.types.submodule (...)
<Lisanna> I can do myType.check myValue
<tilpner> You have to make sure to pass all option-defining modules, or the user will have to import modules just to use their options
<Lisanna> and that (in theory!) does a typecheck
<Lisanna> although I've never found .check to be very good
<Lisanna> there's much better typechecking in the merge functions... but not sure how ot use them
<Lisanna> hmm, lib.evalModules looks higher-level than what I want
<Lisanna> I'm not trying ot generate a config... I just want to use the type system
<Lisanna> ...ugh, uh oh
<Lisanna> this looks to be the function I want
<Lisanna> but it looks pretty closely tied in to the idea of a "configuration"
nD5Xjz has quit [Ping timeout: 268 seconds]
<nyanloutre[m]1> Hello ! I am currently thinking of setting up a simple continuous delivery solution for a static website. By simple I mean just update the local files when I push data to my git repo. Do you have any idea on how to do it ?
<nyanloutre[m]1> I thought of GitLab CI because it's easily integrated with the gitlab server but maybe they are other solutions ?
<Lisanna> nyanloutre[m]1 are you looking for a nix / nixos solution?
obadz- has joined #nixos
<nyanloutre[m]1> In the idea I would prefer a native Nix solution yes
<Lisanna> nyanloutre[m]1 well, nix can't fetch things from network locations without a hash, so as soon as the content changes you would need to update the hash
<nyanloutre[m]1> yes that's what I thought
<Lisanna> nyanloutre[m]1 nixos could potentially help you run the gitlab server
<Lisanna> or a simple nginx + systemd service that periodically checks out the git repo and copies files to a place
obadz has quit [Ping timeout: 240 seconds]
obadz- is now known as obadz
<nyanloutre[m]1> yes a systemd timer might do it
<nyanloutre[m]1> thanks for the idea 👍
<Lisanna> sure
<Lisanna> my nixos is full of custom systemd services as nixos modules :p
phry has quit [Quit: WeeChat 2.0]
<nyanloutre[m]1> talking about GitLab, I noticed the options don't show up neither in the online manual or in the nixos-options command
phry has joined #nixos
<Lisanna> nyanloutre[m]1 ...huh, that's strange... and new
orbekk has quit [Quit: WeeChat 2.0]
<michas_> Hi, I set up a small project based on nix. It would be great, if someone would volunteer for a quick review. https://github.com/michas2/nix-qemu-kubeboot
phry has quit [Quit: WeeChat 2.0]
hotfuzz has joined #nixos
phry has joined #nixos
hotfuzz_ has quit [Ping timeout: 264 seconds]
derchris_ has joined #nixos
derchris has quit [Read error: Connection reset by peer]
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
lo_mlatu_ has quit [Ping timeout: 248 seconds]
derchris_ has quit [Read error: Connection reset by peer]
<Lisanna> lol
phry has quit [Client Quit]
<Lisanna> I guess nix users are especially fond of doing that :p
dhess has quit [Quit: ZNC - http://znc.in]
phry has joined #nixos
derchris has joined #nixos
<vaibhavsagar> michas_: would you consider changing from using master/slave to something like coordinator/worker?
<vaibhavsagar> or leader/follower
<michas_> @Lisanna, that's just for allowing relative paths in the script. But I indeed forgot the `cd` so thanks fo pointing to that. :)
<Lisanna> michas_ I know, nix users get spoiled with ./ :)
nwspk has quit [Quit: Quit: *.banana *.split]
<michas_> vaibhavsagar: yes, naming is difficult. :) In this case the "master" has two roles. it serves as netboot server and as kubernetes master, while the others serve as netboot clients and kubernetes worker nodes. coordinator/worker is maybe a slightly better naming. thx.
<vaibhavsagar> my pleasure!
nwspk has joined #nixos
<nyanloutre[m]1> vaibhavsagar: after all it's not like your server have a choice 😄 so it may be more of a slave than a worker
<vaibhavsagar> that is one way to look at it
chisui has joined #nixos
nwspk has quit [Quit: Quit: *.banana *.split]
nwspk has joined #nixos
thblt has joined #nixos
<sphalerite> BBEG and mooks :p
<sphalerite> queen and drones
Harpalus has joined #nixos
Harpalus has quit [Client Quit]
xy2_ has joined #nixos
derchris_ has joined #nixos
derchris has quit [Read error: Connection reset by peer]
derchris_ has quit [Read error: Connection reset by peer]
_rvl has quit [Quit: ZNC 1.6.5 - http://znc.in]
_rvl has joined #nixos
derchris has joined #nixos
<vaibhavsagar> supervillain and minions
<vaibhavsagar> big bad and henchmen
kirchner has quit [Quit: Lost terminal]
<thblt> I just read that most NixOS users track unstable instead of the point releases. Is that a fact? I'm surprised.
<clever> i use nixos-unstable on all of my personal machines
<thblt> clever: may I ask why?
<MichaelRaskin> With developers you will have unstable channel vs master branch split
<clever> havent really had any major issues with unstable
<MichaelRaskin> Some do deploy release branches to servers.
<thblt> MichaelRaskin: unstable is built from master, right?
<clever> the latest master that passes testing on hydra
<thblt> Thanks.
ernestas has joined #nixos
thc202 has joined #nixos
tmaekawa has joined #nixos
orivej has joined #nixos
knupfer has joined #nixos
cfricke has joined #nixos
<infinisil> Well I just did have some issues with unstable, actually 3 of them, but luckily none of them were fatal
<sphalerite> gchristensen: (or anyone else who does rust stuff) do you use racer at all?
cfricke has quit [Client Quit]
ma27 has joined #nixos
sanscoeur has joined #nixos
bennofs has joined #nixos
<LnL> the completion thing?
<clever> sphalerite: i recently delt with the split-debug stuff in nixpkgs and had to do this: https://gist.github.com/cleverca22/32e4b7158d86374fdf154a09b4c7fa75
<clever> sphalerite: i think you where asking about how to get gdb to find things before
sanscoeur has quit [Ping timeout: 260 seconds]
<clever> sphalerite: i also noticed gdb is running nix via a .py file somewhere in glibc i think
<sphalerite> clever: yeah, I got that working in the end, but made a profile with the debug outputs of all the relevant libraries installed
<sphalerite> which was quite a fuss because it's hard to persuade nix-env to install a specific output into a profile
<clever> it looks like gdb is already loading python code it finds in the debug dirs
<sphalerite> nix-env --set 4lyf
<clever> so it may be possible to auto-fetch the debug from the cache
<sphalerite> well eelco wrote a thing for that, didn't he
<clever> you may also have better luck creating a buildEnv that has the right outputs, and then install it
<clever> that might be the thing i saw gdb loading, havent read its source yet
<sphalerite> yes, buildEnv is what I did, and nix-env --set to set the profile to it
<clever> ah
<clever> i was thinking of something simpler then dwarffs
<clever> i was thinking, nix-store --query --derirver to find the .drv of a path, then check for a .debug output, and nix-store -r to fetch, then just add it to the search path
ditadi has joined #nixos
<sphalerite> (unrelated) I'm using emacsWithPackages, is there a way I can get a running instance to load a new set of packages? Restarting emacs every time I want to change the package set is a pain, especially for one-off stuff
tmaekawa has quit [Quit: tmaekawa]
<thblt> sphalerite: why not just use package.el for one-off stuff?
<sphalerite> thblt: because I don't know how it works :) M-x package-install ?
<thblt> sphalerite: there should be a call to (package-initialize) somewhere before, but yes
<sphalerite> thblt: I tried using this to install racer just now but it doesn't seem to know of it
<thblt> sphalerite: you mean it cannot be installed or it cannot be loaded?
<sphalerite> thblt: I do M-x package-install, then try to type racer at the "Install package:" prompt, but it just says [No match]
marzzzello has quit [Ping timeout: 256 seconds]
<thblt> sphalerite: M-x package-list-packages first to download package list
<sphalerite> thblt: it's not on the list
thblt has quit [Remote host closed the connection]
<sphalerite> LnL: yes the completion thing
<LnL> I do, ycmd has it enabled by default
<zybell_> Attention to all who want to build *yesod* with current nix: For some reasons cabal2nix chooses ghc822,but cabal itself later insists on ghc84*
thblt has joined #nixos
<thblt> sphalerit:Sorry,
<thblt> sphalerite: Sorry, battery died on me.
<thblt> sphalerite: Have you added Melpa to your sources list?
<sphalerite> not consciously :)
<sphalerite> (I'm pretty new to emacs)
<thblt> sphalerite: package.el has a list of package repositories, by default, only Elpa is included.
<thblt> Elpa is the FSF's official repo, and doesn't contain much (although what it contains is good)
reardencode has quit [Remote host closed the connection]
<thblt> Melpa is the alternate repo, and must be manually enabled
<thblt> sphalerite: (add-to-list 'package-archives
<thblt> '("melpa" . "https://melpa.org/packages/") t)
<thblt> Eval this (and paste to your init.el), package-list-packages again, and it should be good
sir_guy_carleton has joined #nixos
<sphalerite> sweet, thanks
v0latil3 has quit [Read error: Connection reset by peer]
<thblt> sphalerite: if you consider managing your Emacs packages from within Emacs, I'd suggest *not* using package.el though. It's good enough for one-off packages or for trying things out, but it's not *that* good.
<zybell_> nyanloutre[m]1:git supports hooks:you can write a hook that activates at push and does a checkout to a dir.AFAIK an example with this functionality is part of the git-source.
<sphalerite> thblt: I'd rather manage them with nix
<sphalerite> and be able to "load" updates to the nix-managed stuff in a running emacs
<sphalerite> is that possible?
<etu[m]> I just reboot emacs whenever I update my packages
<thblt> sphalerite: well try it. Run Emacs, update the emacsWithPackages declaration and rebuild, and try to (require) the new package
<etu[m]> Haven't tried to do it on the fly
<thblt> sphalerite: my guess is that you need to find the init file Nix generaes to populate the load-path and re-eval it first
<sphalerite> hm it seems to set the load-path as an env var in a wrapper
<sphalerite> etu[m]: but then I lose all my buffers :(
<etu[m]> yeah, I know :(
<thblt> sphalerite: there are packaes to preserve buffers/windows accross reboots
<thblt> sphalerite: you could still hack your way around the env var definition
<thblt> sphalerite: "which emacs" from inside Emacs should let you grab the wrapper's path, then parse the export and update the load-path
<thblt> Very hacky, but should work
Myrl-saki has quit [Quit: WeeChat 2.0]
<thblt> (But tbh I *don't* use Nix to manage Emacs packages, I use Borg, and it's *much* easier. Maybe you should reconsider)
ma27 has quit [Quit: WeeChat 2.0]
<infinisil> I wrote my own emacs nixos module :P
<thblt> infinisil: what do you mean?
<sphalerite> the more stuff I don't manage with nix, the more complicated it is to reproduce my setup (which I often want to do) elsewhere
<infinisil> sphalerite: Agreed
<thblt> sphalerite: actually Borg is all about reproducibility. It uses Git submodules, so your config and packages is all in one place.
<sphalerite> thblt: I don't care about reproducibility so much as about having it all in one place.
<thblt> You *may* put your init.el in a nix declaration, but it doesn't feel natural at all.
<thblt> sphalerite: but do you manage your init.el with Nix too?
<sphalerite> yes
<infinisil> It's rather new though, I have yet to convert my old config fully to it
<infinisil> One of those being the rust dev part
<sphalerite> well actually I don't actually use an init.el
<thblt> sphalerite: what do you use?
<thblt> sphalerite: that means every time you want to make a minor change to the config, you have to update emacs.nix, rebuild your environment and reboot Emacs?
ma27 has joined #nixos
<sphalerite> yes. And I want to take the "reboot emacs" bit out.
<thblt> sounds tricky.
<infinisil> sphalerite: Ohh interesting, I haven't thought of using a custom package for my init.el, but that would solve a problem I've had
<thblt> sphalerite: well I'd parse the generated wrapper, I think it contains all you need.
<infinisil> sphalerite: thblt: It's possible to (load /home/foo/some/emacs/file.el) to be able to change stuff dynamically still
<infinisil> My ideal workflow is to only add stuff to the nix part when it's proven its usefulness dynamically
Myrl-saki has joined #nixos
<thblt> infinisil: IIUC what sphalerite wants, it's all in Nix. If you have a /home/yourself/something.el, you could use a .dotfiles repo and Borg just the same and save yourself a *lot* of hassle
<sphalerite> thblt: I might replace the wrapper, since what it does (AFAIK) is make a buildEnv that joins all the emacs packages together, then creates wrappers for all the emacs stuff that just sets EMACSLOADPATH to that buildEnv
<infinisil> thblt: Yeah, but I need stuff in nix to have it on all my machines, through nixops
<infinisil> But having to rebuild for slight changes is cumbersome
<thblt> sphalerite:that's my idea. Grab EMACSLOADPATH from the wrapper from inside Emacs, update load-path accordingly, and (require) all the things
<infinisil> So I can dynamically change some non-nix managed file for quick changes, then move them to the nix managed part when I know they work
<thblt> infinisil: that's why I find it less cumbersome to keep a dotfiles repo... But both options are valid, I just happen to prefer mine :-)
<sphalerite> thblt: right, but rather than grabbing it from the wrapper, I'd just create a symlink to it in my profile and have loadpath set to ~/.nix-profile/emacs-load-path or something
<sphalerite> then I don't need to update it, just rebuild my profile and re-require the stuff
kisik21 has joined #nixos
<thblt> sphalerite: If it creates the ~/.nix-profile/emacs-load-path it should work indeed
<sphalerite> thblt: it doesn't, but I'll make it do so :)
<kisik21> Hello. I have some binaries that need a FHS-like environment. I heard Nix can build FHS chroots, how to use that feature to wrap a game distributed in binary form?
<thblt> sphalerite: just you'll probably need to handle subdirs, but that's not a big deal
ma27 has quit [Quit: WeeChat 2.0]
alex`` has quit [Quit: WeeChat 2.1]
alex`` has joined #nixos
ma27 has joined #nixos
ma27 has quit [Client Quit]
<symphorien> kisik21: for a game you might try steam-run
ma27 has joined #nixos
ma27 has quit [Client Quit]
ma27 has joined #nixos
ma27 has quit [Client Quit]
ma27 has joined #nixos
ma27 has quit [Client Quit]
iyzsong has quit [Ping timeout: 264 seconds]
orivej has quit [Ping timeout: 260 seconds]
ma27 has joined #nixos
ihar has quit [Ping timeout: 256 seconds]
oida has quit [Ping timeout: 268 seconds]
ihar has joined #nixos
orivej has joined #nixos
klntsky has quit [Remote host closed the connection]
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
klntsky has joined #nixos
oida has joined #nixos
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos
iyzsong has joined #nixos
coot has quit [Quit: coot]
<angerman> Can I somehow build something like `{ x ? <x> ? /path/to/x }`?
oida has quit [Ping timeout: 268 seconds]
<angerman> try to use the `-I` value `<x>` but if that’s not available use `/path/to/x`, unless someone explicitly passed `x`?
<sphalerite> angerman: x ? `(builtins.tryEval <x>).result or /path/to/x` should do it I think
<sphalerite> err s/result/value
<angerman> sphalerite: tryEval… oh :-)
<sphalerite> wait no…
<sphalerite> bleh it still has the value key even if it failed to evaluate
<sphalerite> x ? let attempt = builtins.tryEval <x>; in if attempt.success then attempt.value else /path/to/x
<angerman> `x ? if (builtins.tryEval <x>).success then <x> else ./.`
ma27 has quit [Quit: WeeChat 2.0]
<angerman> yea. Too bad we can’t chain ? :D
ma27 has joined #nixos
<sphalerite> that should also work, and is a bit less ugly than mine I guess
<angerman> sphalerite: thanks!
<sphalerite> tryEval should just not have a result key if success is false…
<sphalerite> s/result/value/ blargh
<angerman> I guess you can’t really abstract that patter, could you? let’s try :-)
<sphalerite> well yeah you can
ma27 has quit [Client Quit]
<angerman> but it’s not making it much more readable.
ma27 has joined #nixos
<angerman> sphalerite: can I define binary infix ops?
<sphalerite> no
<sphalerite> but you can define a `nicerTryEval` function or something
ma27 has quit [Client Quit]
<angerman> evalOr :-)
ma27 has joined #nixos
<sphalerite> nicerTryEval = x: let attempt = builtins.tryEval x; in removeAttrs attempt (lib.optional (!attempt.success) "value")
<sphalerite> then you can do `x ? (nicerTryEval <x>).value or /path/to/x`
ma27 has quit [Client Quit]
<angerman> hmm… thanks for the suggestion!
<angerman> sphalerite: I can have nix fetch and use some GitHub repo url as a tar.gz in place right?
<angerman> if I provide the /path/to/…tar.gz as https://github.com/…/...tar.gz
<sphalerite> no, you need to use builtins.fetchurl
ma27 has joined #nixos
<sphalerite> but yes, you can use (builtins.fetchurl https://github.com/…) like any other path
ernestas has quit [Ping timeout: 260 seconds]
<angerman> sphalerite: but that will work like import, or do I need to do import + fetcher?
<sphalerite> you can't import a tarball, it's not a nix expression.
<sphalerite> you may want builtins.fetchTarball in that case.
xcmw has joined #nixos
<angerman> sphalerite: ahh, ok. so I basically want fetchTarball and then import on the result?
<sphalerite> yes
sanscoeur has joined #nixos
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos
ma27 has quit [Client Quit]
sanscoeur has quit [Ping timeout: 240 seconds]
ma27 has joined #nixos
ma27 has quit [Client Quit]
ma27 has joined #nixos
blankhart has joined #nixos
oida has joined #nixos
<Myrl-saki> cle...
<Myrl-saki> Fuck.
<Myrl-saki> I hardcoded a path.
<Myrl-saki> Turns out it wasn't the proper path.
<Myrl-saki> Guess who has to rebuild every damn thing again.
<sphalerite> you?
<Myrl-saki> Yes! :D
<sphalerite> I'm a genius.
<Myrl-saki> sphalerite: Damn, who would have expected that?
<Myrl-saki> I thought I hid it pretty well :(
<Myrl-saki> Errr...
<Myrl-saki> What the hell?
<Myrl-saki> When does ${...} evaluate?
<Myrl-saki> I thought it evaluated on Nix-time.
<kisik21> It should
<sphalerite> it does
<sphalerite> Are you maybe doing IFD?
<kisik21> And I cannot launch Ren'Py from FHS chroot. https://pastebin.com/LnuKure5 <= log
<Myrl-saki> sphalerite: IFD?
<sphalerite> import-from-derivation.
<Myrl-saki> Nope
<sphalerite> (that includes using stuff like builtins.pathExists on derivation paths)
Myrl-saki has quit [Read error: Connection reset by peer]
Myrl-sak1 has joined #nixos
<Myrl-sak1> Kernel crash.
<Myrl-sak1> I should stop OCing my RasPi.
ma27 has quit [Quit: WeeChat 2.0]
<clever> kisik21: does xterm work in the same chroot?
ma27 has joined #nixos
<kisik21> clever: bash: xterm: command not found ^^
<kisik21> one sec
<kisik21> It does.
<clever> kisik21: renpy is also packaged in nixpkgs
<Myrl-sak1> Wtf. nix-env and nix-shell are disagreeing on the package.
<clever> Myrl-sak1: with what args?
<Myrl-sak1> nixpkgs.cabal2nix
<Myrl-sak1> nix-env -iA 'nixpkgs.cabal2nix' -j4
<kisik21> Could you give me an attribute path? I never saw it in my ~/packages.txt file, which was made by piping nix-env -qaP into it.
<clever> Myrl-sak1: nix-env uses ~/.nix-defexpr/ but nix-shell uses $NIX_PATH
<clever> kisik21: renpy
<Myrl-sak1> clever: What should I do?
<kisik21> clever: trying to install
<clever> Myrl-sak1: what does nix-channel --list show as each user?
<Myrl-sak1> pi@raspberrypi:~ $ nix-channel --list
<clever> Myrl-sak1: and root?
<kisik21> clever: error: selector 'renpy' matches no derivations
<Myrl-sak1> root@raspberrypi:/home/pi# nix-channel --list
<kisik21> Myrl-sak1, are you using RPi2 btw?
<clever> Myrl-sak1: you have 2 copies of nixpkgs, delete the one on the pi user
<Myrl-sak1> kisik21: Yep.
<kisik21> cool
<Myrl-sak1> clever: For reference, I have 3 copies. One is a git checkout.
<clever> kisik21: what args did you run nix-env with?
<Myrl-sak1> clever: What should I do?
<kisik21> I have an RPi2 too, wanna install NixOS on it too, but didn't wrote a config yet.
<kisik21> clever: nix-env -i renpy
<clever> !-iA
<clever> kisik21: nix-env -iA nixos.renpy
<sphalerite> !-A
<{^_^}> You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<kisik21> error: attribute 'renpy' in selection path 'renpy' not found
<kisik21> ouch
<Myrl-sak1> Oh, I htink I found it.
<Myrl-sak1> nix-env -f '<nixpkgs>' -iA 'cabal2nix' -j4
<kisik21> Nothing anyway even with this command. nix-env -q shows same packages.
<Myrl-sak1> Will this use $NIX_PATH?
<kisik21> clever: maybe it is in some sort of overlay?
<sphalerite> kisik21: nix-env -f '<nixpkgs>' -iA renpy
<clever> Myrl-sak1: yes, but your better off delting the duplicate
<Myrl-sak1> clever: Yeah, I deleted the duplicate
<kisik21> sphalerite: nothing
<kisik21> maybe I need to update channels?
<sphalerite> Myrl-sak1: personally I have nix-env aliased to nix-env -f '<nixpkgs>' to avoid exactly this kind of crap
<clever> kisik21: probably
<Myrl-sak1> sphalerite: Lol. :P
<sphalerite> a later -f argument will override it so I can still do nix-env -f . -i or whatever
<kisik21> Running nix-channel --update helped
<kisik21> okay, and how to launch my ren'py games with this installed runtime?
<clever> kisik21: i think you just run renpy and give it the path to the game
<kisik21> trying now
<clever> the last game i tried was slightly buggy, it had been modified to integrate into steam achivements, and caused errors when running on an un-modified renpy
<kisik21> oops, it can't read webp
<kisik21> clever: I just don't use steam
<kisik21> it didn't ran on my Gentoo install
toppler has quit [Remote host closed the connection]
ditadi has quit [Quit: WeeChat 2.0]
ma27 has quit [Ping timeout: 276 seconds]
ma27 has joined #nixos
das_j has joined #nixos
<das_j> Hey everybody, how do I add a trigger for a timer? I tried restartTriggers = [ config.systemd.timers."acme-${cert}" ];, but it tells me that it cannot be coerced to a string
<das_j> Which attribute of the timer do I have to use?
<zybell_> look that the timer isnt already there. IIRC acme does install a timer already with cron
<kisik21> clever: how to make Ren'Py load webp? libwebp is installed.
<clever> kisik21: no clue
<das_j> zybell_: That's weird because the actual error is error: "cannot coerce a set to a string, at". So I assume I need to somehow get a string from the timer
<kisik21> well, at least I can launch some of my VNs
<das_j> Also, while the unit is called acme-, it's my own, and not the one from simp_le
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos
<sphalerite> das_j: what is cert?
<sphalerite> Maybe that's what can't be coerced to a string.
<sphalerite> oh wait. Right. It should just be the timer's name AFAIK
<sphalerite> so "acme-${cert}" rather than config.systemd.timers."acme-${cert}".
<clever> restartTriggers can be any string
<clever> the field is essentialy ignored by everything, but it winds up in the .service file
<das_j> I'll try that
<clever> and if the .service file changes for any reason, nixos-rebuild will restart the service
<clever> so the trick, is to make it a storepath pointing to a config file the service reads
<clever> so when the config file is changed, the service file changes, and it triggers a restart
<das_j> sphalerite: Just "acme-${cert}.timer" doesn't work
<clever> restartTriggers has nothing to do with timers
<das_j> clever: My problem is that I want to start the unit after it was created, but I don't want to add it to multi-user.target because it should be invoked by a timer
ixxie has joined #nixos
<das_j> So restartIfChanged works when the unit is changed, but not when the unit is created
<clever> and you cant just wait for the timer to start it?
<sphalerite> oh right
<das_j> clever: I'd have to wait up to one week
<das_j> It tries to renew my certificates weekly
<ixxie> heya folks
<das_j> I could use an activation script to check if the unit was created within the last minute and start it but that's really hacky
<clever> das_j: i think the acme scripts in nixos just run daily, and then internally check how old the cert is and abort
<sphalerite> yeah is there anything wrong with just renewing more frequently?
<clever> das_j: activation scripts are the worst place, never do anything network there
<das_j> sphalerite: No, but I also don't want to wait up to a day usually.... There are usually services that depend on the certificates (nginx, ...)
<ixxie> so the other day I managed to accidentally lock myself out of my system.... it seems I overwrote my hardware config with some files from my other machine. The symptoms manifest as my password no longer working, and changing generations is no help.....
sigmundv__ has joined #nixos
<clever> ixxie: edit the cmdline in grub to have init=/bin/sh
MatrixStatsBot[m has joined #nixos
<zybell_> sphalerite:acme(the server)has a rate limit. It will block you if you try to much.
<ixxie> clever: how do I do that?
<clever> ixxie: hit e while in grub and selecting a menu entry
<das_j> Well, another way would be a unit that just starts the renew unit and is started at multi-user.target. If I do a CondFileExists, it will only run when the certificates don't exist yet
<sphalerite> zybell_: most programs for renewing it check the expiry date and only renew if it's close though.
<sphalerite> i.e. the server won't be contacted unless an actual renewal takes place.
mounty has quit [Quit: Konversation terminated!]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ixxie> clever: well it gets stuck in stage 1
<zybell_> the keyword is *most*. Murphys law states that the one you give the advice to run more often is the one who runs the exception;-)
<clever> ixxie: tell it to continue when it claims the file doesnt exist
jmiven has quit [Quit: co'o]
<ixxie> ok got a shell now....
<clever> ixxie: now you can run passwd to change the root password
jmiven has joined #nixos
<ixxie> clever: there is no passwd
<clever> ixxie: ah, PATH isnt set yet, one sec
<clever> /nix/var/nix/profiles/system/sw/bin/passwd
<clever> ixxie: run that
<sphalerite> ixxie: I had some difficulty with passwords not working at some point due to keyboard layout issues, make sure to rule that out before changing the password
<ixxie> sphalerite: I did
b has joined #nixos
vaninwagen has joined #nixos
<ixxie> well I can't get a connection which is causing problems rebuilding the system
<sphalerite> --option substituters ''
<fyuuri> How do you install python packages that are not available in the nix store? Pip does not work, and setup.py also seem to not work.
<fyuuri> python setup.py egg_info" failed with error code 1 in /tmp/pip-build-Fr0FzP/....
<nikivi> You can use nix to install python packages?
<fyuuri> Some are available under python.pgks.*
<fyuuri> and pythonFull pulls a few as well
<sphalerite> fyuuri: there's pypi2nix
<fyuuri> oh
<fyuuri> thx. I will check that out in a moment
iyzsong has quit [Ping timeout: 248 seconds]
<sphalerite> um… so I want to try hnix, so I do nix-shell -p hnix and I get…
<sphalerite> copying path '/nix/store/3cv3s9lv79qjkqyafbclbk03gz5z813w-ghc-8.2.2' from 'https://cache.nixos.org'...
<sphalerite> error: Nix daemon out of memory
<ixxie> this is so weird
<sphalerite> ok, it worked aftere quitting firefox. But needing 6G available just to get ghc sucks.
<ixxie> I reset the root password as clever suggested, then rolled back a couple gens and tried to log in but it doesn't recognize the password
hph^ has joined #nixos
mightybyte has joined #nixos
<mightybyte> Is there a way to specify a nix cache on the nix-build command line? I've looked through the docs but I don't see anything obvious.
<sphalerite> mightybyte: --substituters 'https://cache.example.com/'
<sphalerite> mightybyte: this will only work for a trusted user (i.e. only root by default)
<mightybyte> Cool, thanks!
<mightybyte> How come that's not in the man page?
<sphalerite> and unfortunately (this is a bug) the option will be ignored silently when invoked by a normal user
<sphalerite> it is in `man nix.conf` :)
kreetx has quit [Quit: Lost terminal]
<mightybyte> Ok
<mightybyte> That still doesn't make it obvious that it it can be used as a command line argument.
<srhb> mightybyte: The docs could definitely use a little improvement, but fwiw, nix --help-config
GlennS has joined #nixos
<ixxie> thanks sphalerite
Rusty1_ has joined #nixos
<simpson> gchristensen: Ha, yeah, turns out Markdown's kind of a trash format.
* gchristensen was wondering if anyone would take the bate
<gchristensen> s/bate/bait/
* simpson easy
coot has joined #nixos
sanscoeur has joined #nixos
chisui has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
xcmw has joined #nixos
ixxie has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
sanscoeur has quit [Ping timeout: 248 seconds]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
troydm has quit [Ping timeout: 264 seconds]
<steveeJ> any idea why libivrt is looking for qemu-kvm on a hardcoded path? a recent update broke all my VMs due to this
<sphalerite> steveeJ: not exactly sure but it may be related to an issue I had when I first tried to use nixops, where it wouldn't work if qemu was installed in my user profile
asuryawanshi has quit [Remote host closed the connection]
<sphalerite> it might be fixed by making libvirt look for qemu on a fixed path?
<sphalerite> idk
Myrl-sak1 is now known as Myrl-saki
ixxie has joined #nixos
vidbina has joined #nixos
endformationage has joined #nixos
das_j has quit [Quit: Page closed]
<ixxie> thanks clever, sphalerite - my system is back up now ^^
ilyaigpetrov has joined #nixos
<sphalerite> \o/
<mightybyte> sphalerite: Hmmm, the --substituter option isn't working for me. Where else can non-root users define substituters?
<kuri0> has anyone been able to get gnome on aarch64 ?
<sphalerite> mightybyte: they can't, unless they're set as trusted users in nix.conf
<kuri0> i get this error : mchoesky_invert unscaled hilbert
<mightybyte> sphalerite: Grrrrr. I really need to set up my own substituter because Travis-ci puts a limit on how long my builds can run.
shabius has joined #nixos
<ixxie> what does a substituter do actually?
<sphalerite> ixxie: it's the new term for "binary cache"
<sphalerite> well, it's more general
<sphalerite> it's a store in which nix looks for derivation outputs before attempting to build them locally
<sphalerite> mightybyte: getting around needing a trusted user is probably possible if you screw around with fixed-output derivations enough, but it'll be extremely tricky. Is there no possibility of just setting substituters in nix.conf?
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos
<mightybyte> sphalerite: I was trying that but it didn't work. I think I may have just discovered a workaround though.
{^_^} has quit [Changing host]
{^_^} has joined #nixos
<sphalerite> how did it not work?
<mightybyte> I wasn't using sudo.
<sphalerite> well yeah root is a trusted user!
<mightybyte> I wasn't sure what user/sudo situation travis had
<mightybyte> Finally found some docs
<clever> mightybyte: you can export a var to change the search path for nix.conf
<mightybyte> clever: Not sure.
<clever> that wasnt a question
<clever> export NIX_CONF_DIR=$HOME i believe
<clever> then echo whatever > $HOME/nix.conf
<clever> as long as your not using nix-daemon, thats all you need
<mightybyte> Ahh, nice
<ixxie> sphalerite: so basically a cache
<clever> there is a bit of a bug in nix 2.0
<clever> with nix 1, if you had write to /nix/store, you where trusted automatically
<clever> with nix 2, it tries to enforce normally security, even if you have the power to just bypass nix and force it
<sphalerite> ixxie: yes
<Ankhers> Would anyone be able to point me to the documentation for nixops that explains which attributes it supports for AWS?
<Ankhers> Nevermind. Of course I find it right after I ask the question.
jperras has joined #nixos
frank87 has quit [Remote host closed the connection]
frank87 has joined #nixos
<mightybyte> clever: It looks like that is working. Thanks!
<ixxie> I wanna make my import of gnome conditional on some option so that I disable it on my server
<ixxie> is there a nice example of making custom options for this sort of thing
<clever> ixxie: config = lib.mkIf config.whatever.enabled { ... };
<clever> nearly any nixos module in nixos can be used as an example
<ixxie> thanks clever
jperras has quit [Ping timeout: 264 seconds]
dmj` has joined #nixos
spear2 has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #39231 → ibus-engines.libpinyin: 1.9.3 -> 1.10.0 → https://git.io/vpqht
<{^_^}> → 8539dec4 by R. RyanTM: ibus-engines.libpinyin: 1.9.3 -> 1.10.0
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpOWE
<{^_^}> → 37fc7375 by @Mic92: Merge pull request #39231 from r-ryantm/auto-update/ibus-libpinyin
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpOWw
<{^_^}> → cd79136c by @geistesk: slstatus: unstable-2018-03-21 -> unstable-2018-04-16
<{^_^}> → e3b0d05c by @Mic92: Merge pull request #39145 from geistesk/slstatus-unstable-2018-04-16
<{^_^}> [nixpkgs] @Mic92 merged pull request #39145 → slstatus: unstable-2018-03-21 -> unstable-2018-04-16 → https://git.io/vpLoB
aarvar has joined #nixos
marzzzello has joined #nixos
<kisik21> How to override SDL2_image so it has webp support?
coot has quit [Quit: coot]
<angerman> clever: you once posted a snipped to read the ghc from a different set of nixpkgs than the rest, to allow fast iteration on the generic-builder, I fail to find the link :(
alexteves_ has joined #nixos
<clever> angerman: one min
coot has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #39123 → dust: init at 0.2.3 → https://git.io/vpIMr
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpOln
<{^_^}> → 6026e43b by @Infinisil: dust: init at 0.2.3
<{^_^}> → c3e78d39 by @Mic92: Merge pull request #39123 from Infinisil/add/dust
<angerman> clever: looks about right.
<angerman> clever: how about `newPkgs.haskellPackages.override { overrides = self: super: { ghc = oldPkgs.ghc; } }`?
<angerman> clever: could that potentially work as well?
freeman42x]NixOS has joined #nixos
sigmundv__ has quit [Ping timeout: 264 seconds]
<elvishjerricco> angerman: I believe that'll work. Looks like what I've done in the past
<elvishjerricco> You may even be able to just do `haskellPackages.override { ghc = ...; }`, since GHC is an argument to Haskell packages
sigmundv__ has joined #nixos
<clever> elvishjerricco: ah, nice idea
pie_ has joined #nixos
asuryawanshi has joined #nixos
<{^_^}> [nixpkgs] @dezgeg merged pull request #38342 → raspberrypi-uboot: Init → https://git.io/vxi3i
<{^_^}> [nixpkgs] @dezgeg pushed 2 commits to master: https://git.io/vpOlu
<{^_^}> → 8bc970bb by @bkchr: raspberrypi-bootloader: Adds support for using uboot
<{^_^}> → 6ed495cf by @bkchr: raspberrypi-bootloader: Adds `firmwareConfig` config option
<{^_^}> [nixpkgs] @Mic92 merged pull request #39226 → leatherman: 1.4.0 -> 1.4.1 → https://git.io/vpqAP
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpOlg
<{^_^}> → 8a287846 by R. RyanTM: leatherman: 1.4.0 -> 1.4.1
<{^_^}> → 1cbf9882 by @Mic92: Merge pull request #39226 from r-ryantm/auto-update/leatherman
troydm has joined #nixos
<{^_^}> [nixpkgs] @yrashk closed pull request #35225 → pijul: 0.8.0 -> 0.8.3 → https://git.io/vAR5z
<yrashk> Whom should I ping to get https://github.com/NixOS/nixpkgs/pull/36957 reviewed? It's been sitting unattended for over a month now.
<clever> yrashk: posted a comment in the PR
orivej has quit [Ping timeout: 265 seconds]
<yrashk> clever: thanks, replied
<clever> yrashk: i think you can merge most of default.nix into apeclex.nix
lo_mlatu_ has joined #nixos
<clever> ah, i see, the defaults
orivej has joined #nixos
Myrl-saki has quit [Ping timeout: 256 seconds]
<clever> let me grab an example of a cleaner way to do it
<yrashk> it's the same software with just a different lexicon in it
evhan has quit [Ping timeout: 256 seconds]
<angerman> clever, elvishjerricco: that doesn’t seem to be enough… it’s still trying to build hscolour and all that.
<yrashk> I am wondering what can be cleaner than 4 lines of overriding defaults
evhan has joined #nixos
<clever> angerman: it will still rebuild 2 haskell packages, hscolour and one other, on every iteration
<clever> angerman: but thats still far better then all of ghc
<clever> yrashk: generally, you define a function in the same file, then call it twice, to produce the 2 packages
<yrashk> and also, what's nixpkgs policy is on bikeshedding vs getting derivations in -- what are the criteria for derivations to be perfect?
<angerman> clever: nah, it’s still trying to rebuild ghc… something funny’s going on.
<yrashk> clever: isn't derivation essentially a function?
<clever> yrashk: not sure, youd have to ask somebody that has merge prmission
<yrashk> it's just so weird -- I got tons of inits merged within 24 hours and this one is just not going anywhere
<clever> yrashk: builtins.derivation is a fairly special function, that will hash its inputs and compute an output path
<clever> it probably just got overlooked, try poking gchristensen or someone else in here
b has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpO83
<{^_^}> → b96cc8fb by @Mic92: Revert "nix-pin: add `passthru.updateScript`"
<{^_^}> → 94d92fd0 by @Mic92: Revert "nix-pin: 0.1.2 -> 0.2.2"
<yrashk> it'd be great to have a list of "top" maintainers to ping in such cases -- because https://github.com/NixOS/nixpkgs/blob/master/.github/CODEOWNERS doesn't cover it
<clever> angerman: have you played with nix-diff yet?
<angerman> a bit
<clever> angerman: try doing nix-instantiate on the expression you have, tweak the generic-builder.nix, nix-instantiate again, then nix-diff the 2 .drv files
<{^_^}> [nixpkgs] @markuskowa opened pull request #39332 → octopus: 7.2 -> 7.3 → https://git.io/vpO8E
<{^_^}> [nixpkgs] @pSub pushed to master « as31: use cve tag in patchname for vulnix auto-detection »: https://git.io/vpO8g
<clever> that should reveal if the change is spreading too deep into the tree
<angerman> clever: good idea!
<jluttine> i'm getting an error when running an executable. it doesn't find some file (probably missing some dependency). if i copy that executable to some non-nixos system, it works (although it was built on nixos). any ideas how i could track what dependency i might be missing on my nixos system?
<clever> jluttine: what does `file` say when ran against the binary?
<{^_^}> [nixpkgs] @jpotier closed pull request #30677 → nixos/xl2tpd: add the xl2tpOptions → https://git.io/vdN63
<clever> jluttine: and was the binary built with nix-shell or nix-build?
<{^_^}> [nixpkgs] @Mic92 merged pull request #38529 → hamlib: 1.2.15.3 -> 3.2 → https://git.io/vxHZc
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpO8D
<{^_^}> → fdbd53e9 by R. RyanTM: hamlib: 1.2.15.3 -> 3.2
<{^_^}> → 60ea373f by @Mic92: Merge pull request #38529 from r-ryantm/auto-update/hamlib
joepie91___ has joined #nixos
joepie91___ has quit [Changing host]
joepie91___ has joined #nixos
orivej has quit [Ping timeout: 264 seconds]
lejonet has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
<{^_^}> [nixpkgs] @pSub pushed to release-17.09 « cyrus-sasl: use cve tag in patchname for vulnix auto-detection »: https://git.io/vpO8h
spacefrogg_ has joined #nixos
olto has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #38730 → fox_1_6: 1.6.56 -> 1.6.57 → https://git.io/vxbQu
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpO4e
<{^_^}> → c03cb44a by R. RyanTM: fox_1_6: 1.6.56 -> 1.6.57
<{^_^}> → a3a2ae65 by @Mic92: Merge pull request #38730 from r-ryantm/auto-update/fox
<bkchr[m]> Someone here that can me help with getting gettext cross compiled?..
sigmundv has joined #nixos
TweyII has joined #nixos
sphalerite_ has joined #nixos
Guest37084 has quit [*.net *.split]
uvnikita[m] has quit [*.net *.split]
sphalerite has quit [*.net *.split]
spacefrogg has quit [*.net *.split]
hamburglar[m] has quit [*.net *.split]
greska[m] has quit [*.net *.split]
sudoreboot[m] has quit [*.net *.split]
mith[m] has quit [*.net *.split]
itorres has quit [*.net *.split]
benasse has quit [*.net *.split]
YuFanLovezYou[m] has quit [*.net *.split]
zie[m] has quit [*.net *.split]
superusercode has quit [*.net *.split]
leoleoleotest[m] has quit [*.net *.split]
necronian has quit [*.net *.split]
turok9[m] has quit [*.net *.split]
dtz has quit [*.net *.split]
bendlas has quit [*.net *.split]
slabity[m] has quit [*.net *.split]
thra11[m] has quit [*.net *.split]
imbigbrother[m] has quit [*.net *.split]
M-dpetranek has quit [*.net *.split]
paperdigits[m] has quit [*.net *.split]
octowan[m] has quit [*.net *.split]
olejorgenb[m] has quit [*.net *.split]
h30[m] has quit [*.net *.split]
hedning[m] has quit [*.net *.split]
offlinehacker[m] has quit [*.net *.split]
nelag[m] has quit [*.net *.split]
Vincenzo[m] has quit [*.net *.split]
Obscurity[m] has quit [*.net *.split]
demyan[m] has quit [*.net *.split]
petersjt014[m] has quit [*.net *.split]
m4rv33n[m] has quit [*.net *.split]
nh2[m] has quit [*.net *.split]
timclassic has quit [*.net *.split]
peel[m] has quit [*.net *.split]
das-g[m] has quit [*.net *.split]
dpc has quit [*.net *.split]
dywedir[m] has quit [*.net *.split]
jamshoot[m] has quit [*.net *.split]
nmikhailov[m] has quit [*.net *.split]
Rick[29SMPittsbu has quit [*.net *.split]
AlanPearce[m] has quit [*.net *.split]
mjacob_ has quit [*.net *.split]
cnu- has quit [*.net *.split]
snajpa has quit [*.net *.split]
dgpratt has quit [*.net *.split]
cbarrett has quit [*.net *.split]
philips has quit [*.net *.split]
ilovezfs_ has quit [*.net *.split]
tghume has quit [*.net *.split]
joepie91 has quit [*.net *.split]
Adluc has quit [*.net *.split]
LnL has quit [*.net *.split]
yastero has quit [*.net *.split]
Twey has quit [*.net *.split]
sigmundv_ has quit [*.net *.split]
hiberno has quit [*.net *.split]
wip_ has quit [*.net *.split]
mightybyte has quit [*.net *.split]
TweyII is now known as Twey
lejonet has joined #nixos
<jluttine> clever: # file `which diskrsync`
<jluttine> /nix/store/xvasgy3mi8a6v5zj3qa4wisinks1nypf-diskrsync-unstable-2018-02-03-bin/bin/diskrsync: a /nix/store/q1g0rl8zfmz7r371fp5p42p4acmv297d-bash-4.4-p19/bin/bash -e script, ASCII text executable
<clever> jluttine: and what is it failing to find when running?
blahdodo has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @pSub pushed commit from @ryantm to release-17.09 « xorg.libXfixes: 5.0.2 -> 5.0.3 »: https://git.io/vpO4t
_rvl has quit [Ping timeout: 260 seconds]
<jluttine> clever: i don't know. it starts its thing, does a bit then exits with: bash: /nix/store/xvasgy3mi8a6v5zj3qa4wisinks1nypf-diskrsync-unstable-2018-02-03-bin/bin/diskrsync: No such file or directory
<jluttine> 2018/04/22 17:53:51 exit status 127
<jluttine> it's not diskrsync that it fails to find
ma27 has quit [Ping timeout: 265 seconds]
mbrgm has quit [Ping timeout: 260 seconds]
qqlq has quit [Ping timeout: 260 seconds]
<jluttine> it's something that diskrsync tries to launch probably
markus1189 has quit [Ping timeout: 240 seconds]
yastero has joined #nixos
markus1189 has joined #nixos
ma27 has joined #nixos
octowan[m] has joined #nixos
imbigbrother[m] has joined #nixos
Rick[29SMPittsbu has joined #nixos
<jluttine> (diskrsync is the executable that i'm launching)
Myrl-saki has joined #nixos
superusercode has joined #nixos
turok9[m] has joined #nixos
<clever> jluttine: diskrsync appears to just be a bash script, not an executable
hiberno has joined #nixos
qqlq has joined #nixos
<jluttine> clever: it's a nixos wrapper which adds `ssh` to path and then calls the actual binary
blahdodo has joined #nixos
<clever> jluttine: try running it under strace, and then pastebin the output
_rvl has joined #nixos
<ixxie> can anybody link to an example of a NixOS configuration with some custom module options?
mbrgm has joined #nixos
<Ankhers> Has anyone used growpart from cloud-utils lately I'm getting an error about gnused not being found. But It is right next to growpart binary.
<clever> ixxie: this one uses the option to adjust the vim config: https://github.com/cleverca22/nixos-configs/blob/master/vim.nix
<clever> ixxie: https://github.com/cleverca22/nixos-configs/blob/master/qemu.nix this one configures qemu emulation of several platforms
<clever> Ankhers: it doesnt set PATH properly, but the default aws config for nixos runs it automatically in the initrd, so you dont really have to touch it directly
semilattice has joined #nixos
orivej has quit [Read error: Connection reset by peer]
Vincenzo[m] has joined #nixos
greska[m] has joined #nixos
petersjt014[m] has joined #nixos
<Ankhers> clever: What does that mean for me exactly? I'm trying to increase the size of a disk.
<clever> Ankhers: it will resize itself automatically when you reboot
<Ankhers> Awesome. Thank you!
<{^_^}> [nixpkgs] @pSub pushed commit from @ryantm to release-18.03 « exempi: 2.4.4 -> 2.4.5 »: https://git.io/vpO4c
orivej has joined #nixos
<ixxie> thanks clever; about the option namespace, can I just name them whatever?
<clever> ixxie: pretty much
<clever> as long as it doesnt conflict with any existing things
<ixxie> cool
<ixxie> thanks
Ankhers_ has joined #nixos
zie[m] has joined #nixos
paperdigits[m] has joined #nixos
<clever> jluttine: once more, but with strace -f
<jluttine> ok :)
shabius_ has joined #nixos
slabity[m] has joined #nixos
<{^_^}> [nixpkgs] @markuskowa opened pull request #39333 → openmpi: 3.0.0 -> 3.0.1 → https://git.io/vpO4B
ma27 has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @Mic92 closed pull request #35723 → iasl: 20170303 -> 20180209 → https://git.io/vA6tO
sanscoeur has joined #nixos
<ixxie> clever: but I can also define the options elsewhere right?
ma27 has joined #nixos
Ankhers has quit [Ping timeout: 276 seconds]
Ankhers_ is now known as Ankhers
<clever> ixxie: yeah
<clever> jluttine: i think i see the problem, the script is trying to run itself on the remote machine, via ssh
<clever> jluttine: and nixpkgs has patched an absolute path into the script
mjacob has joined #nixos
<clever> jluttine: so it will only work if you nix-copy-closure the exact build to the remote machine
shabius has quit [Ping timeout: 256 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jluttine> clever: hmm.. ah, ok.. :/ i have diskrsync executable on that machine and it's in PATH there. i can run it there without any problems. but apparently it's broken now. it used to work, maybe before i added this wrapping which adds ssh to path.. :/
sanscoeur has quit [Ping timeout: 264 seconds]
<jluttine> hmm.. ah yeah, now i understand. diskrsync calls with the same name as it was called. previously i just called "diskrsync ..." and thus it worked. now the wrapper calls the binary with absolute path so it won't work anymore..
matklad has joined #nixos
<spear2> so i had a nixos 17 install that i hadn't upgraded for some months and ran nixos-rebuild switch --upgrade
<spear2> it looked like ghc was bootstrapping for a couple hours before it ran out of disk space? not sure what happened
<jluttine> i can't make those absolute paths on the remote machine because i have no root access there
shabius_ has quit [Quit: Leaving]
<musicmatze[m]> aszlig: is your email address in the git logs of nixpkgs correct?
<jluttine> need to think of something hmm.. perhaps fine-tune the wrapper so that it calls without the absolute path (use alias for instance) or patch the diskrsync codebase so that it uses diskrsync on the remote machine regardless of how it was called locally..
<jluttine> clever: thanks a lot!
<jluttine> i don't understand how you could get that information from that strace mess... :D
<clever> jluttine: look at the lines containing execve, those have the args passed to ssh
shabius has joined #nixos
shabius has quit [Client Quit]
mightybyte has joined #nixos
Guest37084 has joined #nixos
mith[m] has joined #nixos
uvnikita[m] has joined #nixos
leoleoleotest[m] has joined #nixos
necronian has joined #nixos
thra11[m] has joined #nixos
dtz has joined #nixos
hamburglar[m] has joined #nixos
hedning[m] has joined #nixos
bendlas has joined #nixos
sudoreboot[m] has joined #nixos
YuFanLovezYou[m] has joined #nixos
itorres has joined #nixos
M-dpetranek has joined #nixos
benasse has joined #nixos
h30[m] has joined #nixos
olejorgenb[m] has joined #nixos
nelag[m] has joined #nixos
nh2[m] has joined #nixos
jamshoot[m] has joined #nixos
dpc has joined #nixos
Obscurity[m] has joined #nixos
dywedir[m] has joined #nixos
peel[m] has joined #nixos
snajpa has joined #nixos
nmikhailov[m] has joined #nixos
das-g[m] has joined #nixos
AlanPearce[m] has joined #nixos
demyan[m] has joined #nixos
m4rv33n[m] has joined #nixos
offlinehacker[m] has joined #nixos
cbarrett has joined #nixos
cnu- has joined #nixos
LnL has joined #nixos
philips has joined #nixos
Adluc has joined #nixos
wip_ has joined #nixos
ilovezfs_ has joined #nixos
tghume has joined #nixos
timclassic has joined #nixos
dgpratt has joined #nixos
qqlq has quit [Ping timeout: 260 seconds]
Xal has quit [Ping timeout: 260 seconds]
vil has quit [Ping timeout: 260 seconds]
acowley has quit [Ping timeout: 260 seconds]
bennofs has quit [Quit: WeeChat 2.0]
softinio has joined #nixos
zie[m] has quit [Ping timeout: 246 seconds]
ArdaXi[m] has quit [Ping timeout: 255 seconds]
leons has quit [Ping timeout: 255 seconds]
Vincenzo[m] has quit [Ping timeout: 240 seconds]
turok9[m] has quit [Ping timeout: 240 seconds]
unlmtd has quit [Ping timeout: 240 seconds]
blahblah has quit [Ping timeout: 240 seconds]
Pneumaticat has quit [Ping timeout: 240 seconds]
Adev[m] has quit [Ping timeout: 240 seconds]
M-fishy has quit [Ping timeout: 240 seconds]
Rick[29SMPittsbu has quit [Ping timeout: 240 seconds]
octowan[m] has quit [Ping timeout: 240 seconds]
TimePath has quit [Ping timeout: 240 seconds]
mudri[m] has quit [Ping timeout: 240 seconds]
templis[m] has quit [Ping timeout: 240 seconds]
lycium[m] has quit [Ping timeout: 240 seconds]
spawnthink[m] has quit [Ping timeout: 240 seconds]
telent_[m] has quit [Ping timeout: 240 seconds]
midchildan[m] has quit [Ping timeout: 240 seconds]
hamburglar[m] has quit [Ping timeout: 256 seconds]
sudoreboot[m] has quit [Ping timeout: 256 seconds]
YuFanLovezYou[m] has quit [Ping timeout: 256 seconds]
itorres has quit [Ping timeout: 256 seconds]
thra11[m] has quit [Ping timeout: 256 seconds]
M-dpetranek has quit [Ping timeout: 256 seconds]
dtz has quit [Ping timeout: 256 seconds]
hedning[m] has quit [Ping timeout: 256 seconds]
h30[m] has quit [Ping timeout: 256 seconds]
nelag[m] has quit [Ping timeout: 256 seconds]
Obscurity[m] has quit [Ping timeout: 256 seconds]
m4rv33n[m] has quit [Ping timeout: 256 seconds]
timclassic has quit [Ping timeout: 256 seconds]
peel[m] has quit [Ping timeout: 256 seconds]
dywedir[m] has quit [Ping timeout: 256 seconds]
AlanPearce[m] has quit [Ping timeout: 256 seconds]
paperdigits[m] has quit [Ping timeout: 245 seconds]
petersjt014[m] has quit [Ping timeout: 245 seconds]
htafdwes[m] has quit [Ping timeout: 245 seconds]
BurNiinTRee[m] has quit [Ping timeout: 245 seconds]
Singularity[m] has quit [Ping timeout: 245 seconds]
hl has quit [Ping timeout: 245 seconds]
benkolera1 has quit [Ping timeout: 245 seconds]
YegorTimoshenko[ has quit [Ping timeout: 245 seconds]
moosh_vectra[m] has quit [Ping timeout: 245 seconds]
concate[m] has quit [Ping timeout: 245 seconds]
AntonLatukha[m] has quit [Ping timeout: 245 seconds]
bachp has quit [Ping timeout: 245 seconds]
smrtak[m] has quit [Ping timeout: 245 seconds]
Wysteriary[m] has quit [Ping timeout: 245 seconds]
EB[m] has quit [Ping timeout: 245 seconds]
lukeadams[m] has quit [Ping timeout: 245 seconds]
r3mfKm[m] has quit [Ping timeout: 245 seconds]
randomenduser[m] has quit [Ping timeout: 245 seconds]
Minijackson[m] has quit [Ping timeout: 245 seconds]
yochai[m] has quit [Ping timeout: 245 seconds]
edef[m] has quit [Ping timeout: 245 seconds]
NickHu has quit [Ping timeout: 245 seconds]
grahamc has quit [Ping timeout: 245 seconds]
baconicsynergy[m has quit [Ping timeout: 245 seconds]
bkchr[m] has quit [Ping timeout: 245 seconds]
kitten[m] has quit [Ping timeout: 245 seconds]
timokau[m] has quit [Ping timeout: 245 seconds]
adisbladis[m] has quit [Ping timeout: 260 seconds]
ison[m] has quit [Ping timeout: 260 seconds]
serentty[m] has quit [Ping timeout: 260 seconds]
primeos[m] has quit [Ping timeout: 260 seconds]
imbigbrother[m] has quit [Ping timeout: 258 seconds]
moredhel_[m] has quit [Ping timeout: 258 seconds]
indefini has quit [Ping timeout: 258 seconds]
wak-work has quit [Ping timeout: 258 seconds]
rycee has quit [Ping timeout: 258 seconds]
chominist[m] has quit [Ping timeout: 258 seconds]
MatrixStatsBot[m has quit [Ping timeout: 246 seconds]
tet[m] has quit [Ping timeout: 246 seconds]
wizek[m] has quit [Ping timeout: 246 seconds]
herzmeister[m] has quit [Ping timeout: 246 seconds]
jgl[m] has quit [Ping timeout: 246 seconds]
hendrik[m] has quit [Ping timeout: 246 seconds]
castordamon has quit [Ping timeout: 246 seconds]
alexoundos7[m] has quit [Ping timeout: 246 seconds]
jbarthelmes[m] has quit [Ping timeout: 246 seconds]
LiuWeiHua[m] has quit [Ping timeout: 246 seconds]
Orbstheorem[m] has quit [Ping timeout: 240 seconds]
bdimcheff has quit [Ping timeout: 240 seconds]
aaronc[m] has quit [Ping timeout: 240 seconds]
WilliamHamilton has quit [Ping timeout: 240 seconds]
lolipducker[m] has quit [Ping timeout: 240 seconds]
greska[m] has quit [Ping timeout: 255 seconds]
superusercode has quit [Ping timeout: 255 seconds]
coorey[m] has quit [Ping timeout: 255 seconds]
AllanDaemon has quit [Ping timeout: 255 seconds]
asp_ has quit [Ping timeout: 255 seconds]
iohidtbhfam[m] has quit [Ping timeout: 255 seconds]
atopuzov[m] has quit [Ping timeout: 255 seconds]
codyopel has quit [Ping timeout: 255 seconds]
jmorriss[m] has quit [Ping timeout: 255 seconds]
aniketd[m] has quit [Ping timeout: 255 seconds]
balsoft[m] has quit [Ping timeout: 240 seconds]
panther420[m] has quit [Ping timeout: 240 seconds]
xnaveira[m] has quit [Ping timeout: 240 seconds]
thefloweringash[ has quit [Ping timeout: 240 seconds]
enick_598 has quit [Ping timeout: 240 seconds]
johnazoidberg has quit [Ping timeout: 240 seconds]
nmikhailov[m]1 has quit [Ping timeout: 240 seconds]
crystalgamma[m] has quit [Ping timeout: 240 seconds]
PeterRomfeld[m] has quit [Ping timeout: 240 seconds]
Elephant454[m] has quit [Ping timeout: 240 seconds]
wmertens[m] has quit [Ping timeout: 240 seconds]
Deleh[m] has quit [Ping timeout: 240 seconds]
felipeac[m] has quit [Ping timeout: 240 seconds]
johnazoidberg[m] has quit [Ping timeout: 240 seconds]
M-bbigras has quit [Ping timeout: 240 seconds]
gudea[m] has quit [Ping timeout: 240 seconds]
aramiscd[m] has quit [Ping timeout: 240 seconds]
y0no[m] has quit [Ping timeout: 240 seconds]
amiloradovsky[m] has quit [Ping timeout: 240 seconds]
spacekitteh[m] has quit [Ping timeout: 240 seconds]
cornu[m] has quit [Ping timeout: 240 seconds]
techtangents[m] has quit [Ping timeout: 240 seconds]
ayyjayess[m] has quit [Ping timeout: 240 seconds]
patrl[m] has quit [Ping timeout: 240 seconds]
freeman42x has quit [Ping timeout: 245 seconds]
smbarte2[m] has quit [Ping timeout: 245 seconds]
DIzFer[m] has quit [Ping timeout: 245 seconds]
jluttine[m] has quit [Ping timeout: 245 seconds]
Kallegro[m] has quit [Ping timeout: 245 seconds]
sorbet has quit [Ping timeout: 245 seconds]
happyente[m] has quit [Ping timeout: 245 seconds]
fgaz[m] has quit [Ping timeout: 245 seconds]
dylanjust[m] has quit [Ping timeout: 245 seconds]
chatnowvvv[m] has quit [Ping timeout: 245 seconds]
tokudan[m] has quit [Ping timeout: 245 seconds]
chedi has quit [Ping timeout: 245 seconds]
kainospur[m] has quit [Ping timeout: 245 seconds]
Phil[m]2 has quit [Ping timeout: 246 seconds]
briansteffens[m] has quit [Ping timeout: 246 seconds]
scott has quit [Ping timeout: 246 seconds]
peterbat[m] has quit [Ping timeout: 246 seconds]
Drakonis[m] has quit [Ping timeout: 246 seconds]
ploud777[m] has quit [Ping timeout: 246 seconds]
johnhamelink[m] has quit [Ping timeout: 246 seconds]
card[m] has quit [Ping timeout: 246 seconds]
saschaveres[m] has quit [Ping timeout: 246 seconds]
retrry[m] has quit [Ping timeout: 246 seconds]
swayf[m] has quit [Ping timeout: 246 seconds]
Dezgeg[m] has quit [Ping timeout: 246 seconds]
rnhmjoj[m] has quit [Ping timeout: 246 seconds]
johnnydread[m] has quit [Ping timeout: 246 seconds]
telent[m] has quit [Ping timeout: 246 seconds]
uvnikita[m] has quit [Ping timeout: 256 seconds]
mith[m] has quit [Ping timeout: 256 seconds]
benasse has quit [Ping timeout: 256 seconds]
necronian has quit [Ping timeout: 256 seconds]
leoleoleotest[m] has quit [Ping timeout: 256 seconds]
bendlas has quit [Ping timeout: 256 seconds]
olejorgenb[m] has quit [Ping timeout: 256 seconds]
demyan[m] has quit [Ping timeout: 256 seconds]
nh2[m] has quit [Ping timeout: 256 seconds]
das-g[m] has quit [Ping timeout: 256 seconds]
dpc has quit [Ping timeout: 256 seconds]
jamshoot[m] has quit [Ping timeout: 256 seconds]
nmikhailov[m] has quit [Ping timeout: 256 seconds]
enick_350 has quit [Ping timeout: 260 seconds]
mankyKitty[m] has quit [Ping timeout: 260 seconds]
purewater[m] has quit [Ping timeout: 260 seconds]
magnap has quit [Ping timeout: 260 seconds]
bennofs[m] has quit [Ping timeout: 260 seconds]
moredhel has quit [Ping timeout: 260 seconds]
puffnfresh has quit [Ping timeout: 260 seconds]
florianjacob has quit [Ping timeout: 260 seconds]
thunker[m] has quit [Ping timeout: 260 seconds]
lazygun[m] has quit [Ping timeout: 260 seconds]
zoya-kosova[m] has quit [Ping timeout: 260 seconds]
ipj[m] has quit [Ping timeout: 260 seconds]
equalunique[m] has quit [Ping timeout: 260 seconds]
clacke[m] has quit [Ping timeout: 260 seconds]
M-manveru has quit [Ping timeout: 260 seconds]
xodbox[m] has quit [Ping timeout: 260 seconds]
reactormonk[m] has quit [Ping timeout: 260 seconds]
bhipple[m] has quit [Ping timeout: 260 seconds]
pierrebeaucamp[m has quit [Ping timeout: 260 seconds]
regnat[m] has quit [Ping timeout: 260 seconds]
mirlur[m] has quit [Ping timeout: 260 seconds]
Fedor[m] has quit [Ping timeout: 260 seconds]
Bugworm[m] has quit [Ping timeout: 260 seconds]
windy328ghoee[m] has quit [Ping timeout: 260 seconds]
davidak[m] has quit [Ping timeout: 260 seconds]
jack[m] has quit [Ping timeout: 260 seconds]
chedi[m] has quit [Ping timeout: 260 seconds]
DenisLehmann[m] has quit [Ping timeout: 260 seconds]
gh0st[m] has quit [Ping timeout: 260 seconds]
trikl[m] has quit [Ping timeout: 260 seconds]
M-ms has quit [Ping timeout: 260 seconds]
matrixkrav has quit [Ping timeout: 260 seconds]
dmitry-zen[m] has quit [Ping timeout: 260 seconds]
peterhoeg has quit [Ping timeout: 260 seconds]
tfc[m] has quit [Ping timeout: 260 seconds]
srini[m] has quit [Ping timeout: 260 seconds]
bobvanderlinden_ has quit [Ping timeout: 260 seconds]
Elorm[m] has quit [Ping timeout: 260 seconds]
attero has quit [Ping timeout: 260 seconds]
admin[m]4 has quit [Ping timeout: 260 seconds]
etu[m] has quit [Ping timeout: 260 seconds]
davidar has quit [Ping timeout: 260 seconds]
rardiol[m] has quit [Ping timeout: 276 seconds]
steshaw[m] has quit [Ping timeout: 276 seconds]
taohansen has quit [Ping timeout: 276 seconds]
rihardsk[m] has quit [Ping timeout: 276 seconds]
ConorCurry[m] has quit [Ping timeout: 276 seconds]
Naughtmare[m] has quit [Ping timeout: 276 seconds]
apurvapavaskar[m has quit [Ping timeout: 276 seconds]
aspiwack[m] has quit [Ping timeout: 276 seconds]
wzy8L-B2[m] has quit [Ping timeout: 276 seconds]
Barnabas[m] has quit [Ping timeout: 276 seconds]
nyanloutre[m]1 has quit [Ping timeout: 256 seconds]
vidbina has quit [Ping timeout: 256 seconds]
Criena[m] has quit [Ping timeout: 256 seconds]
nixo[m] has quit [Ping timeout: 256 seconds]
EuAndreh[m] has quit [Ping timeout: 256 seconds]
Khorne[m] has quit [Ping timeout: 256 seconds]
pstn has quit [Ping timeout: 256 seconds]
revoltmedia[m] has quit [Ping timeout: 256 seconds]
danielrf has quit [Ping timeout: 256 seconds]
efx[m] has quit [Ping timeout: 276 seconds]
dkellner[m] has quit [Ping timeout: 276 seconds]
octalsrc[m] has quit [Ping timeout: 276 seconds]
wilornel has quit [Ping timeout: 276 seconds]
neecro[m] has quit [Ping timeout: 276 seconds]
musicmatze[m] has quit [Ping timeout: 276 seconds]
Ralith has quit [Ping timeout: 255 seconds]
joh[m] has quit [Ping timeout: 255 seconds]
sargon[m] has quit [Ping timeout: 255 seconds]
malteof[m] has quit [Ping timeout: 255 seconds]
icetan has quit [Ping timeout: 255 seconds]
fearlessKim[m] has quit [Ping timeout: 255 seconds]
sphalerit has quit [Ping timeout: 255 seconds]
jlle[m] has quit [Ping timeout: 255 seconds]
AdamSlack[m] has quit [Ping timeout: 255 seconds]
Oo[m] has quit [Ping timeout: 255 seconds]
bugabinga[m] has quit [Ping timeout: 255 seconds]
ajmccluskey[m] has quit [Ping timeout: 255 seconds]
<softinio> just installed nixos but when I use vim in terminal everything is black and white and no colors show up is there anything extra I need to setup? ps: new to nixos first time ever so far loving it
FRidh[m] has quit [Ping timeout: 265 seconds]
shabius has joined #nixos
offlinehacker[m] has quit [Ping timeout: 256 seconds]
slabity[m] has quit [Ping timeout: 260 seconds]
abbafei[m] has quit [Ping timeout: 276 seconds]
ngerstle[m] has quit [Ping timeout: 276 seconds]
copumpkin has quit [Ping timeout: 276 seconds]
dash has quit [Ping timeout: 276 seconds]
wervenyt[m] has quit [Ping timeout: 276 seconds]
CoopDot has quit [Ping timeout: 276 seconds]
roygobeilantoine has quit [Ping timeout: 276 seconds]
Hook[m]1 has quit [Ping timeout: 276 seconds]
M-Dan has quit [Ping timeout: 276 seconds]
GuillaumeBuisson has quit [Ping timeout: 276 seconds]
vil has joined #nixos
acowley has joined #nixos
qqlq has joined #nixos
<clever> somebody set off the matrix bomb
<softinio> lol
Xal has joined #nixos
sellout- has quit [Ping timeout: 260 seconds]
ixxie has quit [Quit: Lost terminal]
johnw has joined #nixos
sellout- has joined #nixos
xcmw has joined #nixos
orivej has quit [Ping timeout: 248 seconds]
<spear2> softinio: did you customize configuration.nix? besides vim?
mightybyte has left #nixos [#nixos]
alexteves has quit [Quit: Textual IRC Client: www.textualapp.com]
<softinio> just what packages to install spear2
<softinio> I am using zsh with same dot files as i have been using on mac so wondering if that has something to do with it
<softinio> looking at env variables I seem to have TERM=xterm-256color
<softinio> maybe this is the issue? Should it be something else?
<clever> softinio: what terminal are you using?
ixxie has joined #nixos
lejonet has quit [Ping timeout: 264 seconds]
<softinio> I am running NixOS on a vpc so no desktop installed its what ever default when I ssh into it
<clever> softinio: ssh doesnt change the type of your terminal emulator
<clever> $TERM should match whatever you have at the client end
<softinio> ahhh something interesting I get colors when I use ssh , I don't when I use mosh !
<ixxie> woohoo clever, this worked out quite nicely :)
<softinio> mosh the culprit
<ixxie> thanks
<clever> softinio: its more likely that the old env vars that mosh is resuming may be to blame
<clever> softinio: compare $TERM with ssh and mosh
<clever> ixxie: your welcome
ryanartecona has joined #nixos
<ixxie> now I just need to figure out how to build this on my droplet (the build daemon runs out of memory)
jgt4 has joined #nixos
<ixxie> or build it remotely
<clever> ixxie: you can use nix-copy-closure to copy .drv files to another machine
<clever> and nix-store -r to build them
humanoyd has joined #nixos
<softinio> clever: just checked they are same
<clever> softinio: ah, not sure then
<ixxie> clever: I was thinking to specify my laptop as the remote builder?
<clever> ixxie: also, it depends on which part of nix is running out of memory
<clever> ixxie: some parts still have to run on the droplet, even with remote builds
jgt3 has quit [Ping timeout: 248 seconds]
<ixxie> but with copy closure it wouldn't be an issue?
<ixxie> actually, what about nixops
<ixxie> would that build locally and then deploy?
<clever> yeah
<clever> ive used nixops to manage 2 netbooks that dont have enough free disk space to build themselves
lejonet has joined #nixos
<ixxie> Well I have been waiting for good motivator for learning NixOps so I will go for that
<ixxie> :)
<clever> i have some examples fo that
<softinio> clever: thanks for help .... I saw on github that 24 bit support not in current mosh release wonder if that is cause apparently is a new thing mosh has added and its in master branch but not released yet
<clever> ixxie: all 3 of those systems where converted from normal nixos-rebuild to nixops
<clever> ixxie: the key thing to keep in mind, is that you have to properly define the boot and fileSystems stuff at a minimum, so whatever nixops creates can still boot
Ralith_ has quit [Ping timeout: 265 seconds]
<clever> ixxie: and for digital ocean, you have to configure the static ip properly
<ixxie> clever: where do I configure static IP?
<clever> ixxie: you want to copy the existing configuration.nix and hardware-configuration.nix the machine is already using
<clever> ixxie: those should already have it
<ixxie> oh easy enough
<ixxie> of course I will be sure to import them to the deployment :)
<clever> ixxie: and if you want to control the nixpkgs nixops uses
<clever> nixops set-args -d name -I nixpkgs=https://github.com/nixos/nixpkgs/archive/8bce347f02f6bd606ec1822f0ba9b94d7f139071.tar.gz
<clever> i believe that was the trick
wangoe has joined #nixos
lukas_2511 has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
<ixxie> clever: it doesn't use my local channels?
<clever> ixxie: it will use the local <nixpkgs> by default
<clever> but you may want to isolate it from updates that happen to the local machine
orivej has joined #nixos
<ixxie> I think for my purposes I wanna keep them synced
<ixxie> so its fine, but I will keep that in mind
<lukas_2511> hi there. i'm currently switching over from archlinux and i'd love to keep my fancy color-emoji i3 status bar, but I just can't get color emojis to work... i've been trying for way too long now, and I either get way to big grayscale emojis (can scale them down with custom fontconfig, but i'd love to keep configuration central..) or just crappy terminal-like emojis... anybody get a setup like this and can give
<lukas_2511> me a working nixos fonts config?
<ixxie> so the nixops manual explain how to deploy to digital ocean, but there you specify the region/size, etc. - I assume that is for deploying a new machine as opposed to provisioning an existing one?
Neo-- has quit [Ping timeout: 246 seconds]
<clever> ixxie: if you want to reuse an existing instance, ignore the digitalocean directions, and instead use the none backend
<clever> ixxie: the 3 examples i linked all use none, just give it an ip and it will assume control of the machine
<softinio> is there an easy way to migrate from home-brew to nix on macos? Anyone one a nice migration tool? :-)
<gchristensen> just install Nix and get started :)
drakonis has joined #nixos
drakonis has quit [Remote host closed the connection]
<gchristensen> you may actually want to use homebrew for some stuff, like mac specific GUI apps, where homebrew does a nicer job
<ixxie> clever: thanks, I will probably be doing that; I am curious how the other way works though; what happens after you do the initial deployment? Do you need to change the backend from DO to none?
<clever> ixxie: for proper DO stuff, you set the backend to the keyname for DO, and leave it
<clever> ixxie: and nixops will manage creation, deployment, and destruction
<clever> but there is no way to tell nixops to adopt something that youve already created
<clever> so its simpler to just set the targetEnv to none, and manage the destruction yourself, whenever that comes up
<clever> enless you dont mind just destroying it now and letting nixops remake the whole thing
<ixxie> clever: well I don't mind starting from scratch; there isn't anything on there which isn't on github
<ixxie> clever: so then, I destroy the original and deploy the new one directly from nixops
<clever> yeah
<clever> i think nixops will also manage booting and the IP for you then, so you dont need to be as careful with getting the config right the first time
<ixxie> neat
<ixxie> and no explicit hardware/networking imports I guess?
<clever> correct
<clever> nixops generates that and inserts it for you
nD5Xjz has joined #nixos
Mateon1 has quit [Remote host closed the connection]
jgt has joined #nixos
<ixxie> sweetness
coot has quit [Quit: coot]
pie_ has quit [Ping timeout: 248 seconds]
<ixxie> clever: when deploying to your netbooks, can they be asleep?
<clever> you need to use the --include or --exclude flag to stop it from trying to talk to a machine thats offline
jgt4 has quit [Ping timeout: 245 seconds]
<ixxie> is there a way to trigger deployment when the machine goes on?
<clever> nope
<ixxie> I guess one could make some scripts to run on startup to do stuff like this
jrolfs has joined #nixos
asuryawanshi has quit [Ping timeout: 268 seconds]
Mateon1 has joined #nixos
kisik21 has quit [Quit: Leaving.]
chisui has joined #nixos
<lukas_2511> oh, it seems that my emoji color problem is related to the older cairo version in nixos... :(
jrolfs has quit [Read error: Connection reset by peer]
pemeunier has quit [Remote host closed the connection]
xmr-nixos-user has joined #nixos
<xmr-nixos-user> Hello! I am trying to upgrade my version of Monero, by doing `nixos-rebuild`, but it seems that the version is not upgrading. Is this the right place to ask for help?
ixxie has quit [Ping timeout: 276 seconds]
zduch4c has joined #nixos
<ij> If I recreate nixops state, then it'll fetch things it already has in the store?
<zduch4c> anyone have any luck setting up a tor hidden service on NixOS? preferably for RetroShare, but I'd like to see any succesful configuration you've had
jrolfs has joined #nixos
<NinjaTrappeur> xmr-nixos-user, yes, which nixos version do you use? Which version of monero do you expect to update to? Did you forget to specify the --upgrade flag to the nixos-rebuild command?
jrolfs has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
jrolfs has joined #nixos
periklis has joined #nixos
<xmr-nixos-user> NinjaTrapper: I am trying to upgrade from .11 to .12 I had indeed forgot to run `nixos-rebuild` with the `--upgrade` flag, but I just did so and still am not upgrading to the new version. Here's the command output: https://pastebin.com/NZ3GbNpQ
jrolfs has quit [Read error: Connection reset by peer]
sucaml has joined #nixos
jrolfs has joined #nixos
<NinjaTrappeur> what does nix-channel --list outputs?
jrolfs has quit [Read error: Connection reset by peer]
matklad has quit [Remote host closed the connection]
<xmr-nixos-user> NinjaTrapper: This: `nixpkgs https://nixos.org/channels/nixpkgs-unstable`
<clever> xmr-nixos-user: you must never run nixos from the nixpkgs-unstable channel
<clever> xmr-nixos-user: also, check nix-channel --list again as root
<{^_^}> [nixpkgs] @oxij opened pull request #39335 → memtest86plus: fix, switch to using coreboot's branch → https://git.io/vpO0H
<xmr-nixos-user> clever: https://pastebin.com/4MkcJ7mq
zduch4c has quit [Quit: Page closed]
jrolfs has joined #nixos
<clever> xmr-nixos-user: nixos is still running from the 17.09 channel, which is from last year
<clever> you have to give nix-channel --add the name "nixos" to overwrite the 17.09
<xmr-nixos-user> clever: Got it. How can I use a newer channel (without using `unstable`)?
<xmr-nixos-user> Ah thank you!
<clever> check the nix-channel man page
jrolfs has quit [Read error: Connection reset by peer]
raynold has quit [Quit: Connection closed for inactivity]
jrolfs has joined #nixos
<xmr-nixos-user> clever: do I need to pass 18.03 as the nixos channel version?
<NinjaTrappeur> clever, why is using nixpkgs-unstable as nixos channel is unadvised?
<{^_^}> [nixpkgs] @Ma27 opened pull request #39336 → osquery: 2.5.2 -> 3.2.2 → https://git.io/vpOEm
cheater has left #nixos [#nixos]
jrolfs has quit [Read error: Connection reset by peer]
sanscoeur has joined #nixos
jrolfs has joined #nixos
<clever> NinjaTrappeur: the nixos services arent tested when updating that channel
<clever> NinjaTrappeur: there was a wave of people a few years back that just lost the ability to boot, because nixpkgs-unstable broke the grub config file
<clever> nixos-unstable correctly refused to update, and protected those users
jrolfs has quit [Read error: Connection reset by peer]
kisik21 has joined #nixos
<{^_^}> [nixpkgs] @dezgeg pushed to release-18.03 « nixos/installer/channel: Add some files that the channel also has »: https://git.io/vpOEo
<{^_^}> [nixpkgs] @joachifm merged pull request #39048 → nixos: fix rename.nix bugs → https://git.io/vpUfn
<{^_^}> [nixpkgs] @joachifm pushed 3 commits to master: https://git.io/vpOE1
<{^_^}> → 4018d446 by @oxij: Revert "nixos/version: fix nixops pre 1.6 compatibility"
<{^_^}> → b57a6e9a by @oxij: nixos: rename.nix: fix bugs
<{^_^}> → f442bfc0 by @joachifm: Merge pull request #39048 from oxij/nixos/fix-rename-bugs
sanscoeur has quit [Ping timeout: 255 seconds]
humanoyd has quit [Quit: WeeChat 2.1]
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/vpOE9
<{^_^}> → 36d58a2c by @joachifm: Merge pull request #39332 from markuskowa/octopus-up
<{^_^}> → 1d0267b2 by @markuskowa: octopus: 7.2 -> 7.3
<{^_^}> [nixpkgs] @joachifm merged pull request #39332 → octopus: 7.2 -> 7.3 → https://git.io/vpO8E
jrolfs has joined #nixos
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
<clever> xmr-nixos-user: you probably want sudo nix-channel --add https://nixos.org/channels/nixos-18.03 nixos
<xmr-nixos-user> clever: OK so I started messing around with adding and removing channels and here is my new list: https://pastebin.com/7w0zWdrS
jrolfs has quit [Read error: Connection reset by peer]
<clever> xmr-nixos-user: and also sudo nix-channel --remove nixos-18.03
wangoe has quit [Ping timeout: 246 seconds]
jrolfs has joined #nixos
<xmr-nixos-user> clever: so add and remove the 18.03 channel?
<kisik21> What are security and practical differences between docker and nixos-container (which seems to be systemd-based)?
<clever> xmr-nixos-user: add the channel under the name nixos, and remove the one under nixos-18.03
<clever> kisik21: nixos-container shares /nix/store between every guest, so it takes up less disk space
<clever> kisik21: but the guests can also see any files you have in /nix/store, which might include secrets or private software
jrolfs has quit [Read error: Connection reset by peer]
<kisik21> Manual says nixos-container is not root-in-container-proof. Does docker share the same vulnerability to root in container?
<clever> kisik21: i think anything namespace based (both docker and nixos-container) will have trouble stopping root
<kisik21> That means nixos-container is cooler than docker. Awesome.
<xmr-nixos-user> clever: here is the output after doing that: https://pastebin.com/A1zdTuRa
<periklis> do i still need `haskell.lib.justStaticExecutables` when i want to install different haskell tools on my machine in parallel, e.g. nix-delegate, nix-diff and nix-deploy?
<clever> xmr-nixos-user: you missed the -18.03 in the command i gave
<clever> sudo nix-channel --add https://nixos.org/channels/nixos-18.03 nixos
<clever> periklis: i think so
<{^_^}> [nixpkgs] @bhipple opened pull request #39337 → procps-ng: 3.3.13 -> 3.3.14 → https://git.io/vpOul
<Rusty1_> nixos-unstable a no-no as well clever ?
<periklis> clever: i am asking because i stumbled about peti's recent commit: https://github.com/peti/nixpkgs/commit/802c628a8160adb190e3721ffe4bb83ee391c92a
<clever> periklis: ah, once you pass that commit, it will be static by default
jtojnar has quit [Ping timeout: 248 seconds]
<clever> and its from about a month ago
<periklis> yes, just came across after a reminder to checkout https://github.com/NixOS/nixpkgs/issues/29011
<{^_^}> [nixpkgs] @matthewbauer merged pull request #32049 → initial TBS driver → https://git.io/vFjtd
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpOuX
<{^_^}> → 9cbf81e1 by @ck3d: initial kernel modules for TBS devices
<{^_^}> → fb7cdbc1 by @matthewbauer: Merge pull request #32049 from ck3d/tbs
lukas_2511 has left #nixos ["WeeChat 1.6"]
xmr-nixos-user has quit [Ping timeout: 260 seconds]
jrolfs has joined #nixos
jtojnar has joined #nixos
jrolfs has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @matthewbauer closed pull request #39337 → procps-ng: 3.3.13 -> 3.3.14 → https://git.io/vpOul
asuryawanshi has joined #nixos
<NinjaTrappeur> clever, thanks
ajs124 has joined #nixos
<elvishjerricco> Hm. There seems to be some rogue lock file in `/nix/store` preventing me from starting a build that I had killed earlier.
<elvishjerricco> Can I just `sudo rm` that file?
periklis has quit [Ping timeout: 276 seconds]
pie_ has joined #nixos
<clever> elvishjerricco: check `ps aux | grep nix` and see if you have a nix still running on that file
<zybell_> no
<zybell_> you cant, really its impossible
<elvishjerricco> Ah right, read only file system
<elvishjerricco> clever: Nothing in that output seems relevant to this file
<zybell_> if you try rm wont work
<clever> elvishjerricco: what is the full path to that file?
winem_ has joined #nixos
<elvishjerricco> clever: /nix/store/a6sa5z744wqh4w92331hcsf0mwh821m7-llvm.lock
<elvishjerricco> (i'm doing llvm stuff)
<clever> elvishjerricco: in a root shell: ls -l /proc/*/fd/* | grep a6sa5z744wqh4w92331hcsf0mwh821m7
<clever> what does this output?
orivej_ has joined #nixos
erictapen has quit [Remote host closed the connection]
<elvishjerricco> clever: Running from `sudo su`: https://www.irccloud.com/pastebin/iX8acuTb/
orivej has quit [Ping timeout: 276 seconds]
<clever> elvishjerricco: you can also use sudo -i to get a root shell
<elvishjerricco> clever: TIL :P
<clever> elvishjerricco: try nix-collect-garbage --max-freed 1024
<elvishjerricco> What does max-freed do there?
<clever> tells it to stop after deleting 1024 bytes
<elvishjerricco> Well it deleted a bunch of lock files, then said 95.90 MiB freed :P
<clever> the first thing it found was probably 95mb
<clever> and it cant delete 1% of a file
<clever> does the lock file still exist?
<elvishjerricco> I'll just run a whole GC. I do that daily anyway
<clever> it probably already ate the problem lock file
kisik21 has left #nixos [#nixos]
<clever> check that first
<elvishjerricco> clever: Ah, yea it seems it did
<elvishjerricco> clever: Great, that worked. Thanks!
<clever> it deletes invalid files before moving on to the garbage
<clever> and the --max-freed limits the damage it does to your cache
<tazjin> any ideas how a Nix 2.0 update could cause `hash '' has wrong length for hash type 'sha256'` on some custom Nix code?
<tazjin> I can't seem to find anything that has an empty sha hash set and `--show-trace` is not pointing me anywhere useful :/
<clever> tazjin: what does --show-trace print?
<tazjin> clever: it says that the error occurs while evaluating a custom function, which does not use any sha hashes - it does call `fetchgit` with only a `rev` though (custom implementation of `fetchGitPrivate`)
phreedom has quit [Quit: No Ping reply in 180 seconds.]
<tazjin> I'm assuming this has something to do with changes to fetchgit - there's the new `builtins.fetchgit` but this is `pkgs.fetchgit`
<clever> tazjin: fetchgit needs a hash or it wont work
<clever> tazjin: there was a bug in nix1 that allowed an empty hash
<drakonis> wrt nix 2.0, why not treat nix the command as a centralized command while keeping the other tools atill around?
<drakonis> a la apt and the apt-* commands
<clever> drakonis: they are still around currently
klntsky has quit [Ping timeout: 268 seconds]
<drakonis> unless of course the new tool will completely supercede the remaining tools and contain every command instead of the commonly used commands
<tazjin> clever: oh, that's impractical. Then I guess it's time for some spooky hack to use private git repos with the builtins.fetchgit one
<clever> tazjin: i believe builtins.fetchgit just works on private repos
<clever> it runs the git clone outside of the nix sandbox
<clever> so it can just use your keys
<tazjin> hrm, the key itself is actually currently loaded by Nix from an encrypted store and passed to pkgs.fetchgit as an envvar
<tazjin> so the build host itself has no key on disk, but I guess that may work
<tazjin> I'll investigate what options we have, thanks
<clever> tazjin: builtins.fetchgit can also use your ssh agent
<elvishjerricco> tazjin: If it's a parameter to `pkgs.fetchgit`, then it's on disk
<elvishjerricco> The build recipe gets written to disk as `.drv` files
<tazjin> elvishjerricco: on tmpfs :)
<elvishjerricco> ah
<elvishjerricco> haha
<clever> tazjin: the entire /nix/store/ ?
<tazjin> yeah
<clever> tazjin: builtins.fetchgit doesnt need such hacks
<clever> it can just use your ssh agent
<tazjin> right, there's no agent when this happens though (gitlab CI triggering a build on the ephemeral build hosts), but I could probably use gitlab's secret var feature and a simple script to make it work
<clever> tazjin: it can also use ~/.ssh/id, and whatever else ssh uses by default
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #38333 → wireguard service: use scripts instead of ExecStarts/Stops → https://git.io/vxie3
<{^_^}> [nixpkgs] @thoughtpolice pushed commit from @abbradar to master « wireguard service: use scripts instead of ExecStarts/Stops »: https://git.io/vpOgO
phreedom has joined #nixos
<tazjin> the implementations of the builtins are in the source of Nix itself, not written *in* nix, right?
klntsky has joined #nixos
<elvishjerricco> tazjin: Yea. `builtins.fetchGit` essentially just delegates to an actual `git clone` command run as the user evaluating the nix expression
<clever> tazjin: nearly all of the builtins are in c++
<tazjin> elvishjerricco: do you know if it keeps the `.git`?
<tazjin> clever: alright, thanks
<elvishjerricco> I don't know, sorry
<elvishjerricco> probably not, since that could leave impurities
pie__ has joined #nixos
pie_ has quit [Ping timeout: 255 seconds]
<alexteves_> first-time packager here - trying to figure out what to use for meta.platforms. I managed to build and run both on nixos and macos, but how can I tell for all the other stuff in .unix ? solaris, hurd, etc
<drakonis> i'm pretty sure solaris and hurd are effectively irrelevant
<alexteves_> well my only concern here is that hydra errors while building for that or something
<simpson> alexteves_: Not your problem as a packager; if it builds for you, it probably builds for us and for Hydra.
<alexteves_> cheers
<simpson> Just pick the platforms that you're willing to maintain/package/test it on.
<simpson> TBH NixOS/Linux and OSX together are nearly everybody.
<drakonis> hurd is in the double digits userbase
<drakonis> triple maybe?
<alexteves_> yeah I had assumed unix here was linux+osx, but then saw all the variation in doubles.nix
<drakonis> linux can't reasonably be lumped with the other unixes :v
kerrhau- has joined #nixos
lo_mlatu_ has quit [Ping timeout: 264 seconds]
<drakonis> i'm pretty sure that those variations are artifacts
<drakonis> the bsds were still a platform back in 2016 but it just died down
<{^_^}> [nixpkgs] @dezgeg merged pull request #39335 → memtest86plus: fix, switch to using coreboot's branch → https://git.io/vpO0H
<{^_^}> [nixpkgs] @dezgeg pushed 2 commits to master: https://git.io/vpOgK
<{^_^}> → 7de43f38 by @oxij: memtest86plus: disable all hardening
<{^_^}> → c3148948 by @oxij: memtest86plus: 5.01 -> 5.01+coreboot-20180113
endformationage has quit [Ping timeout: 260 seconds]
kerrhau- has quit [Remote host closed the connection]
jaja has joined #nixos
jaja has quit [Changing host]
jaja has joined #nixos
endformationage has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robstr has quit [Quit: WeeChat 1.9.1]
kerrhau has quit [Remote host closed the connection]
<freeman42x]NixOS> anyone know which package contains autoreconf ? required for GHCJS
xcmw has joined #nixos
<simpson> freeman42x]NixOS: If you just need to run autoreconf, then `autoreconfHook` is a thing that you'd import and put in nativeBuildInputs and it automatically goes. grep nixpkgs for example usage.
badi has joined #nixos
<freeman42x]NixOS> simpson, I need the autoreconf to be available as an executable, installing package `autoreconfHook` did not add it
<simpson> freeman42x]NixOS: Then it should be in the `autoconf` package.
<clever> freeman42x]NixOS: autoreconfHook automatically runs the autoreconf for you before the configurePhase
<freeman42x]NixOS> the reason I need it as executable is because GHCJS needs it that way
<clever> freeman42x]NixOS: also, your probably better off just fixing the nix expression for ghcjs, then redoing it from scratch
<freeman42x]NixOS> clever, in the end neither Nix nor Cabal got GHCJS installed, I had to use Stack + Nix support
<freeman42x]NixOS> simpson, `autoconf` thank you, that worked
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drakonis has quit [Quit: Leaving]
sir_guy_carleton has quit [Quit: leaving]
endformationage has quit [Ping timeout: 246 seconds]
xcmw has joined #nixos
endformationage has joined #nixos
<{^_^}> [nixpkgs] @dezgeg pushed to master « nixos/iso-image.nix: Fix typo »: https://git.io/vpO2V
<lejonet> Hmm, what could cause this: output ‘/nix/store/490pmlaraw0dc6l79z800n3jqb288c3i-stdenv-linux’ is not allowed to refer to path ‘/nix/store/09fyb8wyijhqpw3rwymssbbn1kxwyziv-linux-headers-4.15’, is it that I'm trying to mix in systemd from master (and with that glibc, gnumake and binutils too) perhaps?
<infinisil> lejonet: using something like `pkgs.writeText "${pkgs.hello}" "foobar"`
<infinisil> As in, the name of the derivation has a derivation path in it
<lejonet> O.o erh okay... I guess I should import the stdenv-linux from master too then? (all this because systemd-237 severily borks my system :( )
<sphalerite_> infinisil: it doesn't sound like it's the case in this one
<infinisil> Yeah probably
<infinisil> lejonet: Funny because I just stumbled into a bug with 237 today
<lejonet> infinisil: it not allowing some services to write pidfiles?
endformationage has quit [Ping timeout: 246 seconds]
<infinisil> Nah
civodul has joined #nixos
<lejonet> That is what I bump into atleast... a bug that technically isn't supposed to be triggerable with how nixos handles /run but lo and behold, it is triggered for me
sphalerite_ is now known as sphalerite
<infinisil> Bugs, bugs everywhere
<lejonet> Yep...
<infinisil> I now need 4 temporary workarounds for my system due to bugs in various software (none of them fatal though)
endformationage has joined #nixos
<lejonet> oh well, I'll try to pull in the master stdenv too and see
<lejonet> atleast now I've learned to use build instead of switch, so it doesn't hose my system if it manages to build but it still screws things up
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
winem_ has quit [Ping timeout: 256 seconds]
xcmw has joined #nixos
<{^_^}> [nixpkgs] @dezgeg pushed 805 commits to staging: https://git.io/vpOaw
<{^_^}> → 87cbb862 by Giumo X. Clanjor (哆啦比猫/兰威举): systemd.nspawn: fix missing suffix
<{^_^}> → 3fc83370 by @hectorj: zipkin-server: init at 1.28.1
<{^_^}> → 6e9f0f6d by @hectorj: remove extra-line
neuralring has joined #nixos
blankhart has quit [Quit: WeeChat 1.9.1]
vaninwagen has quit [Ping timeout: 264 seconds]
alex`` has quit [Quit: WeeChat 2.1]
blankhart has joined #nixos
telent has joined #nixos
dan_b has joined #nixos
freeman42x]NixOS has quit [Remote host closed the connection]
freeman42x]NixOS has joined #nixos
windy328ghoee[m] has joined #nixos
neuralring has quit [Quit: Leaving]
hotfuzz_ has joined #nixos
hotfuzz has quit [Ping timeout: 264 seconds]
sanscoeur has joined #nixos
<jluttine> clever: just fyi, if you're interested: i fixed the diskrsync issue: give runCommand --argv0 "diskrsync" option which sets the process name which diskrsync uses to call the executable on the other end of ssh.
<{^_^}> [nixpkgs] @alexfmpe opened pull request #39338 → coursera-dl: init at 0.10.0 → https://git.io/vpOaN
bhipple[m] has joined #nixos
<bhipple[m]> Is there a way I can make `nix build` rebuild something, even if it's in the store? I want to double-check my shas are OK for a PR changeset
<infinisil> bhipple[m]: --check
pie___ has joined #nixos
sanscoeur has quit [Ping timeout: 246 seconds]
softinio has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @jluttine opened pull request #39339 → diskrsync: fix argv0 → https://git.io/vpOVL
codygman has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @xeji opened pull request #39340 → nixos/networkd: wait for udev to settle before starting networkd → https://git.io/vpOVq
pie__ has quit [Ping timeout: 246 seconds]
<clever> jluttine: ah, that would explain things
<{^_^}> [nixpkgs] @bhipple opened pull request #39341 → dejavu-fonts: fix missing Perl IOString dependency → https://git.io/vpOVG
jensens has quit [Ping timeout: 256 seconds]
devlinzed[m] has joined #nixos
<judson> I'm adding a python package, which is failing because it can't find argparse. I've tried imitating the postPatch of setup.py already...
<devlinzed[m]> any nixos gurus able to help me install it on a VPS with prgmr.com's custom ISO mode?
mightybyte has joined #nixos
<mightybyte> Does nix-build have a way to cache things as they're built?
<judson> mightybyte, it does. They go in the nix-store.
mahalel_ has joined #nixos
<tilpner> devlinzed[m] - Are you able to upload an ISO?
<mightybyte> Judson: I'm talking specifically about a separate store on another machine.
coot has joined #nixos
<mightybyte> I'm trying to build a nix project on Travis and it's timing out because it takes too long. If nix-build incrementally uploaded built artifcats to a cache I wouldn't have to try to spin up my own instance with the same OS as Travis just to prime the cache.
<simpson> mightybyte: You will eventually find that Travis just isn't a good fit. Unfortunately, while Hydra works fine, it can be a tough service to administer, and most Hydra knowledge is extremely tribal.
<simpson> (I hear that paying for Travis works well, but presumably that's not in your plan.)
<mightybyte> simpson: So we actually are paying for Travis, but this is for a public project.
<srhb> mightybyte: It is much simpler with a pull model (hydra builds everything and provides the cache...) but you can of course copy closure after each build to somewhere else.
<srhb> And use the various nix-store -qs to find the full closures
<mightybyte> And the public projects simply don't show up in the travis-ci.com paid section.
<mightybyte> srhb: I'm just doing a single nix-build, so I can't copy closure after each dependency
<srhb> mightybyte: Ah. :/
<srhb> mightybyte: Then no, there's no mechanism to help you.
<simpson> mightybyte: You can send an email to your Travis person and they can give you more resources on public projects, I think. It helps if you only need a bit more, and not like days~
<simpson> But yeah, any variation on 'and the cache is automatically primed!' turns into Hydra.
<srhb> Yeah..
<srhb> Someone should set up HAAS. :-)
<simpson> You can definitely run your own Hydra and use that as a binary cache for your Travis builds.
<srhb> *Someone*... And I have a roast in the oven.
nixo[m] has joined #nixos
M-bbigras has joined #nixos
unlmtd has joined #nixos
amiloradovsky[m] has joined #nixos
cornu[m] has joined #nixos
M-dpetranek has joined #nixos
mirlur[m] has joined #nixos
atopuzov[m] has joined #nixos
spawnthink[m] has joined #nixos
gh0st[m] has joined #nixos
telent[m] has joined #nixos
GuillaumeBuisson has joined #nixos
grahamc has joined #nixos
leons has joined #nixos
fgaz[m] has joined #nixos
asp_ has joined #nixos
jmorriss[m] has joined #nixos
Drakonis[m] has joined #nixos
abbafei[m] has joined #nixos
mankyKitty[m] has joined #nixos
jluttine[m] has joined #nixos
primeos[m] has joined #nixos
octalsrc[m] has joined #nixos
regnat[m] has joined #nixos
moredhel has joined #nixos
<srhb> >_>
mudri[m] has joined #nixos
codyopel has joined #nixos
chedi[m] has joined #nixos
aspiwack[m] has joined #nixos
lycium[m] has joined #nixos
clacke[m] has joined #nixos
peterhoeg has joined #nixos
BurNiinTRee[m] has joined #nixos
WilliamHamilton has joined #nixos
davidar has joined #nixos
bachp has joined #nixos
freeman42x has joined #nixos
florianjacob has joined #nixos
sphalerit has joined #nixos
timclassic has joined #nixos
hendrik[m] has joined #nixos
Naughtmare[m] has joined #nixos
mith[m] has joined #nixos
wzy8L-B2[m] has joined #nixos
rihardsk[m] has joined #nixos
ngerstle[m] has joined #nixos
TimePath has joined #nixos
templis[m] has joined #nixos
zoya-kosova[m] has joined #nixos
dash has joined #nixos
baconicsynergy[m has joined #nixos
ConorCurry[m] has joined #nixos
Minijackson[m] has joined #nixos
superusercode has joined #nixos
dtz has joined #nixos
wervenyt[m] has joined #nixos
octowan[m] has joined #nixos
wak-work has joined #nixos
matrixkrav has joined #nixos
LiuWeiHua[m] has joined #nixos
sorbet has joined #nixos
etu[m] has joined #nixos
Kallegro[m] has joined #nixos
kitten[m] has joined #nixos
Bugworm[m] has joined #nixos
sargon[m] has joined #nixos
bdimcheff has joined #nixos
moredhel_[m] has joined #nixos
neecro[m] has joined #nixos
moosh_vectra[m] has joined #nixos
ArdaXi[m] has joined #nixos
rycee has joined #nixos
peel[m] has joined #nixos
Oo[m] has joined #nixos
leoleoleotest[m] has joined #nixos
timokau[m] has joined #nixos
nh2[m] has joined #nixos
sudoreboot[m] has joined #nixos
paperdigits[m] has joined #nixos
xnaveira[m] has joined #nixos
lukeadams[m] has joined #nixos
das-g[m] has joined #nixos
bobvanderlinden_ has joined #nixos
adisbladis[m] has joined #nixos
olejorgenb[m] has joined #nixos
necronian has joined #nixos
chominist[m] has joined #nixos
jgl[m] has joined #nixos
ipj[m] has joined #nixos
copumpkin has joined #nixos
hl has joined #nixos
thefloweringash[ has joined #nixos
tfc[m] has joined #nixos
YegorTimoshenko[ has joined #nixos
wilornel has joined #nixos
YuFanLovezYou[m] has joined #nixos
itorres has joined #nixos
ayyjayess[m] has joined #nixos
Elephant454[m] has joined #nixos
bendlas has joined #nixos
dmitry-zen[m] has joined #nixos
efx[m] has joined #nixos
retrry[m] has joined #nixos
castordamon has joined #nixos
ison[m] has joined #nixos
concate[m] has joined #nixos
patrl[m] has joined #nixos
CoopDot has joined #nixos
y0no[m] has joined #nixos
Orbstheorem[m] has joined #nixos
lolipducker[m] has joined #nixos
uvnikita[m] has joined #nixos
AlanPearce[m] has joined #nixos
enick_165 has joined #nixos
FRidh[m] has joined #nixos
davidak[m] has joined #nixos
happyente[m] has joined #nixos
ajmccluskey[m] has joined #nixos
reactormonk[m] has joined #nixos
johnhamelink[m] has joined #nixos
ploud777[m] has joined #nixos
rnhmjoj[m] has joined #nixos
chatnowvvv[m] has joined #nixos
serentty[m] has joined #nixos
bugabinga[m] has joined #nixos
revoltmedia[m] has joined #nixos
thunker[m] has joined #nixos
NickHu has joined #nixos
herzmeister[m] has joined #nixos
imbigbrother[m] has joined #nixos
turok9[m] has joined #nixos
dkellner[m] has joined #nixos
spacekitteh[m] has joined #nixos
magnap has joined #nixos
htafdwes[m] has joined #nixos
Wysteriary[m] has joined #nixos
aniketd[m] has joined #nixos
yochai[m] has joined #nixos
nmikhailov[m] has joined #nixos
M-ms has joined #nixos
taohansen has joined #nixos
benkolera1 has joined #nixos
offlinehacker[m] has joined #nixos
edef[m] has joined #nixos
chreekat[m] has joined #nixos
AdamSlack[m] has joined #nixos
dpc has joined #nixos
trikl[m] has joined #nixos
thra11[m] has joined #nixos
zie[m] has joined #nixos
roygobeilantoine has joined #nixos
jamshoot[m] has joined #nixos
admin[m]3 has joined #nixos
peterbat[m] has joined #nixos
Fedor[m] has joined #nixos
Phil[m]2 has joined #nixos
Dezgeg[m] has joined #nixos
M-Dan has joined #nixos
swayf[m] has joined #nixos
slabity[m] has joined #nixos
<simpson> srhb: How much interest is there? I think that the only people who both care and want money are me and domenkozar.
rardiol[m] has joined #nixos
Singularity[m] has joined #nixos
fearlessKim[m] has joined #nixos
johnnydread[m] has joined #nixos
EB[m] has joined #nixos
hamburglar[m] has joined #nixos
M-manveru has joined #nixos
johnazoidberg has joined #nixos
xodbox[m] has joined #nixos
Criena[m] has joined #nixos
chedi has joined #nixos
Obscurity[m] has joined #nixos
icetan has joined #nixos
pstn has joined #nixos
srini[m] has joined #nixos
bennofs[m] has joined #nixos
enick_993 has joined #nixos
Rick[29SMPittsbu has joined #nixos
crystalgamma[m] has joined #nixos
bkchr[m] has joined #nixos
nmikhailov[m]1 has joined #nixos
midchildan[m] has joined #nixos
coorey[m] has joined #nixos
tokudan[m] has joined #nixos
Pneumaticat has joined #nixos
briansteffens[m] has joined #nixos
indefini has joined #nixos
MatrixStatsBot[m has joined #nixos
wizek[m] has joined #nixos
apurvapavaskar[m has joined #nixos
puffnfresh has joined #nixos
lazygun[m] has joined #nixos
equalunique[m] has joined #nixos
aramiscd[m] has joined #nixos
alexoundos7[m] has joined #nixos
pierrebeaucamp[m has joined #nixos
benasse has joined #nixos
techtangents[m] has joined #nixos
steshaw[m] has joined #nixos
malteof[m] has joined #nixos
nyanloutre[m] has joined #nixos
jbarthelmes[m] has joined #nixos
DIzFer[m] has joined #nixos
scott has joined #nixos
petersjt014[m] has joined #nixos
h30[m] has joined #nixos
kainospur[m] has joined #nixos
randomenduser[m] has joined #nixos
Ralith has joined #nixos
nelag[m] has joined #nixos
AllanDaemon has joined #nixos
Elorm[m] has joined #nixos
iohidtbhfam[m] has joined #nixos
Barnabas[m] has joined #nixos
greska[m] has joined #nixos
felipeac[m] has joined #nixos
purewater[m] has joined #nixos
musicmatze[m] has joined #nixos
hedning[m] has joined #nixos
attero has joined #nixos
EuAndreh[m] has joined #nixos
dywedir[m] has joined #nixos
blahblah has joined #nixos
demyan[m] has joined #nixos
PeterRomfeld[m] has joined #nixos
r3mfKm[m] has joined #nixos
smrtak[m] has joined #nixos
joh[m] has joined #nixos
dylanjust[m] has joined #nixos
danielrf has joined #nixos
m4rv33n[m] has joined #nixos
Khorne[m] has joined #nixos
aaronc[m] has joined #nixos
M-fishy has joined #nixos
telent_[m] has joined #nixos
DenisLehmann[m] has joined #nixos
Hook[m]1 has joined #nixos
Deleh[m] has joined #nixos
AntonLatukha[m] has joined #nixos
gudea[m] has joined #nixos
johnazoidberg[m] has joined #nixos
panther420[m] has joined #nixos
Adev[m] has joined #nixos
jlle[m] has joined #nixos
wmertens[m] has joined #nixos
saschaveres[m] has joined #nixos
balsoft[m] has joined #nixos
tet[m] has joined #nixos
Vincenzo[m] has joined #nixos
card[m] has joined #nixos
smbarte2[m] has joined #nixos
jack[m] has joined #nixos
<infinisil> Judson: regarding the argparse thing, I think you want to patch the source to not require that package anymore, since it's included with python by default
<srhb> simpson: Surprisingly large. I find it much easier to just run something in the local nix farm than in the cloud, but a lot of companies don't...
<simpson> To be clear, I *do* ask the Monte community for $100/mo (USD) for hosting their Hydra. I could work to turn that into something more self-service, but the price tag might be a little stomach-turning for folks. Hydra only runs on beefy bois~
<srhb> I've ended up making the weirdest workarounds to integrate circle, travis whatnot with a Hydra.
<srhb> simpson: Hehehe. I don't think it's a very terrifying price tag. I can't be sure of the real demand (I just run my own when I need to) but I do have a feeling it might be there.
<simpson> Well, I know that a lot of hobbyists have gotten used to $5/mo price tags, and I wish I could offer CI at that price point, but not with Hydra.
<srhb> No, indeed...
<srhb> At least not without dynamically spinning up the workers
<srhb> The evaluator and runner isn't that terrible unless you have a lot of IFD going on.
<judson> Yeah, I think I found that. Now I'm trying to figure out how this package runs its tests. I'd rather not just doCheck=false
<{^_^}> [nixpkgs] @samueldr opened pull request #39342 → nixos-enter: Ensures presence of full /sys tree. (for efivarfs) → https://git.io/vpOwT
<simpson> srhb, mightybyte: Tell you what. Convince yourselves that https://hydra.matador.cloud/ is indeed a Hydra, with working TLS, and then tell anybody you want to email corbin@matador.cloud if they're interested and the price tag's not a turnoff. Thanks!
<MichaelRaskin> I think with dynamic allocation the question becomes whether that Hydra is a metered, not period-billed.
<srhb> simpson: :)
<simpson> And in the meantime, I'm still interested in anything we can do to make Hydra less painful. I've tried to dive into the plugins a couple times but my Perl is rusty.
<domenkozar> simpson: I tried to run hydra as a service, but most people will complain and rarely anyone would be willing to pay for it :)
<samueldr> hmm, didn't think the github bot was reactivated
<simpson> domenkozar: They're right to complain. Hydra's not very fun.
<samueldr> MichaelRaskin: your hunch about 38477 was good, the issue was that efivarfs wasn't mounted in the chroot :)
<MichaelRaskin> In general, I am not too bad at guessing something close to the issue, but it doesn't mean interpreting my guess is easy.
fractal is now known as Guest15545
alexteves_ has quit [Ping timeout: 248 seconds]
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
<angerman> can I use `${x%-}` in nix hooks? if so how do I encode that? Nix wants to interpolate `${…}`
<samueldr> angerman: ''${} will escape ${}
<samueldr> well, in multi-line strings
ryanartecona has joined #nixos
<steveeJ> sphalerit: I'm not using nixops. qemu is in my environment but it must be pulled in by the system somehow
johnw has quit [Ping timeout: 245 seconds]
Myrl-saki has quit [Read error: Connection reset by peer]
shabius has quit [Quit: Leaving]
thblt has quit [Ping timeout: 260 seconds]
shabius has joined #nixos
goibhniu has joined #nixos
coot has quit [Quit: coot]
Geraldus has quit [Ping timeout: 260 seconds]
kisik21 has joined #nixos
ma27 has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @Balletie opened pull request #39343 → pythonPackages.html5-parser: 0.4.4 -> 0.4.5 →
<kisik21> How is cache.nixos.org maintained? I mean, building all packages and dumping them into /nix/store would have them garbage-collected. And there's an issue of sharing private data inside server's /nix/store... Usual nix-serve would be probably not the best idea here.
<{^_^}> [nixpkgs] @matthewbauer opened pull request #39344 → Mono: add vulnerabilities, change version → https://git.io/vpOr8
<domenkozar> kisik21: you want to upload packages to you've built to binary cache?
<kisik21> Nope, interested in how it works.
pie___ has quit [Remote host closed the connection]
<domenkozar> hydra knows what path it builds
<domenkozar> so it uploads only each built store path
pie___ has joined #nixos
<kisik21> Wait, so this Hydra thing is maintaining the cache automatically, right? And it doesn't server /nix/store directly, but serves another safe directory?
MP2E has joined #nixos
<kisik21> Is this builtin? Can I try it on my own server?
cptchaos has joined #nixos
<steveeJ> sphalerit: huh, so the domain xmls actually contained the hardcoded path. I changed it to the symlink from the current system, but the solution is not ideal
simukis has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @matthewbauer pushed to revert-32049-tbs « Revert "initial TBS driver" »: https://git.io/vpOrX
<{^_^}> [nixpkgs] @matthewbauer opened pull request #39345 → Revert "initial TBS driver" → https://git.io/vpOr1
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39345 → Revert "initial TBS driver" → https://git.io/vpOr1
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpOrD
<{^_^}> → 6a4cc356 by @matthewbauer: Revert "initial TBS driver"
<{^_^}> → 3aea9a4c by @matthewbauer: Merge pull request #39345 from NixOS/revert-32049-tbs
<{^_^}> [nixpkgs] @matthewbauer pushed 0 commits to revert-32049-tbs: https://git.io/vpOr9
hph^ has quit [Ping timeout: 265 seconds]
<clever> kisik21: nix-serve and hydra can present an http interface to the local /nix/store directory, and serve it to other users
<clever> kisik21: hydra will also root everything it potentially needs, so the garbage collector cant eat it
<clever> kisik21: and in some special setups like hydra.nixos.org, it will push the data up to amazon S3, which is what powers cache.nixos.org
<kisik21> Cool. And what about /nix/store/*-users-groups.json? It doesn't push that, right? Does it only push what's built?
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/fe0da425ce8 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<kisik21> Mine contains salted hashes of my passwords.
<clever> kisik21: both nix-serve and hydra will share the entire store, including users-groups.json
<clever> kisik21: but the attacker will need to know the hash of the file to download it
<kisik21> Since directory listings are disabled, right?
<clever> yeah
<kisik21> Awesome! This means it's kinda secure as long as you don't `ls /nix/store | pastebin` your server.
<clever> kisik21: also, you cant paste the path of anything that depends on users-groups.json, like the target of /run/current-system
<kisik21> Because that will pull users-groups.json?
<clever> yep
gerschtli has joined #nixos
mikka564 has joined #nixos
<kisik21> Wait. How does it know that $(readlink -f /run/current-system) depends on users-groups.json? It downloads the drv file?
<clever> the narinfo file
<{^_^}> [nixpkgs] @timokau opened pull request #39346 → arb: 2.8.1 -> 2.13.0 → https://git.io/vpOo4
<clever> drv files are build-time dependencies, narinfo are runtime
<kisik21> I don't have any narinfo files in my /nix/store.
<kisik21> How are these created?
<clever> for the local store, it keeps that data in /nix/var/nix/db/db.sqlite
mikka231 has joined #nixos
<clever> hydra and nix-serve format the data and show it inside .narinfo files
<kisik21> Virtual files?
ryanartecona has quit [Quit: ryanartecona]
<kisik21> Do not exist, but are runtime-generated?
<clever> yeah
<kisik21> ok
<clever> everything that nix-serve servers over http is runtime generated
<kisik21> What's nar, by the way?
jensens has joined #nixos
<LnL> oh, instantiation doesn't write create actual drv files anymore?
<clever> its like tar, but it lacks timestamps, uid, and chmod bits
<kisik21> why not use tar?
nixck has joined #nixos
<clever> nix doesnt need timestamps, uids, or chmod bits
<clever> nix-store --dump input > output.nar
<clever> nix-store --restore output < input.nar
<kisik21> so they just stripped them so archive size would be a bit lower?
<clever> that is how you manipulate nar files
<kisik21> clever: interesting.
mikka564 has quit [Ping timeout: 260 seconds]
<avn> clever: actually, I still curious, why invent own format instead using tar/cpio with zeroing/ignoring timestamps
alexteves has joined #nixos
chisui has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<clever> the files in the NAR are also require that everything be sorted
<Xal> kisik21: they're stripped because if they were included than the .nar of a derivation would be different depending on when it was built
<Xal> nix guarantees that if you built a derivation with a certain hash, you get the same output
<avn> clever: sure, just why own format ;)
<clever> avn: i dont think tar has a way to enforce sorting and no duplicates in the tar file
<clever> nor a way to get reliably bit-identical files when given the same input
<nixck> hello all, is there a way to get the runtime closure of a drv /within/ a nix expression? for example a function `f` such that, `f nmap == [ glibc openssl bash libpcap gcc.lib nmap ]`
<{^_^}> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/bca2ee28db4 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
<avn> clever: tar also can have pre-ordered content with stripped timestamps. (I just discuss desing decision. I prefer personally re-use existing formats as much as possible)
<clever> nixck: check the docs for exportReferencesGraph
<nixck> i'm aware of `closureInfo`, but i'm not sure how to pull the information in ./store-info back into a nix expression as derivation objects
knupfer has quit [Remote host closed the connection]
<nixck> ah - thanks! will do
<kisik21> How much disk space do you need to build ALL nixpkgs?
<clever> kisik21: last i heard, it was around 80gigs
<kisik21> 80 gigs? for everything?
<kisik21> lol, I could build it right now if it's true
<kisik21> I have around 200 gigs on my NTFS drive
<clever> kisik21: and when there is a mass-rebuild, it will need another 80gigs
Ross has quit [Quit: ZNC - http://znc.in]
<kisik21> Mass rebuild will be only if something like glibc would be upgraded, right?
<clever> yeah
<kisik21> Because every package depends on glibc, and if its hash changes...
<clever> also, cache.nixos.org has everything that hydra has ever built
<kisik21> It isn't cleared?
<clever> its never cleared
<kisik21> How much do y'all developers pay for this?
<Dezgeg> 80G sounds too low, I tried to build whole armv7 as an experiment and even that hit 90G
<kisik21> Storage space on Amazon is THAT cheap?
<clever> Dezgeg: the number has probably grown since i last heard it
<Dezgeg> maybe 80G is with compression?
<clever> that could explain it
<clever> originally, hydra.nixos.org would build up the entire package set, and then bulk-upload to S3 when the eval passed
<clever> but that became a major bottleneck
<clever> it has since been configured to upload to S3 the instant a build finishes
knupfer has joined #nixos
<clever> and hydra no longer even stores anything locally
<nixck> clever: thanks for the tip. i'd found that attribute from looking at the source of `closureInfo`. is there a way to safely pull the information that attribute passes to a builder back into a nix expression, as a list of derivations? i haven't been able to figure out a way, possibly because it's impossible
<clever> nixck: i dont think thats possible
<nixck> the approaches i've tried (a builder with a script that translates ./store-info into a nix expression, and then importing that expression) seems disgusting and probably unsafe
<clever> nixck: and you cant just iterate over the buildInputs either, because of how string context works
<nixck> alright - time to dig a bit deeper into nix to understand why. thanks for the direction! also, thanks for nix!
<clever> yep
<kisik21> Can one modify initrd to NFS-mount /nix/store and make a bootable system that doesn't store anything locally and could work with a tmpfs as /?
<kisik21> Something like a diskless NixOS.
ragaba has joined #nixos
<clever> kisik21: probably
<clever> kisik21: ive done it with iscsi
endformationage has quit [Ping timeout: 245 seconds]
<clever> kisik21: ive also done it with ramdisks
<kisik21> Interesting.
<kisik21> NixOS seems just perfect for diskless systems.
<ragaba> hi! i tried to statically link simple terminal calling nix-build -E 'with (import ./. {}); (st.override { stdenv = makeStaticLibraries stdenv;}).out'
<clever> this configures a netboot server, that runs the clients from a ramdisk
<clever> once the client has booted, the server is no longer required
<clever> ragaba: you may also need to override each of its inputs to enable static libraries on those
<ragaba> but ld does not find the archive libs though they are located in the corrent paths and pkp-config has no problem finding them.
<ragaba> clever: i've done so. ld finds all required libs.
<clever> ragaba: what is it not finding?
joepie91___ is now known as joepie91
<ragaba> clever: sry. i meant pkg-config instead of ld
<ragaba> clever: i gues the required archive files. e.g. /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/ld: cannot find -lXft
<ragaba> clever: pkg-config comes back with the correct path though ( -L/nix/store/vg5sfgsg3kg7kk3081vi3xwxb4zb8ja7-libXft-2.3.2/lib )
<clever> ls -l /nix/store/vg5sfgsg3kg7kk3081vi3xwxb4zb8ja7-libXft-2.3.2/lib
knupfer has quit [Ping timeout: 265 seconds]
<ragaba> clever: /nix/store/vg5sfgsg3kg7kk3081vi3xwxb4zb8ja7-libXft-2.3.2/lib/libXft.la
<clever> ragaba: only dynamic libraries exist in that directory
<kisik21> Wait a second. If one could download an entire dependency tree knowing a hash of nixos-system-<hostname>-blablabla, that means one could deploy whole confirurations from a custom binary cache, right? Download a configuration into /nix/store, set it as default and you don't even need to copy configurations!
<clever> you have to override libXft to enable static libraries there
<clever> ragaba: .la files are not static libraries
<clever> kisik21: thats pretty much how nixops works
keith_analog has joined #nixos
cptchaos has quit [Ping timeout: 260 seconds]
<ragaba> clever: oh man. libtool right. i should go to bed :D. thx a bunch!
<clever> yep
<keith_analog> Hi All, I have a question about strings in nix. Suppose I have an expression such as: installPhase = let s = "-foo"; in '' ... ${s}'
<keith_analog> oops
<keith_analog> Hi All, I have a question about strings in nix. Suppose I have an expression such as: installPhase = let s = "-foo"; in '' ... ${s} ...''; I would like for s to be treated as a string and inserted into to string being assigned to installPhase. However, when I run such a script, I get an error saying "-foo: command not found"
<keith_analog> Can someone tell me the proper way to insert the string s into the larger string?
<clever> kisik21: can you pastebin the nix file?
<mikka231> Hello, I know, old systems are not maintained anymore. But maybe I have luck and someone of you has experience in setting up nixos on an MacBook from ~2010 without rEFInd...?
ragaba has left #nixos [#nixos]
<kisik21> Which nix file?
<{^_^}> [nixpkgs] @Mic92 merged pull request #39311 → enhanced-ctorrent: fix CVE-2009-1759 → https://git.io/vpYSP
<{^_^}> [nixpkgs] @Mic92 pushed commit from @MostAwesomeDude to master « enhanced-ctorrent: fix CVE-2009-1759 (#39311) »: https://git.io/vpOKi
<kisik21> clever: I have many nix files ^^
<clever> kisik21: oops, wrong nick
<kisik21> don't worry, happens sometimes
<clever> keith_analog: can you pastebin the nix file?
<{^_^}> [nixpkgs] @Mic92 pushed commit from @MostAwesomeDude to release-18.03 « enhanced-ctorrent: fix CVE-2009-1759 (#39311) »: https://git.io/vpOKD
<keith_analog> sure, one sec
sanscoeur has joined #nixos
<keith_analog> the line of interest is 116
<keith_analog> it's triggering the error
<{^_^}> [nixpkgs] @timokau opened pull request #39347 → eclib: 20160720 -> 20171002 → https://git.io/vpOK7
<clever> keith_analog: you have newlines in your installPhase
<clever> keith_analog: line 86, 90, 94 and 98 are each on their own line
drakonis has joined #nixos
<clever> keith_analog: so bash is running each --flag as its own command
<clever> keith_analog: its also a lot cleaner to do let foo=bar; foo=bar; foo=bar; in stdenv.mkDerivation { ...
<keith_analog> clever: great, thanks!
<clever> keith_analog: then all of the variables are in one block and you only have a single let .. in ...
sanscoeur has quit [Ping timeout: 264 seconds]
hiratara has quit [Ping timeout: 276 seconds]
<kisik21> NixOS containers are awesome... Unlike docker, they just do their work and nothing more.
<clever> :D
<kisik21> How to make a host directory accessible from a container?
hiratara has joined #nixos
b has joined #nixos
<keith_analog> btw, to all the nix devs/supporters, i gotta express my gratitude: this system is revolutionizing the way i do my research, in particular, the experiments i run and share with the world. imo, it's a huge step in the direction toward increasing the repeatability of experimental studies in research papers
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blankhart has quit [Ping timeout: 256 seconds]
<kisik21> I assume by deploying to a NixOS machine NixOps means "deploy a container with desired configuration on a host machine"?
Yaniel has quit [Excess Flood]
<clever> kisik21: nixops can deploy either to a remote host, or to a local container
<kisik21> How about container on a remote host?
Yaniel has joined #nixos
<kisik21> Would be pretty useful.
<clever> it doesnt support that
<kisik21> Sad.
<clever> but you can use declarative containers to just push a host image, that contains containers
<MichaelRaskin> keith_analog: let the gap grow. I mean, there are people who publish the final code at all, and maybe month-by-month slices of history, and maybe build instructions. You are one of them, thank you for that (sincerely). Then there are cases when there are clips of the code running, but the code itself is nowhere to find… (sigh)
<simpson> kisik21: TBH this is kind of a hard problem and it's worth looking into something like k8s with nix-k8s; https://github.com/xtruder/nix-kubernetes
Acou_Bass has joined #nixos
<kisik21> Do I need to specify containers declaratively to be able to use their ports from host machine? For example, I have a server @ example.com with NixOS. I deploy a simple lighttpd container to it. Do I need to specify container in my /etc/nixos/configuration.nix or could I redirect network traffic from it to my lighttpd in container without a proxy of some sort?
<clever> kisik21: ive not used the imperative containers, so i dont know how they differ
<kisik21> They use a private address space and another network interface
<kisik21> I guess I have to use a proxy... ><
<sphalerite> kisik21: systemd-nspawn, which it's based on, has options for forwarding ports
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39344 → Mono: add vulnerabilities → https://git.io/vpOr8
<{^_^}> [nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/vpO6a
<{^_^}> → b577f329 by @matthewbauer: mono: allow custom meta in generic
<{^_^}> → 6e0a68b1 by @matthewbauer: mono: add knownVulnerabilities for 4.0.4
<{^_^}> → 6ec7c393 by @matthewbauer: Merge pull request #39344 from matthewbauer/mono-fixes
<sphalerite> I'm not sure whether it's actually exposed
shabius has quit [Remote host closed the connection]
<sphalerite> but it should be
shabius has joined #nixos
ryanartecona has joined #nixos
<Mic92> kisik21: if the container has a ip, you can also nat ports
xy2_ has quit [Ping timeout: 256 seconds]
ajs124 has left #nixos ["Stream closed by us: Replaced by new connection (conflict)"]
<Mic92> otherwise using no private network also sometimes has advantages
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
page_ has joined #nixos
<sphalerite> does anyone know any software that implements upnp controller functionality?
chris| has quit [Quit: ZNC 1.6.5 - http://znc.in]
<gchristensen> pkgs.miniupnpd ?
<sphalerite> gchristensen: nope, that's for IGD functionality (i.e. providing port forwarding via upnp)
chris| has joined #nixos
<gchristensen> ah :) what is controller functionality? (there is also miniupnpc ;) I' go googling but barely have enough to maintain this MOSH connection
page has quit [Ping timeout: 260 seconds]
kisik21 has left #nixos [#nixos]
michas_ has quit [Ping timeout: 276 seconds]
<sphalerite> gchristensen: yeah I've searched all around and found plenty of media servers and renderer/control points
<sphalerite> but no controllers, which are basically just remote controls for the renderers
<{^_^}> [nixpkgs] @Mic92 merged pull request #39347 → eclib: 20160720 -> 20171002 → https://git.io/vpOK7
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpO6d
<{^_^}> → a0558167 by Timo Kaufmann: eclib: 20160720 -> 20171002
<gchristensen> ah
<{^_^}> → 12e3beac by @Mic92: Merge pull request #39347 from timokau/eclib-20171002
<{^_^}> [nixpkgs] @Mic92 merged pull request #39346 → arb: 2.8.1 -> 2.13.0 → https://git.io/vpOo4
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpO6F
<{^_^}> → 1dbdffa0 by Timo Kaufmann: arb: 2.8.1 -> 2.13.0
<{^_^}> → cf540dd1 by @Mic92: Merge pull request #39346 from timokau/arb-2.13.0
<gchristensen> hmm I should turn that off again
nur0n0 has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #39341 → dejavu-fonts: fix missing Perl IOString dependency → https://git.io/vpOVG
<{^_^}> [nixpkgs] @Mic92 pushed commit from @bhipple to master « dejavu-fonts: fix missing Perl IOString dependency (#39341) »: https://git.io/vpOit
xcmw has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #39339 → diskrsync: fix argv0 → https://git.io/vpOVL
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpOim
<{^_^}> → 0f92afdd by @jluttine: diskrsync: fix argv0
<{^_^}> → f2129ae7 by @Mic92: Merge pull request #39339 from jluttine/fix-diskrsync-argv0
<{^_^}> [nixpkgs] @Mic92 merged pull request #39343 → pythonPackages.html5-parser: 0.4.4 -> 0.4.5 → https://git.io/vpOrG
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpOiY
<{^_^}> → ef47a584 by @Balletie: pythonPackages.html5-parser: 0.4.4 -> 0.4.5
<{^_^}> → 98145157 by @Mic92: Merge pull request #39343 from Balletie/master
<Guest57550> Soooo I can't get 18.03 to install cleanly. See https://github.com/NixOS/nixpkgs/issues/38477
jgt1 has joined #nixos
<Guest57550> Oh, I see someone's looked at it since my comment
hiratara has quit [Quit: ZNC - http://znc.in]
<Guest57550> samueldr: thanks :)
<Guest57550> now the question is... how long until a working install ISO appears?
<alexteves> huh why did grahamcofborg not run for arch? https://github.com/NixOS/nixpkgs/pull/39338#issuecomment-383417389
hiratara has joined #nixos
jgt has quit [Ping timeout: 260 seconds]
semilattice has quit [Remote host closed the connection]
<mikka231> Hello, I know, old systems are not maintained anymore. But maybe I have luck and someone of you has experience in setting up nixos on an MacBook from ~2010 without rEFInd but systemd or grub?
semilattice has joined #nixos
<dweller> mikka231: why without refind?
aarvar has quit [Quit: Leaving.]
<semilattice> oh wow I have this same issue but I thought it was for a different reason
<semilattice> I was having this trouble after another install screwed up my efi boot on a system with buggy efi
jensens has quit [Ping timeout: 248 seconds]
<zybell_> because its powerpc,right?
<sphalerite> mikka231: I'm running on a 2011 mbp
<sphalerite> zybell_: no, powerpc ones are older than that
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mikka231> dweller: ...because I wasn't able to start NixOS with rEFInd with manual stanzas too. Then I have purged my af00 partition because I do not need it.
<sphalerite> mikka231: graphics are a bit fiddly and the broadcom wifi is an absolute shitemare but other than that it works pretty well
<dweller> mikka231: then load grub with it
<dweller> i mean, on its own apple computers miss any boot manager except maybe boot camp
<semilattice> Guest57550 https://github.com/NixOS/nixpkgs/pull/39342 this pull request supposedly fixes the issue
<mikka231> sphalerite: I had Lubuntu installed some years ago... Now I use Arch and NixOS
<mikka231> ..but not on my MacBook :'(
<Xal> clearly the solution is to sell your macbook
<sphalerite> mikka231: there's not actually anything special about installing on the macbook, you just need to make sure to boot the installer in EFI mode
<sphalerite> mikka231: depending on the graphics setup you might need to put some extra stuff in the configuration as well
<sphalerite> but it's mostly the same as installing on any other machine with EFI
<mikka231> sphalerite: NixOS is unable to boot in EFI mode. Other distros are able to.
<sphalerite> mikka231: how did you create the installation medium?
<mikka231> Actually (now) I'm installing Arch as I know it better. I did this: https://wiki.archlinux.org/index.php/mac#Using_the_native_Apple_bootloader_with_systemd-boot_.28Recommended.29
xcmw has joined #nixos
<sphalerite> mikka231: if you're installing arch then why are you asking about nixos..?
<mikka231> mounted ef00 on /mnt/boot/
<nur0n0> why am I getting "attempt to call something which is not a function but a set" error from `nix-shell -p "python3.6-markdown2-2.3.5"`? I'm pretty sure I've asked for python packages this way before..?
<mikka231> sphalerite: because I know Arch better. I'll booting NixOS now. But I cannot boot this iso in EFI mode unfortunately. :/
<sphalerite> nur0n0: try nix-shell -p python3Packages.markdown
<sphalerite> mikka231: again, how did you create your installation mediuM?
<mikka231> ...wait
<sphalerite> nur0n0: err, s/markdown/markdown2/
<{^_^}> [nixpkgs] @Mic92 pushed to master « zfs: mark as broken for 4.16 »: https://git.io/vpOP1
<{^_^}> [nixpkgs] @Mic92 pushed to release-18.03 « zfs: mark as broken for 4.16 »: https://git.io/vpOPy
<nur0n0> sphalerite: thank you!
<sphalerite> mikka231: just copy the iso from the website directly to a usb stick
<sphalerite> cp nixos-minimal-18.03-*.iso /dev/sdX
<sphalerite> (where sdX is the USB stick)
<sphalerite> (which doesn't have any data you care about on it)
<mikka231> sphalerite: I did this. But the USB was not shown when holding the option key. I did dd if=NIXOS_ISO.iso of=/dev/sdb1 which was formatted with mkfs.vfat -F 32
<sphalerite> mikka231: you need to use the device itself, not a partition
<sphalerite> so sdb instead of sdb1
<sphalerite> then it should work
<mikka231> and the flag Bios boot
<mikka231> sphalerite: ...wait. I'll re-dd the iso again :)
<mikka231> ...now
<clever> also, the dd overwrites the filesystem, so it doesnt matter what it was before, and there is no need to mkfs.vfat it
<sphalerite> ^
<mikka231> sphalerite/clever/dweller: meanwhile... I found an Debian iso which was able to boot in EFI mode. How can I remaster the iso the same way?
<mikka231> the NixOS iso.
<sphalerite> mikka231: you don't need to do anything to it
<sphalerite> it's already EFI-capable
<mikka231> sphalerite: Your iso does not boot in EFI mode on my late 2009 MacBook. But it is able to do as I found other distros by chance which are able to boot in EFI mode.
<clever> mikka231: even when dd'd correctly?
thc202 has quit [Ping timeout: 265 seconds]
<mikka231> ... dd-ing needs some minutes
<mikka231> be patient, clever ;-
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
goibhniu has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @Gerschtli opened pull request #39348 → Fixes cargo-edit → https://git.io/vpOXt
xcmw has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #39305 → Mesa drirc fix → https://git.io/vpYrU
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to staging: https://git.io/vpOXY
<{^_^}> → ee1778de by @corngood: mesa_drivers: fix drirc install path
<{^_^}> → 70de5834 by @Mic92: Merge pull request #39305 from corngood/mesa-drirc-fix
Ross has joined #nixos
<mikka231> sphalerite,clecer,dweller: The usb is not detected when holding down the option key.
<mikka231> I did dd if=nixos_...iso of=/dev/sdb bs=1M
<mikka231> I've choosed the minimal iso now.
<mikka231> when burning the iso on a DVD the boot process hangs on the "select CD" - that's why I need to remaster the iso.
<mikka231> as decribed before.
ryanartecona has quit [Quit: ryanartecona]
krey has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @Gerschtli opened pull request #39349 → Adds cargo-release → https://git.io/vpOX9
<infinisil> mikka231: Maybe have a look at efibootmgr
<mikka231> dweller: does is makes any difference when I boot with grub or EFI/ESP?
<infinisil> Wait efibootmgr wouldn't help I think
<mikka231> infinisil: I can boot with my remastered iso in non-efi mode.
<mikka231> ...ah okay
<mikka231> I can mount my ESP partition.
nixck has quit [Ping timeout: 260 seconds]
<mikka231> Then I should be able to create the needed files by hand and reboot.
<mikka231> What do you think?
<infinisil> what needed files?
<mikka231> I don't know: Those files which are created when I would have boot into EFI mode...
<mikka231> Here is my paste of the remastered iso which boots - ut not in EFI mode. Which options I could add to create an EFI bootable CD? https://0bin.net/paste/0ejHm09epIGqXKZ2#uBdGt5Y6hDKC3zGOMXnDJm38HeESMn01GmTfA8HMoMn
<mikka231> The normal iso is not able to boot on my MacBook 64bit
<mikka231> argh... :)
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil> mikka231: I think i got something
<mikka231> Thank you, I'll read it now
ryanartecona has joined #nixos
<mikka231> infinisil: But the normal NixOS cannot boot in EFI mode on my MacBook - other distros are able to boot in EFI mode. I'll try to remaster it with the '-e' flag
<mikka231> ah, I found why your iso is not able to boot: you should change iso-level to 2!!
<mikka231> Until the iso is below 2GB this will work.
<mikka231> ...and boot on my MacBook :)
<mikka231> iso-level 3 is unbootable
<infinisil> I have no idea what iso-level means, but interesting
ivanivan has joined #nixos
<ivanivan> It seems git is broken on nixos-unstable. Running "git add -p" raises an error about a missing perl module:
<ivanivan> "Can't locate Git.pm in @INC"
<ivanivan> Does anyone know if an issue as already been created for this?
<ivanivan> I can't find one on https://github.com/NixOS/nixpkgs but I might be searching for the wrong things...
<neonfuz> anyone know if nixos supports overlayfs?
<neonfuz> and if not, any suggested alternatives?
<mikka231> infinisil: man mkisofs -> Ctr+w 'iso-level'
<mikka231> Ctr+'/', sorry
<infinisil> ivanivan: Yeah it's a known issue, has been fixed on master by reverting
<infinisil> Hold on finding the issue
<ivanivan> infinisil: thanks!
<mikka231> ...meanwhile I try remastering the iso with the efi image flag
telent has quit [Ping timeout: 260 seconds]
dan_b has quit [Ping timeout: 260 seconds]
xcmw has joined #nixos
<infinisil> mikka231: You could do a PR to change the level to 2
<infinisil> It seems unlikely that anybody relied on >2GB files
<sphalerite> neonfuz: yes, the overlayfs driver has been in the mainline linux kernel for quite a long time now and as such is available on nixos as well
nur0n0 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nur0n0 has joined #nixos
sanscoeur has joined #nixos
<avn> neonfuz: unionfs-fuse is an alternative (but you need some help from bindfs, if you like to put stuff from /nix/store to overlay)
<{^_^}> [nixpkgs] @matthewbauer opened pull request #39351 → calc: cleanup expression → https://git.io/vpO1w
nur0n0 has quit [Client Quit]
chreekat has joined #nixos
<{^_^}> [nixpkgs] @domenkozar pushed commit from @edolstra to release-18.03 « nix: 2.0 -> 2.0.1 »: https://git.io/vpO1P
raynold has joined #nixos
sanscoeur has quit [Ping timeout: 240 seconds]
ericsagnes has quit [Ping timeout: 256 seconds]
<ertes> i got this error when trying to use nix-prefetch-git: error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied
<ertes> any ideas?
<infinisil> ertes: Yeah that's a known issue
<infinisil> It happens with tools using the Nix 1.11 library version but you using nix 2.0 on your NixOS
<infinisil> Nix 2.0 doesn't require the NIX_REMOTE env var anymore so it got removed
jgt1 has quit [Ping timeout: 264 seconds]
<infinisil> but Nix 1.11 still does, so now the error
<infinisil> `export NIX_REMOTE=daemon` should fix it
<infinisil> If what I said was correct
semilattice has quit [Ping timeout: 276 seconds]
<infinisil> Or running it with sudo should make it work tee
<infinisil> too*
<mikka231> infinisil: PR?
<infinisil> mikka231: Pull request
<infinisil> That's how you can request changes to github projects such as nixpkgs
<mikka231> Ah, yes, that I can do - thank you!! I'll do this when I have the complete command line for creating an iso which works on my MacBook. PR are always good :)