<lucperkins>
Hey y'all, I'm new to this list, so apologies if this has been discussed previously. Do any of you know if there are currently any NixOS books in progress? I ask because I'm thinking about writing one but don't want to step on any toes or do too much redundant work.
endformationage has quit [Quit: WeeChat 1.9.1]
ambro718 has quit [Ping timeout: 265 seconds]
<hodapp>
lucperkins: just grepped channel logs and the only references I see to a book are people asking "has anyone written a book?"
el_putin has quit [Read error: Connection reset by peer]
azazel has joined #nixos
<azazel>
hi
stephenjudkins has joined #nixos
digitus has quit [Quit: digitus]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #33811: release-small: Don't attempt to access "dbus.libs", etc., don't exist (master...fix/release-small-dbus-libs) https://git.io/vNZaF
NixOS_GitHub has left #nixos [#nixos]
fresheyeball has quit [Quit: WeeChat 1.9.1]
ryantrinkle has joined #nixos
thc202 has quit [Ping timeout: 268 seconds]
dramforever has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
<azazel>
hi guys, I'm trying to install the slimserver module as advertised in the last release changelog, but i cannot find it
<azazel>
any clue?
<dramforever>
So... I guess I really need a nix tutorial
lucperkins has quit [Quit: Page closed]
<dramforever>
Say, I want to build haskell.compiler.ghcHEAD *but* using the 'real' HEAD from the git repo. I have no idea what to do. What's a solution to that?
<azazel>
rnhmjoj[m]: thanks, I'll try to add it to my conf... but why a lookup for "nix-env -qa slimserver" returns nothing?
<Lisanna>
By the way, since this was something I was struggling with, here's a nice and simple way to switch into a Nix environment that you have built with e.g. buildEnv from the command line when all you have is the store path: https://gist.github.com/ledettwy/416d7a4154acfadfdefbf6999f2b1da9
<rnhmjoj[m]>
azazel: ah, you don't have to install anything. just set services.slimserver.enable = true in your configuration.
tg has quit [Remote host closed the connection]
swayf has joined #nixos
<azazel>
also, it's safe to have bot nixos "stable" (i.e. latest release) and the unstable channel?
<azazel>
s/bot/both/
<Lisanna>
(example use case: you've deployed an environment with nix-copy-closure, and now you want to use it)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] disassembler pushed 3 new commits to release-17.09: https://git.io/vNZwO
<NixOS_GitHub>
nixpkgs/release-17.09 eb64a95 Samuel Leathers: nixops: digital ocean PR #765
<NixOS_GitHub>
nixpkgs/release-17.09 fcf3458 Samuel Leathers: nixops: enable vultr
<NixOS_GitHub>
nixpkgs/release-17.09 1e0eebf WilliButz: nixos/xautolock: rewrite and add some options
NixOS_GitHub has left #nixos [#nixos]
<dramforever>
Where did you learn about nix?
<Lisanna>
dramforever me?
dywedir has quit [Remote host closed the connection]
<abcrawf>
I'm trying to do some development on OpenOCD, but would like to let Nix actually build the project. I tried modifying the expression to use fetchgitLocal instead of fetchurl, but that doesn't seem to work. What is the recommended way to build from local sources?
<Lisanna>
abcrawf if you already have something checked out locally, you can do something like src = ./path/to/repo;
<dramforever>
Lisanna: wa talking to everybody, but would be grateful if you helped :)
<Lisanna>
rather than all the fetchgit stuff
<dramforever>
Like, which tutorial you read etc.
<Lisanna>
dramforever The Nix manual
<Lisanna>
and trying stuff until it started clicking
<abcrawf>
Lisanna: I get the following error: "do not know how to unpack source archive /home/alex/code/openocd"
<dramforever>
I knew it
<Lisanna>
get a solid grasp of the language first
<dramforever>
That makes sense
<Lisanna>
abcrawf what's in /home/alex/code/openocd ?
orivej has quit [Ping timeout: 256 seconds]
<Lisanna>
a git repo?
<abcrawf>
Yeah
<dramforever>
Lisanna: thank you
<Lisanna>
abcrawf what expression are you basing it off of?
<Lisanna>
put those two things in the mkDerivation
krey has quit [Quit: leaving]
sigmundv_ has quit [Ping timeout: 276 seconds]
<abcrawf>
It cannot stat /home/alex/code/openocd. Do I need to disable the sandbox builds?
aanderse has joined #nixos
<manveru>
abcrawf: you need to at least reference it in your nix code
nithor has quit [Ping timeout: 256 seconds]
<manveru>
it won't be visible inside the build steps unless you put it into your source
<aanderse>
i added this to my configuration.nix: virtualisation.virtualbox.host.enable = true;
<aanderse>
but when i try to fire up a virtualmachine i get an error
<aanderse>
Kernel driver not installed (rc=-1908)
<aanderse>
am i doing something wrong?
<Lisanna>
abcrawf make sure you're doing src = /home/alex/code/openocd; and not src = "/home/alex/code/openocd";
concatime has joined #nixos
<abcrawf>
Lisanna: Ah, good call. In quotes it tries to run a command, right? (Sorry, very new to Nix)
<Lisanna>
No, in quotes it will still probably treat it as a path, but during eval Nix doesn't know that it's a path, so it won't be available in the sandbox
<Lisanna>
without quotes, Nix actually copies that into the /nix/store first and then adds it to the build sandbox
<rnhmjoj[m]>
aanderse: I don't use virtualbox but try adding kvm-amd or kvm-intel to boot.kernelModules,
<Lisanna>
but, you likely shouldn't be setting that manually. Any swap devices you have enabled with swapon will get picked up by nixos-generate-config
<aanderse>
rnhmjoj[m]: thanks, will give it a go
<concatime>
Lisanna: I want to use the `randomEncryption`.
babyflakes has quit [Quit: Connection closed for inactivity]
<Lisanna>
most people don't use more than one kvm app at a time so the problem doesn't come up enough to get fixed or even discussed beyond "quit android studio and it'll work" :/
<concatime>
Lisanna: The asterix is a string of what? `The option value swawpDevices in [...] is not of type list of submodules`
<Dezgeg>
well, it's not kvm's fault but those other virtualization products' fault :P
<Lisanna>
concatime sorry, read my messages afterwards
<Lisanna>
Dezgeg I don't actually know how kvm works, all I know is I've never seen more than one kind of app use it at the same time.
<Dezgeg>
at $work I use nixos in LXC on a proxmox machine, where the KVM vms spawned by proxmox and the runInLinuxVMs inside the nixos get together just fine
jetien has quit [Quit: Leaving.]
<Lisanna>
huh, that's interesting
<Lisanna>
okay, I'll go bitch at the simics team then
<Dezgeg>
your problem is that virtualbox doesn't use KVM
<Dezgeg>
but their own stuff
<Lisanna>
yeah, simics uses its own stuff too
<Dezgeg>
yup :P
<Lisanna>
some terrible driver they wrote that exposes the Intel vt-x stuff more or less directly
dramforever has joined #nixos
orivej has joined #nixos
aanderse has quit [Remote host closed the connection]
orivej has quit [Client Quit]
civodul has quit [Ping timeout: 252 seconds]
aanderse has joined #nixos
orivej has joined #nixos
grenade has quit [Remote host closed the connection]
pjan_ has joined #nixos
<aanderse>
all working now, thanks again :)
jetien has joined #nixos
<rnhmjoj[m]>
aanderse: great! i always check into other people configurations. usually someone has already solved the problem
<aanderse>
right, makes sense
nithor has quit [Ping timeout: 255 seconds]
<aanderse>
yeah i need to level up my nix foo...
krey has joined #nixos
<krey>
can someone help me move my /etc/nixos/configuration.nix?
<Lisanna>
krey move?!
<krey>
Lisanna: yeah, I'm trying to move it to another folder
jetien has quit [Quit: Leaving.]
mkoenig has joined #nixos
jetien has joined #nixos
<krey>
Lisanna: but I can't nixos-rebuild anymore
Havvy has quit [Read error: Connection reset by peer]
jetien has quit [Client Quit]
mkoenig_ has quit [Ping timeout: 276 seconds]
<Lisanna>
I don't think that file is meant to be moved...
Havvy has joined #nixos
<krey>
Lisanna: it says nixos-config wasn't found, but I put the new location in my $NIX_PATH
<gchristensen>
krey: what does your NIX_PATH contain now?
<NixOS_GitHub>
[nixpkgs] lopsided98 opened pull request #33813: Fix Linux kernel cross compilation (master...kernel-cross) https://git.io/vNZKj
NixOS_GitHub has left #nixos [#nixos]
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
coot____ has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc pushed 2 new commits to release-17.09: https://git.io/vNZ6J
<NixOS_GitHub>
nixpkgs/release-17.09 d659398 Graham Christensen: Revert "nixops: enable vultr"...
<NixOS_GitHub>
nixpkgs/release-17.09 b45869e Graham Christensen: Revert "nixops: digital ocean PR #765"...
NixOS_GitHub has left #nixos [#nixos]
Havvy has quit [Ping timeout: 256 seconds]
Havvy has joined #nixos
<dhess>
gchristensen: has the vultr stuff even been applied to nixops yet? I'm confused by that revert in nixpkgs.
<gchristensen>
dhess: someone in their fork of nixpkgs applied the vultr PR as .patch in the patchPhase of the nixops package, then accidentally pushed it upstream
<dhess>
oh god...
* dhess
checks to see if it was him
<gchristensen>
it wasn't :) but, accidents happen
<dhess>
phew
<dhess>
I have those applied in my NixOps fork :)
<gchristensen>
may I recommend if people have their own forks, to not use the same branch names as upstream? prevents accidentally pushing custom patches
<dhess>
but that's separate from my nixpkgs fork
ro6 has quit [Quit: Connection closed for inactivity]
<dhess>
gchristensen: what are those NixOps patches waiting on, anyway? FWIW I've been using the Vultr stuff for several months. Works great.
<dhess>
I have instantiated and destroyed maybe 10 or so hosts
<gchristensen>
I don't know, I'm not very involved with nixops maintenance
<dhess>
ok
orivej has quit [Ping timeout: 255 seconds]
<gchristensen>
but good to know, I'd like to find somewhere to run some cheaper, less important stuff
<aanderse>
i've downloaded this binary installer for a program. it comes as a 400+ mb bash script that has the actual binary file appended to the end of the bash script.
<dhess>
they are great. Better than DO for me as they give you a useful IPv6 prefix
<aanderse>
anyone have any opinion of how hard it would be to nix that?
<aanderse>
i've never packaged a binary for nixos before
la_putin has joined #nixos
<joepie91>
aanderse: seems it's just a compressed tarball (`tar xmz -C ${OUT_PATH}/`), so with a bit of luck you can just feed it into `tar` as-is and it'll ignore the junk at the start
el_putin has quit [Read error: Connection reset by peer]
<joepie91>
aanderse: alternatively, just emulate what it does with `tail` using `ORI_FILE_LEN` (ie. extract `ORI_FILE_LEN` from the file beforehand and use that to extract it)
<joepie91>
and then you can treat it as a normal tarball
pjan_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rnhmjoj[m]>
aanderse: it's seems a lot of stuff to patch, I would run it in a chroot env if it's just a one time run.
<acowley>
Anyone seen an error like this when building with GHC? setupCompilerEnvironmentPhase
<acowley>
Build with /nix/store/yszz79gj05f4dlgjbwbmglq8ydndnzr3-ghc-8.2.2.
<acowley>
ln: failed to create symbolic link '/nix/store/nis2ncsl5qcvacyca4cdim5j605zrjas-haddock-api-2.18.1/lib/links/libHShaddock-library-1.4.4-BXedb9tEAJEKpUW5xu3aRK-attoparsec-ghc8.2.2.dylib': File exists
mbrgm has joined #nixos
dramforever has quit [Remote host closed the connection]
nithor has quit [Ping timeout: 276 seconds]
pjan_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] disassembler pushed 1 new commit to release-17.09: https://git.io/vNZiS
<NixOS_GitHub>
nixpkgs/release-17.09 bcc2277 Samuel Leathers: Revert "nixos/xautolock: rewrite and add some options"...
NixOS_GitHub has left #nixos [#nixos]
Supersonic112 has quit [Disconnected by services]
dag has joined #nixos
dag is now known as Guest57877
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
dag_ has quit [Ping timeout: 256 seconds]
nithor has joined #nixos
<disasm>
dhess: that was me that made that screw-up... I had the merge pointed at the release branch on upstream remote instead of my origin remote. Thank gchristensen for catching that one.
orivej has joined #nixos
<disasm>
And dhess glad someone else is using my PR :) At some point I want to see if I can get this disk config in the nix config instead of hard-coded to btrfs (which is what my nixos image currently has). Just haven't had time to work on it. I also need to figure out how to write tests for it.
alexteves has quit [Ping timeout: 256 seconds]
<gchristensen>
if you'd like, I have a git pre-push hook which helps me avoid mistakes
<disasm>
gchristensen: yes please :)
tg has joined #nixos
pjan_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tomberek>
Howdy, I am trying to create a minimal chroot in NixOS. I've been able to use buildFHSUserEnv, but that seems to only pretend to be FHS, not a chroot.
<tomberek>
Is there a tool or trick to getting a chroot, or is the simplest thing to build one manually out of an Ubuntu image?
vidbina_ has joined #nixos
<gchristensen>
disasm: I use `mutate` for a lot of stuff, that is why it is in the expr as a fn
<tomberek>
there also the --chroot option on nixos-install, but that seems a bit heavy
<disasm>
nifty... how do you include that in your configuration.nix? does that get imported in place of git?
<gchristensen>
hrm
<gchristensen>
might be easier to just commit mywhole thing
<disasm>
dhess: that was me :) My first stab at doing anything custom with nix too, talk about a crazy learning curve
vidbina has quit [Ping timeout: 256 seconds]
<dhess>
disasm: I switched that btrfs hard-code to ext4. It works fine. I think as a first pass you could probably make it ext4, and leave the config option for a later patch.
<dhess>
I imagine almost everyone using NixOps to deploy to something like vultr isn't going to be particular about the filesystem... as long as it's something common like ext3 or ext4
nithor has joined #nixos
<disasm>
dhess: yeah, true
<disasm>
anyone use styx for a static site? Played around with it last night and today a bit, and it created a pretty nice website with minimal effort, and love that I can deploy my code directly from nixops :) https://www.samleathers.com/
<disasm>
And hey, how cool is it to say your website is written using nix :)
<disasm>
I was actually pleasantly surprised when I googled nix static site generator and one already existed :)
nithor has quit [Ping timeout: 276 seconds]
<tomberek>
Anyone know the proper way to make a basic chroot in NixOS? (i've tried buildFHSChrootEnv, it's not the same)
<gchristensen>
nice
<disasm>
tomberek: what are you trying to do?
<disasm>
tomberek: a nixos chroot, or something like debootstrap?
<tomberek>
disasm: i'm not sure about the difference between those two. I'm just looking to run some public services in a chroot (using sshd's ChrootDirectory), but that directory needs to have some basic environment.
<tomberek>
i'd be happy if it was basically a very minimal nixos chroot isolated from the host system
<disasm>
tomberek: so typically, I'd use a container for that
<disasm>
oh, it's a symlink to your home dir :) I was thinking something a lot more complicated
<disasm>
tomberek: in your configuration.nix you can do containers.somename = { ... } where ... is your network config, whether it should be autostarted, if tun devices are allowed, and your config param which is essentially a full nixos configuration for your container.
<disasm>
gchristensen: oh man, I really like that symlink package :) did you write that?
<gchristensen>
disasm: yep :0
<gchristensen>
:)
<gchristensen>
it doesn't clean up symlinks from previous generations, otherwise I'd send it to nixpkgs
<tomberek>
disasm: gchristensen: i didn't know if it was possible to do a chroot anyway, or if there was one i could re-use (eg, the nix build chroot)
nithor has quit [Ping timeout: 255 seconds]
<tomberek>
ghchristiansn: maybe i don't understand the buildFHSUserEnv, i looked like the environment and filesystem was identical to the host, just with lots of extra symlinks in /bin /usr, etc.
leat has quit [Ping timeout: 260 seconds]
mk-fg has quit [Ping timeout: 265 seconds]
<tomberek>
gchristensen: I'm testing it now. Looks like some of the fileSystem is isolated from the host, though there is still the /host directory exposed to the FHSEnv
mk-fg has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
<tomberek>
buildFHSUserenv seems designed to just mimic the FHS, not really be a chroot
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
<tomberek>
I'm reading the part about how nixos-containers are not perfectly isolated, is this only for root users, can you safely provide untrusted users access to non-root?
<tilpner>
"Warning: Currently, NixOS containers are not perfectly isolated from the host system. This means that a user with root access to the container can do things that affect the host. So you should not give container root access to untrusted users."
<adisbladis>
iqubic: Do I remember it correctly that you are using exwm?
<iqubic>
That is correct.
<iqubic>
I use EXWM.
<iqubic>
I'm busy doing School Work now, but I'll pop in from time to time and answer your questions.
<adisbladis>
iqubic: Do you have your setup somewhere? I never did get it to work properly..
<iqubic>
My set up is just to add "services.xserver.windowManager.exwm.enable = true;" and "services.xserver.windowManager.exwm.enableDefaultConfig = true;" to my configuration.nix.
<iqubic>
That's all I did, and it just works properly for me.
<iqubic>
it first loads exwm, then sources my .emacs properly.
dramforever has quit [Read error: Connection reset by peer]
wilornel has joined #nixos
<wilornel>
Hi #nixos! I remember a while back I learned here how I could declare the packages I want installed on my machine inside a single file. I cannot remember how I did that
<hyphon81>
I could access ipfs webui with version 0.4.13. However, I couldn't it with version 0.4.10.
el_putin has joined #nixos
la_putin has quit [Read error: Connection reset by peer]
AndreasO has joined #nixos
nithor has joined #nixos
vidbina has joined #nixos
AndreasO has quit [Client Quit]
glenn_ has joined #nixos
<glenn_>
hi there.. naive question (my specialty) .. when looking at: https://github.com/manveru/bundix, it says "Installing from this repo: nix-env -iA bundix". Im obviously missing a step or 10 and get:
<glenn_>
~/s/bundix ❯❯❯ nix-env -iA bundix
<glenn_>
error: attribute ‘bundix’ in selection path ‘bundix’ not found
<glenn_>
whats the gap in my understanding here?
leat has joined #nixos
<glenn_>
hmm.. actually this works better..
<glenn_>
> nix-build '<nixpkgs>' -A bundix --no-out-link
<glenn_>
or even:
<glenn_>
> nix-build '<nixpkgs>' -A bundix
tanonym has joined #nixos
<glenn_>
oh.. sorry thats hardly the same thing..
jetien has quit [Quit: Leaving.]
alex`` has quit [Ping timeout: 276 seconds]
ambro718 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] pikajude pushed 1 new commit to master: https://git.io/vNZdB
<NixOS_GitHub>
nixpkgs/master cf6c05f Jude Taylor: add haddock version for GHC 8.0
rogue_koder has quit [Quit: Konversation terminated!]
knupfer has quit [Ping timeout: 255 seconds]
kosmikus has quit [Quit: leaving]
kosmikus has joined #nixos
kosmikus has quit [Client Quit]
ssmike has joined #nixos
nithor has joined #nixos
hyphon81 has quit [Remote host closed the connection]
ssmike has quit [Ping timeout: 256 seconds]
<manveru>
glenn_: hey
<glenn_>
hey there
<manveru>
yeah, the docs might be a bit wrong :)
<manveru>
generally, you can install bundix from nixpkgs
<glenn_>
haha, lol, oK
<manveru>
like `nix-env -iA nixos.bundix`
<glenn_>
ohh TIL
<manveru>
or `nix-env -iA nixpkgs.bundix`
<manveru>
depending on your channel names
nithor has quit [Ping timeout: 256 seconds]
<glenn_>
cool, ok then thanks.. so the sentence 'from this repo'.. had me sniffiing about looking for something special to do within that repo.. but all that means is doing a bog standard `nix-env -iA bundix` will install your fork
<manveru>
yeah
ssmike has joined #nixos
<glenn_>
cool, thanks! another quick q.. do you know if it will work with contemporary versions of bundler?
NightTrain has quit [Quit: Lost terminal]
<glenn_>
i seem to recall hitting issues with anything above bundler 1.6 last time i looked into this?
<manveru>
there shouldn't be any issue really, please tell me though if you have problems
<lexsomething>
Hello! Gentlemen, I'm trying to build simple FHS as stated in https://nixos.wiki/wiki/FAQ#I.27ve_downloaded_a_binary.2C_but_I_can.27t_run_it.2C_what_can_I_do.3F , After I added some custom packages like gnustep.libobjc , clang fails to compile. even when I changed myexpession.nix it still tries and fails to compile libobjc which is not in my expession.nix anymore! how I can clean cache to tell nix-shell began it from scratch? --p
Kingsquee has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
<hyper_ch>
lexsomething: you tried to package a binary?
Kingsquee has quit [Client Quit]
ltielen has joined #nixos
orivej has joined #nixos
<lexsomething>
no, I didn't tried to package a binary. I just want make FHS chroot to run multiple binaries\scripts in it. That's point. Unfortunately my fhs.nix build fails and retries to restart from same failure step, even after I changed my fhs.nix file itself. I'm looking for a way to tell nix-shell not to restart compilation, but to re-evaluate my fhs.nix and make it from scratch. e.g. without cached state
nithor has joined #nixos
ma27 has joined #nixos
<hyper_ch>
no idea
deepfire has joined #nixos
<lexsomething>
k
nithor has quit [Ping timeout: 276 seconds]
<lexsomething>
Ok! I fixed that. I didn't noticed the line of gnuste.base that has failed dependecny objc, so I commented all gnustep packages, and my expression has been build with success. my fault
swayf has quit [Remote host closed the connection]
swayf has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
leat has quit [Ping timeout: 256 seconds]
leat has joined #nixos
zzamboni has joined #nixos
nithor has joined #nixos
cinimod has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 2 new commits to release-17.09: https://git.io/vNZpR
flokli has quit [Remote host closed the connection]
<manveru>
LnL: thx
<LnL>
np :)
flokli has joined #nixos
alex`` has joined #nixos
ltielen has quit [Quit: WeeChat 1.9.1]
<lexsomething>
I'm wondering why is there no automation script tool to run FHS, that looks for binaries/scripts in specific dir, determine dependecies via LDD, generetate myFHS.nix accordingly with all dependecies.
<lexsomething>
or is it a stupid idea? Because I'm thinking to write such tool. Ofc if there is no similiar script exists already.
<NixOS_GitHub>
[nixpkgs] hrdinka pushed 1 new commit to master: https://git.io/vNZhX
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 17a4f0f Christoph Hrdinka: woff2: set platforms to linux only...
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 3 new commits to master: https://git.io/vNZh9
<NixOS_GitHub>
nixpkgs/master 916f1a0 Jörg Thalheim: Literate: adapt to nixpkgs standards
<NixOS_GitHub>
nixpkgs/master 970a3e3 Joachim F: Merge pull request #28224 from RocketPuppy/add-literate...
<NixOS_GitHub>
nixpkgs/master 02d52d8 Daniel Wilson-Thomas: Literate: init
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 closed pull request #33803: Change package builds to use Qt 5.9 (master...qt59) https://git.io/vNZYy
NixOS_GitHub has left #nixos [#nixos]
pjan_ has joined #nixos
flox has joined #nixos
pjan_ has quit [Client Quit]
<flox>
I am trying to figure out how to combine builtins.readFile with something like substituteAll() but I am unsure how to correctly do this. Has anyone done anything similar?
<LnL>
readFile is evaluation time, substituteAll is build time
<flox>
LnL: so is there something that can substitute at evaluation time?
pjan_ has joined #nixos
* dramforever
is confused about ghc
<dramforever>
Hello, does anybody know how to build ghc HEAD with 8.2.2 instead of 8.2.1? I tried to override bootPkgs = haskell.packages.ghc822 but it doesn't seem to work perfectly -- it still downloads ghc-8.2.1-binary
michaelpj_ has quit [Read error: Connection reset by peer]
lonokhov has joined #nixos
orivej has joined #nixos
oahong has quit [Ping timeout: 276 seconds]
nithor has quit [Ping timeout: 255 seconds]
oahong has joined #nixos
michaelpj_ has joined #nixos
pkill9 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ThomasMader opened pull request #33830: ldc: Disable cdvecfill test to fix build on older processors (master...disable_test_cdvecfill) https://git.io/vNneg
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vNnea
<bennofs[m]>
dramforever: i am not sure if that's easily possible... it could be that we simply don't have a binary package for ghc 8.2.2 (although we have a binary subsitute of course)
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master e1f3c42 José Romildo Malaquias: zuki-themes: 3.24-2 -> 3.24-3
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vNnfm
lonokhov has quit [Remote host closed the connection]
<bennofs[m]>
dramforever: hmm, but it should be possible to use the binary-cached version of ghc 8.2.2 to build head... how did you do the override?
aanderse has quit [Read error: No route to host]
patrl has joined #nixos
aanderse has joined #nixos
seanparsons has quit [Ping timeout: 260 seconds]
nuncanada2 has joined #nixos
leat has quit [Ping timeout: 256 seconds]
leat has joined #nixos
nuncanada has quit [Ping timeout: 248 seconds]
pkill9 has quit [Quit: WeeChat 2.0]
seanparsons has joined #nixos
<pie__>
i forgot how to do this again :| nix-shell -p 'let foo = import <nixpkgs> {}; in callPackage ./default.nix {}'
<pie__>
error: anonymous function at /mnt/data/krita/default.nix:1:1 called without required argument ‘karchive’, at /nix/store/hp8xrp0sjvkwpd2535d7l7cif708rw48-nixos-17.03.1556.4d1e1d07f9/nixos/lib/customisation.nix:56:12
dywedir has quit [Remote host closed the connection]
<sphalerite>
pie__: you don't need the `let foo = import <nixpkgs> {};` bit, nixpkgs is automatically in scope for nix-shell expressions with -p
<pie__>
ah ok.
<sphalerite>
(which is why that works, otherwise it would have complained about missing callPackage since you wouldh ave had to do foo.callPackage)
<pie__>
for the sake of completeness, how do i pass the arguments to callpackage :| , doing callpackage default.nix foo doesnt work
<sphalerite>
`callPackage ./default.nix {}` should be correct
<pie__>
i mean if nixpkgs wasnt passed in
<sphalerite>
but it looks like you need a different callPackage for krita, maybe there's a specific kde one
<sphalerite>
hang on
<pie__>
oh right
<pie__>
qtcallpackage iirc or osmehting like that
<pie__>
hm kdeCallPackage isnt defined
* pie__
checks the original krita builder
<sphalerite>
kdeApplications.callPackage i think
<sphalerite>
libsForQt5.callPackage
<pie__>
krita = libsForQt5.callPackage ../applications/graphics/krita {openjpeg = openjpeg_1;};
<pie__>
this is whats in all-packages.nix
raynold has quit [Quit: Connection closed for inactivity]
<pie__>
that seems to run
zzamboni has quit [Quit: Leaving.]
simendsjo has joined #nixos
ma27 has quit [Ping timeout: 276 seconds]
zzamboni has joined #nixos
ma27 has joined #nixos
zzamboni has quit [Client Quit]
michaelpj_ has quit [Read error: Connection reset by peer]
rauno has quit [Remote host closed the connection]
patrl has quit [Quit: WeeChat 1.9.1]
ma27 has quit [Ping timeout: 256 seconds]
michaelpj_ has joined #nixos
ma27 has joined #nixos
cinimod has quit [Quit: Connection closed for inactivity]
brad_ has joined #nixos
<Aleksejs>
is there a way to tell nixos-rebuild not to create results symlink?
<brad_>
Hi all. I have a NixOS installation that I have set up to boot with UEFI, on my sda drive. There is a windows installation using BIOS on my sdb drive. Is there a way to switch to using Grub with BIOS to boot, and chainload the windows installation? Thanks!
lonokhov has quit [Ping timeout: 276 seconds]
orivej has joined #nixos
dramforever has joined #nixos
pjan_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has quit [Client Quit]
orivej has joined #nixos
lonokhov has joined #nixos
dramforever has quit [Quit: Konversation terminated!]
knupfer has joined #nixos
<Ankhers>
Does network.description still set the description for nixops? Or was that changed?
GiGa|Laptop has quit [Quit: Leaving]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm closed pull request #33830: ldc: Disable cdvecfill test to fix build on older processors (master...disable_test_cdvecfill) https://git.io/vNneg
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<va1entin>
gchristensen: oh wow I did not know that there was just a huge file for some python packages. Libnacl e.g. has its own below python-modules
<gchristensen>
I think there is work to move them out of thte big file
<disasm>
gchristensen: I did it with 16.09 :)
<bennofs[m]>
ok, turns out that nix-shell at least works for Hydra with latest nixpkgs unstable
<aanderse>
i'm trying to run some binary program and its complaining it can't find shared library libgtk-x11-2.0.so.0 so i make a nix-shell -p gtk2-x11 - shouldn't that make this program be able to find it?
WilliButz has joined #nixos
<va1entin>
gchristensen: Oh yeah I see that pynacl is not in that file anymore on the master branch, wondering where it went :D
orivej has quit [Ping timeout: 256 seconds]
nico202 has joined #nixos
dbe_ has quit [Ping timeout: 240 seconds]
spietz has joined #nixos
coot____ has quit [Remote host closed the connection]
oahong has quit [Ping timeout: 276 seconds]
nix-gsc-io`bot has joined #nixos
michaelpj_ has quit [Read error: Connection reset by peer]
<cinimod>
I just did `nix-shell -p "haskell.packages.ghc822.ghcWithPackages (pkgs: [pkgs.hmatrix])" -I nixpkgs=/Users/dom/nixpkgs` and now I seem to be building ghc
flox has quit [Quit: Page closed]
la_putin has joined #nixos
nico202 has quit [Ping timeout: 256 seconds]
el_putin has quit [Read error: Connection reset by peer]
<cinimod>
That's an old version of python `nix-instantiate --eval --expr '(import <nixpkgs> { }).python.version' `"2.7.14"
michaelpj_ has quit [Read error: Connection reset by peer]
dbe_ has joined #nixos
fuyuuri has joined #nixos
<deepfire>
Does anyone have experience with "happy" build failing like: Setup: The program 'happy' is required but it could not be found
leat has quit [Ping timeout: 256 seconds]
<deepfire>
It depends on itself, but I can't see any provisions in nixpkgs that would help this circularity..
orivej has joined #nixos
michaelpj_ has joined #nixos
<deepfire>
Granted, I'm getting this failure while trying to override it, and the Cabal release package could have these provisions, which could be missing from the git checkouts..
fyuuri has quit [Ping timeout: 256 seconds]
michaelpj_ has quit [Read error: Connection reset by peer]
nithor has quit [Ping timeout: 255 seconds]
<silver_hook>
Is there anything special I need to watch out for when I’m writing/testing new KDE packages?
<hodapp>
hmmm, I have gotten this in Cabal, but it was ages ago and on a janky Haskell build
leat has joined #nixos
michaelpj_ has joined #nixos
bennofs has joined #nixos
Itkovian has joined #nixos
michaelpj_ has quit [Read error: Connection reset by peer]
<Ankhers>
I am trying to go through the nixops manual with the trivial webserver deployment over virtualbox. When I try to do the actual deployment, I get "error: a ‘x86_64-linux’ is required to build ‘/nix/store/1n4p1pl59263d9yf677a040q1qg11iac-append-initrd-secrets.drv’, but I am a ‘x86_64-darwin’". I swear I have done this on my mac before. Any suggestions?
michaelpj_ has joined #nixos
nithor has joined #nixos
<va1entin>
I am trying to build gnu hello as described in NixOS manual but always get "error: cannot auto-call a function that has an argument without a default value (‘stdenv’)" Does anyone know what that means?
asuryawanshi has joined #nixos
nithor has quit [Ping timeout: 256 seconds]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
orivej_ has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
<symphorien>
that you are trying to nix-build a file which is meant to be evaluated through callPackage
<symphorien>
this file contains a function, and not a derivation
<symphorien>
I guess you did nix-build <the file>, right ?
<va1entin>
I put default.nix and builder.sh in a folder and nix-build -A hello
vidbina has quit [Ping timeout: 276 seconds]
<symphorien>
ok, this is not the right way to do that:
<symphorien>
nix-build expects a file which evaluates to a derivation
<symphorien>
your default.nix is a function
<symphorien>
so you have to provide the "glue": a file which calls your function and returns a derivation
krey has joined #nixos
<va1entin>
something like "hello = ./default.nix;"?
<va1entin>
like in the huge package files in nixpkgs?
rihards has quit [Quit: rihards]
<symphorien>
for example: `with import <nixpkgs> {}; callPackage ./default.nix
asuryawanshi has quit [Ping timeout: 276 seconds]
nithor has quit [Ping timeout: 256 seconds]
<symphorien>
callPackage is a closure which contains nixpkgs and will call your function with the packages which have the same name as the argument of the function in ./default.nix
<symphorien>
and remove the -A hello
<krey>
o/ guys, anyone know how to builtins.readFile a relative path?
<symphorien>
-A hello means "this file is not a derivation but an attrset whose attr "hello" is a derivation, build this derivation instead"
<symphorien>
va1entin: is this clear enough ?
<va1entin>
symphorien: I made a file with a single line: "hello = callPackage ./default.nix { };"
<va1entin>
symphorien: Now I get error: syntax error, unexpected '=', expecting $end, at /home/val/git/nixpkgs/pkgs/testing/test.nix:1:7
<symphorien>
either you want your file to be a derivation, and then only put `callPackage ./default.nix {}`
<symphorien>
or you want it to be an attrset and then `{ hello = callPackage ./default.nix {}; }`
<infinisil>
krey: builtins.readFile ./path ?
nyberg has quit [Quit: WeeChat 2.0]
<va1entin>
symphorien: I tried callPackage ./default.nix {} and its telling me now that callPackage is undefined
<infinisil>
krey: or if you have a string: builtins.readFile (./. + "/some/path")
<cinimod>
I am doing `nix-build --attr project1 release1.nix `
<symphorien>
or ` with import <nixpkgs> {}; callPackages......`
<cinimod>
But I get `Configuring blas-0.7.6... Setup: Encountered missing dependencies: QuickCheck >=1.2 && <2`
<cinimod>
I don't mention `QuickCheck`
<krey>
infinisil: thank you, that fixed it
<cinimod>
What is asking for such an old (2014) version of QuickCheck?
<va1entin>
symphorien: Nice thanks a lot! It works
<symphorien>
:)
nithor has joined #nixos
<krey>
infinisil: nix was unhappy with readFile "./path"
fuyuuri has quit [Ping timeout: 256 seconds]
<krey>
infinisil: I find the "types" in nix a little opaque at the moment
<infinisil>
krey: yeah, builtins.readFile can only read absolute paths, so using ./. which expands to an absolute path is the trick
<infinisil>
otherwise there really isn't any path type, they're just strings
<infinisil>
cinimod: it would help if you showed your nix file..
<azazel>
yesterday i was reading the manual and i must say that i find it a bit inconvenient, with that toc staying all on the top and i was thinking about converting it to Sphinx to have it in a more "modern" form... would it be an useful contribution?
<infinisil>
well my internet connnection is kinda really bad right now so i can't even check, it's probably somewhere on the support page
<gchristensen>
azazel: that would be a very challenging contribution to land, and I wouldn't suggest starting with that
<infinisil>
it has a nice floating toc on the right side
<gchristensen>
I think we could make improvements to the current docs w.r.t. the ToC though
<azazel>
gchristensen: challenging? not the static part
danl1240 has joined #nixos
<gchristensen>
azazel: as in there are a lot of vested interests in how the documentation is written and maintained, and is a topic that the NixOS community has struggled with
<azazel>
the only thing that Sphinx misses are the notes to the example code, but it can add line numbers and you can ref to them
<silver_hook>
I’m having issues packaging an (official) KDE package – Lokalize.
<azazel>
gchristensen: yesterday I was starting right away, but then I said to myself "wait a moment, that's something to discuss"
<cinimod>
infinisil: see above
<cinimod>
I was going to write a ticket
<gchristensen>
azazel: yes, I am glad you didn't get too far, because I am pretty sure the PR would not merge
<infinisil>
Um, well damn, I can't open it because my internet sucks so much right now
<gchristensen>
azazel: it is less fun, but docbook is quite powerful with the right tools. I wonder if we can get some equivalently nice features via docbook
<infinisil>
(irc stays alive because it's a single TCP connection, but my internet can't establish new connections lol)
<gchristensen>
(I mean, I'm certain we can, but how much fighting it requires is the question really)
* infinisil
wants to have the weekly docs discussion
verite has quit [Ping timeout: 240 seconds]
<azazel>
gchristensen: I know that is capable, althought I haven't used extensively... but it's just boring to death writing doc with it ;-)
<gchristensen>
azazel: imo, it is boring to death writing docs in any tool :)
<gchristensen>
azazel: there is (still) an outstanding offer to take any docs written in any format and have them converted to docbook by someone else
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #33831: imagemagick: updates for 6, 7 (master...update/imagemagick) https://git.io/vNnGu
NixOS_GitHub has left #nixos [#nixos]
<azazel>
I think there is a Sphinx to Docbook writer out there ...
vidbina has joined #nixos
<infinisil>
pandoc probably
<azazel>
the kernel doc is been rewritten in ReST too
<gchristensen>
azazel: the people who would need to agree to this switch aren't ready to have this conversation, it doesn't matter if many projects are switching to <<something else>>
<infinisil>
cinimod: um, maybe you should just add quickcheck to the dependencies?
<infinisil>
I mean it complains that it couldn't find it
fyuuri has joined #nixos
<azazel>
gchristensen: I'm not a fan of that argument also, It was more to state that also another project that has extensive doc has switched to it.. althought probably pointing to python's doc is sufficient for that
zzamboni has joined #nixos
<gchristensen>
azazel: and in the end it doesn't matter anyway, because we are not those projects and those projects' choices don't have bearing on our choice
<disasm>
azazel: write documentation in whatever form you want, I'll convert it to docbook for you :)
nithor has quit [Ping timeout: 256 seconds]
<azazel>
as a NixOS newbie, I find that things like a glossary or better inter-manual linkage would be nice to have... not to think of the search
<gchristensen>
perhaps it'd be helpful to write down a wish-list of docs features so we can collect them and make an informed choice later
iyzsong has quit [Ping timeout: 255 seconds]
<cinimod>
infinisil: hmatrix does not depend on QuickCheck
<gchristensen>
krey: it isn't a disaster, but I try to not, I think it is safer to just avoid the question
ma27 has joined #nixos
<symphorien>
krey: you can use initialHashedPassword instead for example
<gchristensen>
krey: one thing I think about is the signal you can broadcast when it changes. in particular, did it change recently due to a well publicized password dump? hmm maybe I should go looking for krey's password in it. ...
<gchristensen>
krey: typically I'll put passwords / secrets in to a secrets.nix that I then import and use, but don't check in to git.
<7YSAAAR71>
nixpkgs/master 4488e7c Sarah Brofeldt: nixos/tests/keymap: disable xterm DM
7YSAAAR71 has left #nixos [#nixos]
<symphorien>
maybe a users.immmutableUsersExceptPasswords option would be a useful addition then
b has quit [Quit: Lost terminal]
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] dezgeg opened pull request #1797: Fix tests using user namespaces on kernels that don't have it (master...userns-tests-fix) https://git.io/vNncx
NixOS_GitHub has left #nixos [#nixos]
klntsky has quit [Ping timeout: 272 seconds]
rogue_koder has joined #nixos
magnetophon has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 87677d0 Joachim Fasting: tor: 0.3.1.9 -> 0.3.2.9...
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vNnC8
NixOS_GitHub has left #nixos [#nixos]
zzamboni has quit [Quit: Leaving.]
dan_b has joined #nixos
<sphalerite>
so I get some nasty hangs on anything that tries to access network devices if I use my USB-C hub/ethernet adapter, then unplug it. If I manually remove the network controller via sysfs before unplugging everything is fine. I'm guessing this is a kernel bug?
klntsky has joined #nixos
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] vidbina opened pull request #33834: bitscope: refactored to expose to nixpkgs-lint (master...fix/bitscope-nixpkgs-lint) https://git.io/vNnC7
<wilornel>
adisbladis: basically, on a clean machine: `mkdir -p ~/.config/nixpkgs/ ; vi ~/.config/nixpkgs/config.nix # insert the first code sample presented in that section`, then I run `nix-env -iA nixpkgs.myPackages` and I get "error: attribute ‘nixpkgs’ in selection path ‘nixpkgs.myPackages’ not found"
<manveru>
anyone can help me with some fun new C++ issue?
[0x4A6F] has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 79db7c0 Gregory Pfeil: flootty: init at 3.2.1
<NixOS_GitHub>
nixpkgs/master d40d41e Gregory Pfeil: Move flootty from python-modules.
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 4 new commits to master: https://git.io/vNnWn
<NixOS_GitHub>
nixpkgs/master 38deb53 Greg Pfeil: Merge branch 'master' into add/flootty
<deltasquared>
hmm, is it possible/adviseable to have both nixos and nixpkgs-unstable channels, with the latter taking precedence?
threepointone has joined #nixos
<gchristensen>
"precedence"?
<deltasquared>
gchristensen: as in, when the system updates and I want x newer version of package... I assumed nix had to work that out somehow
<threepointone>
Is the /nix/store directory supposed to mounted as read-only on a fresh NixOS installation?'
drakonis has joined #nixos
<gchristensen>
deltasquared: you'd have to explicitly choose one or the other, it is inadvisable and unsafe to use nixpkgs-unstable for nixos
<gchristensen>
threepointone: yes
<deltasquared>
gchristensen: I thought it might.. darn. ok.
<manoj1>
makefu: thanks, I am on NixOS
<gchristensen>
deltasquared: but you could do, say, let unstablePkgs = import <unstable> {} in {... at thhe top of your configuration, and then in systemePackages = [ unstablePkgs.git ];
<makefu>
deltasquared: what a lot of people do is to check out the stable channel and cherry-pick the changes they want from untsable
<makefu>
or what gchristensen says, depending on what you want to achieve
<manoj1>
I don't want to edit /etc/nixos/configuration.nix; I want to set options at the user level
<deltasquared>
makefu: generally, just bleeding edge packages
<sphalerite>
deltasquared: nixos-unstable usually isn't far behind nixpkgs-unstable anyway, so it's not really worth it. Combining nixos-17.09 and nixos-unstable/nixpkgs-unstable/master is definitely possible and sometimes desirable though
<deltasquared>
sphalerite: right, part of it was that I got spooked at the recent intel mishaps. that said, did channel --update and it's reasonably fresh, so I'm not one to complain
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master e2f7267 adisbladis: xxdiff-tip: Build with qt59
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 1 new commit to master: https://git.io/vNn4c
<deltasquared>
even arch can take a couple of days to get things to stable.
<deltasquared>
(which I conventionally associate with bleeding edge)
<wilornel>
I don't have a good way to stay idle and connected on irc right now, so I think that I get disconnected and then it's hard to keep the discussion on the issue goin
jb55 has joined #nixos
<gchristensen>
wilornel: can you run nix-info?
<wilornel>
Good point. Updating the question.
<gchristensen>
wilornel: do you have a file at ~/.nixpkgs/config.nix ?
nuncanada2 has quit [Quit: Leaving]
guillaum3 has quit [Ping timeout: 256 seconds]
<wilornel>
gchristensen: : ~/.nixpkgs does not exist
<wilornel>
Updated the question (nix-info failed)
<gchristensen>
oh my you're on 16.09, that hasn't been supported for some time now
zzamboni has joined #nixos
<wilornel>
I did get that from vagrant somewhere. I shall try to find a newer vagrant image
<wilornel>
I think I'll have to create my own
<gchristensen>
wilornel: what if you just do nix-env -iA myPackages
<wilornel>
"error: attribute ‘myPackages’ in selection path ‘myPackages’ not found"
<gchristensen>
ok, try moving ~/.config/nixpkgs/config.nix to ~/.nixpkgs/config.nix
nithor has joined #nixos
<wilornel>
nix-env -iA {nixpkgs.},myPackages both fail after moving config.nix over
<threepointone>
gchristensen: Ok. Well, the output of the mount command shows root mounted at "/" and "/nix/store" with "rw" and "ro" respectively. I don't understand how this works. If /nix/store is supposed to be mounted as read-only, how is package installation successful? The last time I installed NixOS in a VM, I ended up with a broken installation because the manifest file was empty and couldn't rollback to any previous generation.
<gchristensen>
threepointone: the nix daemon mounts specific subdirs as rw during package build / install time.
<gchristensen>
threepointone: I have:
<gchristensen>
/dev/mapper/cryptroot on / type ext4 (rw,relatime,data=ordered)
<gchristensen>
/dev/mapper/cryptroot on /nix/store type ext4 (ro,relatime,data=ordered)
<gchristensen>
wilornel: what about with nixos.myPackages
zzamboni has quit [Quit: Leaving.]
<wilornel>
it works
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master eb7af7a Will Dietz: whois: prefer not overwriting phases, use libiconv
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 4 new commits to master: https://git.io/vNnBJ
<NixOS_GitHub>
nixpkgs/master 90c67ea Will Dietz: whois: 5.2.18 -> 5.2.20
<NixOS_GitHub>
nixpkgs/master 364b219 Will Dietz: whois: use libidn2 to support various 'international' domains
NixOS_GitHub has left #nixos [#nixos]
<gchristensen>
wilornel: great, support for ~/.config/nixpkgs/config.nix was added in 17.03 I believe
<wilornel>
I still want to move to the latest supported version. 17.0+?
<wilornel>
I see
<gchristensen>
17.09 is current stable
zzamboni has joined #nixos
<wilornel>
Thank you gchristensen !
<gchristensen>
I'm glad I could help!
<samueldr>
I don't know all the details, but nixbox is what was used to build those vagrant images
<gchristensen>
wilornel: ehh I don't remember how to log in to SO. please answer it for me :P
<threepointone>
gchristensen: Ok, thanks! NixOS is a bit weird when compared to other distros but if everything turns out to work as expected, it'll be worth it.
<wilornel>
gchristensen: Yes I shall!
<gchristensen>
threepointone: yes, indeed :) that ro mount is important for making sure the Nix Store is kept immutable
<wilornel>
samueldr: I'm confused by what nixbox is
<samueldr>
wilornel: I don't know if you need nix or nixos to use nixbox, but you should be able tobuild (x86_64) vagrant image for 17.09, looking at the issues
<samueldr>
wilornel: it's the "scripts" (packer and all needed) used to build the vagrant images
<samueldr>
vagrant images are generally automatically built, for most distros, using some tooling, often they are made using packer
threepointone has left #nixos [#nixos]
nithor has quit [Ping timeout: 255 seconds]
<wilornel>
where does it say in those scripts to install 16.09?
<samueldr>
that's the thing, the scripts are updated, but the pre-built images distributed by the "atlas" (vagrant) are not built anymore
<wilornel>
or was the script used at a certain point in time where the source hosted on https://github.com/NixOS was for version 16.09 ?
<samueldr>
so you could follow the instructions under "Building the images" to make your own .box for 17.09
<samueldr>
three days ago: 16:45 <zimbatm> I think atlas has stopped providing free builds for the project
<wilornel>
I see, thanks a lot!
<wilornel>
Aaaaah I understand now
<wilornel>
Is it possible to find another provider?
<samueldr>
the nixbox packer scripts should work under any distros
<wilornel>
I don't know how these ops work. Can some servers be running on donations?
<samueldr>
I really don't know enough about the infra behind vagrant, I've been a user, and still haven't used nixbox
<samueldr>
(I'm using vagrant with other distros)
cinimod has quit [Quit: Connection closed for inactivity]
<wilornel>
I'll be back after some rest. Thanks samueldr and gchristensen !
<gchristensen>
see you!
<samueldr>
good luck
jb55 has quit [Ping timeout: 256 seconds]
jensens has quit [Ping timeout: 256 seconds]
jb55 has joined #nixos
nithor has joined #nixos
manoj1 has quit [Ping timeout: 255 seconds]
andymandias_ has quit [Ping timeout: 268 seconds]
<bgamari>
how does one bring one's current NixOS configuration into scope in nix-repl?
<ixxie>
my PR went bad because the node packages list got updated
<ixxie>
anybody got a clear way for me to fix it without having to merge/rebase the entire branch?
dan_b has quit [Ping timeout: 255 seconds]
nithor has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Izorkin opened pull request #33835: maxscale: init at 2.1.13 (master...mariadb-maxscale) https://git.io/vNnRR
NixOS_GitHub has left #nixos [#nixos]
andymandias has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] adisbladis opened pull request #33836: WIP: gpsbabel: Fix build with qt59 (master...gpsbabel-qt59) https://git.io/vNnR2
NixOS_GitHub has left #nixos [#nixos]
<wilornel>
samueldr: It seemed like packer would be the one building the vagrant image
<wilornel>
But now it seems like packer will try to get a build from atlas?
zzamboni has quit [Quit: Leaving.]
ixxie has quit [Ping timeout: 256 seconds]
zzamboni has joined #nixos
<bgamari>
is it expected that running `ghc-pkg check` returns thousands of broken packages in a ghcWithPackages environment?
* bgamari
can't help but think he's missing something crucial
<bgamari>
it seems like essentially all interface files are missing
<samueldr>
wilornel: Error connecting to atlas server, please check your ATLAS_TOKEN env: authentication failed ?
<samueldr>
packer still hasn't completed in my test run, but removing the whole object with "type": "atlas" in the nixos_x86_64.json file seems to fix that...
<samueldr>
it *may* be related to the issue with atlas accounts, and the free builds and everything
b has joined #nixos
<wilornel>
ah! This post-processor probably tries to upload the build to atlas. We don't want that if we are doing this for ourselves. I'll try to remove that object
<samueldr>
that's what I'm assuming
nithor has quit [Ping timeout: 256 seconds]
<wilornel>
and it's running!
<makefu>
krey: regarding pcmanfm, for me it was necessary to enable devmon together with udisks2 to essentially get usb-automounting features. the wiki does not yet mention this, does it work for you out of the box?
<pbogdan>
bgamari: re NixOS config I think you can do "> :l <nixpkgs/nixos> ↵ > config.<TAB><TAB>"
<samueldr>
wilornel: either my machine is as fast as potato or some overhead was added, I had to increase boot_wait for it to reliably work, 30s was a couple seconds too short
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 397157c Will Dietz: imagemagick: 7.0.7-19 -> 7.0.7-21
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 3 new commits to master: https://git.io/vNn0d
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master c873638 adisbladis: Merge pull request #33831 from dtzWill/update/imagemagick...
<NixOS_GitHub>
nixpkgs/master 1855060 Will Dietz: imagemagick: 6.9.9-28 -> 6.9.9-33
<deltasquared>
I return, and I bring alcohol, what could go wrong?
<deltasquared>
likely several things, but that never stopped me before
<makefu>
"now hold my beer, i gonna do nixos!"
<deltasquared>
something like that
nithor has quit [Ping timeout: 256 seconds]
<deltasquared>
makefu: that'd be me to the arch crowd I usually lurk around
<etu>
haha arch
<gchristensen>
makefu: the trouble with nixos' beer is you can't drink it
<gchristensen>
etu: hey now, all a big family of distros :)
<etu>
I went to the archlinux channel recently, in the start of their topic it says "Welcome and good luck"
<sphalerite>
deltasquared: re portable install I recently did one which went nicely, if you want any specific guidance on that (assuming EFI) I'd be glad to help
<etu>
And then I felt, "I don't want a 'Good luck' when I look at something related to a distro"
<deltasquared>
etu: to be fair, if you ask smart questions the arch guys are useful, though somewhat blunt
<deltasquared>
learning arch is a bit like learning LFS with binary packages.
<deltasquared>
certainly the majority of configuration is editing files in /etc
<deltasquared>
(something which I may have to wean from in nixos...)
<deltasquared>
gchristensen: can't drink it... because no destructive updates?
<etu>
deltasquared: I see arch as an easy distro to set up, but I have also been using gentoo for 8 years before I switched to arch for a bunch of years before I found nixos :)
<samueldr>
krey: doing good work in the wiki, the way you integrate the links in the flow of your sentence is 100% good in my opinion :)
<gchristensen>
deltasquared: immutability
<deltasquared>
gchristensen: that's what I was trying to mean
<deltasquared>
destructive updates being in-place mutation
<krey>
makefu: it took me a few rounds to get it to work, but I don't think I needed them in the end
<deltasquared>
(speaking of no destructive updates, still trying to grok monads in haskell and why they're used for what they are)
<etu>
My wife wanted to move of arch to nixos when arch failed to build her nvidia drivers during an update :)
<krey>
makefu: what options did you use to enable devmon and udisks2?
<makefu>
krey: i tried without but somehow new disks are not mounted without it.
<makefu>
services.devmon.enable and services.udisks2.enable
<deltasquared>
etu: heh, the general attitude in arch is "thou must be prepared to deal with X11 breakage yourself"
<krey>
samueldr: haha, thanks
* deltasquared
realises he forgot to expose the USB disk's ESP to the VM again
<deltasquared>
I need to find a way of doing vmware's trick of exposing only parts of the drive and the partition table in read-only mode
<etu>
deltasquared: The problem on her card is that if it runs on nouveau, you just get a black screen. And she didn't have ssh set up. So I think she was a bit fed up...
<krey>
makefu: I definitely don't have those enabled
<deltasquared>
etu: fair enough... it *is* a usability problem at the end of the day
<makefu>
krey: weird, what window manager are you using?
pkill9 has quit [Quit: WeeChat 2.0]
<krey>
makefu: probably worth adding to the wiki "If that didn't fix it, enable..."
<krey>
makefu: i3
spietz has joined #nixos
<makefu>
maybe i3 does some magic ¯\_(ツ)_/¯
<makefu>
i will add the info
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/release-17.09 df66be2 Will Dietz: imagemagick: 6.9.9-26 -> 6.9.9-33...
<NixOS_GitHub>
nixpkgs/release-17.09 f81b927 Will Dietz: imagemagick: 7.0.7-14 -> 7.0.7-21...
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to release-17.09: https://git.io/vNnEF
NixOS_GitHub has left #nixos [#nixos]
<krey>
makefu: I doubt it, haha. I used xmonad too and it worked
<krey>
makefu: hbu?
<deltasquared>
btw I noticed nixos-rebuild switch starts boot.mount to do the grub steps, can it be instructed to unmount (or e.g. remount read-only) when done?
<deltasquared>
I get a bit ansty with a FAT32 volume being left read-write
<makefu>
krey: awesomewm here
<deltasquared>
it's not the most corruption-proof of filesystems...
<samueldr>
it may be a tad large, I'm at 5GB ESP, 61M used
<deltasquared>
samueldr: it may have, at one point, been because I wanted a slight speed boost from not having to compress the initramfs when mkinitcpio ran >_>
zzamboni has quit [Quit: Leaving.]
<deltasquared>
darn, where's that man page listing all the known configuration.nix settings again
<deltasquared>
etu: I take it systemd unmounts it after some time?
m0rphism has quit [Quit: WeeChat 1.9.1]
<etu>
So day to day it's not mounted until I need to touch it in any way.
<deltasquared>
next question, because I'm not sure what the phrasing would be, what was the option for additional packages to be installed (outside of modules)
<etu>
nope
<etu>
It doesn't, but I don't mount it on boot so it's not mounted all the time. So a bit better :)
krey has joined #nixos
<deltasquared>
ah, environment.systemPackages
zzamboni has quit [Client Quit]
<adisbladis>
ariutta: Those services are only available on NixOS.
<ariutta>
adisbladis: thanks. I hope I can switch to NixOS soon!
<deltasquared>
hmm, if I see wpa_supplicant-2.6 appear in nix-env -qa, is it sufficient to write pkgs.wpa_supplicant in the array to select them?
<deltasquared>
it rather
<deltasquared>
I guess there's only one way to find out...
nithor has joined #nixos
<dpc>
What is the relationship between nixos and nixpkgs?
<dpc>
Now that I have nixos installed do I have to install nixpkgs the same way as before?
<samueldr>
nixos is built using nixpkgs
<samueldr>
depending on what you mean by "install nixpkgs", I'm pretty sure the answer would be no; you should have nix and nixpkgs all configured and ready to go
<deltasquared>
error: attribute ‘iproute2’ missing, at /mnt/etc/nixos/configuration.nix:13:3
<deltasquared>
hmm, so apparently not that straightforward
<krey>
makefu: do you dbus launch your session?
<makefu>
krey: not sure how to find out
<makefu>
at least with ps there is a dbus session running
<krey>
makefu: yeah, so grep dbus-launch
<JosW>
Why is there no NixOS activity on LinkedIn? I would love to read some enlighted stories about NixOS to stirr some more interrest
<makefu>
krey: that yielded two rsults, one for root and one for my user
<etu>
dpc: nixos-unstable and nixpkgs-unstable have the same upstream repo, just different requirements for moving the channel forward. nixos-named channels tests stuff like bootloaders and such.
<krey>
makefu: I have one result, dbus-launch xsession
zzamboni has joined #nixos
<deltasquared>
why is it that to this date there isn't an open source UEFI implementaion for use in qemu
<Dezgeg>
isn't there edk2
<Dezgeg>
it's used in nixos uefi boot tests
<deltasquared>
Dezgeg: alas, arch doesn't seem to package it. I haven't bootstrapped that far
* etu
has used UEFI in qemu at some point
<Dezgeg>
get it from nix then? x)
* deltasquared
does the usual dance of commands
<deltasquared>
ah, there it is.
<deltasquared>
wait what, where are the uefi binaries hiding
<yorick>
orivej_: I'm trying kicad-unstable, but it's missing all the library
<yorick>
orivej_: how does it work?
<deltasquared>
hrm I really need a ton of spare flash drives for all these distro isos
JosW has quit [Quit: Konversation terminated!]
JosW has joined #nixos
WilliButz has quit [Ping timeout: 255 seconds]
zzamboni has quit [Quit: Leaving.]
deltasquared has quit [Quit: SEGMENTATION FAULT]
JosW has quit [Quit: Konversation terminated!]
<manveru>
what do i use as license for packages that have none?
danl1240 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nithor has quit [Ping timeout: 256 seconds]
zzamboni has joined #nixos
deltasquared has joined #nixos
<deltasquared>
right, as my system's UEFI firmware is a bit backward, would anyone know off-hand if the nixos iso's initramfs would have detection of LVM volumes in it?
sigmundv_ has joined #nixos
<deltasquared>
previously, I've had to dd an image to a flash drive but then separately copy the boot files to my ESP, because... well like I said the firmware is stoopid and can't handle flash drives properly
Itkovian has joined #nixos
ma27 has quit [Ping timeout: 256 seconds]
michaelpj_ has joined #nixos
deltasquared has quit [Quit: SEGMENTATION FAULT]
ma27 has joined #nixos
manoj1 has joined #nixos
raynold has quit [Quit: Connection closed for inactivity]
<srk>
garbas: hi, do you possibly know how to extract PYTHONPATH from nixpkgs-python bundled envs? I need to create wsgi entrypoint with correct paths and can't seem to find a correct way
<Ankhers>
Would anyone be able to point me to a tutorial / documentation stating how to use nixops to deploy to a variable number of machines?
<srk>
Ankhers: you just need to define more machines in your network.nix
<srk>
network.nix contains common topology and includes, -livirt and -prod add environment specific configuration
<Ankhers>
srk: In your example, you seem to have a single hydra_slave. What if I wanted to deploy 6 of them, without having to specify hydra_slave1, hydra_slave2, ..., hydra_slave6
<Ankhers>
Or is there something else I am missing?
<srk>
you just need to define a function that would create hydra slaves and a list of them
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Itkovian has joined #nixos
jb55 has joined #nixos
nithor has quit [Ping timeout: 256 seconds]
m0rphism has quit [Quit: WeeChat 1.9.1]
m0rphism has joined #nixos
zzamboni has joined #nixos
m0rphism has quit [Client Quit]
lexsome has joined #nixos
m0rphism has joined #nixos
michaelpj_ has quit [Read error: Connection reset by peer]
<lexsome>
Gentlemen, you can congratulate me! I finnaly, successfully had been built (sorry for muh ingrish), an FHS for some game, and had been able to play! YAY! Hovewer, I was forced to manually ldd each file and write all dependecies, I wonder if there is an automatic solution for that?
Thra11 has joined #nixos
ckauhaus has quit [Quit: Leaving.]
<gchristensen>
Ankhers: you could do something with like listToAttrs or something
<lexsome>
maveru, an tarball of Core Breach. racing.
<Ankhers>
gchristensen: Thanks. I will look intot hat.
<Ankhers>
into that
<Thra11>
What happens if I run 'nix-collect-garbage -d' while nixos-rebuild is building? Does it know to keep not just the current generation, but also everything that is required for the generation that is currently being built?
<gchristensen>
Thra11: it will never gc the current generation or the generation you booted
<manveru>
lexsome: it's open source, no?
deltasquared has joined #nixos
oida has joined #nixos
<deltasquared>
sphalerite: it lives! \o/
<sphalerite>
yay!
<deltasquared>
now where the hell did "man 5 configuration.nix" get to
<manveru>
looks like the majority of assets isn't, but do those require compilation?
<dhess>
gchristensen: the macOS Nix installer sets up the root nixpkgs channel to use nixpkgs-unstable, is that right?
<lexsome>
manveru, it is open source. however, I am as a noob, don't always compile stuff, I just play binares. The compilation instructions from github are obsolete garbage, so I had an binaries from 2011, which I succesfully played. After some dep's resolution) in FHS
<deltasquared>
dhess: the linux one definitely does
<gchristensen>
dhess: it does, and that is probably a mistake
<gchristensen>
on macos, each user should probably have their own channel, and not setup root by default
<dhess>
gchristensen: yeah I was just about to ask about that actually. It should use nixpkgs-17.09-darwin, shouldn't it?
<deltasquared>
gchristensen: you'd have to namespace /nix somehow at least
<dhess>
gchristensen: except when you want to use nix-darwin. :)
<deltasquared>
does macosx *have* namespaces I wonder
nithor has quit [Ping timeout: 256 seconds]
<deltasquared>
I know it's somewhat unixy under the hood but the UI put me off trying to play with it when I had access to them
<sphalerite>
wow those build instructions for windows though "Win: Buy a Mac, install clang-compatible Cocotron and then open CoreBreach.xcodeproj in Xcode 4.x, select the win32 target and hit the build button."
<dhess>
gchristensen: or just in generally, really. You will need to update nix-daemon at the very least at some point. That should come from a "system" channel and not from one user
<gchristensen>
well, one promising proposa was to by default treat the installing user as "the admin"
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<deltasquared>
sphalerite: might have well just said "frack you too"
<deltasquared>
the build instructions I mean
MP2E has joined #nixos
<LnL>
dhess: gchristensen: yeah, that's how I've been treating the local user in nix-darwin
<dhess>
gchristensen: anyway, in the meantime, is there a reason why nixpkgs-17.09-darwin (or whatever is the current stable release) shouldn't be the root channel?
<sphalerite>
deltasquared: well I guess it's still marginally better (from windows users' perspective) than not supporting windows at all
<lexsome>
thanks manveru. Yeah I know, we can\should make a package. It is just my sick binary mentality, and I wanted to test my ability to run gaems on new rig. So that's it, first game lauched on NixOs. I hope there will hundereds in the future. I like that distro want to stay in touch with desktop users.
<dhess>
like, is there some functionality it is missing that the Darwin installer needs?
<deltasquared>
sphalerite: bar most windows users not even getting the concept of software built from sources, I'd wager ;)
<deltasquared>
you might as well have asked them to make blood sacrifices for all some users that I've encountered would care -_-
<deltasquared>
"command prompt? omg hax!"
<gchristensen>
deltasquared: this isn't constructive
<manveru>
lexsome: i understand, i do similar stuff sometimes, was just wondering
Itkovian has joined #nixos
<deltasquared>
gchristensen: ... right. sorry.
* deltasquared
makes a note not to treat the place like #archlinux-offtopic
<Ankhers>
How can I access the lists functions in the network.nix for nixops?
<gchristensen>
Ankhers: you can jjust do an import of nixpkgs, or even <nixpkgs/lib>
imagio has quit [Remote host closed the connection]
michaelpj_ has joined #nixos
hiratara has quit [Ping timeout: 276 seconds]
Kingsquee has joined #nixos
<gchristensen>
dhess: I think it is mostly because 17.09-darwin is a fairly new idea
nithor has joined #nixos
hiratara has joined #nixos
deltasquared has quit [Ping timeout: 256 seconds]
<gchristensen>
also, all the Nix installes do nixpkgs-unstable, so we'd want to be careful before changing that
lopsided has joined #nixos
lopsided is now known as lopsided98
lopsided98 has quit [Client Quit]
lopsided98 has joined #nixos
alex has quit [Ping timeout: 255 seconds]
<dhess>
gchristensen: regarding doing what other Nix installers do, it would be less drastic to switch the installed channel to be nixpkgs-17.09-darwin than it would be to remove it entirely and depend on the "admin user's" choice
<gchristensen>
they're really two entirely unrelated questions
nithor has quit [Ping timeout: 255 seconds]
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
<dhess>
perhaps I am not explaining my point well, but it's not particuarly important.
<gchristensen>
the important question is what is the most reasonable, predictable thing to do for the Darwin platform
<dhess>
I agree with that. Isn't the recommendation that most people should use nixpkgs-17.09-darwin?
<gchristensen>
I've not heard that recommendation, but it could be :P my understanding is most people who use 17.09-darwin want it because they're colaborating with 17.09 Linux users
lopsided98 has quit [Client Quit]
lopsided98 has joined #nixos
<dhess>
oh I see. OK, fair enough then.
<dhess>
never mind my request in that case.
<gchristensen>
I'm by no means The Darwin Expert
<gchristensen>
I made the darwin installer multi-user because it seemed like a good improvement and would make it easier to support my coworkers who used it
<gchristensen>
people have since mistaken me as a darwin expert :P
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] xrvdg opened pull request #33838: Idris: fix "addEnvHooks: command not found" (#33820) (master...idris1.2.0) https://git.io/vNnwa
NixOS_GitHub has left #nixos [#nixos]
<wilornel>
samueldr: Did that `packer build nixos-x86_64.json` command end up completing suffessfully for you?
<dhess>
gchristensen: I asked you because you wrote the new installer, so figured you had also thought about the choice of the root user's nixpkgs channel
toppler has quit [Remote host closed the connection]
el_putin has joined #nixos
toppler has joined #nixos
<dhess>
just FYI
<krey>
how would I go about finding my programs.sqlite?
<krey>
it's supposed to be in /nix/var/nix/profiles/per-user/root/channels/nixos/
<krey>
but I don't have any channels
chpatrick has joined #nixos
<chpatrick>
hey, I'm having some trouble with nixops with nixos containers
la_putin has quit [Read error: Connection reset by peer]
<chpatrick>
if I try to destroy the deployment in the containers I get "error: Multiple exceptions: , ,"
<chpatrick>
if I try to use nixos-container destroy I get "cannot destroy declarative container (remove it from your configuration.nix instead)"
<chpatrick>
machinectl says they don't exist
<chpatrick>
what do I do? :D
nithor has joined #nixos
<wilornel>
ah, I need to increase the boot_wait time
<gchristensen>
dhess: ah, I wrote it to as closely mimic nixos as possible, for goood or bad :/
<dhess>
it was a good choice for a first release anyway :)
<gchristensen>
:)
raynold has joined #nixos
<dhess>
I was under the impression that the project recommended users to use the stable releases with Nix, so 17.09-darwin in the case of macOS, but if that's not the case then my argument for changing the default Darwin root channel to that doesn't apply.
<catern>
hmm, actually, is there even a mechanism for -j/--max-jobs to work when using a remote store? I don't see it in the store API
<catern>
oh, yeah
el_putin has quit [Read error: Connection reset by peer]
hiratara has quit [Remote host closed the connection]
<catern>
ugh, it's pretty hard to think of a way to minimally test this
alexteves has quit [Ping timeout: 256 seconds]
<catern>
In my experience, nix-build -j0 will still build the derivation even if there's no substitute
<catern>
oh, wait, that's easy to test :)
hiratara has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
guillaum3 has joined #nixos
guillaum3 has quit [Client Quit]
<catern>
or, uhhh, maybe it's that -j0 won't even substitute it
lonokhov has quit [Remote host closed the connection]
<catern>
ugh, now it works :) guess that's good
sigmundv_ has joined #nixos
CustosLimen has left #nixos ["Leaving"]
nithor has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
lexsome has quit [Ping timeout: 260 seconds]
<samueldr>
wilornel: as you saw, yes, boot_wait, if there's anything missing here: https://nixos.wiki/wiki/Vagrant_Box please tell my I'll amend the wiki page (or do it if you feel like doing it ☺)
<pbogdan>
hmm, does anyone knows what tarballs.nixos.org is and how I can stop nix from trying to fetch sources from there (I want to re-validate upstream provided tarball)
<pbogdan>
*know
<gchristensen>
pbogdan: tarballs.nixos.org is a place where we store extra copies of archives of critical sources
<gchristensen>
I don't know how to disable it, what does it mean to re-validate?
<gchristensen>
they must, because tarballs.nixos.org is content-addressed, pbogdan
<catern>
if you run that, you will observe that it still tries to build the derivation despite being passed -j0
<bennofs[m]>
gchristensen: upstream might have changed though?
justan0theruser has joined #nixos
<gchristensen>
I reckon so :(
fyuuri has joined #nixos
<catern>
pbogdan: one easy way is to slightly change the hash that is in the Nix file. it will try and do the download and fail with a message that tells you what hash you got :)
spietz has quit [Ping timeout: 276 seconds]
justanotheruser has quit [Ping timeout: 276 seconds]
<catern>
gchristensen: did you see the same behavior with that nix-build command? it still tries to build the derivation despite -j0?
<bennofs[m]>
you should also be able to just set preferHashedMirrors in build-support/fetchulr/default.nix to false
<bennofs[m]>
as it is a fixed-output derivation, I think that won't cause rebuilds
<gchristensen>
bennofs[m]: I think you're right
reardencode has quit [Quit: leaving]
<gchristensen>
catern: indeed!
<bennofs[m]>
why do i get 500 internal server error when running a dev instance of hydra....
jb55 has quit [Ping timeout: 276 seconds]
wilornel has quit [Ping timeout: 260 seconds]
<bennofs[m]>
is there any option i can set to get this perl webframework to spew out some more info?
nithor has joined #nixos
jb55 has joined #nixos
<bennofs[m]>
oh, --debug, sometimes --help actually helps 😀
<lopsided98>
I've been testing the recently merged cross compilation code, and I am able to build a number of packages, but I'm unsure how to actually use them on a real ARM system
rogue_koder has quit [Read error: Connection reset by peer]
rogue_koder has joined #nixos
<bennofs[m]>
Is there anything I can do to get https://github.com/NixOS/hydra/pull/353 merged? If i would put work into it, any chance it would be evenutally merged? I don't see any activity from any hydra devs on that PR
<lopsided98>
It seems like the cross compiled packages have different hashes from natively built ones, so they will never be used
<catern>
gchristensen: ah, I think it's actually due to preferLocalBuild = true
cinimod has joined #nixos
<bennofs[m]>
you can never get cross compiled derivations to be substited for natively ones, right
<catern>
nix-build -j0 --expr 'derivation { system = builtins.currentSystem; name = "bad"; builder = "false"; preferLocalBuild = true; }'
<catern>
has the same behavior of building despite -j0
<bennofs[m]>
lopsided98: cross compiling is mainly intended as a way to bootstrap, afaict
<pbogdan>
bennofs[m]: gchristensen: thank you; indeed upstream seems to mutate releases in place and I was getting confused and wanted to re-check using the origin (if that makes sense)
[0x4A6F] has quit [Quit: [0x4A6F]]
<gchristensen>
ouch. what is it?
[0x4A6F] has joined #nixos
WilliButz has joined #nixos
<lopsided98>
bennofs[m]: Bootstrap what? An installation image?
<bennofs[m]>
yes, and the tools required for native building
lycium[m] has joined #nixos
deepfire has quit [Ping timeout: 256 seconds]
<bennofs[m]>
although a full installation image cannot be fully cross compiled last I checked
alexteves has joined #nixos
<lopsided98>
That doesn't seem nearly as useful as I thought. I thought cross compiling was used to avoid having to build natively on a slow machine.
<bennofs[m]>
you can do that, but you explictly have to request the cross-compiled package on the slow machine in that case
<bennofs[m]>
as it is a different one from the nativly-built package
la_putin has quit [Read error: Connection reset by peer]
<lopsided98>
So with the current cross compiling design (assuming everything worked), you would be able to corss build a system image, but if you were to install that image and then rebuild the system on the device, it would build an entire system from scratch natively, not using any packages from the installation image
nithor has quit [Ping timeout: 256 seconds]
danl1240 has joined #nixos
chessai has joined #nixos
chessai has quit [Remote host closed the connection]
<Ankhers>
Do you have to run nixops from the same architecture? I am going through the tutorial on a mac and getting an error because I am not running x86_64-linux.
<infinisil>
Ankhers: I'd guess it needs a way to build the target system, which would also be possible with remote builders
<Ankhers>
infinisil: Do you know if there is a way to build on the machines I am trying to deploy to?
<catern>
can anyone explain the idea behind the comment that I quote there?
<infinisil>
Ankhers: Can't look it up right now because internet sucks, but you can use /etc/nix/machines (or nix.buildMachines) to declare machines to be used for building
<infinisil>
probably that's in the nix manual
nithor has joined #nixos
marusich has joined #nixos
zzamboni has quit [Quit: Leaving.]
<Ankhers>
infinisil: Thanks. I'll take a look.
<lopsided98>
My use case for cross compiling was to cross compile a few big packages (like the Linux kernel) on a powerful x86_64 machine, while still building others (that don't yet have cross compiling support) natively on ARM
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lopsided98>
It looks like there isn't an easy way to do this though, as a cross compilied derivation is always going to have a different hash because it has a different stdenv
<infinisil>
lopsided98: but i mean is that a problem? The result is going to work either way
marusich has quit [Ping timeout: 276 seconds]
<lopsided98>
infinisil: Nix will never use the cross compiled derivation because it is expecting one with a different hash (even though the actual output of the two derivations are identical)
<lopsided98>
For example, if I cross compiled a kernel and put it in my binary cache, and then went to rebuild the configuration on the device, nix would never try to substitute the cross compiled kernel, because it is looking for one with a different hash
<infinisil>
lopsided98: i mean yeah when you just nix-build crosscompile something and then use nixos-rebuild which doesn't do cross-compilation automatically, sure. You'll probably have to override packages with their cross-compiled version for it to work
<infinisil>
Ah i see
<infinisil>
nix sadly works that way though, all for purity
<catern>
ugh, I guess maybe I'll just write a C++ program against the Nix API
<lopsided98>
I think you could override packages with their cross compiled versions, but it would get ugly quickly. I'm not sure how this would be done in practice, but I don't see why it wouldn't theoretically work. One problem is that if you override a package with a lot of dependencies, you would end up with a bunch of "duplicate" cross and native packages.
<catern>
or maybe I should finally learn Perl?
<catern>
no I guess Perl is on the way out anyway
ma27 has quit [Ping timeout: 256 seconds]
<bennofs[m]>
is modern perl really so bad?
<catern>
it's not, but I meant in Nix
<bennofs[m]>
there's still Hydra
<catern>
that doesn't change "on the way out" :)
<Unode>
hi all. I'm trying to use stack with nix: enable and targetting lts-10.3 (ghc-8.2.2). Stack fails with: error: attribute ‘ghc822’ missing, at (string):1:59
oida has quit [Quit: WeeChat 1.6]
<Unode>
this error message is clearly coming from nix... I tried grepping for 'ghc822' and I see a package definition in my channel. Is there something else missing for this to work?