<dhess>
I don't use it but does home-manager have some kind of post-install script? Like nix-darwin does?
<tilpner>
(line 3)
<ldlework>
I don't have a problem putting secrets in the nix store for managing my home directory
logzet_ has quit [Remote host closed the connection]
<ldlework>
dhess yeah I'm trying to remember how to use the activation script in home-manager
<dhess>
ldlework: So you can change permissions (or even just copy the files rather than symlinking them) in the activation script
<ldlework>
Well I wouldn't copy the files since then I'd have to keep the keys in my git repo
<ldlework>
And I like to publish my dotfiles
<ldlework>
Hence the use of the environment
<ldlework>
But yeah gotta figure out this activation script
<Lisanna>
ugh, what happens when you have a stack that dynamically links against eachother and you don't want the entire thing to be rebuilt every time you make a small change to a bottom-level component?
<dhess>
you could keep them outside the repo.
<Lisanna>
and you just want the links to change
<Lisanna>
does nix have anything for making this not be such a huge pain
<ldlework>
dhess do you know how to utilize the activation script? To add things to it?
<dhess>
ldlework: I don't use home-manager. nix-darwin has a similar concept and I do use that but I have no idea whether they're functionally similar
<ldlework>
Well how do you use it there?
<ldlework>
I hate that there are two nix things for OSX
babyflakes has quit [Quit: Connection closed for inactivity]
yegortim1 has joined #nixos
<nflores>
lol, hi Lisanna
<Lisanna>
what flags does the Nix stdenv set to make the compiler fill out RPATHs on all the build products? Or is this the regular behavior?
klntsky has joined #nixos
<clever>
Lisanna: i think the -L search path automatically gets added during linking
taktoa has quit [Remote host closed the connection]
<Lisanna>
clever I'm not sure about that, since RPATH takes precedence over LD_LIBRARY_PATH, so if it was set normally then LD_LIBRARY_PATH would never work
<clever>
Lisanna: i think LD_LIBRARY_PATH has priority
<Lisanna>
clever RPATH is before LD_LIBRARY_PATH is before RUNPATH
<Lisanna>
clever I mean, the information comes from the debian wiki
<Lisanna>
I /presume/ they know what they're talking about
nuncanada has quit [Ping timeout: 255 seconds]
klntsky has quit [Ping timeout: 255 seconds]
yegortim1 has quit [Ping timeout: 255 seconds]
<ldlework>
ugh home-manager has broken backwards compatibility so much :(
* ldlework
seriously reconsiders their investment into it
<ldlework>
What's the point of reproducibility if the api is broken by the time you need to reproduce
yegortim1 has joined #nixos
<ldlework>
If I installed a package from git, is there anyway to recover what commit the package was built from?
klntsky has joined #nixos
<Lisanna>
ldlework what do you mean "installed a package from git"?
<ldlework>
Though honestly, its probably just because I am stupid
<Lisanna>
bring the package into scope in a nix-repl and evaluate package.src.rev
<ldlework>
Lisanna you know how you need the rev and sha256 for fetchFromGithub?
<ldlework>
There was some nix trick for getting the sha256 and rev, but its been like a year
<ldlework>
you... wouldn't happen to know those tricks?
<Lisanna>
ldlework you mean nix-prefetch-git?
<ldlework>
Perhaps?
<ldlework>
:)
<ldlework>
I'll google that
<Lisanna>
not sure if that's a "trick" though...
<Lisanna>
...more like the way to do it if you're not a lazy person
<ldlework>
haha
<ldlework>
There's an even lazier way?
<iqubic>
The trick I use for getting the sha256 is TOFU. "Trust on First Use" Where I basically give a dummy checksum, and when the compiler tells me what checksum it wants, I just use that.
<clever>
!tufo
<Lisanna>
if you're a lazy person, you put in a fake sha256 and watch the drv build fail, which will tell you what it's supposed to be
<clever>
!tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<iqubic>
That is what I just said. Is it not?
<clever>
this one also includes an example hash
<iqubic>
Oh.
<Lisanna>
yeah... it won't work if the length isn't right
<iqubic>
How long is a sha256 supposed to be?
<clever>
depends on how its encoded
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever>
base32 or base64
<iqubic>
What does that bot use?
<clever>
i forget
abathur has quit [Ping timeout: 260 seconds]
<iqubic>
Can't you tell by the length of the hash it gave you?
<clever>
yeah, bit i dont have that table memorized
hamishmack has joined #nixos
<clever>
there is also the nix-hash command, and its man page
<samueldr>
base 16/32, not 32/64 if I understand correctly
<Wizek>
Hello
<adisbladis>
iqubic: Looks like base32 to me
<Wizek>
How can I specify a subdirectory for callPackage, fetchFromGitHub?
<Lisanna>
are there any safe(-ish) ways to either duplicate a /nix/store path and have all the references to itself changed to the new copy, OR build a package such that it supports that without having to do anything special?
<Lisanna>
normally, duplicating a /nix/store path which is the result of some build that depends on itself will end up with all sorts of references pointing back to the original, and I don't want that
<Lisanna>
I guess since some of those references are going to be in binaries, that the new name has to be the same length as the old name?
<Wizek>
clever: but so far i get this error: `*** found zero or more than one cabal file ([]). Exiting.`
<Lisanna>
clever is there a reason why substituteInPlace wouldn't work?
<clever>
Wizek: cabal2nix may not even find the cabal file at that point
<Lisanna>
I tried that and it seemed to corrupt the elf, even though I checked to make sure the names were the same length
<clever>
Wizek: instead, try doing "${fetchFromGitHub { ... }/foobar" to make a path to the subdir, then pass that to cabal2nix
<clever>
Lisanna: why are you trying to copy paths like that?
<Lisanna>
clever so I can hot-swap dependencies
<Lisanna>
one of the upper-level packages in my stack takes like 10 minutes to compile and the result is huge, I can't afford to recompile and re-deploy it every time a small library underneath it changes
<clever>
Lisanna: there are already tools in nixos to do exactly this
<Lisanna>
so if A depends on foo and I want to change it to depend on bar, I just do replaceDependency { drv = A; oldDependency = foo; newDependency = bar; } ?
<Lisanna>
and that will work as long as foo and bar have the same length of names?
<clever>
Lisanna: i think so
<Lisanna>
Ah, replaceDependency is not mentioned anywhere in the nixpkgs manual, no wonder I've never heard of it!!
<Lisanna>
this is awesome, thank you
<clever>
its in the nixos manual
<clever>
yet the code is in nixpkgs
<Lisanna>
I read the nixpkgs manual a lot more often than the nixos manual ^^
<Lisanna>
this basically solves all of my problems
<Lisanna>
I'll be able to delete so much code...
<Lisanna>
wait, this is safe to use on packages that reference themselves, right?
<abathur>
I've been having trouble wrapping my head around profiles and efi boot entries, but I'm mostly convinced now that the trouble is because something isn't working right with my efi entries
<samueldr>
abathur: new generations aren't showing up?
<abathur>
yeah, and I can't clear old ones no matter how many recommendations I try
<Lisanna>
what does builtins.unsafeDiscardStringContext do?
<clever>
Lisanna: it discards the string context
<Lisanna>
x_x
<clever>
Lisanna: every string in nix has some context attached to it, that says what derivations it depends on
<abathur>
I had to go over the install several times because I was having instability issues related to ryzen and the kernel, so it wouldn't surprise me if I messed a few things up one time through or another
<Lisanna>
what derivations the /string/ depends on?
<clever>
Lisanna: yes
<Lisanna>
you mean if you write "${somepkgs}"
<clever>
Lisanna: yep
seanparsons has quit [Read error: Connection reset by peer]
<clever>
Lisanna: and when that string it placed into another derivation, nix combines the context from every string, to form the build-time deps of the new derivation
<iqubic>
Is there a way to install lisp documentation from Nixpkgs?
<iqubic>
Sorta like we can do with haskell docs?
<Lisanna>
so why would you want to discard it?
<clever>
Lisanna: one min
<Lisanna>
(I'm trying to understand the replace-dependency.nix implementation, and it uses it quite a bit)
<clever>
Lisanna: and that contains the path to the toplevel package
<Lisanna>
okay, so you discard that context so that your $out/command-line string doesn't try to pull in config.system.build.toplevel as a build-time dependency, which I guess would make the build a lot slower?
<clever>
Lisanna: it would also become a runtime dependency
<clever>
so when you copy the product around, its copying the OS around twice
<Lisanna>
this sounds like black magic. OK, so now the obvious naïve question: how on earth does that work
<Lisanna>
I mean, how is it safe to get rid of that... doesn't it need it?
woffs has quit [Quit: Gateway shutdown]
<clever>
i'm already embeding my own copy, in the form of a squashfs containing the entire thing
<clever>
and i have scripts that mount it to /nix at bootup
<Lisanna>
(I'm guessing I can't just call unsafeDiscardStringContext willy nilly on everything)
<clever>
if those scripts didnt exist, it would fail at runtime, because the path doesnt exist
<Lisanna>
OK, so using unsafeDiscardStringContext won't ever break build-time, but it might break runtime
<clever>
it may also break build-time
<clever>
those paths wont be added to the nix sandbox
<hyper_ch>
ha, now I have setup native encrypted root zfs on cheap kimsufi and cheap online.net servers :)
azertyieio has joined #nixos
<hyper_ch>
clever: that's all thx to you :)
<clever>
so if sandboxing is correctly enabled, it will never see the files
<clever>
nice
<hyper_ch>
clever: your kexec and your justdoit script which I have adjusted a bit for my needs :)
babyflakes has joined #nixos
<hyper_ch>
installer script still needs to guess and ask for the ethernet driver... I'll have to work on that
<hyper_ch>
clever: also, by default I make now the /boot partition 2GB so that you can put nixos iso in it and boot from it like you suggested last friday
<clever>
nice
<hyper_ch>
(and need to add compress=lz4 in the installer script)
<hyper_ch>
so, i have to resetup both servers again :)
griff_ has joined #nixos
<hyper_ch>
only takes like 20-25min for the basic install now
<adisbladis>
Does github provide an API with checksums for tarballs? Or is the only way to find this by downloading and computing it yourself?
<vaibhavsagar>
adisbladis: I'm not aware of any API github provides
<adisbladis>
:/
<vaibhavsagar>
I thought nix-prefetch-url --unpack does something different to curl archive.tar.gz anyway
<vaibhavsagar>
so the checksum you'd get from github might not match the Nix-computed checksum even if they were to offer it
<adisbladis>
vaibhavsagar: This is not strictly nix-related. I was just hoping that someone here would have the knowledge.
<vaibhavsagar>
fair enough
<adisbladis>
But it seems like they dont have that kind of API
<Lisanna>
clever so, does your $out/command-line end up containing a reference to a package that doesn't exist? since "systemConfig=${config.system.build.toplevel}", but you don't want to actually include config.system.build.toplevel, so is that value set incorrectly?
fragamus has joined #nixos
<Lisanna>
so that'll resolve to "systemConfig=/nix/store/blah-toplevel", but you don't really want /nix/store/blah-toplevel since it's huge and you have a compressed version of it somewhere else
<clever>
klntsky: yeah
<clever>
Lisanna: yeah
<Lisanna>
OK, then why would you have ${config.system.build.toplevel} in your string at all? Why wouldn't you point it directly to the compressed version?
<Lisanna>
do you change it later?
<clever>
Lisanna: i need the path it unpacks to
<Lisanna>
or does /nix/store/blah-toplevel become valid later?
<Lisanna>
OK, so you use unsafeDiscardStringContext when you need the path to something without any of its contents, possibly with the intention that you will use its contents *later*, and that something will cause it to become valid later
ryanartecona has joined #nixos
<clever>
yeah
<clever>
and its only really of use in weird situations where nix isnt aware of how you are making it valid later
<Lisanna>
...in the case of replaceDependency, the way you make it valid later is "nix-store --restore"
<Lisanna>
I guess
<Lisanna>
or, no, maybe it just needs the name of the path
the-kenny has quit [Ping timeout: 260 seconds]
the-kenny has joined #nixos
spietz has joined #nixos
griff_ has quit [Quit: griff_]
Rusty1_ has quit [Quit: Konversation terminated!]
griff_ has joined #nixos
stephenjudkins has joined #nixos
<Shados>
I'm trying to make a derivation for https://github.com/regnarg/urxvt-config-reload, but I can't seem to figure out a way to do so that'll let it actually find its extra Perl dependencies at runtime...
<Ralith>
man, nix Firefox has broken u2f and still doesn't have pixel scrolling
<Ralith>
I want to switch back from chrome but it just feels like a second class citizen
Ndrei2 has joined #nixos
azertyieio has quit [Ping timeout: 260 seconds]
Ndrei2 has quit [Ping timeout: 256 seconds]
nflores has quit [Ping timeout: 260 seconds]
yegortim1 has quit [Remote host closed the connection]
yegortim1 has joined #nixos
ma27 has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ndrei has joined #nixos
ndrei has quit [Quit: Quit]
Lisanna has quit [Quit: Lisanna]
ndrei has joined #nixos
<iqubic>
Ralith: What do you mean by: lacks pixel scrolling?
<fearlessKim[m]>
how can I trigger a dhcp request manually ? for some reason my VM doesn't pickup an IP and dhcpd logs are not too helpful
<clever>
fearlessKim[m]: manually run dhcpcd on the interface
<fearlessKim[m]>
clever: right thanks found it, I will add it in systemPackages since it's not in PATH yet
<clever>
fearlessKim[m]: its already in PATH if you are using dhcpcd
<clever>
fearlessKim[m]: but if your using something like network manager, it probably wont be
Lisanna has joined #nixos
Lisanna has quit [Client Quit]
MercurialAlchemi has joined #nixos
griff_ has quit [Quit: griff_]
<fearlessKim[m]>
I let by error networkmanager enabled so it might have conflicted. of course I can't deploy because nixops can't access the VM. maybe nixops could halt the VM in such a case and update the drives offline `nixops deploy --allow-reboot`
tertleeltret has quit [Quit: Connection closed for inactivity]
chrios_ has joined #nixos
chrios has quit [Ping timeout: 248 seconds]
hakujin has quit [Ping timeout: 276 seconds]
<fearlessKim[m]>
seems like disabling networkmanager fixed it :)
freeman42x[NixOS has joined #nixos
hyper_ch2 has joined #nixos
<hyper_ch2>
clever: back again :)
<clever>
wb
<hyper_ch2>
kexec is just awesome... even more awesome when remote serves get IP assigned by dhcp so you don't have to set it up
<clever>
:D
kini has quit [Quit: No Ping reply in 180 seconds.]
<hyper_ch2>
btw, I still don't quite understand what boot.kernelParams = [ "net.ifnames=0" ]; is for
<clever>
hyper_ch2: also, beware of the auto-reboot, its due in 50 seconds
<hyper_ch2>
auto-reboot?
<clever>
that changes how systemd renames things
<hyper_ch2>
clever: but still, what does it do?
<hyper_ch2>
what are the actual effects of it
<clever>
with that set, you get eth0 and eth1
<hyper_ch2>
ah ok
<ldlework>
Its so disappointing when a package refuses to build on darwin
<clever>
without it, you get something starting with enp, that refers to its exact bus position
ma27 has quit [Ping timeout: 256 seconds]
<hyper_ch2>
so what about autoreboot in kexec?
<ldlework>
Especially since the package is made for OSX
<hyper_ch2>
I thought the enp-something should make things more predictable
<clever>
hyper_ch2: its more predictable, when you can boot the same systemd and look at the names
<clever>
hyper_ch2: but if your starting from a decade old debian
<ldlework>
Clever, if I wanted to quickly check if a package would work on Darwin, that's in nixpkgs what can I do?
<hyper_ch2>
btw, I use kexec.autoReboot = false; :)
<clever>
hyper_ch2: ah, then it wont fire
<hyper_ch2>
so if that option wasn't set, when would it autoreboot? I mean what conditions?
<clever>
hyper_ch2: 5 minutes after the end of the hour
<hyper_ch2>
ok, not so bad then... it's a good safe-guard
<clever>
hyper_ch2: 2 minutes ago, it would have given a warning to every open tty, and you could run `shutdown -c` to abort, and 5 minutes after that warning, it reboots
<clever>
ldlework: nix-build '<nixpkgs>' -A coreutils --argstr system x86_64-darwin
<clever>
ldlework: this downloads the darwin build of coreutils from the binary cache
<hyper_ch2>
I could leave the autoreboot to true and put the systemctl stop autoreboot.timer into my install script
<clever>
hyper_ch2: mainly, you want to stop it over ssh, to confirm you have control of the machine
griff_ has joined #nixos
<clever>
hyper_ch2: and if you mess up the dhcp config, it reboots itself and restores control to the original OS
<hyper_ch2>
yep, will do that, thx for the pointer
<ldlework>
clever, that just makes what happen when you install the package normally on OSX, happen
<ldlework>
What I mean is, how can I force the expression to accept Darwin as a valid platform
orivej has quit [Ping timeout: 252 seconds]
<ldlework>
The package is literally just a .sh file!
<clever>
ldlework: ah, one sec
<ldlework>
I copied to my disk and ran it and it works, so I suspect if we can just force that nix package to work, then I can submit a PR I guess
<clever>
ldlework: if you have a fork of nixpkgs already, just edit the platforms array for the package, and then run nix-build -A foo in the root of the nixpkgs clone
asuryawanshi has joined #nixos
<clever>
on the mac machine
<ldlework>
I don't have a fork of nixpkgs. I wonder how hard it is to integrate a nixpkgs fork with home-manager
<clever>
[clever@amd-nixos:~]$ nix-build '<nixpkgs>' -A oraclejdk --argstr system x86_64-darwin --arg config '{ allowBroken = true; allowUnfree = true; }'
<clever>
ldlework: if you add a second --arg config like this, it will just ignore the platform list
<clever>
and try to just build it
ndrei has quit [Ping timeout: 248 seconds]
<ldlework>
Strange, it built and "installed" fine, but no binary in my profile
<clever>
ldlework: nix-build doesnt install things, it only builds
ndrei has joined #nixos
<clever>
ldlework: look in the result/bin/ directory to see the binary, and confirm it works
rauno has quit [Ping timeout: 248 seconds]
<ldlework>
It does :)
<ldlework>
Man that's a useful package I've been thinking about writing for years now
<ldlework>
imgur-screenshot
<ldlework>
Clever, so should I fork nixpkgs, submit a PR and then wait around for it to be merged?
<ldlework>
Though, its not in my bin
<clever>
ldlework: you can run "nix-env -i /nix/store/hash-foo" on a storepath to add it to your profile
<clever>
ldlework: and result is a symlink to that path
<clever>
and yeah, file a PR to make the fix go public
<ldlework>
Well the fix wouldn't be covered just by enabling darwin
<ldlework>
We need to fix the expression to put the thing in the profile
<ldlework>
Or are you saying, the way we installed it, it doesn't add to my profile
<clever>
if you used nix-env instead of nix-build, it would be added to the profile
<ldlework>
Oh I see
<ldlework>
👍 I'll submit a PR then!
kini has joined #nixos
rauno has joined #nixos
ndrei has quit [Quit: Quit]
Arcaelyx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex`` has joined #nixos
catch22 has joined #nixos
catch22 has quit [Remote host closed the connection]
catch22 has joined #nixos
leat has quit [Ping timeout: 260 seconds]
lexooohhh has joined #nixos
<lexooohhh>
Gents, just want to throw my 5c. I've built this example https://nixos.org/nix/manual/#sec-expression-syntax and from this default.nix, and ldd result/bin/hello clearly shows that it requires glibc-2.25-123/lib/libc.so.6 . However from default.nix syntaxt it is unclear and not obvious!
mkoenig_ has joined #nixos
mkoenig__ has joined #nixos
mkoenig_1 has joined #nixos
mkoenig_2 has joined #nixos
<lexooohhh>
but you may say: Lex, but stdenv provides glibc . and I will reply : 1) it is not obvious 2) default.nix example doesn't show how to specify specific version of glibc dependency.
<lexooohhh>
I'm not a C developer, neither CS graduate. but doesn't the idea of specify exact dependecies with versions sounds greate for reproducible builds? because, you know, if we dont specify explicitly dependency on lib_A_v1.01 , but leave just lib_A, it may upgrade version and build script could become unreproducible
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 3 new commits to master: https://git.io/vAk5Z
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 37fb8d3 Tor Hedin Brønner: nix-bash-completions: 0.6.2 -> 0.6.3
<NixOS_GitHub>
nixpkgs/master 2954c6c Tor Hedin Brønner: nix-zsh-completions: 0.3.7 -> 0.3.8
<lexooohhh>
prove me wrong, plz, does this POV stupid?
<lexooohhh>
actually, why we don't specify not only the version, but hash of dependency in default.nix ?
<etu>
lexooohhh: hashes might change
<etu>
even if the version is the same
<etu>
because of changes to inputs of a package
bfrog has quit [Ping timeout: 256 seconds]
<lexooohhh>
yes, but let's say developer Bob want reproducible build and don't want to change inputs, hashes. and want specify them explicitly. is NIX designed to help him in this quest?
<clever>
lexooohhh: if you specify the nixpkgs revision, and block access to config.nix, it will be a lot more reproducible
<lexooohhh>
hmmmm, okaay. I though it would be so reproducible\immutable out of the box by default
bfrog has joined #nixos
<clever>
lexooohhh: by default, it uses the version of nixpkgs you currently have
<lexooohhh>
so if I want provide user with reproducible build script and nix expression of my package - I will specify nixpkgs revision in my package\nix-expression
<typetetris>
What is the stable nixpkgs channel, if I use nix on debian ? nixos-17.09 still ?
Ulrar has joined #nixos
<ij>
Can derivations be compared without evaluating them fully? I've created two package lists — big, small and everything. I want to assert that everything hasn't excluded anything from either, but I don't want to build them all.
<etu>
typetetris: If you use it on another distro, you can run nixpkgs-17.09
<Ulrar>
Hi, I'm trying to use iso-image.nix. How would I set the name of the iso generated ? Trying to assign options.isoImage.isoName in my config after the import seems to be invalid
<typetetris>
You can't even install neovim with python support at the moment, the python. 'CheckHealth' in nvim gives me: - INFO: nvim-python3-neovim version: 0.2.0 (outdated; from / it wants 0.2.1 ...
<typetetris>
Maybe one can do an override for that ...
hyper_ch2 has joined #nixos
klntsky has quit [Ping timeout: 255 seconds]
<lexooohhh>
how sad is that, typetetris, we've been sold nix as reproducible build system and packages that always_work, nix provide us with python package that doesn't work as expected
Tucky has joined #nixos
kwork has quit [Changing host]
kwork has joined #nixos
<TimePath>
It's so reproducible I'll get the same non-working result if I try too
<lexooohhh>
:D
<TimePath>
If someone were to fix the package, that would also be repoducible
<NixOS_GitHub>
nixpkgs/master 8e70725 Maximilian Bosch: vim_configurable: enable overrides...
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vAkda
NixOS_GitHub has left #nixos [#nixos]
griff_ has joined #nixos
rogue_koder has quit [Quit: Konversation terminated!]
<lexooohhh>
there is sha256sum utility, so user can invoke $sha256sum file, but pandas file from pypi, it is unclear cuz url not there explicitly
winem_ has joined #nixos
<etu>
!tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<lewo>
"Trust On First Use" :)
<etu>
Then there's also nix-prefetch-url that downloads it to the store and gives you the hash
<sphalerite_>
and nix-build --hash which works for all fixed-output derivations
leat has joined #nixos
<fearlessKim[m]>
the number of PRs oscillates around 666, almost voluntarily. I can't help but worry about our maintainers sanity
mingc has quit [Quit: WeeChat 2.0.1]
<sphalerite_>
Ulrar: how are you trying to do that and what's going wrong?
<Ulrar>
sphalerite_: I'm trying to use iso-image.nix to generate an iso file, and by default it seems to generate it in the store with a path I can't guess. I need to a fixed path for that, because this is not a manual process and I need to be able to automatically copy that iso away
<Ulrar>
The goal being to make a webserver iso image
<sphalerite_>
Ulrar: use nix-build '<nixpkgs/nixos>' -I nixos-config=path/to/your/configuration -A config.system.build.isoImage and you'll get a result symlink. Then you can cp result/*.iso somewhere else or whatever
<ij>
typetetris, well you can refactor the override function outside and reuse it instead of retyping it with a let construct.
<sphalerite_>
ij: what about just sorting them by name?
<Ulrar>
Ah, didn't know about the symlink, it doesn't say that on the output
<Ulrar>
and I don't have access to the build machine so hard to check, but I can try to use result/web.iso as the path I guess
dan_b has joined #nixos
<sphalerite_>
Ulrar: or since nix-build outputs the path on standard output you can do cp $(nix-build <...> --no-out-link)/*.iso wherever
<ij>
sphalerite_, That would mostly work, but I wouldn't mind having deeper comparison either. :)
<sphalerite_>
ij: do you know about Gabriel Gonzalez's nix-diff?
<sphalerite_>
typetetris: I'd recommend not doing that at all, and instead modifying it in a nixpkgs checkout and making a PR :)
<Ulrar>
sphalerite_: I see, I could just have a script read the output indeed. Well I'll try the result/ thing first, just in case, but thanks !
asuryawanshi has quit [Remote host closed the connection]
<Ulrar>
And I assume nixpkgs/nixos/modules/installer/cd-dvd/iso-image.nix is the best way to make a simple iso image ? It seems to fetch strange things like xscreensaver for some reason
hyper_ch2 has quit [Quit: Page closed]
<typetetris>
So how do I get nix to use my local checkout?
<ij>
typetetris, Yes, that was what I was thinking. (though the refactor is from a purely syntactical POV. sphalerite_'s opinion might be more relevant)
lonokhov has joined #nixos
<sphalerite_>
typetetris: pass -I nixpkgs=path/to/nixpkgs to whatever command
<ij>
sphalerite_, No, I didn't.
<sphalerite_>
:)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vAkFF
<typetetris>
The python neovim-0.2.1 need msgpack >= 5.0 shoud I create a msgpack-5 derivation and leave msgpack (currently sitting on 4.7) alone to not break other dependencies?
<etu>
typetetris: You can do that yes
<etu>
typetetris: One can also try to build all the deps affected with: nix-shell -p nox --run "nox-review wip"
<sphalerite_>
Ulrar: that is odd, what does your configuration look like?
<typetetris>
etu: How does that command know, what I changed? Last Commit? Unstaged work? or some other thing?
hyper_ch2 has joined #nixos
sigmundv has joined #nixos
<etu>
typetetris: When used with the wip parameter it looks at not-commited things
<sphalerite_>
Ulrar: are you sure it's pulling in xscreensaver and not just the pam config for it?
<ij>
sphalerite_, If for any two derivations, I compare only names, I get a preorder?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 1 new commit to master: https://git.io/vAkb4
<NixOS_GitHub>
nixpkgs/master d1c5b48 adisbladis: yaml2json: init at unstable-2017-05-03
NixOS_GitHub has left #nixos [#nixos]
<hyper_ch2>
hmmm, can the networking.hostName option also be a FQDN?
<sphalerite_>
hyper_ch2: usually you'd set hostName to just the hostname and networking.domain to the rest of the FQDN
<sphalerite_>
I think
mingc has joined #nixos
goibhniu has quit [Client Quit]
<hyper_ch2>
ah, didn't know about that one :)
<Ulrar>
Might be the pam config for it
srcCoon has joined #nixos
tgunb has quit [Ping timeout: 248 seconds]
<typetetris>
Could I change the link under ~/.nix-defexpr/channels/nixpkgs to my local checkout of nixpkgs or is that not advised?
goibhniu has joined #nixos
<sphalerite_>
there shouldn't be a problem with that. You may also need to adjust NIX_PATH accordingly though
<sphalerite_>
I prefer to just avoid nix-defexpr completely because it's horrible by aliasing nix-env to nix-env -f '<nixpkgs>
<typetetris>
sphalerite_: Could you explain more of your workflow? How can I get rid of typing -I <stuf> and -f <stuff> all the time?
<sphalerite_>
ij: oh yeah. You could compare their output paths since those are based on the hash of the derivation. That wouldn't take into account the meta and passthru fields, but I think it's a reasonable notion of sameness to say that two derivations which produce the same output are the same
<sphalerite_>
modulo fixed-output ones maybe.
<sphalerite_>
Does nix-diff not cover what you need though?
<ij>
You were thinking I could extract the comparison function from its source?
<sphalerite_>
I was thinking you could just use it directly. I don't know what you're trying to achieve (XY)
<sphalerite_>
typetetris: I use nix-env quite rarely, only to update what I have installed in my profile (quite obviously)
<sphalerite_>
typetetris: most of the time if I'm making some changes to nixpkgs I'm in ~/nixpkgs and just do nix-build -A foo to build whatever I'm working on since nix-build defaults to default.nix in the CWD
<typetetris>
ok, I try that.
<Ulrar>
sphalerite_: Doesn't look like result exists, at least for me
<typetetris>
the build of the neovim python packages fails on me with `Could not find a version that satisfies the requirement msgpack>=0.5.0 (from neovim==0.2.1)` but it lists msgpack in its propagatedBuildInputs and I changed the version of the python msgpack derivation to 0.5.4 ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vAkNB
<Ulrar>
sphalerite_: I have a config file, and I want to generate an iso for it, then upload that iso automatically somewhere else from the build machine. For that, I need to reference the iso path before starting the build
<Ulrar>
The goal here being to have git automatically build an iso and deploy it when pushing
periklis has joined #nixos
<sphalerite_>
why do you need to reference the iso path before starting the build?
<Ulrar>
Well I need to know where it'll be, so the script can pick it up
<Ulrar>
if I have to manually get it, it's not automated anymore
<sphalerite_>
which script?
<sphalerite_>
Can't the script build it?
<Ulrar>
It calls nix-build, not sure what else you mean ?
<Ulrar>
Just the gitlab-ci stuff, basically a glorified git hook
<typetetris>
Can I force a rebuild with nix-build somehow to look through its output?
<sphalerite_>
Ulrar: can you just show me the whole deploy script?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] andir opened pull request #34758: [17.09] virtualbox update for linux 4.15 (release-17.09...17.09/virtualbox) https://git.io/vAkNH
NixOS_GitHub has left #nixos [#nixos]
<sphalerite_>
typetetris: nix-build --check. But you may want nix-store --read-logs instead to see the log of the build you already did
arjen-jonathan has joined #nixos
<Ulrar>
sphalerite_: I just need to declare an artifact, not sure what gitlab does then. But I just have to tell it the path of the result file, and it uploads it on it's own
<Ulrar>
I tried puttin result/web.iso and result/*.iso, but nothing seems to exist
<sphalerite_>
Ulrar: then do ln -s result/*.iso web.iso and set the artifact path to web.iso
<sphalerite_>
it'll just reuse the previous one since the hash (i.e. the expected contents) is the same
<sphalerite_>
just change one character in the hash and you'll get your error
<typetetris>
ah, that is surprising ..
<sphalerite_>
not really, that's how content-addressing works ;)
<typetetris>
Hmm, now pythonPackages.msgpack builds fine and the sourcepath matches the version, but the neovim build doesn't seem to pick it up, it still complains about msgpack not being => 5.0
<typetetris>
Hmm, now pythonPackages.msgpack builds fine and the sourcepath matches the version, but the neovim build doesn't seem to pick it up, it still complains about msgpack not being >= 5.0
<typetetris>
sorry
Guanin has joined #nixos
<Ulrar>
sphalerite_: Heh, the ln -s works, but it uploaded the symbolic link instead of the iso file
<Ulrar>
that's funny
<Ulrar>
Guess I'll use cp
<sphalerite_>
gg
<Ulrar>
Probably why it didn't work before, guess it doesn't link symbolic links for some reason
<Ulrar>
Thanks for the help !
thc202 has joined #nixos
periklis has quit [Ping timeout: 268 seconds]
johnchildren has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 3 new commits to master: https://git.io/vAkxI
<NixOS_GitHub>
nixpkgs/master e2bf162 Bignaux Ronan: remove platforms.darwin support
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 17210fe Bignaux Ronan: squashfuse: init at 0.1.101
<7GHAB2X0Y>
[nixpkgs] Mic92 closed pull request #34677: busybox-sandbox-shell: extract basic shell to new attribute (staging...feature/busybox-sandbox-shell) https://git.io/vAvIR
7GHAB2X0Y has left #nixos [#nixos]
griff_ has joined #nixos
<Ulrar>
/nix/store/*.iso is actually a directory. /nix/store/*.iso/iso/web.iso should work, given the output path it usually prints
<Ulrar>
At some point, it'll work.
<sphalerite>
oooh there's a subdirectory
<sphalerite>
so doing cp result/iso/*.iso web.iso should also do it
<sphalerite>
and be more reliable
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 closed pull request #34749: Add setting to configure group for systemd in Traefik (master...master) https://git.io/vATj6
NixOS_GitHub has left #nixos [#nixos]
catch22 has quit [Ping timeout: 256 seconds]
<Ulrar>
Yeah, and I figured out how to set the name of the actual iso file in that directory to web.iso, so it should be okay
<Ulrar>
I'm trying it out now
tabaqui has joined #nixos
<tabaqui>
hey all
<tabaqui>
can I rename nixpkgs generations?
<tabaqui>
don't see such api in manual, but it is reasonable feature
<tilpner>
What do you mean by "nixpkgs generations"?
FRidh has joined #nixos
<tilpner>
You may be looking for system.nixosLabel
<tabaqui>
each nix environment change create new generation, right?
<tabaqui>
and profile is just a bunch of links on these generations
<tabaqui>
can I name some of them?
<vaibhavsagar>
tabaqui: I don't think so
<tabaqui>
tilpner: nixosLabel looks related with nixos, I dunno, can you send a link please?
<tilpner>
It's a NixOS option, yes. It won't be useful if you're not on NixOS
<NixOS_GitHub>
nixpkgs/master c055b01 Thorsten Weber: slic3r-prusa3d: init at 1.38.7
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vAkhE
NixOS_GitHub has left #nixos [#nixos]
mzan has joined #nixos
<ij>
Never mind, I'll try out `nix search`.
<tilpner>
Try nix-index
orivej has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vAkjV
<NixOS_GitHub>
nixpkgs/master 0cdc0ac Peter Hoeg: screenfetch: 2016-10-11 -> 3.8.0
NixOS_GitHub has left #nixos [#nixos]
griff_ has quit [Quit: griff_]
tanonym has quit [Read error: Connection reset by peer]
tanonym has joined #nixos
thblt has joined #nixos
tanonym has quit [Ping timeout: 268 seconds]
<genesis>
ij : what is it ?
<ij>
It knows all the files of packages in the repos. It gives you the set of packages that a file's in.
<genesis>
oki thanks
<ij>
I assume you were asking about pkgfile, that is.
<genesis>
yes i was, i'm on gentoo so i don't know that stuff;
<ij>
k3b/bin/.k3b-wrapped doesn't have libcdda_paranoia in its ldd listing for some reason. That lib exists $(cdparanoia}/lib and cdparanoia's mentioned in the propagatedBuildInputs.
<clever>
ij: the configure script may have chosen to not enable it
<clever>
ij: youll want to view the build log for that derivation
rardiol1 has quit [Read error: Connection reset by peer]
rardiol1 has joined #nixos
ZaraChimera has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ZaraChimera has left #nixos ["Leaving"]
m712 has quit [Quit: bye-nyan!]
m712 has joined #nixos
MP2E has quit [Remote host closed the connection]
<genesis>
is there a roadmap for the next release of nix, that if i understand well, doesn't use perl anymore ?
Itkovian has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<manveru>
genesis: well, the plan is that nix 1.12 will replace 1.11 this year
Itkovian has quit [Client Quit]
<genesis>
thanks, i shouldn't wait for it soon.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] andir closed pull request #34758: [17.09] virtualbox update for linux 4.15 (release-17.09...17.09/virtualbox) https://git.io/vAkNH
NixOS_GitHub has left #nixos [#nixos]
<manveru>
you can already use it for 99% of cases by installing nixUnstable (been using it for over half a year now, no issues)
<adisbladis>
Iirc it's still on track for 18.03
<manveru>
ah nice
<manveru>
hope it makes the cut :)
tanonym has joined #nixos
<adisbladis>
Hope so too :) Such a nice improvement
<adisbladis>
Just about to introduce it as a hard dep at work. Would be nice if that was what people got by default
<manveru>
yeah, it's just annoying that my coworkers are all on 1.11 because they're too lazy to care :P
<manveru>
my favorite parts are fetchTarball with checksum and `nix search`
<genesis>
i plan to use buildenv.cc in a packer to provide application bundle based on nix
<genesis>
(that's why i did squashfuse derivation and PR on squashfuse this days)
<manveru>
yeah, then getting rid of perl is nice
<adisbladis>
manveru: I just added another favourite to my list: Support for base64 hashes <3
<genesis>
it would be far better that actual appimage, ugly stuff that need lot of scripts and effort to get their package running.
<adisbladis>
Building a lot of js stuff where the upstreams only distribute hashes as base64. Nice to be able to use them without modification
<manveru>
true that
<manveru>
btw, does anyone know how to configure notify-osd properly?
<tanonym>
If I am using the same configuration.nix to install my NixOS system to a USB flashdrive, what commands do I need to run to change the ID number for my ZFS pool? I will edit the name as well.
<tanonym>
If I am using the same configuration.nix to install my NixOS system to a USB flashdrive, what commands do I need to run to change the ID number for my ZFS pool? I will edit the name as well.
tanonym has quit [Quit: Konversation terminated!]
tanonym has joined #nixos
tanonym has quit [Client Quit]
FRidh has quit [Ping timeout: 276 seconds]
<andi->
manveru: do you really mean notify-osd or the actual implementation that displays them (like dunst)?
<manveru>
andi-: notify-osd displays them, no?
<andi->
iirc that just does dbus magic
<manveru>
`GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.`
<manveru>
this here...
<manveru>
i guess it needs some gnome daemon or something
<andi->
manveru: derp.. sorry.. I was confusing it with notify-send m(
<manveru>
ah :)
<manveru>
yeah, notify-send is from libnotify
<manveru>
atm i'm using xfce4-notifyd instead, since that's configurable
<manveru>
but i don't really like the looks of it
<andi->
use dunst ;-)
<andi->
there is a nice home-manager module for that
<manveru>
i'm not using home-manager :(
<andi->
start using it? ;-)
<andi->
wrote an i3status module for that yesterday, gonna upstream that in the next days. It really makes live a lot easier when you have multiple workstations
<manveru>
yeah... would be nice to have different i3 configs for different machines easily
<manveru>
atm i have all my dotfiles in a shared seafile folder
* genesis
uses lxqt
simukis has joined #nixos
<manveru>
hm, dunst can't display icons though
<ij>
Might k3b be trying to load cdparanoia/libcdda_interface dynamically in runtime?
<manveru>
ij: yeah
<manveru>
afaicr it tries to call their executables at least
<manveru>
had to install them separately... memory is foggy since it's been a long time since i last used a CD/DVD :P
vidbina has joined #nixos
<andi->
manveru: dunst does display icons
freeman42x[NixOS has quit [Ping timeout: 264 seconds]
<manveru>
ah, had to configure that
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dotlambda opened pull request #34759: nixos/dovecot: no " in mailbox.name (master...dovecot) https://git.io/vAIkI
NixOS_GitHub has left #nixos [#nixos]
<Ulrar>
Well, took a while but it works now
<Ulrar>
So I see rngd is running, which in a VM might not make much sense. How would I disable that, services.rngd.enable = false ?
ottidmes has joined #nixos
<Ulrar>
Not even sure why that's on the iso
<Ulrar>
Same thing about nscd
jensens has joined #nixos
<ottidmes>
I want to create a special disk image, but the script I plan to base my script upon uses things like partprobe and mount, how does nixpkgs deal with that, I have not tested this yet, but I doubt nixpkgs will allow me to do this. How is this usually approached? Just only creating the script as part of the package?
disasm has quit [Remote host closed the connection]
chrios_ has quit [Ping timeout: 260 seconds]
ZaraChimera has joined #nixos
<ij>
manveru, Ok, I even installed it in the user env, it still doesn't work.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] andir pushed 2 new commits to master: https://git.io/vAIIV
<NixOS_GitHub>
nixpkgs/master 6ceece6 Robert Schütz: nixos/dovecot: no " in mailbox.name
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 7ae9699 Andreas Rammhold: Merge pull request #34759 from dotlambda/dovecot...
<parsnip>
hmm, i thought it was just -qa i couldn't run on low resources.
freeman42x[NixOS has joined #nixos
Synthetica has joined #nixos
<parsnip>
but for a new install, i try `nix-env -i emacs` and it's Killed after many lines like evaluating file ‘/nix/store/3jgzqbm9ladg2lv5ibfd84mk1jyjfkrp-nixpkgs-18.03pre127302.e860b651d6e/nixpkgs/pkgs/development/libraries/kdb/default.nix’
<parsnip>
ah, and prepend with nixpkgs., thank you :)
vaninwagen has joined #nixos
vaninwagen has quit [Client Quit]
vaninwagen has joined #nixos
<Havvy>
`nix-env -iA nixpkgs.sublime3` and `nix-env -iA nixpkgs.firefox-bin` emit one newline and then end without doing anything. Other packages (e.g. exa, ripgrep, git) are working as normal.
chrios_ has joined #nixos
<Havvy>
s/working/installing/
<etu>
Havvy: Do you allow non-free programs?
<Havvy>
Ah right, that.
<tilpner>
Havvy - And there's no firefox in your PATH afterwards?
<Havvy>
tilpner: Nope.
<etu>
Havvy: firefox-bin is "unfree" because of the mozilla branding :)
<tilpner>
Oh, huh. nix-build prints a good error, nix-env prints nothing at all
<Havvy>
etu: +1,000,000 on solving a no-error-message error case.
tanonym has joined #nixos
vaninwagen has quit [Client Quit]
<etu>
Havvy: I have experienced that I get errors in such cases. But I usually don't install things with nix-env so some other tool might be better at complaining.
<tanonym>
a 32GB thumbdrive should be enough to install a portable nixos system on, right?
<srk>
anyone using nixops to deploy docker cts?
<tanonym>
current laptop is running zfs with
<tanonym>
the /nix dir excluded from snapshots
<tilpner>
tanonym - Yes, but you may have to gc frequently on heavy use
ma27 has joined #nixos
<Havvy>
I'm in the process of switching my VM from 32gigs to 64gigs because I kept running out of space.
<tanonym>
i can live with that.
woffs has joined #nixos
<Havvy>
Granted my home directory was 10Gbs because building Rust. >_>
<tanonym>
i'd need to change the random id and name of the zfs pool, but otherwise i could point a install at the thumb drive and use my existing configuration.nix. Oh, and edit the boot device so the system doesn't look for non-existent hds
mzan has left #nixos [#nixos]
<tanonym>
otherwise i can always do a puppylinux install to a thumbdrive instead. or slitaz.
<parsnip>
are there plans to have features like -qa work on machines with less ram?
jensens has quit [Ping timeout: 252 seconds]
<typetetris>
my /nix/var/nix/gcroots/auto and /nix/var/nix/gcroots/profiles is empty, but after nix-collect-garbage -d there still is a lot of stuff in /nix/store and stuff, nix certainly doesn't need, like some haskell packages ... is that normal?
<tanonym>
would it be possible to have nixos use something like squashfs to comprsave space similar to what distros like slitaz, puppy linux or porteus do?
<typetetris>
how can I determine , why a store path is still there?
<clever>
typetetris: nix-store --query --roots
orivej has quit [Ping timeout: 248 seconds]
<typetetris>
it comes up empty for the store path i tested, why isn't it deleted by the gcs
<typetetris>
by the gc i meant
<clever>
typetetris: what does nix-store --delete say about that path?
<typetetris>
still alive ...
<clever>
typetetris: then its in-use by a running program
<typetetris>
oh, ok
<clever>
typetetris: its either running directly, in an open file handle, or in an environment variable
<clever>
sudo also causes false positives, because sudo is "using" the path, while waiting for nix-store to delete it
<clever>
so "sudo nix-store --delete" will never work
* clever
heads to bed
coot has joined #nixos
asuryawanshi has quit [Ping timeout: 240 seconds]
<typetetris>
But why can't it tell, why it is still alive ... *gr*
deanman has joined #nixos
tanonym has quit [Remote host closed the connection]
<andi->
hmm, great.. I've a small NixOS VM with 1GB of RAM. Running on 17.09. I just tried upgrading it after like ~2 weeks.. nix-daemon runs out of memory while it fetches gcc-6.4.0 :/ Any ideas?
<andi->
of that would help but thats not a great solution :/ I just shut down the only service that thing was running (that was consuming 100MB of RAM) and now it looks promising..
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<prietoj>
Hello. I'm pretty new to nixos. I have to compile a haskell library that depends on a C library (mosquitto). I installed mosquitto from the nixos channel but when I try to compile the haskell library I get "* Missing C library: mosquitto".
<prietoj>
Why is this happening and what can I do?
chrios has joined #nixos
chrios_ has quit [Ping timeout: 255 seconds]
nschoe has quit [Quit: Program. Terminated.]
tertleeltret has joined #nixos
jensens has joined #nixos
<typetetris>
Is the qt5 stuff somehow damaged in actual master, calibre for example fails to build in my environment because it misses some libQt5<something>.so ?
lord| has quit [Quit: WeeChat 2.0.1]
<andi->
prietoj: you must provide mosquitto(.dev?) to your expression building the haskell library. Just adding it via nix-env etc.. wont do the trick
<manveru>
pie_: with import <nixpkgs> {}; stdenv.mkDerivation { name = "myshell"; buildInputs = [rstudio latex etc]; }
<pie_>
mkderivation is what gave me the src issue...
<manveru>
nix-shell needs no src
periklis has quit [Ping timeout: 248 seconds]
<tilpner>
pie_ - Just run nix-shell pie.nix, that should work
<tilpner>
pie_ - It seems like you tried to build it before
<pie_>
this is how im calling it: nix-build -I unstable=/nix/var/nix/profiles/per-user/paprika/channels/unstable -v -E '(import <unstable> {}).callPackage ./shell.nix {}'
ckauhaus has joined #nixos
<tilpner>
pie_ - No, not nix-build. nix-shell!
<pie_>
ah right hm.
<manveru>
and you can replace the <nixpkgs> with your path
<pie_>
if i use nix-build it wont get GCd though right?
<pie_>
i think thats why i wanted to switch to nix-build, sorry forgot about that xD
<manveru>
nix-shell can also do that
<pie_>
oh?
<manveru>
wonder if that's the default now
<pie_>
how?
<manveru>
you can use --indirect in 1.11 i think
<manveru>
ah, --add-root
<pie_>
if thiat was the default how would you gc
<manveru>
i use `nix-shell --add-root $PWD/tmp/nix/shell.drv` for example
pkill9 has joined #nixos
<manveru>
so it'll be there as long as you keep that drv
<pie_>
hm why isnt that in the man page :/
<manveru>
it's in the docs of nix-instantiat
<manveru>
*nix-instantiate
<manveru>
the nix-shell manpage says it's wrapping nix-instantiate i think
<pie_>
" All options not listed here are passed to nix-store --realise, except for --arg and --attr / -A which are passed to nix-instantiate."
<pie_>
well thats a weird way to make the docs
<manveru>
well, nix-store also has that doc :)
<pie_>
path ‘/mnt/data/egyetem2/6felev/labs/env/shell.drv’ is not a valid garbage collector root; it's not in the directory ‘/nix/var/nix/gcroots’
<manveru>
on 1.11 you need --indirect flag too
<pie_>
oh
alexteves_ has joined #nixos
<manveru>
super obvious, right! :D
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 252 seconds]
Mateon3 is now known as Mateon1
mudphone has quit []
mudphone has joined #nixos
coot has joined #nixos
<hodapp>
huuuh... is there a way to run tmux inside of nix-shell without having it mangle things like tab-completion?
jensens has quit [Remote host closed the connection]
<manveru>
hodapp: using bashInteractive maybe?
<hodapp>
how do you mean?
jensens has joined #nixos
<pie_>
thanks!
<pie_>
hodapp, i know i have it working but i gotta run for a bit
<pie_>
probably bashinteractive
<pie_>
as manveru said
<pie_>
otherwish check your $TERM or whatsit
<hodapp>
okay, but... how?
<pie_>
make sure you arent using the bash provided by stdenv or somethign :P
<NixOS_GitHub>
[nixpkgs] zimbatm opened pull request #34763: asciidoctor: expose all the bins (master...asciidoctor-pdf-fix) https://git.io/vAIRT
NixOS_GitHub has left #nixos [#nixos]
<hodapp>
and google's not really getting me anything relevant
nkaretnikov has joined #nixos
abathur has joined #nixos
<manveru>
hodapp: hmm, i'm usually using it via direnv
<hodapp>
not sure what you mean
<woffs>
Hi. I have a problem. "nix-instantiate '<nixpkgs/nixos>' --argstr system i686-linux -A system" does not propagate system=i686-linux through all dependencies anymore (since yesterday?) and produces different things on x86_64 and i686. For instance, the dependent busybox.drv contains ("system", "x86_64-linux").
<manveru>
woffs: any chance you can bisect what commit in nixpkgs caused that?
<joepie91>
wasn't there a way to have nixpkgs produce a Docker image of a given NixOS system specification?
<joepie91>
I vaguely recall something like this
<manveru>
for a whole nixos?
<simpson>
joepie91: Unlikely, since systemd doesn't work in Docker. There's dockerTools in nixpkgs if you don't need systemd.
<gchristensen>
I don't think so, because there would be no service management.
<gchristensen>
^ simpson
<manveru>
there's nix-docker... which gives you nix-daemon inside of docker and the basics you need for a nixos system... but no systemd
Myrl-saki has quit [Ping timeout: 240 seconds]
<Ulrar>
So for some reason my apache tries to run as daemon:daemon, which doesnt exist. How would I fix that, is there a way to tell apache what user to run as ?
<Ulrar>
yeah I see that in the code, but for some reason it doesn't
<Ulrar>
I'm generating an iso by using <nixpkgs/nixos/lib/make-iso9660-image.nix>
<Ulrar>
So not the most regular use case
<Ulrar>
Might be something to do with the docker image I'm using to run nix-build or something
ma271 has quit [Ping timeout: 240 seconds]
ma271 has joined #nixos
<abathur>
has anyone successfully configured the xrdp service to serve the local desktop session? particularly on kde/plasma5?
<abathur>
If I explicitly add a window manager package and specify it as xrdp's default WM, xrdp will readily serve a fresh session on it, but I'm having trouble fumbling my way into or finding examples of a solution
xcmw has joined #nixos
<joepie91>
simpson: nah, the envisioned usecase is an Option B for running a command in a Nix-specified environment when the user doesn't want to install Nix
<joepie91>
simpson: what does dockerTools do exactly?
<warbo>
dtz: hmm, intriguing: output path ‘/nix/store/2habv715kv53qyv71zhjf7cibnzsmq5v-nix-config-044d894’ has r:sha256 hash ‘0y873r2nfw9qazdl555kwj2072n532pnv5iwp3nyck614qncvvzl’ when ‘0s9jw6mna8qpl5s5phd9qx1im2pcclr43fmbm40i72v95nn8q8xi’ was expected
FRidh has joined #nixos
<warbo>
the 'expected' hash is the one I was using before, but with the last char changed
<warbo>
so it looks like the server is correct
bfrog has quit [Ping timeout: 240 seconds]
<dtz>
it would appear so. Don't have great explanation for how this happened, presumably due to a fetchgit change? dunno
<woffs>
pp-drv $(nix-store -qR $(nix-instantiate --argstr system i686-linux '<nixpkgs/nixos>' -A system -I nixos-config=minimal.nix)|grep -m1 busy) | grep system
<woffs>
getting x86_64-linux
<warbo>
the laptop accepts the '0y8...' hash, so if I use that I think it should work on both
<woffs>
manveru: even rather old nixpkgs revisions show x86_64-linux there, so it must be something different
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vAIaZ
<NixOS_GitHub>
nixpkgs/master 4ffe462 Tim Steinbach: docker-edge: 18.01.0 -> 18.02.0
NixOS_GitHub has left #nixos [#nixos]
<srk>
anyone experienced random kernel hangs on i7 with 4.15.1 kernel and proprietary nvidia drivers?
<srk>
think it was happening on latest 4.9 as well but only after I've migrated to another ssd
<dtz>
i have not! But tbh I mostly keep my nvidia card powered off :3
<warbo>
woffs: what's the problem you're having? that shell snippet looks unrelated to my hashing issue...
<warbo>
woffs: note that when I said laptop is i686 and server is x64, those are two different machines; not a server running on my laptop ;)
iyzsong has quit [Ping timeout: 248 seconds]
<woffs>
warbo: I just noticed the x86_64 vs i686 thing, and I'm running a similar setup and am having different hashes on the same expressions
leat has quit [Ping timeout: 276 seconds]
<woffs>
but with a 32bit nix on the 64bit machine it seems to work
chreekat has joined #nixos
<warbo>
hurray, my build works on the server now :)
<sphalerite_>
woffs: warbo: yeah the derivations should both work on an x86_64 machine and produce the same output path; it's just that they have different curls implementing them
ilyaigpetrov_ has quit [Client Quit]
ilyaigpetrov has joined #nixos
<warbo>
sphalerite_: woffs: I'd imagine you could overcome that by either making them fixed-output (preferable) or by adding a layer of indirection which then gets imported (less desirable, since it causes building at eval time and may not work in restricted mode, e.g. on Hydra)
<sphalerite_>
warbo: they *are* fixed-output
<sphalerite_>
which is why they produce the same output
<sphalerite_>
They're just implemented differently.
<warbo>
ah, that's fine then
<pie_>
hodapp, it seems to me that i have bashInteractive via nix-env
<lassulus>
does someone know how I can build pandoc statically with nix, so I can run the binary on a machine without nix?
tgunb has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] greedy opened pull request #34765: libproxy: fix building on darwin (master...fix/libproxy-darwin) https://git.io/vAIw9
NixOS_GitHub has left #nixos [#nixos]
warbo has quit [Read error: Connection reset by peer]
arjen-jonathan has quit [Ping timeout: 240 seconds]
endformationage has joined #nixos
vidbina has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] mnacamura opened pull request #34766: rPackages.pbdZMQ: fix package loading on Darwin (master...r-pbdZMQ-fix-darwin) https://git.io/vAIix
NixOS_GitHub has left #nixos [#nixos]
stephenjudkins has quit [Remote host closed the connection]
Guest38534 has quit [Quit: leaving]
aminechikhaoui has joined #nixos
aminechikhaoui is now known as Guest73477
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vAIPu
<hakujin>
how do I include ancillary dependencies (e.g. postgres) when testing a project with hydra?
goibhniu has quit [Ping timeout: 240 seconds]
<gchristensen>
hakujin: hydra will just call `nix-build` so do whatever you need for your thing to be tested with postgres when you call `nix-build ./your-thing.nix`
bollu has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 opened pull request #34771: flexget: mark as broken (master...flexget) https://git.io/vAIDT
NixOS_GitHub has left #nixos [#nixos]
<hakujin>
gchristensen: hmm. I would do that in a pre/post shell script in `your-thing.nix`?
<hakujin>
setup/tear down
gspia has quit [Quit: Leaving]
<gchristensen>
what are you trying to do?
ZaraChimera has joined #nixos
gspia has joined #nixos
<hakujin>
make sure postgres is running with specific database structure present
bollu has quit [Client Quit]
<hakujin>
e.g. migrations
<gchristensen>
you probably want a NixOS test, look in nixos/tests/
<hakujin>
aha, thanks
ma273 has joined #nixos
ma272 has quit [Remote host closed the connection]
JosW has joined #nixos
lonokhov has quit [Quit: Lost terminal]
bollu has joined #nixos
betaboon has joined #nixos
ZaraChimera has quit [Remote host closed the connection]
ZaraChimera has joined #nixos
<LnL>
I made something that does that in a regular build, but that's for a weird reason. A nixos test is the correct way to solve that
freeman42x[NixOS has quit [Ping timeout: 268 seconds]
<LnL>
so you got your hydra setup working?
<hakujin>
LnL: sort of!
winem_ has quit [Ping timeout: 268 seconds]
<hakujin>
I have projects & PRs building. I hear there is a way to integrate PR jobsets with github's status indicator but I'm unsure how that works.
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<hakujin>
I also don't know the best way to deploy built artifacts
__Sander__ has quit [Quit: Konversation terminated!]
<hakujin>
concrete example: I have a haskell yesod app I want to build, test, and then potentially deploy to a running nixos machine.
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<hakujin>
I have the build and test parts mostly working. I'm pretty fuzzy on the best strategy for deploying.
<hakujin>
I don't know how to tie hydra into that picture though.
ryanartecona has joined #nixos
<LnL>
there a github plugin but I’ve not used that
coot has joined #nixos
<hakujin>
LnL: are you familiar with how hydra's plugin system works in general?
toppler has quit [Read error: Connection reset by peer]
<LnL>
as for deployment, you can only use it to get the source of the last successful build, there’s nothing fore impure actions
<LnL>
you’d have to make it pull based or do the deployment somewhere else
toppler has joined #nixos
stephenjudkins has joined #nixos
bfrog has joined #nixos
griff_ has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
ertes-w has quit [Remote host closed the connection]
digitus has joined #nixos
<sphalerite_>
is it possible to do remote builds in a more ad-hoc way than the rather heavy-handed remote builder setup which AFAICT can't be disabled per-build?
<NixOS_GitHub>
[nixpkgs] sjwalter opened pull request #34772: Fix broken URL for pinentry patch. (release-17.09...fix-pinentry-package) https://git.io/vAIQe
NixOS_GitHub has left #nixos [#nixos]
asuryawanshi has quit [Remote host closed the connection]
<sphalerite_>
great, thanks LnL and gchristensen !
asuryawanshi has joined #nixos
alex`` has quit [Quit: WeeChat 2.0.1]
earldouglas has left #nixos [#nixos]
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
tabaqui1 has joined #nixos
abathur has quit [Ping timeout: 260 seconds]
coot has quit [Quit: coot]
Synthetica has quit [Quit: Connection closed for inactivity]
<genesis>
i need to build this nix 1.12, any hints ?
<sphalerite_>
genesis: nix 1.12 isn't released and never will be
<genesis>
-:1: parser error : Document is empty
<genesis>
i get some error doing that, anyway 2.0pre or anything that use buildenv.cc :)
<sphalerite_>
ok. What are you trying, and what are you expecting to happen?
<genesis>
i git clone nix repo, i do some ./bootstrap.sh && ./configure && make
<genesis>
but INSTALL is missing ...
<sphalerite_>
Do you have an earlier version of nix already?
<simpson>
Why not use Nix to build Nix? What's your overall goal?
<sphalerite_>
If so, just build it using nix-build '<nixpkgs>' -A nixUnstable
yann-kaelig has joined #nixos
<genesis>
ho it's called "nixUnstable" oki thanks
mizu_no__ has quit [Quit: Computer has gone to sleep.]
<genesis>
i've still some pills to take :)
<genesis>
(i'm @ 7)
warbo has quit [Ping timeout: 240 seconds]
phdoerfler has joined #nixos
<sphalerite_>
yeah the pills are from before the innovations of the current unstable
<genesis>
i just wanted to look @ buildenv, it seems it has a lot of dependancies and no parameters hum
<sphalerite_>
the right way to build nixUnstable from its source repository (e.g. if you need a feature that was introduced since the last bump on it in nixpkgs), the right way is to override the nixpkgs one or to build it using the release.nix in your checkout of the repo
xcmw has joined #nixos
<dtz>
note you'll need to already be running nixUnstable to use its release.nix
<genesis>
that is, because i've tried without success
<shlevy>
Note that if you're trying to *locally* hack on nix, you can use nix-shell in the source repo, do bootstrap.sh and ./configure $configureFlags, then your eventual make install will install into $PWD/inst
<simpson>
genesis: shlevy's advice is probably worth paying attention to, as they're the only one of us that actually hacks on Nix, I think~
<genesis>
$ nix-build release.nix
<genesis>
downloading ‘channel:nixos-17.09’...
<genesis>
error: unable to download ‘channel:nixos-17.09’: URL using bad/illegal format or missing URL (3)
<shlevy>
But this is not the right way to go ifyou want to actually install nix for use elsewhere
<genesis>
if you tried with nix prior to the nix
<sphalerite_>
dtz: oh hi :D sorry to pester you again, but any news on publicly usable ALLVM?
<sphalerite_>
genesis: right, that'll be because the release.nix uses some nixUnstable-specific features as dtz mentioned
ryanartecona has quit [Quit: ryanartecona]
<genesis>
i show i tried, now i understand why it has failed
griff_ has quit [Quit: griff_]
<genesis>
i think about something to bundle between appiamge and nix-bundle
<genesis>
i wonder if i can use the buildenv of the 1.12, i've to study that.
<simpson>
genesis: Seriously, take one step back; what's the higher-level goal?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dotlambda opened pull request #34773: eschalot: init at 2018-01-19 (master...eschalot) https://git.io/vAIdz
NixOS_GitHub has left #nixos [#nixos]
<genesis>
as appimages, provides portable software
jorsn has quit [Ping timeout: 260 seconds]
<gchristensen>
have you seen nix-bundle?
<genesis>
i've a look yes
<simpson>
Oh. I don't know much about AppImage; is is more or less a tarball with a rootfs and some metadata?
<genesis>
i speak with mattew
<genesis>
it's a squashfs
<genesis>
yes with standard xdg desktop as metadata
<simpson>
Oh hey, nix-bundle has AppImage support. Never mind. Try out nix-bundle.
<genesis>
i try but i don't get it works AND what i want to do is between them both ;)
<sphalerite_>
I think the thing with nix-bundle is that it comes with the weaknesses that AppImage has on its own too, which is that dependencies are rapidly outdated and the images are huge. It usually ends up making more sense to just use nix on the target systems.
<simpson>
There is no "both" with Nix. There is only Nix.
<genesis>
sphalerite_ : yes BUT have a working nixpak that works everywhere will come people on nix
<dtz>
It's amusing that it supports appimage since appimages don't always work on NixOS. Or they didnt previously.
<genesis>
because on appimages, they spend time writing awful script to build and populate their directory
<simpson>
genesis: Oh, ew, don't do that. It will be *much* better for people to have a real Nix installation.
<sphalerite_>
genesis: not really, since it doesn't provide any of its advantages.
<simpson>
Anyway, if nix-bundle doesn't work perfectly for you, hack it until it works and send in PRs. Failing that, have short reproducible test cases (see http://sscce.org/ for examples) and file issues.
<simpson>
But it looks quite good. It looks so good that I'm thinking about adopting it right now.
<genesis>
some people won't change their distribution and still want a snappy/flak or appimages style of binary
<sphalerite_>
you don't need to chagne your distribution to use nix
<simpson>
Who cares about "some people"? What's your use case *today*?
<duncan^>
simpson: It is far worse than that - the AppImage is in a weird format that is a combination of ISO CD format and something else. And it bundles *everything*. And then they manipulate the binary header to make it appear as an executable
fractal has quit [Disconnected by services]
raynold has joined #nixos
<simpson>
duncan^: Sounds terrible. Life outside Nix must be suffering.
beginner has joined #nixos
<duncan^>
And they have a semi-automated setup on Github where they will create pull requests for various projects adding AppImage support
<duncan^>
as in
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<duncan^>
weird tiny little programs will get a pull request asking for AppImage support
<genesis>
not really they concatenate a elf to a squashfs
<duncan^>
and it involves changing the actual source code of the program
<duncan^>
ie blegh
<duncan^>
ew
<genesis>
yes their people sucks it's why i left the project ...
<gchristensen>
be nice :)
<genesis>
i spend 2 days trying to do an appimages derivation to nix, you can't understand how suffering
<gchristensen>
NixOS semi-regularly patches software too
<duncan^>
I would rather see Nix be POSIX compliant.
<genesis>
they call git clone in shell script called by cmake in make and so, i've never seen such things in 15 years in FOSS.
<NixOS_GitHub>
[nixpkgs] FRidh closed pull request #34771: flexget: mark as broken (master...flexget) https://git.io/vAIDT
NixOS_GitHub has left #nixos [#nixos]
tmaekawa has joined #nixos
Lisanna has joined #nixos
tmaekawa has quit [Client Quit]
<Lisanna>
clever I confirmed that replaceDependency DOES in fact replace not only oldDependency with newDependency, but also updates all of the recursive references to the new drv
alex`` has joined #nixos
alex`` is now known as alexherbo2
alexherbo2 is now known as alex``
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master bd3379c Peter Simons: haskell-generic-builder: include build-tool dependencies in shell environments...
<NixOS_GitHub>
nixpkgs/master 2c13435 Peter Simons: haskell-generic-builder: revert "set LD_LIBRARY_PATH in shellHook"...
<NixOS_GitHub>
[nixpkgs] peti pushed 2 new commits to master: https://git.io/vAIAu
<LnL>
anybody familiar with kernel config stuff, I'm having trouble figuring out why something is not showing up in kallsyms
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dotlambda opened pull request #34777: pythonPackages.pytest-httpbin: actually run tests (master...pytest-httpbin) https://git.io/vALeO
NixOS_GitHub has left #nixos [#nixos]
freeman42x[NixOS has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] oxij opened pull request #34778: nixos: export packages of the current configuration (master...os/allow-pkgs) https://git.io/vALeo
<jsgrant>
So, webkitgtk is breaking my attempts to rebuild; Looking for reverse-depends with '''nix-store --query --referrers $(which webkitgtk)''' and nothing; Am I missing something obvious?
stephenjudkins has quit [Read error: Connection reset by peer]
<jsgrant>
From readout, seems trivial to whitelist -- but want to know what's depending on it in the first-place and maybe just disable it, if I don't really use/need it.
<toppler>
Hey. I'd like to be able to get an environment which combines packages from haskellPackages with packages generated by stackage2nix. I've got my nix files generated by stackage2nix, but I'm not really sure where to go there in creating a default.nix file for my project.
<jsgrant>
I'm back to NixOS on my secondary box; So doesn't need to really be hardened/perfectly secure (I wouldn't be using unstable probably, if I needed to) -- but still.
MichaelRaskin has joined #nixos
MP2E has joined #nixos
<Lisanna>
I think nixpkgs needs a general-purpose "editDerivation" function. I'm sure most of us have written something like this at some point - where you just want to do a runCommand on a derivation but otherwise keep everything else the same
gfixler has joined #nixos
<Lisanna>
"edit" is misleading though, since it would still produce a new derivation with a new $out
<gchristensen>
like overrideAttrs?
<Lisanna>
gchristensen sort of, but for arbitrary derivations, and without regenerating it
mekaj has quit [Quit: Page closed]
<Lisanna>
like, if the derivation is a configuration file, and you just want to edit it, or a directory of configuration files
<Lisanna>
or source code
<LnL>
so like stdenv.mkDerivation { src = drv; ... }
<Lisanna>
LnL yes, but that is limited, since you have to write a bunch of stuff like cp -rH $src $out or wahtever the correct cp command is
<Lisanna>
and you probably also need a chmod in there
<Lisanna>
simply put, it's a mess
pie_ has quit [Ping timeout: 248 seconds]
<gchristensen>
oh I have something like this, you might want it
<Lisanna>
plus it doesn't deal with recursive references
<jsgrant>
Eh, screw it; I'll allow it as permittedInsecure for now -- until I do more on/with it at least, generally.
<Lisanna>
much better way: take the implementation of replaceDependency, remove the oldDerivation newDerivation functionality so that it just fixes recursive references, and then accept as input some arbitrary shell commands to run after the nix-store --restore $out
<Lisanna>
ah, that'll work only on derivations which are single files
<Lisanna>
anyways, I'm going to write an implementation of editDerivation like I described, it'll be usable on arbitrary derivations. If I can get approval, I'll upstream it
<gchristensen>
cool :)
<Lisanna>
should be pretty straightforward to implement though, in case I don't pull through :)
<Lisanna>
gchristensen also, I learned about string contexts yesterday x_x
<gchristensen>
ohh yeah
Turion has joined #nixos
<LnL>
hmm, build-vm-with-bootloader seems broken on master
<Lisanna>
and why you might want ot remove them with unsafeDiscardStringContext
<jsgrant>
Ha, judging by depends on rebuild ... looks like Texlive is what depended on webkitgtk; Weird.
<Turion>
Does anyone else have trouble lately installing ghcjs?
tnks has joined #nixos
<Turion>
It hangs on the package contravariant
pie_ has joined #nixos
srid has quit []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] sjwalter opened pull request #34780: Fix pinentry which broke due to upstream patch change (release-17.09...fix-pinentry-again) https://git.io/vALIq
NixOS_GitHub has left #nixos [#nixos]
srid has joined #nixos
hakujin has joined #nixos
pcarrier has quit []
pcarrier has joined #nixos
<dhess>
I just want to say thanks to all the Nix folks. Since installing a Hydra a few weeks ago, combined with Nix, it has completely changed the way I develop, test, and build software. It's absolutely amazing.
<sphalerite_>
\o/
hakujin has quit [Ping timeout: 256 seconds]
<dhess>
It'd say that, in terms of how it has affected my software engineering practices, it's been as transformative as git was.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Pneumaticat opened pull request #34782: looking-glass-client: restrict to x86_64-linux (master...patch-1) https://git.io/vALIx
NixOS_GitHub has left #nixos [#nixos]
<Turion>
That's great :D
<gchristensen>
dhess: :o :D (ノ◕ヮ◕)ノ*:・゚✧
<dhess>
heheh, I expected a table-flip there, never seen the stardust version
<jsgrant>
dhess: If NixOS ever gets like 25% of the mindshare Git has -- oh boy, THAT would be transformative.
<sphalerite_>
hell, 1%
<jsgrant>
sphalerite_: Yeah, probably true.
<dhess>
jsgrant: If I were just a pure entrepreneurial type, I would start a Nix-based competitor to Docker.
<dhess>
I'm pretty surprised nobody has
<jsgrant>
dhess: Too much money already in containers; And they are "less restrictive".
<dhess>
It's way too early to say that, IMO
<toppler>
dhess: I'm always interested in decent analyses of Docker and nix, but there is basic stuff in docker that people like that we don't have in nix, like each docker instance having its own ip and port space.
<jsgrant>
dhess: Idk, I used to think that; Redhat just bought CoreOS ... kindof made me waver a bit.
<dhess>
toppler: that's what the VC $$ is for :)
<gchristensen>
IMO the way for Nix to compete in the Docker space is to embrace it and produce Docker containers
<MichaelRaskin>
I am not sure RedHat can attract VC money by now… or wants to…
<samueldr>
speaking of docker containers, anyone here using dockerTools from nixpkgs?
<dhess>
Redhat is publicly traded, they're definitely not a VC target
<jsgrant>
MichaelRaskin, Nah, but they can acquire projects that had a lot of it funneled in.
<MichaelRaskin>
That's true.
<toppler>
samueldr: I am trying.
<samueldr>
I'm trying too!
<samueldr>
but I had a rubber-duck moment, while trying to ask my question
<samueldr>
(may have found my issue)
<Lisanna>
samueldr toppler I /tried/
<jsgrant>
Idk, the older I get (and probably a good thing, but certainly a sad thing) the more of a cynic I become -- especially when it comes to the market relevance of "the best stuff".
<dhess>
gchristensen: you could start there, and then if you got traction, once people are familiar with Nix and the way it works, you could then attempt to pivot to a pure Nix approach
<LnL>
I use it to build an image with nix inside of it :p
<dhess>
"embrace and extend" and all that
<gchristensen>
=)
<jsgrant>
But I also REALLY got burnt (probably by/from myself) on Lisp and the like; Still probably just sour on that. :^P
<toppler>
jsgrant: Oh, that cynicism hit me at age 19, when I found myself following around grumpy Lisp hackers at an impressionable age.
<MichaelRaskin>
«That is how you build Docker containers sanely. In fact, you can build other stuff, too. In fact, are you sure you do need docker and not just mere nsjail?»
<samueldr>
(in my particular use case it has to run in a docker vm and I'm not in control of that part :[)
<jsgrant>
toppler, Ha; Similar treks -- Except I was REALLY overly optimistic and lived in a near absolutist Lisp env & was starting to work backwards from a Emacs-as-a-desktopenv , to distro, to os.
<MichaelRaskin>
The problem is that five years ago there still was no credible language to replace the good parts of Lisp even if with a different balance. Nowadays — maybe Julia can mature into that niche.
digitalmentat has joined #nixos
<jsgrant>
Was around that age too.
<MichaelRaskin>
jsgrant: Hm…
<MichaelRaskin>
Remind me around 19th…
<jsgrant>
MichaelRaskin, Hm?
<jsgrant>
Oh!
<Lisanna>
docker on nix is probably always going to be limited, because nix stores the images as compressed files on disk rather than in a docker database
<jsgrant>
Sorry, missed earlier msg
<digitalmentat>
how does Nix track dependencies of a derivation? I know that if you interpolate a derivation into, say, the builder of another the "input derivation" is built in order to satisfy the builder it's being interpolated into
<Lisanna>
so a nix solution will also be heavier on disk space
<jsgrant>
MichaelRaskin: Tooling was kind of shit too; Not too long ago in CL.
<Lisanna>
and docker already sucks royally on that front
<digitalmentat>
but does Nix do any additional "tracking" of that input derivation?
<jsgrant>
Now Roswell & Quicklisp has helped A LOT.
<digitalmentat>
or is that specifically what buildInputs is for?
<jsgrant>
Still very niche, obviously.
asuryawanshi has quit [Ping timeout: 240 seconds]
<Lisanna>
digitalmentat runtime deps of a dependency are computed by scanning the bytes of the derivation for /nix/store paths
<MichaelRaskin>
jsgrant: well, you can search for «Lisp in the middle»; I am currently preparing a submission for this year ELS. It does concern Lisp, Nix, and what parts of OS you want to manage.
<digitalmentat>
Lisanna, well there are runtime and buildtime deps - I'm specifically talking about buildtime deps
<Lisanna>
oh, oops
<digitalmentat>
for instance, if I have a computer that cannot talk to the internet and I want to build a new configuration from a closure with "everything included"
<gchristensen>
its a good thing hetzner cloud doesn't mind churning VMs... I say, destroying then launching his 5th time today
<samueldr>
only 5?
<gchristensen>
50th*
<dhess>
gchristensen: are you happy with it so far? I am tempted to move some VMs there
<jsgrant>
MichaelRaskin: Problem is I have an absolutist if not generally too excitable kindof mind; It makes it really hard for me to detach and be moderate.
<jsgrant>
Is actually pretty obnoxious, really.
<gchristensen>
dhess: its cheap :)
<dhess>
gchristensen: what about good?
<samueldr>
let's hope it's billed at the minute and not the hour or longer :)
<MichaelRaskin>
jsgrant: yes, my lightning talk was «if you want a Lisp OS ever again, you need to pick your battles, that's why, that's how»
<dhess>
cheap/fast/good pick any 2
<gchristensen>
dhess: all I know is it is cheap and provisioning new instances takes just a minute or so
<dhess>
gchristensen: do they give you IPv6? Specifically, do they give each instance a routed /56 or larger?
<gchristensen>
dhess: they seem to give a /64
<sphalerite_>
digitalmentat: I think nix tracks dependencies during evaluation through the "string context" mechanism. Not sure though.
<jsgrant>
MichaelRaskin: That's so hard to do though in practice man -- because typically the people interested in such things in the first-place, have really high-bars in terms of purity tests; Prohibitively so.
<dhess>
gchristensen: well, that's better than most, anyway
<jsgrant>
I've been getting a 'little better' at picking battles, technologically; But I was/am so bad at it at start -- that still probably less than "the norm"; Do think there is a certain kindof programmer that has some kind of pathology that lends to this though. :^P
<sphalerite_>
digitalmentat: no. buildInputs is just one way that a derivation can end up depending on another. It has no special meaning on the nix level, it's only handled by stdenv.mkDerivation in nixpkgs
MinceR has quit [Ping timeout: 264 seconds]
<digitalmentat>
sphalerite_, so I have an exported closure that I'm trying to build a configuration from on a machine without internet access
<sphalerite_>
digitalmentat: you may be looking for nix-store -q --references on the .drv file
<digitalmentat>
dbus-1 depends on libxslt
<sphalerite_>
ah right. Hm
<digitalmentat>
but libxslt isn't included in the closure
<digitalmentat>
now, adding it to the closure is straight-forward
<digitalmentat>
I'm just trying to make sure I have my understanding of how this is working, right
<sphalerite_>
so you only need to build the one derivation on the unconnected machine?
<jsgrant>
That's when you market your ideological-leanings as "enthusiast". X^D
MinceR has joined #nixos
<digitalmentat>
dbus-1.drv is a depenency of an etc.drv I think
<digitalmentat>
in other words, nix-store --export isn't picking up the fact that libxslt is a dependency of dbus-1
<pie_>
how do i do that in the context of dmmpython = pkgs.python27.withPackages (ps: with ps; [ numpy pyusb matplotlib ]);
<MichaelRaskin>
jsgrant: well, there are people who are interested in trying to do at least something.
<sphalerite_>
digitalmentat: oh right. See the man page for nix-store, it mentions that --export doesn't produce the closure and how to do so
<digitalmentat>
okay I will read it, thank you for the tip
<jsgrant>
MichaelRaskin: Yeah, there's nothing wrong with throwing your hat in the ring -- if you can manage it and your time/energy properly; Not end up a Terry A Davis-like character; Which I started to notice myself slowly shifting towards.
<MichaelRaskin>
Let's just say that login prompts on my notebook have an SBCL instance in their path to PID1
<jsgrant>
MichaelRaskin, Good man. :^)
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<MichaelRaskin>
I also don't have setuid sudo.
<samueldr>
how do you elevate your privileges?
NeedABitOfHelp has joined #nixos
<NeedABitOfHelp>
Hey!
<pie_>
let me guess
<pie_>
you NeedABitOfHelp ;P
* jsgrant
has practically been in a Lisp-Detox for a year though; Noticed he was having a really hard time reading anything else ... but was also spending 10 hour days on Commoda, so that surely was part of it.
kochev has joined #nixos
<NeedABitOfHelp>
Yep Haha!
<NeedABitOfHelp>
So, Ive been trying to install Polybar on nixos
<MichaelRaskin>
samueldr: an SBCL instance with a daemon loaded that accepts requests over a socket and makes access decisions
<samueldr>
cool
<jsgrant>
In-fact my inability to read anything more than a few oneliners in most other langs, I even had a little exposure to prior, noticed there was a problem.
<MichaelRaskin>
And it uses an access criterion that somehow is hard to get with default sudo installations.
<NeedABitOfHelp>
I managed to get the configuration.nix file working and got it to compile with all the modules(it only comes with 2 by default)
<jsgrant>
Idk, still very weird looking back on all that (sorry for chanspam).
<gchristensen>
#nixos-discusses-lisp
<NeedABitOfHelp>
But, when I try to run it, polybar still only works with 2 of the 5 modules
<jsgrant>
gchristensen, -> #guix ?
<gchristensen>
no no, let's keep it nixos! :)
<MichaelRaskin>
gchristensen: I think it is time to try reviving #nixos-blah
<MichaelRaskin>
It even exists
<samueldr>
isn't it ##$channel_name that's the off-topic channel, the convention on freenode?
<gchristensen>
##channel means non-official, not offtopic
<gchristensen>
there is no #php but there is a ##php because PHP.net doesn't declare Freenode its official home
<samueldr>
ah, good
alex`` has quit [Ping timeout: 256 seconds]
kochev has quit [Ping timeout: 260 seconds]
<NeedABitOfHelp>
Can anyone help?
ZaraChimera has quit [Ping timeout: 255 seconds]
<jsgrant>
NeedABitOfHelp, Paste service?
ottidmes has quit [Quit: WeeChat 1.9.1]
fenedor has joined #nixos
<NeedABitOfHelp>
Umm, I'm a bit confused on what you mean
<NeedABitOfHelp>
I have that in my configuration.nix
digitalmentat has quit [Quit: Leaving]
<NeedABitOfHelp>
When I compile , I get this: -- [X] alsa -- [X] curl -- [ ] i3 -- [X] mpd -- [X] network -- X extensions:
<NeedABitOfHelp>
And when I run `polybar -v`, I get Features: +alsa -curl -i3 -mpd +network
<MichaelRaskin>
You say that you added cairo and it complained about cmake; did you try adding cmake to the arguments, too?
<NeedABitOfHelp>
Yeah, I fixed that problem
<NeedABitOfHelp>
Now it compiles fine, but I cant run the compiled version, I think
civodul has joined #nixos
dan_b has quit [Ping timeout: 248 seconds]
<sphalerite_>
NeedABitOfHelp: have you also installed polybar using nix-env, by any chance?
<sphalerite_>
try running nix-env -e polybar to uninstall it, in case.
<NeedABitOfHelp>
Yep
<NeedABitOfHelp>
I also tried to fun nix-env -u to update everything
<NeedABitOfHelp>
run*
<sphalerite_>
right. Your user profile packages and systemPackages from configuration.nix are independent of each other
oida has joined #nixos
<NeedABitOfHelp>
Instreasting, I didnt know that
<sphalerite_>
so if you install using nix-env -iA nixos.polybar you're installing the standard polybar. What you want to do is make sure you don't have a polybar in your user env, and nixos-rebuild switch to ensure that the polybar from your configuration is active
i-am-the-slime has joined #nixos
<sphalerite_>
(and the user profile takes priority over the system profile)
M-Dan has joined #nixos
<NeedABitOfHelp>
Ok, let me try that
<NeedABitOfHelp>
Worked! Thanks so much
<NeedABitOfHelp>
Thanks again!
NeedABitOfHelp has quit [Quit: Page closed]
scott has quit []
scott has joined #nixos
chreekat[m] has quit [Changing host]
chreekat[m] has joined #nixos
chreekat[m] has joined #nixos
ckauhaus has quit [Quit: Leaving.]
hiratara has quit [Ping timeout: 255 seconds]
<dhess>
Quick NixOps question. I am considering moving some services into EC2. Some of these will be 24/7, so I want to use reserved instances for those.
<dhess>
My understanding is that with EC2 I pay up front for, say, N reserved instances of type X, and basically I get a credit for those
<dhess>
so when I deploy N instances of type X with NixOps, those will be billed at the reserved instance rate
<dhess>
is that right?
hiratara has joined #nixos
<chreekat>
dhess: that's right, the 'reservations' are applied at billing time, and it's confusing because (through the AWS UI) there's no way to actually link a particular reservation to a particular instance
<chreekat>
someone please correct me if I'm wrong
<dhess>
chreekat: thank you.
<chreekat>
dhess: make sure the reservation and the instance are in the same region
<dhess>
oh right, that too
catch22 has quit [Ping timeout: 276 seconds]
<chreekat>
heh exactly
<dhess>
:)
<Sonarpulse>
whats up with virtualbox not wanted to reize our vdmks
<Sonarpulse>
not a very good UX :/
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dywedir opened pull request #34788: exfat: 1.2.7 -> 1.2.8 (master...exfat) https://git.io/vALGv
NixOS_GitHub has left #nixos [#nixos]
thoughtpolice has quit []
dmj` has quit []
thoughtpolice has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 opened pull request #34789: Revert "squashfuse: init at 0.1.101" (master...squashfuse) https://git.io/vALGI
NixOS_GitHub has left #nixos [#nixos]
dmj` has joined #nixos
mpickering has quit []
mpickering has joined #nixos
<genesis>
:/
<genesis>
srly ...
<genesis>
Mic92 no one provides a "better" solution to what i use.
ryanartecona has quit [Quit: ryanartecona]
<Mic92>
genesis: Profpatsch wants that
gridaphobe has quit []
gridaphobe has joined #nixos
<genesis>
as i said, his solution doesn't provide what i need on that stuff
<Profpatsch>
Hm?
judson has quit [Ping timeout: 276 seconds]
<genesis>
package writing battle a 35 years
fredo` has joined #nixos
<genesis>
s/a/at
<genesis>
how i hate foss sometime, you have no package, i take free time to write it i don't have enough feed sometime but it's not in the idea of a contributer
sigmundv has quit [Ping timeout: 240 seconds]
<Mic92>
genesis: well, you also have to see the other side of the medale. Beeing maintainer is also not always easy. People have a lot of expectation of you
<Profpatsch>
genesis: Battle?
JosW has quit [Quit: Konversation terminated!]
<genesis>
yes but i think this kind of solution is better than Profpatsch propose wiht the set about compressionThings
<Profpatsch>
Well, I posit the merge was too fast, especially since it completely ignored my improvements and a few obvious things like unused functions.
<Profpatsch>
genesis: You are not alone. Everyone here spends a lot of time.
<Profpatsch>
And maintainers even more.
<genesis>
i take this line as futur standard code
<genesis>
and you spoke about line i use, like Mkwith
<Profpatsch>
If you don’t have the time to finish the patch, no problem, we just wait until someone finds the time.
Ubercow has joined #nixos
<Profpatsch>
So no pressure.
<genesis>
i've finished the patch, what's your point
<Profpatsch>
That could be you, or someone else in the future.
<genesis>
you said i don't use this line, the only i don't is "mkenable"
<genesis>
i said , i'm contributing to this squashfuse project, so i know i could use it very soon, i copy the entire block of code from another derivation
<Profpatsch>
genesis: Yes, you can use it locally no problem.
<Profpatsch>
It doesn’t have to go upstream into nixpkgs until it is ready, just because you need it fast.
<genesis>
but what you propose was not fillfull my need anyway.
<Profpatsch>
genesis: The thing is, it’s not about *your* need mainly. It’s about the need of the people who have to maintain the code.
<Profpatsch>
I don’t want to attack your patch, I thought it was pretty good, except for the things I commented on.
<Profpatsch>
Maybe that wasn’t clear.
<fredo`>
I'm looking for a way to combine some public and some private nix config. Say I have defined a bunch of nix-machine-configs, they live in a public git repo. And there's another folder (above in the filesystem) which contains some private stuff. nixos-rebuild can be configured with the NIXOS_CONFIG env var, but I can only specify one config file. Any suggestions here? Do I have to wrap every machine in the private pa
<fredo`>
rt by importing the public machines or is there maybe a better way?'
<Profpatsch>
Hurray for people taking the time to learn how to build packages.
<genesis>
Profpatsch : i took this from another derivation, so remove it i won't take code that i can't use, because my way of work is to do as other
<genesis>
i do package for FOSS since 15 years
<genesis>
there is always new distribution, new idea and young people to take you for a noob
smichel17 has quit [Remote host closed the connection]
<genesis>
btw, i took a block of code i think it could be a standard, and now i've no better solution, and i don't want your solution , that is not the need for this package
<genesis>
as i answered earlier on the PR
<Profpatsch>
genesis: That’s great. Of course people will mainly judge you based on your behaviour, because how could they know how veteran you are.
<genesis>
i've PR pending and merging on squashfuse, and i know i'll be using this very soon , i wonder how much it costs to lose a contributer for 3 lines of useless code between have 3 lines of code that is not what we write at the place of the man who spend hours to write it.
<genesis>
sorry but i'm a bit fed up at this time of merge then unmerge code of contributer on such non crucial thing as a non used before derivation.
<Profpatsch>
So we’d lose you as contributor if we don’t merge your code right away?
<genesis>
we'll speak about that when you'll be adult.
<Profpatsch>
Of course.
<Mic92>
genesis: could you please stop now with this toxic behavior?
<genesis>
what a better solution to my need of custom flag on librarie Mic92 ?
<sphalerite_>
genesis: in addition, if you don't feel like dealing with the social aspects of contributing your changes upstream, nix makes it easier than ever to just use it yourself and not have to bother upstreaming it. It doesn't need to be in nixpkgs for you to use it.
szicari has quit [Quit: szicari]
<Mic92>
genesis: that's not the point. I speak about you attacking people
<genesis>
i feel attacking too, i don't see the point in a common goal that is to have a good distribution with maintener
hiratara has quit [Remote host closed the connection]
<genesis>
in the next release of squashfuse, i added librarary support, pkgconfig support and i continue to work on it
<genesis>
so i feel a bit sad to rewrite it when i know i've to find solution to that later.
<Mic92>
genesis: I merged this pull request too early, obviously, because two other maintainers had concerns.
<genesis>
oki let it be.
hiratara has joined #nixos
<genesis>
i'm a depressiv foss veteran, perharps you'll understand in times.
<dhess>
Now that all of the cross-stuff has been merged, what is the canonical way to get the target system type (e.g., "x86_64-darwin") in an overlay?
<dhess>
In my overlay, I want to build a custom NixOps, so I need to do "nixops = (import ...nixops/release.nix {}).build.<target-system>;"
<dhess>
which is why I need the target system type
<dtz>
targetPlatform.system ?
drewr has joined #nixos
bfrog has quit [Ping timeout: 255 seconds]
<dhess>
dtz: all you get in an overlay is "self" and "super", so I guess my question, how to drill down to that from, say, super
<dtz>
although seems you might want hostPlatform.system? idk I trust you just making sure you know which :)
<dhess>
maybe it's just there in super. I'll try it
<dtz>
I think you can just access them directly? super.targetPlatform ? if that doesn't work it's definitely inthe stdenv
<dhess>
yeah I suppose so
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bendlas opened pull request #34791: boot.kernel.features: add nixos option for setting kernel features (master...nixos-kernel-features) https://git.io/vALCV
NixOS_GitHub has left #nixos [#nixos]
<dtz>
i know callPackage makes them available but not sure about overlays
<dtz>
report back please? O:)
<dhess>
dtz: right that's my concern
<dtz>
also nixops + cross + target deploy sounds great :D
<dhess>
I will
<dtz>
GLHF
<dhess>
dtz: yeah that would be awesome, especially for ARM deploys. I'm not there yet though
<dtz>
yeah. I'm not sure cross is quite there yet, but I don't know it's all that far either :).
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dywedir opened pull request #34792: Bcachefs (master...bcachefs) https://git.io/vALC1
NixOS_GitHub has left #nixos [#nixos]
yann-kaelig has quit []
lord| has joined #nixos
fredo` has quit [Remote host closed the connection]
philips has quit []
philips has joined #nixos
<ldlework>
What does this line do: inherit (env) activationPackage;
<symphorien>
iirc it is equivalent to activationPackage = env.activationPackage;
freeman42x[NixOS has quit [Ping timeout: 260 seconds]
<dhess>
dtz: yes, it appears that super.targetPlatform.system is right
<dhess>
I will confirm that in a sec
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 334dd9c Robert Schütz: abcmidi: 2018.01.25 -> 2018.02.07
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vALWX