<clever>
adelbertc: there is a config.system.build (where system is a set), and there is a config.nixpkgs.system (a string that sets the arch for the build)
<ylwghst>
should i try it? :)
<clever>
adelbertc: and those are both nixos options
<clever>
adelbertc: what exactly are you trying to do?
<adelbertc>
trigger distributed build
<adelbertc>
set it to x86_64-linux so distributed build kicks in
<clever>
distributed builds dont rely on any special value of system
<ylwghst>
hmm
<clever>
adelbertc: although, what is the host?
<ylwghst>
i can use boot.loader.grub.extraFiles
<ylwghst>
then
<adelbertc>
im on darwin
<clever>
adelbertc: ahh
<adelbertc>
and i have my remote systems conf setup for x86_64-linux
<clever>
adelbertc: then that should come into play
<adelbertc>
hence the setting of system
<clever>
adelbertc: what file did you set system in, and what command are you running?
takle has quit [(Remote host closed the connection)]
hellrazor has joined #nixos
<adelbertc>
when im importing <nixpkgs>
<ylwghst>
does copy only into /boot ?
takle has joined #nixos
<clever>
ylwghst: the entries in boot.loader.grub only have an effect if you set boot.loader.grub.enable = true;
<ylwghst>
notice that there is /boot/EFI/nixos still present where is systemd
<grantwu>
And does anyone know if nox-review will actually use what I set as an upstream in Git, or does it always compare to master?
<ylwghst>
grub2 updated gonna give it try
ylwghst has quit [(Client Quit)]
Supersonic112 has quit [(Ping timeout: 240 seconds)]
<disasm>
did something replace pp-aterm?
<disasm>
for pretty printing derivations that is
Supersonic112_ has joined #nixos
<clever>
disasm: it was removed several months ago
<Infinisil>
grantwu: nox-review can either test against a PR or against the uncommited differences
Supersonic112_ is now known as Supersonic112
<Infinisil>
nox-review pr <number of pr> or nox-review wip
ylwghst has joined #nixos
<ylwghst>
clever: nothing has changed
<grantwu>
okay, so it would be against master then, because my PRs are to merge into master
<grantwu>
So none of this actually solves my problems
<ylwghst>
should i foramt partion and isntall grub2 ?
<ylwghst>
boot partition
<Infinisil>
grantwu: Ahh, hmm
<clever>
ylwghst: that will likely cause more problems
<disasm>
clever: is there another recommended way to print derivations?
<ylwghst>
ylwghst: i do think too
pxc has quit [(Ping timeout: 240 seconds)]
<Infinisil>
grantwu: you can check out nixos-unstable, then make your changes, nox-review wip (which will be able to use the caches), test it some more, then commit the changes to master and hope Travis builds just fine
<xiambax>
Does nixos host on cloudfront?
<clever>
ylwghst: what if you set boot.loader.efi.canTouchEfiVariables = true; ?
<Infinisil>
grantwu: But if you really wanna be sure it works on master, then yes you'll have to build some stuff yourself, it shouldn't take forever
<clever>
ylwghst: and also do nixos-rebuild switch --install-bootloader
<ylwghst>
clever: i have set yet
<grantwu>
Infinisil: The context of this was that I am updating a package which qtwebengine depends on. So it took hours
<ylwghst>
all time booted with efi.canTouchEfiVariables = true
<Infinisil>
grantwu: Well, in that case you can't use caches anyways, since it might produce something different (in what case would the caches even be used? nix has a dependency tree which updates everything that may change)
<Infinisil>
so it makes sense to rebuild that stuff
<grantwu>
Well, I would have to rebuild less stuff
<grantwu>
Actually I'm not sure
<grantwu>
I think I wasn't updating a package qtwebengine depended on; I was actually updating a package that depended on both qtwebengine and the package I was updating
<ylwghst>
in /boot/grub there isn't *.efi
rpifan has quit [(Quit: Leaving)]
<clever>
ylwghst: checking the config...
<ylwghst>
it has to be in /boot/EFI/nixos
<ylwghst>
as there are some but not updated with grub or something...
<clever>
Infinisil: do you know how to make nixos-rebuild copy grub to /boot/EFI and re-configure efibootmgr?
<ylwghst>
its there
<ylwghst>
/boot/EFI/NixOS-boot/grubx64.efi
<clever>
ylwghst: and is it listed in the output of "efibootmgr" ?
<ylwghst>
/boot/EFI/systemd/systemd-bootx64.efi
<ylwghst>
what is efibootmgr??
<clever>
its the efi boot manager, just run that command to print its current settings
Infinisil has quit [(Ping timeout: 258 seconds)]
<ylwghst>
the program n/c installed install with nix-evn -iA
<ylwghst>
should I do it as root?
Infinisil has joined #nixos
<clever>
ylwghst: try "nix-shell -p efibootmgr" and then just "efibootmgr"
<Infinisil>
(had to force shut down upon disconnecting my external display)
<clever>
ylwghst: looks good, lets see what happens when you reboot
<Infinisil>
ylwghst: Doesn't holding Option on startup let you select the disk to boot from?
<ylwghst>
Infinisil:
<ylwghst>
it does
<Infinisil>
because if that didn't work, I doubt efibootmgr does
<ylwghst>
its does work
<ylwghst>
there I choose the partition with boot
<Infinisil>
Oh it's a different problem, never mind
<ylwghst>
it is
<ylwghst>
gonna try it
ylwghst has quit [(Quit: Lost terminal)]
<clever>
Infinisil: i have also heard of some crappy firmwares, that refuse to let you delete an efi entry with efibootmgr, if the matching efi system partition is MIA
<Infinisil>
MBR*
<Infinisil>
?
<clever>
Infinisil: so if you delete the partition first, you basicaly ruin the firmware forever
<clever>
uefi firmware
<Infinisil>
(never mind, I'm tired)
<Infinisil>
I see
ylwghst has joined #nixos
<ylwghst>
without any change
<ylwghst>
still systembootd with only 8 generations
<clever>
ylwghst: what if you hold the option button and pick nixos-boot?
<adisbladis>
At least that's the same build error I'm getting on master
<Infinisil>
ylwghst: From the man page: "(* means active)"
<ylwghst>
omg
<grantwu>
adisbladis: Er... is that fix not in master?
<ylwghst>
right :(
mahalel_ has joined #nixos
ylwghst has quit [(Quit: Lost terminal)]
<disasm>
What's the best way to get a nix-shell that can build a package using stdenv? For example, if I wanted to get a shell to build pkgs/applications/misc/hello/default.nix
<Infinisil>
disasm: nix-shell -A hello
<disasm>
Infinisil: right, but that's in top-level, assuming a package isn't already in top-level.
<disasm>
ah, so it's identical to the nix-build command :) that's easy to remember!
<clever>
yep
<clever>
you can also make a shell.nix file with that string
<clever>
then just nix-shell with no args loads it
<grantwu>
adisbladis: ping
<adisbladis>
grantwu: Pong.
<Infinisil>
There's also nix-call-package in nixpkgs/maintainers/scripts which basically does this
<grantwu>
Is that fix not in master?
<Infinisil>
so you could add that to your path, then do nix-call-package hello
<adisbladis>
I'm not even sure what the bug in master is, don't really have time to track things down
<adisbladis>
grantwu: No it seems not
<grantwu>
How is something in staging but not in master...
<dmj`>
Has haskellPackages recovered from the ghc821 updates
<adisbladis>
grantwu: Why is that strange?
<adisbladis>
Staging is a staging branch for master, not for channels
<grantwu>
...okay
<grantwu>
so am I supposed to be forking off of staging?
<grantwu>
And yeah, looking at that fix, that fixes the issue
<grantwu>
Since git bisect spat out the commit that it reverts
<grantwu>
I don't want to offend anyone here but... why do we have a staging for master if we apparently aren't testing commits on staging before we merge them to master?
<grantwu>
Running nox-review for my commit and discovering weird breakage that I spend a while bisect-ing, just to find that it's due to someone else not running nox-review... heck, it seems like people don't run nox-review before getting their PRs reviewed, doesn't seem like I should bother either...
<clever>
grantwu: i think staging is mostly used for large changes that people think will break a lot
<clever>
grantwu: anything that seems simple is put right into master
<clever>
grantwu: in either case, hydra wont let anything broken reach nixos-unstable, so the breakage only makes the channel lag behind
<Infinisil>
simpson: Ohh right, you're developing your own language :D
<sphalerite>
Infinisil: I'd quite like to use a physical copy so I'll check if my uni library has it
pxc has joined #nixos
<simpson>
I can use other languages. I've looked at Idris before. I'm just not interested in picking up more reading material right now; I have a pile of papers and a pile of books already.
dbmikus has quit [(Ping timeout: 260 seconds)]
<Infinisil>
simpson: Sure
<sphalerite>
Nope, they don't. :( maybe the CS department has it though
<Infinisil>
sphalerite: It would be quite
pxc has quit [(Ping timeout: 246 seconds)]
<Infinisil>
a suprise to me
<sphalerite>
why?
<sphalerite>
I'm at the University of Strathclyde, there's quite a bit of research on programming languages going on over here
<Infinisil>
sphalerite: Ahh
<sphalerite>
I think there's more Agda stuff going on than Idris stuff, but still
<Infinisil>
Tell me when you've downloaded it, gonna take it down again after that
<sphalerite>
"No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in
<sphalerite>
any form or by means electronic, mechanical, photocopying, or otherwise, without prior written
<sphalerite>
permission of the publisher." :oooo
<Infinisil>
sphalerite: I'll let you peek, and if you like it you can pay for the real version, ok?
<sphalerite>
thanks, kind of you. Not sure I'll read it though, reading on laptop screens sucks
Wizek has quit [(Quit: Connection closed for inactivity)]
<sphalerite>
I'll still see if the department has a copy and probably just buy it if not
<Infinisil>
sphalerite: Alright
<Infinisil>
sphalerite: So you got it?
* Infinisil
has removed it again
proteusguy has joined #nixos
<simpson>
Infinisil, sphalerite: Next time, consider magic-wormhole (it's in nixpkgs!) for transferring files securely.
<Infinisil>
simpson: Ohh, right, i forgot its name, but i remember it
<Infinisil>
I actually considered gpg encrypting it heh
<sphalerite>
I tried that the other day with some large files that a friend sent me. It broke because I forgot to plug my laptop in, and all of the transfer was lost
<sphalerite>
So in future I'll use syncthing for that sort of thing, in spite of the annoying GUI :p
<Infinisil>
sphalerite: i've heard lots about syncthing, but I prefer CLI apps
pxc has joined #nixos
<Infinisil>
probably there's a CLI too, but whatever, don't need it
<sphalerite>
Me too, but syncthing is good enough that I'll accept the GUI
<sphalerite>
There is no working CLI I know of
<Infinisil>
sphalerite: What's so good on it?
<Infinisil>
I actually do need a sync program, but I think I'll use rsync
newhoggy_ has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
<sphalerite>
It's opportunistic and distributed, if I want to keep something in sync between 5 devices it doesn't matter if only 2 of them are ever online at the same time
pxc has quit [(Ping timeout: 255 seconds)]
<sphalerite>
It's continuous, which makes it suitable for different use cases from rsync
<Infinisil>
sphalerite: Well fuck, that's exactly what I need
<sphalerite>
If I take a photo on my phone, it just shows up on my laptop, no further action required
justbeingglad has joined #nixos
<sphalerite>
I also use it to put music on my phone
<Infinisil>
sphalerite: Android I assume?
<sphalerite>
I'll probably add a shared folder with my server as well, exposed via HTTP, so I can just plonk stuff in there from my phone to share it publicly
justbeingglad has left #nixos []
<sphalerite>
Without needing to scp/rsync it over
<sphalerite>
Yeah
<Infinisil>
Something like having a network filesystem of all your machines mounted to /machines/<name> would be sweet
<Infinisil>
sphalerite: Can there be merge conflicts with syncthing?
<sphalerite>
My main gripes over it are that it's written in Go and that it only has a web UI on desktop, and that the android app's UI is pretty poor
<sphalerite>
Yes, in case of a conflict it will just keep both copies
<Infinisil>
sphalerite: Go is pretty meh, but as long as it works well I wouldn't mind
reinzelmann has quit [(Quit: Leaving)]
<Infinisil>
sphalerite: I should actually totally implement that idea I had some weeks ago
<sphalerite>
Yeah, still better than C.
<Infinisil>
Since I'm using zfs filesystems on all my machines, I can use its capabilities. This would enable the zfs send / receive commands which can do incremental updates
<Infinisil>
And I could set every machines version to read-only except one
<Infinisil>
Then I wouldn't have merge conflicts
<Infinisil>
But the protocol becomes more complicated
<Infinisil>
But that _would_ be pretty cool
Ivanych has joined #nixos
<Infinisil>
And since zfs can store arbitrary user properties in the filesystem, I don't even need to implement state handling
<mbrgm>
can someone tell me what's the difference between the nixos-unstable and nixos-unstable-small channels?
<Infinisil>
mbrgm: -small means that the test set is small, which means that not a lot of things get tested.
<mbrgm>
Infinisil: ty!
pxc has joined #nixos
<Infinisil>
And I heard this has great potential to break a system, so it's not recommended
<mbrgm>
yeah, I'm currently doing quite well with some cherrypicks on nixos-unstable, was just wondering.
<Infinisil>
unstable-small for nixos-unstable-small
<Infinisil>
Clicking on them, then switching to the "Jobs" tab shows you how many jobs they have, and which one succeeded/failed
rpifan has quit [(Ping timeout: 240 seconds)]
pxc has quit [(Ping timeout: 240 seconds)]
<mbrgm>
ah, cool :)
dpino has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] cocreature opened pull request #28097: haskell: remove any extraneous outputs from sdistTarball (master...sdistTarball-doc) https://git.io/v7Mga
NixOS_GitHub has left #nixos []
hotfuzz_ has joined #nixos
hotfuzz has quit [(Ping timeout: 255 seconds)]
lambdael has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
bkchr has joined #nixos
proteusguy has joined #nixos
linarcx has joined #nixos
linarcx has quit [(Remote host closed the connection)]
linarcx has joined #nixos
linarcx has quit [(Client Quit)]
johnw has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] cocreature opened pull request #28098: [WIP] haskell: fix build of ghcjs and ghcjsHEAD (master...ghcjs) https://git.io/v7M28
NixOS_GitHub has left #nixos []
pxc has joined #nixos
pxc has quit [(Ping timeout: 255 seconds)]
dbe_ has joined #nixos
proteusguy has joined #nixos
roberth has joined #nixos
dbe has quit [(Ping timeout: 240 seconds)]
<sphalerite>
mbrgm: no, nixos-small is recommended for servers and such where timely security updates are important
<sphalerite>
Infinisil: master is not recommended
<sphalerite>
mbrgm: nixos-small's test set being smaller results in it updating faster, but you don't get as many binary packages and may end up building more from source — and those things won't be tested
ylwghst has joined #nixos
<ylwghst>
Infinisil: hi
roberth has quit [(Ping timeout: 246 seconds)]
<sphalerite>
If you're running a desktop you'll probably want the regular channel, to avoid having your desktop environment break on you unexpectedly when nixos-small has updated while the normal channel is blocked on some tests that discovered the very issue that's breaking yours
<sphalerite>
But nixos-small is a good idea for a server which doesn't have a desktop environment and as such doesn't need it tested :)
pxc has joined #nixos
<Infinisil>
sphalerite: Ahh, I must've heard wrong then
takle has joined #nixos
Ivanych has quit [(Ping timeout: 260 seconds)]
<ylwghst>
Infinisil: I did nixos-install with grub2 but I wasn't able to select boot device efi menu (after holding cmd) there was no entry for grub2 even If I created boot0000 manually using efibootmgr
<ylwghst>
device in efi menu*
<Infinisil>
ylwghst: what does `sudo blkid /dev/<your boot disk>` give you?
<sphalerite>
ylwghst: also efibootmgr -v, mount, and find /boot ?
<ylwghst>
Infinisil: i just wiped it and doing nixos-install again
<ylwghst>
will show whe it will be done
<Infinisil>
ylwghst: What are you using to partition the disk?
takle has quit [(Ping timeout: 255 seconds)]
<ylwghst>
Infinisil: gdisk
pxc has quit [(Ping timeout: 246 seconds)]
Tucky has joined #nixos
DutchWolfie has joined #nixos
jonte_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] domenkozar pushed 4 new commits to master: https://git.io/v7MaF
<NixOS_GitHub>
nixpkgs/master 4021d4d Matthew Pickering: Make version a parameter in GHC HEAD derivation...
<NixOS_GitHub>
nixpkgs/master cf7b262 Matthew Pickering: Boot ghc HEAD with ghc-8.0.2
<NixOS_GitHub>
nixpkgs/master 770743b Matthew Pickering: Bump ghc HEAD version ghc-8.3.20170808
NixOS_GitHub has left #nixos []
lambdael has quit [(Quit: WeeChat 1.7.1)]
<sphalerite>
ylwghst: you don't need to redo everything every time, it would make sense to at least work out what went wrong before starting over so you don't make the same mistake again
eacameron has quit [(Remote host closed the connection)]
<ylwghst>
Infinisil:
newhoggy has quit [(Ping timeout: 258 seconds)]
<Infinisil>
sphalerite: He was trying for a long time yesterday with clever, and the problem didn't show itself, I think a redo is worth doing now
<ylwghst>
sphalerite: looks there is new entry after install in efibootmgr
<ylwghst>
gonna givit it try
ylwghst has quit [(Remote host closed the connection)]
dpino has quit [(Ping timeout: 240 seconds)]
dbmikus has joined #nixos
ylwghst has joined #nixos
<ylwghst>
no boot partition in efi menu after cmd
<ylwghst>
again
pxc has joined #nixos
takle has joined #nixos
<Infinisil>
ylwghst: Do you have a usb stick available?
<ylwghst>
Infinisil: i do
ebzzry has quit [(Ping timeout: 260 seconds)]
FRidh has joined #nixos
dbmikus has quit [(Ping timeout: 276 seconds)]
pxc has quit [(Ping timeout: 260 seconds)]
jonte_ has quit [(Ping timeout: 255 seconds)]
arximboldi has joined #nixos
takle has quit [(Remote host closed the connection)]
<Infinisil>
ylwghst: Try installing it there instead
takle has joined #nixos
dpino has joined #nixos
tdc has quit [(Read error: Connection reset by peer)]
tdc has joined #nixos
<ylwghst>
Infinisil: im usiCd
<ylwghst>
Infinisil: im boot live from usb
goibhniu has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
<Infinisil>
ylwghst: And you don't have another stick?
silver_hook has joined #nixos
silver_hook has quit [(Changing host)]
silver_hook has joined #nixos
<ylwghst>
Infinisil: i have
<ylwghst>
Infinisil: how I should I format it? should I use crypt luks?
<ylwghst>
Infinisil: I use luks on my machine
<ylwghst>
Infinisil: should I make partiton same or it is not necessary?
<ylwghst>
partition table
<ylwghst>
just unecrypted rootfs and boot
katyucha has joined #nixos
<Infinisil>
ylwghst: Since you want to find out what's the problem, you should start with the very minimal, so no encryption, just a vfat /boot and an ext4 root
<Infinisil>
Or you could do it the same actually, if it doesn't work, then the disk is the problem
pxc has joined #nixos
elasticdog has quit [(Ping timeout: 245 seconds)]
<Infinisil>
I guess bisection is what I'm trying to say, do you know how that works?
MP2E has quit [(Quit: sleep)]
<ylwghst>
Infinisil: I can do it without encryption but If it will work what then?
mw has joined #nixos
pxc has quit [(Ping timeout: 255 seconds)]
<Infinisil>
ylwghst: Eh, start without encryption, add encryption when you know that grub works
<Infinisil>
ylwghst: Well good luck, I'll go to sleep now ;P
<Infinisil>
See ya!
<ylwghst>
reboot
<ylwghst>
cyaa
ylwghst has quit [(Remote host closed the connection)]
<Infinisil>
ylwghst: #linux could also help you
<Infinisil>
damnit, somebody tell him that all this boot/grub stuff fits very well into #linux when he comes back
Infinisil has quit [(Quit: Zzzz..)]
ennui has joined #nixos
<ennui>
is there an idiomatic way to specify nativeBuildInputs that should only be required when doCheck == true?
<symphorien>
there is checkInputs
<symphorien>
mmh apparently only for buildPythonPackage
<ennui>
symphorien: fortunally, i need it for a python package. thanks a lot!
<romildo>
neofetch (a fast, highly customizable system info script) is not working for me. It does not display anything on the terminal when it is run. Can anybody confirm this?
Wizek_ has joined #nixos
freusque has quit [(Ping timeout: 255 seconds)]
<niksnut>
domenkozar: sure
pxc has joined #nixos
<domenkozar>
niksnut: the codebases diverged a lot, I'm afraid to just stuff it in
<domenkozar>
because in a later commit you make TMPDIR non-deterministic on macOS
<domenkozar>
as now .sb resides in $TMPDIR
ylwghst-desktop has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] volth opened pull request #28103: ccacheWrapper: extraConfig does not handle special characters (master...patch-10) https://git.io/v7MHa
NixOS_GitHub has left #nixos []
pxc has quit [(Ping timeout: 258 seconds)]
TMVector has joined #nixos
<ylwghst-desktop>
any idea how to use setpci from systembootd?
simukis has quit [(Ping timeout: 240 seconds)]
Havvy has quit [(Ping timeout: 260 seconds)]
TMVector has quit [(Quit: Page closed)]
TMVector has joined #nixos
<avn>
ylwghst-desktop: you decided switch away from grub?
<ylwghst-desktop>
avn: i cant get working grub
<avn>
what not works?
<ylwghst-desktop>
I only discover boot partition in efi boot menu only when there is systembootd installed elsewhere not
uw_fluxus has left #nixos []
catch22_ has joined #nixos
catch22_ has quit [(Remote host closed the connection)]
catch22_ has joined #nixos
jellowj has quit [(Ping timeout: 258 seconds)]
<avn>
gurb-efi need few tricks, including properly mount efi parition(s),
<ylwghst-desktop>
I tried everything
pxc has joined #nixos
dywedir has quit [(Remote host closed the connection)]
dywedir has joined #nixos
ylwghst has joined #nixos
pxc has quit [(Ping timeout: 240 seconds)]
joepie91_to_go_ has joined #nixos
<avn>
ylwghst-desktop: gist your config?
ylwghst has quit [(Ping timeout: 260 seconds)]
ylwghst has joined #nixos
gnuhurd has quit [(Ping timeout: 240 seconds)]
tokudan has joined #nixos
gnuhurd has joined #nixos
pxc has joined #nixos
<TMVector>
Hey :)
<TMVector>
Has anyone tried using unionfs or something similar to bring nix stores from multiple machines together, to be served as a single binary cache?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to staging: https://git.io/v7Mdc
<NixOS_GitHub>
nixpkgs/staging 206a4c9 Robin Gloster: Partly revert "python.buildEnv: only wrap executables"...
ylwghst-desktop has quit [(Ping timeout: 260 seconds)]
pxc has joined #nixos
linarcx has joined #nixos
cpennington has joined #nixos
<linarcx>
Hi. i want to switch to specific system-generation.with nix-env it is easy.just passing --switch-generation genNumber, you can switch to arbitary generation.but i want to always use system-profiles and nixos-rebuild.how do this job?
zetok has joined #nixos
pxc has quit [(Ping timeout: 240 seconds)]
dbmikus has joined #nixos
rauno has quit [(Ping timeout: 240 seconds)]
proteusguy has quit [(Remote host closed the connection)]
hellrazo1 has quit [(Quit: WeeChat 1.9)]
hellrazor has joined #nixos
dbmikus has quit [(Ping timeout: 240 seconds)]
rauno has joined #nixos
globin has quit [(Ping timeout: 240 seconds)]
ylwghst has quit [(Quit: Lost terminal)]
globin has joined #nixos
pxc has joined #nixos
Ross has quit [(Ping timeout: 260 seconds)]
Ross has joined #nixos
freusque has joined #nixos
eacameron has joined #nixos
pxc has quit [(Ping timeout: 260 seconds)]
eacameron has quit [(Ping timeout: 260 seconds)]
snikkers has joined #nixos
iyzsong has joined #nixos
rauno_ has joined #nixos
<rauno_>
hi all
<rauno_>
where does nixos keep it's interfaces config files ?
Capprentice has quit [(Ping timeout: 255 seconds)]
spear2 has joined #nixos
pxc has joined #nixos
ebzzry has joined #nixos
<sphalerite>
rauno_: it's in the system config like everything else
<goibhniu>
hi rubiest, go for it, maybe someone can help
dbmikus has joined #nixos
dywedir has quit [(Remote host closed the connection)]
<yegortimoshenko>
tilpner: sure, i already have a few modules but i use them by adding to imports. what i want instead is to add my nixos options channel via nix-channel and use modules without adding every module to imports
<rubiest>
i install msf from source Github
<rubiest>
but
catch22_ has quit [(Quit: Leaving)]
<rubiest>
when i try rvm install ruby-x.x.x
<tilpner>
yegortimoshenko - Oh, that wasn't clear from your initial question. I just put stuff into modules/*.nix, then use readDir to import them automatically. I don't know how to do that with channels though
<rubiest>
display an error, cannot compiling C .....
dbmikus has quit [(Ping timeout: 248 seconds)]
<LnL>
we have most versions of ruby in nixpkgs, any particular reason you want to compile it yourself with rvm?
<rubiest>
hmm, ok
<rubiest>
and
<rubiest>
how to install package from nixpkgs
<LnL>
nix-env -f '<nixpkgs>' -iA ruby_2_4_1
<rubiest>
ok
<LnL>
or if you just want it in a shell you can use nix-shell -p ruby_2_4_1
pxc has joined #nixos
<rubiest>
how about cannot execute bash on nixos?
<rubiest>
i try to run script bash
<rubiest>
but
<LnL>
we don't have /bin/bash, but #!/usr/bin/env bash should work
<rubiest>
hmm
<rubiest>
done, thx
<rubiest>
make me try harder huahahah
<LnL>
I recently discovered that fabric uses /bin/bash by default :(
Myrl-saki has joined #nixos
<Myrl-saki>
` nix-shell -E 'callPackage . {}'`
<Myrl-saki>
Why is this a parse error?
<Myrl-saki>
It says that the second argument `syntax error, unexpected '{', expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):1:15`
<LnL>
try with ./.
<yegortimoshenko>
tilpner: i see, i too have a modules directory (in a github repo that i clone to /etc/nixos/modules). thanks for mentioning readDir. i want to use a channel so that i can use custom packages and custom options at the same time, plus i won't have to `git pull` (and use `nix-channel --upgrade` instead). i'll research this further!
<rubiest>
1 dependencies couldn't be built
<rubiest>
what the error mean?
<Myrl-saki>
LnL: Ughhhh sorry lmao
<LnL>
Myrl-saki: this is valid: let foo = { bar = 42; }; in foo . bar
<rubiest>
when i run nixos-rebuild switch
<tilpner>
yegortimoshenko - FWIW, I use custom options and custom packages without a channel
<Myrl-saki>
LnL: What's the reasoning why . doesn't work?
pxc has quit [(Ping timeout: 240 seconds)]
<tilpner>
yegortimoshenko - Why are your modules in their own repo? That sounds weird. I have my entire NixOS config in one repo
<LnL>
what I posed is the same as foo.bar, so there's no way to distinguish it from . without adding a slash in there
<Myrl-saki>
LnL: Ah.
<Myrl-saki>
LnL: How do I pass <nixpkgs> as an argument to shell.nix?
<Myrl-saki>
LnL: I was thinking that I *might* want to have a different <nixpkgs>, so I'm not going to be using `with (import <nixpkgs> {});`
<rubiest>
-bash: hash: hashing disabled
<symphorien>
Myrl-saki: use { pkgs ? import <nixpkgs>, ... } as args
<LnL>
Myrl-saki: if you use { pkgs ? import nixpkgs {}, nixpkgs ? <nixpkgs> }: with pkgs; you can use --argstr nixpkgs /path/to/nixpkgs
<Myrl-saki>
Ah. Thanks.
rexel has joined #nixos
roberth has quit [(Ping timeout: 240 seconds)]
cpennington has joined #nixos
<yegortimoshenko>
tilpner: hardware-configuration.nix is just a cache, and my configuration.nix contains private (Wi-Fi passwords) and/or machine-specific (hostname) stuff that i don't want to store in a repository. i do store /etc/nixos in a separate zfs file system that i autosnapshot & back up. i use modules for storing more general configuration that can be applied to multiple scenarios: hardware descriptions, custom packages, my entire user
<yegortimoshenko>
environment that i might want to replicate on another machine. etc.
pietranera has joined #nixos
<tilpner>
yegortimoshenko - Oh, but what about modules that provide new options? Those usually aren't personal
<tilpner>
(I agree on the personal/private information, still need to figure that out)
<NixOS_GitHub>
[nixpkgs] globin pushed 2 new commits to staging: https://git.io/v7DTk
<NixOS_GitHub>
nixpkgs/staging f60fffe Robin Gloster: sawfish: fix wrapProgram call
<NixOS_GitHub>
nixpkgs/staging c438fe5 Robin Gloster: system-config-printer: fix wrapProgram call
NixOS_GitHub has left #nixos []
snikkers has quit [(Ping timeout: 248 seconds)]
snikkers has joined #nixos
newhoggy has joined #nixos
pxc has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
arximboldi has quit [(Quit: arximboldi)]
wigust has quit [(Remote host closed the connection)]
ebzzry has joined #nixos
rubiest has quit [(Ping timeout: 240 seconds)]
eschnett has quit [(Quit: eschnett)]
pxc has quit [(Ping timeout: 258 seconds)]
rubiest has joined #nixos
<rubiest>
hello
roberth has joined #nixos
<rubiest>
how to fix failed depend when nixos-rebuild switch
<tokudan>
rubiest, what exactly is failing?
dywedir has joined #nixos
wigust has joined #nixos
ebzzry has quit [(Ping timeout: 248 seconds)]
spear2 has left #nixos []
<rubiest>
cannot build derivation for nvidia
rubiest has quit [(Quit: Leaving)]
<tokudan>
then that's what needs to be fixed, or you need to change your configuration to exclude that derivation
<Unode>
Hi all, is there any md5 checker that can run in parallel in nixpkgs? I read md5deep could be an option but it's not available.
reinzelmann has quit [(Quit: Leaving)]
technoslave has joined #nixos
<tokudan>
shouldn't be hard to write a derivation for them, it seems to be standard ./configure; make; make install which is usually very easy to put into a derivation
<tokudan>
give me a sec
newhoggy has joined #nixos
wigust has quit [(Remote host closed the connection)]
wigust has joined #nixos
eacameron has joined #nixos
pxc has joined #nixos
<tokudan>
well, apparently it's not, it's missing the bootstrap
goibhniu1 has joined #nixos
goibhniu has quit [(Ping timeout: 255 seconds)]
pxc has quit [(Ping timeout: 240 seconds)]
Rotaerk has quit [(Quit: Leaving)]
<technoslave>
hi, I'd like to package https://github.com/erebe/greenclip for nixos (hopefully to upstream it, otherwise for myself). My problem is that it links against a fork of the haskell "Clipboard" library in its subfolder "lib/". As it's a fork, I don't think I should package it but I don't know how to go about it. Also cabal2nix generate a MkDerivation { pname="greenclip"; executableHaskellDepends= [..]; } whereas examples on the net sh
<technoslave>
stdenv.mkDerivation {name="haskellPkgName"}. Which one is the best one ?
ylwghst has joined #nixos
ylwghst has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to staging: https://git.io/v7Dqn
<NixOS_GitHub>
nixpkgs/staging c3e8d49 Robin Gloster: clerk: fix wrapProgram call
justan0theruser has quit [(Ping timeout: 260 seconds)]
technoslave has quit [(Ping timeout: 260 seconds)]
MercurialAlchemi has quit [(Ping timeout: 260 seconds)]
erasmas has joined #nixos
tg has quit [(Ping timeout: 255 seconds)]
newhoggy has joined #nixos
tvon has joined #nixos
digitalmentat has joined #nixos
<Unode>
tokudan: thanks!
tvon has quit [(Client Quit)]
newhoggy has quit [(Ping timeout: 240 seconds)]
Phillemann has joined #nixos
<Phillemann>
I'd like to use the official nixpkgs repository (nixos-unstable channel), but with a derivation of my own added (globally, not per-user). Is that possible?
pxc has joined #nixos
<tokudan>
Phillemann, if you want to add something to environment.systemPackages, then you can just add "(callPackage ./pkgs/mbuffer/default.nix {})" in there to include another derivation
<Phillemann>
Ahh, that's not a bad solution, thanks!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to staging: https://git.io/v7DsH
<NixOS_GitHub>
nixpkgs/staging b44bed5 Franz Pletz: curl: 7.54.1 -> 7.55.0...
<disasm>
gchristensen: so these nix pills, are we copying them as-is for a first phase and then going through and updating them to match the current state of things (for example pp-aterm no longer existing) in a later phase?
newhoggy has joined #nixos
rpifan has joined #nixos
<grahamc>
Probably a good idea.
<grahamc>
I had to take sudden vacation and am away from NixOS until tomorrow at the soonest. We'll talk and work on it then.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 3 new commits to release-17.03: https://git.io/v7DZZ
<NixOS_GitHub>
nixpkgs/release-17.03 771e06e Tim Steinbach: curl: 7.53.1 -> 7.54.0...
<NixOS_GitHub>
nixpkgs/release-17.03 713d4b7 Tim Steinbach: curl: 7.54.0 -> 7.54.1...
<NixOS_GitHub>
nixpkgs/release-17.03 a9c4ad1 Franz Pletz: curl: 7.54.1 -> 7.55.0...
NixOS_GitHub has left #nixos []
<rexel>
hi, does anyone know how to fix errors like : gbm: failed to open any driver (search paths /run/opengl-driver/lib/dri) gbm: Last dlopen error: /run/opengl-driver/lib/dri/radeonsi_dri.so: cannot open shared object file: No such file or directory
<rexel>
this is when I try to run wayland compositors
<avn>
rexel: does that paths (/run/opengl-driver/lib/dri) have stuff inside?
<Sonarpulse>
I saw there are 3 chromium PRs
<Sonarpulse>
one failed so you reverted, OK to merge that?
newhoggy has quit [(Ping timeout: 276 seconds)]
<rexel>
avn: there is no opengl-driver folder
<disasm>
grahamc: cool, I've gone through the pills twice now, I think I'm finally starting to understand how things work under the hood a little better :)
<avn>
curious
<avn>
rexel: and it not appear, after rebuild/switch?
freusque has quit [(Ping timeout: 240 seconds)]
<Sonarpulse>
globin: you there?
<rexel>
avn: no, it is still missing. should it automatically be installed with "sway" in the packages section?
<rexel>
or "weston"
mjhoy has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
<rexel>
it works when I reenable xserver
newhoggy has quit [(Ping timeout: 276 seconds)]
Phillemann has left #nixos ["WeeChat 1.9"]
newhoggy has joined #nixos
yegortimoshenko has quit [(Remote host closed the connection)]
<Unode>
Hi all, Using nix on a non-nixos system. All software using SSL (https) is failing on certificate errors. Is there any way to configure binaries to use nix's own ca-certificate instead of the system's /etc/ssl/certs ?
<Ankhers>
gchristensen: Have you had a chance to get started on the pills?
newhoggy has quit [(Ping timeout: 255 seconds)]
<grahamc>
No sudden personal leave.
digitalmentat has quit [(Quit: Leaving)]
snikkers has quit [(Ping timeout: 248 seconds)]
<Ankhers>
I am sorry to hear that. I hope you are okay.
<joepie91_to_go_>
nixos-install is non-destructive, right? in the sense that if I run it on an existing NixOS partition, it won't wipe out /home or other stateful data
<joepie91_to_go_>
(trying to repair my bootloader)
mudri has quit [(Ping timeout: 255 seconds)]
<joepie91_to_go_>
(UEFI update gone awry)
<disasm>
joepie91_to_go_: correct, I've done that a few times when I was getting started :)
<joepie91_to_go_>
copumpkin: right, that's about NPM 5 support, not Node 8 support
<joepie91_to_go_>
NPM and Node are separate things
<copumpkin>
I dunno, everyone seems to describe it in terms of supporting 8 :)
<joepie91_to_go_>
and there's no reason why you couldn't use a standard node2nix build with a Node 8 package, it's just that node2nix presumably won't support package lockfiles yet
<copumpkin>
I don't know it well enough
<joepie91_to_go_>
yeah, but that's because a lot of people don't understand the distinction between Node and NPM :)
<joepie91_to_go_>
Node itself has had the exact same module system since... 0.8?
<joepie91_to_go_>
even the deduplication change was just an NPM thing really
<joepie91_to_go_>
(one exception: symlink behaviour varies between versions)
<copumpkin>
you sound like the perfect person to make this work!! :D
ylwghst_ has quit [(Quit: Lost terminal)]
ylwghst has quit [(Quit: Lost terminal)]
<joepie91_to_go_>
copumpkin: right now I have a desktop that crashes every half hour or so
<joepie91_to_go_>
lol
<copumpkin>
pfft
<copumpkin>
shouldn't take you more than half an hour
<adisbladis>
joepie91_to_go_: Npm has had some pretty big changes lately iirc
<joepie91_to_go_>
copumpkin: anyhow, basically, if you specify the right node package (node 8), then it'll work fine from a package.json or shrinkwrap(?)
<joepie91_to_go_>
out of the box
<joepie91_to_go_>
but if you want lockfile support, node2nix needs to be modified
<joepie91_to_go_>
adisbladis: yes, NPM, not Node
<joepie91_to_go_>
adisbladis: NPM just drops files in a place where Node expects them
<copumpkin>
yeah I think the issue is the lockfiles
<joepie91_to_go_>
Node doesn't at any point interact directly with NPM nor is it dependent on how NPM manages packages
newhoggy has joined #nixos
<joepie91_to_go_>
you could completely remove NPM from a system and Node would still work fine, you just lose the NPM commands :P
<adisbladis>
joepie91_to_go_: I actually install node without npm in production and let the build system worry about packaging the deps
<joepie91_to_go_>
right
<joepie91_to_go_>
this is not uncommon in eg. embedded setups
<copumpkin>
a nix webpack builder?
<joepie91_to_go_>
nix webpack builder...?
* joepie91_to_go_
skeptical glance
<anelson->
how do I get flash player working with chromium and/or firefox?
<copumpkin>
joepie91_to_go_: a nix function/builder that takes a set of packages and spits out a webpack'd bundle?
<anelson->
clever: because I want to watch hbonow :) if it makes a difference
digitus has joined #nixos
* joepie91_to_go_
casts an angry glare at Adobe
<joepie91_to_go_>
copumpkin: that seems out of scope
<copumpkin>
what's frustrating is that they have an iOS HBO app
<copumpkin>
so they clearly don't need flash
<copumpkin>
joepie91_to_go_: out of what scope?
<joepie91_to_go_>
copumpkin: Webpack is specifically for building bundles for execution in non-CommonJS environments like browsers; it's more like a compiler than a package manager
<clever>
anelson-: and your sure it needs flash?, the last person that i helped wanted it for netflix (which doesnt use flash)
<joepie91_to_go_>
(in fact, Webpack doesn't do any package management whatsoever)
newhoggy has quit [(Ping timeout: 240 seconds)]
<copumpkin>
joepie91_to_go_: yeah, you could say the same thing about all the disk image building machinery in nixpkgs
<anelson->
clever: yes, it's telling me it requires flash
<joepie91_to_go_>
copumpkin: doesn't that mostly shell out to external tools anyway?
<copumpkin>
all of nixpkgs? yeah
<copumpkin>
:)
<joepie91_to_go_>
anelson-: have you tried making your browser pretend you're an iPad?
<joepie91_to_go_>
this works more often than it really should :)
<clever>
anelson-: chromium.enablePepperFlash = true; inside the nixpkgs config is one option
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 2 new commits to master: https://git.io/v7DwH
<NixOS_GitHub>
nix/master f76e85d Eelco Dolstra: Start of 1.12 release notes
NixOS_GitHub has left #nixos []
<anelson->
can it be built from nixpkgs? I'd rather not drop it in my nixos config
<anelson->
joepie91_to_go_: how does one do that
<clever>
anelson-: depends on if your installing chromium in systemPackages or nix-env
<joepie91_to_go_>
anelson-: install a user agent switching extension for your browser of choice
<joepie91_to_go_>
it usually has an ipad preset
<LnL>
Myrl-saki: sorry for the delay, I mean nix-env or the nixos systemPackages
<copumpkin>
niksnut: TIL about nix-build --hash, which I've wanted before :)
<copumpkin>
niksnut: but I wanted it inside the nix language... :O
<copumpkin>
niksnut: I actually have a somewhat legit use case for that, too :)
endformationage has joined #nixos
zeus_ has joined #nixos
<anelson->
joepie91_to_go_: now it's asking me to download the ipad app :P
<joepie91_to_go_>
hah
<joepie91_to_go_>
well, it was worth a try :)
<joepie91_to_go_>
copumpkin: 'somewhat legit' :)
<copumpkin>
:D
<anelson->
joepie91_to_go_: yeah that's a good trick to know :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] abnerlee opened pull request #28110: correct the sha265 of typora after package update (master...patch-2) https://git.io/v7Dra
NixOS_GitHub has left #nixos []
<copumpkin>
joepie91_to_go_: it's for testing new/changed stdenv bootstrap tools
<copumpkin>
which is currently a pretty miserable process
<Myrl-saki>
LnL: Latter.
<joepie91_to_go_>
ah, right :P
metaphysician has joined #nixos
Ivanych has quit [(Ping timeout: 258 seconds)]
<LnL>
Myrl-saki: something like this probably works nix-copy-closure --to foo /run/current-system/sw
<Myrl-saki>
LnL: Oh cool.
newhoggy has joined #nixos
<Myrl-saki>
LnL: Is there a way to bypass the lacking signature?
<clever>
Myrl-saki: --to root@foo
<clever>
root doesnt check signatures
<Myrl-saki>
Oh right.
<LnL>
yeah, you'd need to use root
<clever>
and if root ssh is blocked, sudo nix-copy-closure --from bar
<clever>
move in the same direction, but initiate at the other end, still as root on the receiver
hellrazor has quit [(Quit: WeeChat 1.9)]
newhoggy has quit [(Ping timeout: 248 seconds)]
<anelson->
hmmmm I build chromium with pepper flash enabled, and I can see it in the references to the built object, but I still got "plugin not supported" :(
cpennington has quit [(Ping timeout: 255 seconds)]
<clever>
anelson-: did you fully quit chromium then re-launch it?
<anelson->
hmm, I didn't quit my existing instances
<anelson->
I'll try that
<Myrl-saki>
On second thought, I should have nix-copy-closure'd before nuking my nixpkgs.
<clever>
when you run the new chromium, it contacts the old one and spawns a new window
<clever>
anelson-: also look in chrome://components/
newhoggy has joined #nixos
mudri has quit [(Ping timeout: 246 seconds)]
<anelson->
clever: it doesn't appear in that list. when I restarted fully hbo stopped complaining about no flash plugin, but it's just spinning/loading forever now
<anelson->
eh this is probably more trouble than it's worth
<clever>
ive found that any attempts at drm just drive piracy up
<clever>
i cant even help you diagnose the problem, because they say "no dirty canadians allowed" :P
<anelson->
hahaha
<anelson->
yeah I can watch on my mac so that's probably enough
<anelson->
kind of lame but I don't have the patience to debug this
newhoggy has quit [(Ping timeout: 240 seconds)]
<joepie91_to_go_>
anelson-: you need to enable Flash from the icon right next to the address bar
<joepie91_to_go_>
Chromium default-disables Flash nowadays in many (most/all?) cases
<joepie91_to_go_>
even if installed
<joepie91_to_go_>
actually, technically it's the icon *in* the address bar
<joepie91_to_go_>
:p
<joepie91_to_go_>
the lock/page icon
ertes-w has quit [(Read error: Connection reset by peer)]
<joepie91_to_go_>
it's probably set to Ask (default), and because a lot of sites use semi-hidden Flash elements, you won't see the prompt
Wizek__ has joined #nixos
ertes-w has joined #nixos
newhoggy has joined #nixos
cpennington has joined #nixos
Wizek_ has quit [(Ping timeout: 255 seconds)]
nmayhew has joined #nixos
Wizek_ has joined #nixos
dpino has quit [(Ping timeout: 240 seconds)]
Wizek__ has quit [(Ping timeout: 276 seconds)]
newhoggy has quit [(Ping timeout: 240 seconds)]
<nmayhew>
I wan't to set services.locate.prunePaths in my nixos configuration, but don't want to have to repeat the default list of paths. Is there any way to reference the default value so I can append to it?
<nmayhew>
I've tried options.services.locate.prunePaths.default but options isn't in scope.
<nmayhew>
I've also tried pkgs.nixos.options.services.locate.prunePaths.default but that doesn't seem to work either.
rexel has quit [(Ping timeout: 260 seconds)]
FRidh has joined #nixos
pxc has quit [(Read error: Connection reset by peer)]
<shapr>
taktoa: at first glance, those look more like "how" instead of "why". Is the big picture more likely found in the PhD thesis?
digitus has joined #nixos
<shapr>
joepie91: that looks good, thanks
<taktoa>
shapr: yes, I highly recommend his thesis
ixxie has quit [(Ping timeout: 248 seconds)]
ixxie has joined #nixos
* taktoa
just noticed that you retweeted my tweet about eelco's thesis
<shapr>
taktoa: ok who's stalking who now? ;-)
<shapr>
cocreature: sounds like I'm actually stalking taktoa!
<cocreature>
can we make a circle where everybody is stalking each other transitively?
<shapr>
works for me!
<clever>
shapr: what software where you porting to the C64's?
<shapr>
clever: ah that was a joke :-)
<clever>
ah, lol
<shapr>
I actually bought the C64 so I could go back to the first time I created music on a computer.
<shapr>
taktoa: yes, your tweet finally pushed me over the edge.. I got about ten pages into the thesis and wondered why I've waited so long to jump into NixOS
joepie91_to_go_ has quit [(Ping timeout: 260 seconds)]
<shapr>
acowley_away has tried to drag me in a bunch of times
<clever>
shapr: i still have the old white c64 i had when i was a kid
<shapr>
I've also heard that steam on linux doesn't work in NixOS
<taktoa>
shapr: nah, it works surprisingly well
<shapr>
clever: I've never seen the white c64
<clever>
shapr: i have gotten steam to run before, but my GPU drivers dont play well on the desktop
<shapr>
that's another good question, nvidia binary drivers in NixOS?
<shapr>
How does NixOS relate to distro? I'm still confused on that part
newhoggy has joined #nixos
<clever>
shapr: nixos is basically an entire linux distro, written as a single massive nix package
<clever>
shapr: the nixos-rebuild command will compile the entire system, based on the current nixos configuration.nix file
<taktoa>
shapr: well, to be more precise, it's a giant lambda that takes a configuration and turns it into a nix package
<shapr>
ok, so Nix can be an "application" in a linux distro, but NixOS is effectively a distro, right?
<taktoa>
yes
<shapr>
ok, cool!
<shapr>
I speak Haskell, yay lambdas!
<taktoa>
yeah, Nix was originally implemented in Haskell (now C++ for bootstrapping reasons) and is also lazy and pure
<shapr>
whoa cool
<shapr>
Is this the primary forum for nix questions? Is there also a stackexchange site or other forums?
<taktoa>
yeah, Nix was originally implemented in Haskell (now C++ for bootstrapping reasons) and is also lazy and pure
<taktoa>
oops
<shapr>
Is nixos support limited by arch?
<taktoa>
this is the best place I know of
<shapr>
that is, will it run on my arm systems as well as my x86 systems?
ison111 has joined #nixos
<taktoa>
yes, though with some caveats
tdc_ has quit [(Quit: Leaving)]
<taktoa>
nix is also the best solution by far for cross-compilation I've ever seen
<clever>
i have ran nixos on an armv6 raspberry pi before
<shapr>
ok, that's enough to get me started
<shapr>
I'm sure I'll spend a bunch of hours here this weekend
newhoggy has quit [(Ping timeout: 240 seconds)]
<taktoa>
shapr: I actually got clever into nix, and probably about 4 months into using it he created an SD card that could boot into NixOS when inserted into a raspberry pi, that would ALSO work/boot when inserted into an x86 box
<shapr>
wow, how'd you do that?!
<shapr>
tell me there's a blog post?
<clever>
shapr: basically, the hashes in /nix/store/<hash>-foo include the arch they are built for
<clever>
shapr: so arm and x86 binaries of things can co-exist within /nix/store
swoorup has quit [(Ping timeout: 240 seconds)]
swoorup has joined #nixos
<shapr>
oh wow
<clever>
shapr: and when nixos is booting, everything starts at a root point, like /nix/store/<hash>-nixos-<hostname>-<version>
<clever>
but that root point is different for arm and x86 (and also different for every build with new config)
<clever>
and because the raspberry pi and x86 use different bootloaders
<clever>
they have different bootloader config, pointing to different builds of nixos, and different kernels
<clever>
so they always refer to different files, and the names never conflict, so you can just merge them
newhoggy has joined #nixos
<clever>
the more complex part, is making sure the raspberry pi doesnt delete the x86 stuff, because nothing says its currently needed
<shapr>
huh, neat
zeus_ has quit [(Read error: Connection reset by peer)]
zeus_ has joined #nixos
<bennofs>
clever: does it also automatically cross-compile when you change config on x86 and nixos-rebuild, so systems stay synced? :D
<Lisanna>
Ugh, this is such a simple question but for the life of me I can't figure it out... if I run nix-shell -p <package>, how do I get the actual paths to where that package was installed? Like if I had done ${package} in a Nix expression
<clever>
Lisanna: nix-build '<nixpkgs>' -A foo -o foo
Mateon2 has quit [(Remote host closed the connection)]
<Lisanna>
nix-build?
<clever>
yes
<ylwghst>
clever: what does -o?
aristid2_ has quit [(Quit: Connection closed for inactivity)]
newhoggy has joined #nixos
<clever>
ylwghst: that tells it to create a symlink called foo, pointing to the result
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 2 new commits to master: https://git.io/v7Dds
<NixOS_GitHub>
nixpkgs/master 0f5cbe4 Franz Pletz: subversion18: 1.8.17 -> 1.8.18 for CVE-2017-9800...
<NixOS_GitHub>
nixpkgs/master abd837f Franz Pletz: subversion19: 1.9.5 -> 1.9.6 for CVE-2017-9800...
NixOS_GitHub has left #nixos []
flyingleafe has joined #nixos
<flyingleafe>
hey there, I have a problem with `stack runghc` and `nix-shell`.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/v7Ddy
<NixOS_GitHub>
nixpkgs/staging 3be89a6 Vladimír Čunát: libsoup: security 2.56.0 -> 2.56.1...
NixOS_GitHub has left #nixos []
newhoggy has quit [(Ping timeout: 260 seconds)]
<ylwghst>
clever: whe is this useful?
<ylwghst>
when*
<taktoa>
ylwghst: it just makes the symlink named "foo" instead of the default name "result"
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 2 new commits to release-17.03: https://git.io/v7Ddh
<NixOS_GitHub>
nixpkgs/release-17.03 d5de850 Franz Pletz: subversion18: 1.8.17 -> 1.8.18 for CVE-2017-9800...
<NixOS_GitHub>
nixpkgs/release-17.03 6cd9a84 Franz Pletz: subversion19: 1.9.5 -> 1.9.6 for CVE-2017-9800...
NixOS_GitHub has left #nixos []
yegortimoshenko has joined #nixos
<yegortimoshenko>
hi! how do i copy a file to a nix-store? i could have used nix-prefetch-url, but now that i have the file in question sitting on my hard drive, i don't want to redownload Mathematica all over again (it's 4GB)... thanks!
<yegortimoshenko>
(btw, nix-prefetch-url doesn't seem to support file:// urls)
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to release-17.03: https://git.io/v7DFm
<NixOS_GitHub>
nixpkgs/release-17.03 029341b Vladimír Čunát: libsoup: security 2.56.0 -> 2.56.1...
NixOS_GitHub has left #nixos []
<yegortimoshenko>
clever: thanks!
newhoggy has joined #nixos
wigust has quit [(Ping timeout: 240 seconds)]
<flyingleafe>
The problem is the following. I have some Haskell script `Script.hs`, and it's run by `stack` using `#!/usr/bin/env stack` and full stack command as a comment below in the beginning of a file. Also there's `shell.nix` file, which provides necessary dependencies and env variables. But unfortunately when I run this script inside of `nix-shell` launched with env described in `shell.nix`, `stack` process doesn't
<flyingleafe>
see build dependencies and fails because it cannot find necessary libs.
<clever>
flyingleafe: have you looked at the documentation for stack --nix?
<flyingleafe>
I tried to circumvent this problem by _not_ using `nix-shell` and providing `--nix-packages <packages>` right in launch command, this way it succeeds to be built, but LANG variable which I need isn't set up, which prevents script from working
<flyingleafe>
Using `--nix-shell-file <file>` doesn't work with relative path to file (error: Cannot determine project root) and gives the same result as variant with `--nix-packages` if provided absolute path to `shell.nix`
<flyingleafe>
My `~/.stack/config.yaml` has `nix: enable: true` by default
<clever>
dont know then
newhoggy has quit [(Ping timeout: 260 seconds)]
<flyingleafe>
and friend of mine who have same versions of stack and nixos reports that everything works for him =\
<flyingleafe>
clever: maybe you can advice how can I clean pre-build dependencies for `stack runghc`? I suspect that they has been built without properly set up LANG (when I used `--nix-packages`), and that breaks everything
yegortimoshenko has quit [(Ping timeout: 260 seconds)]
<clever>
flyingleafe: it might be simpler to just run cabal2nix and nix-build, and skip the stack layer
newhoggy has joined #nixos
<flyingleafe>
clever: thanks, I'll give it a try
<clever>
flyingleafe: which project are you trying to build with stack?, i could have a look at its files and see if its doing anything strange
<flyingleafe>
clever: I'm not trying to _build_, actually, I just try to run `stack runghc`. Anyway, here it is: https://github.com/serokell/yt-utilities (you need file `Export.hs`)
yegortimoshenko has joined #nixos
<clever>
flyingleafe: ahh, that looks like a variant of runhaskell
<clever>
flyingleafe: let me see...
newhoggy has quit [(Ping timeout: 255 seconds)]
ylwghst has quit [(Ping timeout: 240 seconds)]
<clever>
flyingleafe: ah, no cabal file, i see why the normal tools dont work right
<flyingleafe>
clever: yeah, all dependencies are specified as `--package` args in stack comment in the beginning of `Export.hs`
<flyingleafe>
I'd like to make it a common stack project (with stack.yaml and .cabal), but this tool is already used by others in this particular fashion
<clever>
flyingleafe: testing a fix here...
newhoggy has joined #nixos
Nyctelos is now known as Nycatelos
silver_hook has quit [(Ping timeout: 276 seconds)]
<mbrgm>
does someone have a working configuration snippet for systemd.automounts?
newhoggy has joined #nixos
Havvy has joined #nixos
newhoggy has quit [(Ping timeout: 255 seconds)]
swoorup has quit [(Read error: Connection reset by peer)]
swoorup has joined #nixos
newhoggy has joined #nixos
technoslave has joined #nixos
<technoslave>
hi, I would like to propose a PR for a haskell package that is not on hackage but I don't know where to put it in the nixpkgs file hierarchy (I already have a working default.nix) ? It's a clipboard history program
<_rvl>
sorry this is rather uninspired but pkgs/applications/misc/myclipboardapp/default.nix ?
newhoggy has quit [(Ping timeout: 260 seconds)]
<_rvl>
clipit "Lightweight GTK+ Clipboard Manager" is there
ison111 has quit [(Ping timeout: 260 seconds)]
swoorup has quit [(Ping timeout: 240 seconds)]
<technoslave>
_rvl: yep seems like it, I wonder if there is any extra step though as haskell programs are not in the upper scope (i.e., they are visible in nixos.haskellPackages)
<Lisanna>
has anyone else had any trouble with the dockerTools? I'm trying to build an image but it gets stuck forever on building one of the dependent derivations when I use dockerTools.pullImage
<clever>
rodarmor: i recently read the source of nix-env, and found that you can do things like this, now nix-env -iA foo.hello grabs from a checkout in that dir
silver_hook has quit [(Ping timeout: 260 seconds)]
<clever>
rodarmor: you would also need to alter $NIX_PATH, and then just pull on a regular basis until the system stops booting :P
<rodarmor>
clever: Even if I'm tracking github master, assuming that grub isn't hosed, can still roll back?
tg has joined #nixos
<clever>
rodarmor: yeah
<clever>
rodarmor: but nixpkgs-unstable had a bug about a year ago, that hosed grub.conf
newhoggy has joined #nixos
<rodarmor>
clever: I'm on unstable now, so caution has already been thrown to the wind
<clever>
nixos-unstable has proper testing to prevent such major breakage
<clever>
nixpkgs-unstable skips that testing, because its not meant for use on nixos machines
<rodarmor>
clever: Ah, gotcha
<Lisanna>
...unfortunately dockerTools.pullImage does not support proxies ):
newhoggy has quit [(Remote host closed the connection)]
hiratara has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos []
Myrl-saki has joined #nixos
justanotheruser has joined #nixos
phreedom has joined #nixos
silver_hook has quit [(Ping timeout: 255 seconds)]
ebzzry has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] copumpkin pushed 1 new commit to master: https://git.io/v7yGQ
<NixOS_GitHub>
nixpkgs/master 5f372ef Dan Peebles: amazon-image: support VPC/VHD as an output format for the builder
NixOS_GitHub has left #nixos []
willprice has quit [(Ping timeout: 255 seconds)]
newhoggy has joined #nixos
Myrl-saki has quit [(Quit: WeeChat 1.9)]
dbmikus has quit [(Ping timeout: 240 seconds)]
Wizek has joined #nixos
phdoerfler has joined #nixos
<phdoerfler>
Hey! I'm new to nixos and would like to create a file /etc/dovecot/passwd which is of a special format and my imap server dovecot will do the auth with that file. How do I do that declaratively?
Ridout has quit [(Quit: Lost terminal)]
<tilpner>
E.g. environment.etc = { "dovecot/passwd".text = ''something''; }
<tilpner>
But there seems to be a dovecot module, not sure if it handles this
<tilpner>
s/not sure/have no idea/
Ridout has joined #nixos
<phdoerfler>
tilpner: thanks! And no it doesn't, not as far as I can see
<Infinisil>
phdoerfler: Passwords are generally a bad idea to put into configuration.nix, they go into the nix store which is readable by anybody
<phdoerfler>
oh
<phdoerfler>
what do I do then?
<Infinisil>
phdoerfler: Set it up imperatively, by just writing to this file
<phdoerfler>
hmmhm
<Infinisil>
There is an issue regarding private nix, but it isn't implemented yet
<Infinisil>
phdoerfler: Actually I think hashed passwords might be sucure
<Infinisil>
If correctly done
<phdoerfler>
ok thanks for the insight
<phdoerfler>
ideally I would want dovecot to just somehow use the system auth
<Infinisil>
phdoerfler: No idea if dovecot supports that
<phdoerfler>
it supports PAM I believe
<Infinisil>
I think PAM is the system authentication thing
<Infinisil>
Ah
<phdoerfler>
but I fail to get it working
ennui has quit [(Ping timeout: 240 seconds)]
<Infinisil>
I also have no clue about PAM
<Infinisil>
s/also//
<phdoerfler>
regarding PAM, this is what dovecot gives me in its log when I try to log in as "nixos": https://nopaste.me/view/413248ab
<phdoerfler>
the "user unknown" part worries me
<phdoerfler>
but googling that revealed nothing of interest
digitus has quit [(Quit: digitus)]
justanotheruser has quit [(Ping timeout: 260 seconds)]
<phdoerfler>
can I get nixos-rebuild switch to restart the affected containers, too?
<Infinisil>
phdoerfler: Not sure, does the nixos-container command work?
erasmas has quit [(Quit: leaving)]
<phdoerfler>
yes
<phdoerfler>
but I am lazy
<Infinisil>
then nixos-container stop && nixos-container start
<phdoerfler>
nixos-container update does that I believe
<Infinisil>
Ah
<Infinisil>
The --help page is not really helpful on nixos-container isnt' it
<rodarmor>
I was having some trouble with dropbox being stuck updating itself. I think the issue was that it was trying to update itself, but the downloaded update wouldn't work. Does this happen every time the version of dropbox in nixpkgs is stale, or is there something wrong with my system?
<Infinisil>
nad no man page either
<rodarmor>
The solution that I came up with was adding "0.0.0.0 clientupdates.dropboxstatic.com" to /etc/hosts. which seems, uhh, suboptimal :P
<Infinisil>
rodarmor: What a nasty workaround lol
<Infinisil>
I think that's pretty normal with apps that try to update themselves
ison111 has quit [(Quit: WeeChat 1.7.1)]
<rodarmor>
Infinisil: I know, right? Especially gross because that's where nix itself fetches dropbox, so I had to build dropbox but not start it, add the line, and then start it, and then if I need to install an upgrade, I'll have to remove the line and repeat the process
<Infinisil>
rodarmor: Oh damn
<rodarmor>
Infinisil: Maybe there's a better way to stop it from auto-updating? There's no official way, sadly.
<Infinisil>
rodarmor: You might be able to create a separate network namespace for dropbox with `unshare -n`, read `man unshare`
<clever>
Infinisil: network namespaces only affect the listening ports and the ip layer
<clever>
Infinisil: dns is entirely seperate
<phdoerfler>
is there a site with nixos example .nix files?
<phdoerfler>
for newbs like myself
<Infinisil>
clever: Ahh
<phdoerfler>
there's no way I am the first human to set up a mailserver with nixos
<clever>
Infinisil: for dns, there are 2 things i can think of, #1 glibc may read /etc/hosts directly
<clever>
Infinisil: #2, nscd acts as a caching resolver, caching real dns and /etc/hosts lookups
<clever>
Infinisil: so if dropbox can contact nscd, it will use nscd's view of the dns world
<rodarmor>
It might be worth trying to interrupt the auto-update process in a different way. For example, if it tries to download the update somewhere, one might be able to set privs such that it can't write there.
<clever>
rodarmor: it does the right thing, a randomly named folder in /tmp
<rodarmor>
clever: fooey
<Infinisil>
Heh
<rodarmor>
clever: Hmm, but then it must move it into place after that
<clever>
rodarmor: it runs a dynamic elf in /tmp, that acts as an update installer, i believe
<clever>
which installs to somewhere in ~/.dropbox
<Infinisil>
Maybe unshare -mr, then bind mount a new /etc/hosts and hoping it works?
<clever>
Infinisil: nscd will let it bypass that
<Infinisil>
that's why we hope
<Infinisil>
ah
<rodarmor>
Hmm, guess we've got to break out the big guns: We break into dropbox HQ, kidnap Guido, and hold him hostage until they add a config option to disable auto-updates.
<Infinisil>
rodarmor: ++
endformationage has quit [(Quit: WeeChat 1.9)]
<Infinisil>
Damn, there seriously is no option to turn that off?
ambro718 has quit [(Ping timeout: 240 seconds)]
<Infinisil>
phdoerfler: Examples are kind of lacking tbh
<Infinisil>
phdoerfler: Look out for blogs/github repos
<phdoerfler>
that's what I did
<phdoerfler>
and that's how I got that far in the first place
<rodarmor>
Infinisil: Yeah, I did a bit of googling and couldn't find one.
<clever>
rodarmor: what about just running dropbox unpatched under a fhs chroot, like steam, lol
<rodarmor>
clever: Oh, that's not a bad idea.
bennofs has quit [(Ping timeout: 255 seconds)]
dpino has quit [(Ping timeout: 260 seconds)]
<rodarmor>
clever: Is there documentation somewhere about how to do that?
<Infinisil>
of course not! :)
<clever>
rodarmor: its not well documented, but you can check how steam does it
<Infinisil>
Often times the source is the best documentation, unfortunately
mkoenig has joined #nixos
ebzzry has quit [(Ping timeout: 240 seconds)]
<rodarmor>
Guess I'll dive in
ebzzry has joined #nixos
Wizek_ has quit [(Ping timeout: 276 seconds)]
<Infinisil>
Did you know: With DigitalOceans $5 droplet, you could download YouTube videos in 720p and stream them to Twitch continuously for 4 days a week?
<tilpner>
Oh, did they finally implement bandwidth limits?
phinxy has joined #nixos
<Infinisil>
tilpner: The limit is the monthly datasize of 1TB
<tilpner>
Yes, but that was just a "we might enforce this someday" limit
<tilpner>
for... years
<Infinisil>
tilpner: Heh, well if that does't apply then it's fully continuous
<Infinisil>
except that twitch only allows 48 hour streams