<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>
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.
<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
<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
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.
<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>
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]
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
<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
<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>
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>
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
<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]
<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>
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?
<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?
<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
<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?
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
<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 :(
<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] @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?
<{^_^}>
→ 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>
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>
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?
<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]
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
<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>
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
<{^_^}>
→ 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]
<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]
<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…]
<{^_^}>
→ 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]
<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]
<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
<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 ]`
<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
<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.
<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...?
<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)
<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
<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
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
<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
<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>
(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…]
<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.
<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
<{^_^}>
[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 :)