<samueldr>
at the bottom of the computed tab in the elements pane of the inspector
<neonfuz>
also I don't think I have audio for anki?
<neonfuz>
I haven't investigated much yet
<neonfuz>
but is there a setting I need to enable to have alsa apps work if I'm using pulse?
<manveru>
usually not
<manveru>
you might wanna try restarting X for the fonts too
<neonfuz>
ran fc-cache -r -f then restarted firefox, no change
fragamus has quit [(Ping timeout: 255 seconds)]
<manveru>
because the font list is added to the xorg.conf
<manveru>
but not 100% sure if that's just the standard fonts or also the additional ones
NightTrain has joined #nixos
<manveru>
ah no
jvtbatma1 has joined #nixos
<manveru>
they are put into /etc/fonts/fonts.conf
<manveru>
at the end of the file
<neonfuz>
should order matter?
<neonfuz>
lik, the order of fonts.fonts
<manveru>
probably
jb55 has quit [(Ping timeout: 276 seconds)]
<neonfuz>
hmm, maybe my order is bad
<neonfuz>
that seems likely
<manveru>
i really don't know much about this :)
<neonfuz>
yeah...
<manveru>
just reading the nixos source for how it handles this config
<neonfuz>
I remember a long time ago on a different distro configuring characters to always show up using a japanese font because I was learning japanese not chinese, and so that japanese characters didn't show up as simplified chinese ones
jvtbatman has quit [(Ping timeout: 248 seconds)]
<neonfuz>
but I don't even remember how I did that
<neonfuz>
this is during the font-config step when I did a nixos-rebuild switch after changing fonts.fonts
<neonfuz>
that's all one line
<neonfuz>
what does lucidatypewriter-100dpi have to do with noto-fonts-cjk?
<neonfuz>
I think this might be a bug?
<neonfuz>
/nix/store/i48i0r4j4f0fbg1hch8clwjmjslrm3x2-font-bh-lucidatypewriter-100dpi-1.0.3 is actually the first font listed in the generated fc-00-nixos-cache.conf file
astronavt has quit [(Ping timeout: 240 seconds)]
<neonfuz>
which makes me suspicious that a random later font is throwing an error referencing it
jvtbatma1 has quit [(Quit: Lost terminal)]
cybrian has quit [(Read error: Connection reset by peer)]
MP2E has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to release-17.09: https://git.io/vbm1V
<NixOS_GitHub>
nixpkgs/release-17.09 7ef982a Bart Brouns: evopedia: patch the desktop file...
NixOS_GitHub has left #nixos []
ris has quit [(Ping timeout: 252 seconds)]
grenade has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vbm1P
<NixOS_GitHub>
nixpkgs/master f2d8970 Bastian Köcher: digikam: Fix empty album problem with Qt 5.9.3
<mbock>
does anyone have a suggestion how to listen on github-webhook-requests on a nixos server? I'd declare a service that runs a tool like 'https://github.com/melonmanchan/simple-github-webhook', but maybe you guys know some better way to do so..?
<gchristensen>
seems reasonable
isHavvy has quit [(Read error: Connection reset by peer)]
<gchristensen>
npm2nix would probably be useful
Havvy has joined #nixos
ertes has joined #nixos
danl1240 has quit [(Quit: My iMac has gone to sleep. ZZZzzz…)]
gchristensen is now known as [^__^]
[^__^] is now known as gchristensen
gchristensen is now known as {^_^}
jb55 has joined #nixos
{^_^} is now known as gchristensene
gchristensene is now known as gchristensen
astronavt has joined #nixos
<mbock>
yeah, that was the plan.. Oh, I'm just seeing that npm2nix was replaced by node2nix...
<gchristensen>
oh right
acarrico has joined #nixos
<Havvy>
Is there a cratesio2nix?
nix-gsc-io`bot has joined #nixos
<gchristensen>
there is work to a WIP project for that
<amfl>
I can enable `environment.systemPackages.retroarch` and it all works if I download cores from within retroarch, but it looks like I can define my cores with a nix expression.
laggy_wifi_ has quit [(Client Quit)]
jb55 has quit [(Ping timeout: 248 seconds)]
rogue_koder has quit [(Ping timeout: 240 seconds)]
_Marek_ has joined #nixos
acarrico has quit [(Read error: Connection reset by peer)]
slack1256 has joined #nixos
<slack1256>
what options to make nix-build forcefully rebuild a derivation? (from source code, not binary cache) ?
astronavt has quit [(Remote host closed the connection)]
<gchristensen>
nix-build --check
<duncan^>
nnnnnn/bu29
<gchristensen>
yeah duncan^?
<duncan^>
It was clearly a mistake
<gchristensen>
ok :) sometimes that mistake is a password
<duncan^>
if that was my password it would have been compromised long ago
<gchristensen>
lol
<Moredread>
I want to use an option that is only in unstable (plainX) in my nixos config that I both use for unstable and 17.09. Is there a way to check that a config option exists? Or is there another pattern I can use?
rosa has quit [(Quit: rosa)]
<Moredread>
I think I read how to do it somewhere, but can't find it anymore
_Marek_ has quit [(Quit: _Marek_)]
cybrian has quit [(Read error: Connection reset by peer)]
void__ has joined #nixos
void__ is now known as _Marek_
<slack1256>
well that was easy
rosa has joined #nixos
<slack1256>
thanks gchristensen
<gchristensen>
:) you're welcome
jb55 has joined #nixos
gchristensen is now known as [O_O]
<Moredread>
gchristensen: thx, I was looking for that aswell XD
notdaniel has quit [(Ping timeout: 240 seconds)]
[O_O] is now known as gchristensen
<slack1256>
I was searching the nix-build manpage, but this option is on the nix-store's manpage
<slack1256>
actually nix-build admits it is just a wrapper around them, lol
cybrian has joined #nixos
gchristensen is now known as nix-build
nix-build is now known as gchristenesen
gchristenesen is now known as gchristensen
<gchristensen>
(sorry for the spam)
nix-build has joined #nixos
jbboehr has quit [(Remote host closed the connection)]
griff_ has quit [(Quit: griff_)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
jb55 has quit [(Ping timeout: 255 seconds)]
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
ditadi has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
jb55 has joined #nixos
griff_ has quit [(Ping timeout: 268 seconds)]
Wizek_ has quit [(Ping timeout: 248 seconds)]
rogue_koder has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
rogue_koder_ has joined #nixos
rogue_koder has quit [(Ping timeout: 260 seconds)]
jb55 has quit [(Ping timeout: 260 seconds)]
rosa has quit [(Quit: rosa)]
jb55 has joined #nixos
cybrian has joined #nixos
orivej has joined #nixos
proteusguy has quit [(Remote host closed the connection)]
_Marek_ has quit [(Remote host closed the connection)]
Mateon3 has joined #nixos
Mateon1 has quit [(Ping timeout: 248 seconds)]
Mateon3 is now known as Mateon1
cybrian has quit [(Read error: Connection reset by peer)]
mizu_no_oto has joined #nixos
leothrix has quit [(Ping timeout: 268 seconds)]
ditadi has quit [(Ping timeout: 248 seconds)]
rogue_koder has joined #nixos
rogue_koder_ has quit [(Ping timeout: 268 seconds)]
proteusguy has joined #nixos
cybrian has joined #nixos
rosa has joined #nixos
leothrix has joined #nixos
rotaerk has quit [(Ping timeout: 264 seconds)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
Dr8128 has joined #nixos
mizu_no_oto has joined #nixos
jsgrant has joined #nixos
Dr8128 has quit [(Ping timeout: 260 seconds)]
babyflakes has joined #nixos
rotaerk has joined #nixos
rotaerk has quit [(Ping timeout: 255 seconds)]
justanotheruser has quit [(Ping timeout: 260 seconds)]
pxc2 has joined #nixos
iyzsong has joined #nixos
pxc2 has quit [(Ping timeout: 255 seconds)]
endformationage has quit [(Quit: WeeChat 1.9.1)]
rotaerk has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
jb55 has quit [(Ping timeout: 248 seconds)]
jb55 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ixmatus opened pull request #32248: Support fetching docker images from V2 registries (master...parnell/fetchdocker) https://git.io/vbmbY
<petersjt014[m]>
Ignore the weird spelling, have to use an OCR instead of a clipboard
<andromeda-galaxy>
Somewhere in the thread announcing the dropping of old stackage LTS versions from haskellPackages, it was mentioned that one might be able to run hackage2nix inside a project to get a custom set of dependencies (that could track stackage if so wished). Does anyone know how to do this? I haven't been able to figure out how to install hackage2nix (ideally without a local nixpkgs checkout)
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
marusich has joined #nixos
rosa has quit [(Quit: rosa)]
<andromeda-galaxy>
(or would it be possible to accomplish something similar---building packages that depend on a particular lts---via some other mechanism, like callHackage/callCabal2nix?)
brodul has joined #nixos
pie_ has quit [(Ping timeout: 268 seconds)]
rosa has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
<andromeda-galaxy>
also, is there a clear way to make developPackage not rebuild all the time due to the result symlink? the issue https://github.com/NixOS/nixpkgs/issues/30331 doesn't have a workaround listed
nuncanada2 has joined #nixos
<andromeda-galaxy>
also, developPackage seems to have some weird behavior: if a source override is specified that points a dependency at another package that was defined with developPackage, which itself has some source overrides, it seems to end up trying to build the dependency without its own overrides
_Marek_ has quit [(Remote host closed the connection)]
cybrian has joined #nixos
jmeredith has quit [(Quit: Connection closed for inactivity)]
nuncanada2 has quit [(Quit: Leaving)]
nuncanada has joined #nixos
i-am-the-slime has joined #nixos
i-am-the-slime has left #nixos []
i-am-the-slime has joined #nixos
i-am-the-slime has left #nixos []
i-am-the-slime has joined #nixos
<i-am-the-slime>
hello
<i-am-the-slime>
I would like to use libinput-gestures
<i-am-the-slime>
I *think* there is no package for that.
<andromeda-galaxy>
also, is callHackage still impure? it seems like when I use it, even when I get rid of the result symlink, stuff is rebuilt...
i-am-the-slime has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vbmpf
<NixOS_GitHub>
nixpkgs/staging 33300c7 Vladimír Čunát: Merge branch 'master' into staging...
NixOS_GitHub has left #nixos []
MP2E has quit [(Remote host closed the connection)]
ma27 has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
rosa has quit [(Quit: rosa)]
simendsjo has joined #nixos
hellrazor has joined #nixos
rosa has joined #nixos
marusich has quit [(Quit: Leaving)]
hellrazo1 has quit [(Ping timeout: 250 seconds)]
slack1256 has quit [(Ping timeout: 260 seconds)]
ma27 has quit [(Ping timeout: 250 seconds)]
rosa has quit [(Ping timeout: 260 seconds)]
<andromeda-galaxy>
maybe more generally: what are current best practices for developing/building multi package haskell projects locally with nix? there seems to have been a lot of churn in this recently, with various changes to cabal2nix, callHackage, the dropping of the lts package sets, etc.
simendsjo has quit [(Remote host closed the connection)]
<andromeda-galaxy>
the "result symlink causes rebuilds" things seems to happen whenever cabal2nix is used
notdaniel has quit [(Quit: Leaving)]
markus1189 has joined #nixos
simendsjo has joined #nixos
i-am-the-slime has joined #nixos
ylwghst has joined #nixos
ma27 has joined #nixos
ylwghst_ has joined #nixos
ylwghst_ has quit [(Client Quit)]
<cocreature>
andromeda-galaxy: you can filter the sources to the ones that actually matter for your project to avoid unnecessary rebuilds
<cocreature>
andromeda-galaxy: e.g. I have a "limitSrcs = drv: pkgs.lib.overrideDerivation drv (oldAttrs: {src = pkgs.lib.sourceFilesBySuffices oldAttrs.src [ ".hs" ".cabal" "LICENSE" ];});" function in my default.nix that I apply to Haskell packages
Harpalus has joined #nixos
<cocreature>
you can also use directly modify the file generated by cabal2nix but that becomes annoying if you want to regenerate it
<cocreature>
for multi-package haskell projects I use cabal new-build in a nix shell
<andromeda-galaxy>
cocreature: thanks for the filtering tip
<andromeda-galaxy>
how do you ensure that new-build knows how to build the dependencies?
i-am-the-slime has quit [(Quit: Konversation terminated!)]
<cocreature>
in my multi-package projects I usually have a hierarchy where one package sits at the top and depends on the other packages, so I just enter the nix shell of that top-level project and get the dependencies of that as well as the ones of its dependencies
<andromeda-galaxy>
ahh
<cocreature>
in case you’re not familiar with new-build: it has native support for multi-package projects similar to stack
<andromeda-galaxy>
I just now tried just callPackage'ing with the path passed in to the dependency, instead of the fancy haskellPackages.override/extend that I tend to see, and that actually seemed to work better
<andromeda-galaxy>
I have played with new-build a bit, that seems like it's a good idea.
cybrian has joined #nixos
<andromeda-galaxy>
do you know why most things, including Gabriel's haskell-nix, recommend the haskellPackages.override method of multi project dependencies? (i.e. is there something I am missing doing it this way?)
<andromeda-galaxy>
when you do new-build, does it ever end up building locally (not in nix store) hackage deps from the sub-packages?
<cocreature>
there are two different things at play here: 1. getting nix to provide dependencies for multi-package projects such that you can then do incremental development using cabal and 2. actually building your complete project using nix
<cocreature>
for 2. you still need something like haskellPackages.override
ottidmes has joined #nixos
<cocreature>
new-build won’t build dependencies if they are already provided by nix. obviously if you screw up your nix config/don’t update it and there are missing packages it will build them
<andromeda-galaxy>
oh sorry I got that backwards - top package depends on sub-packages, not the other way around. that makes more sense
<andromeda-galaxy>
presumably that dependency is encoded in nix somehow?
<cocreature>
right, that’s where you need "override"
<cocreature>
or just pass it explicitely when you callPackage the top package
<andromeda-galaxy>
yeah, the explicit passing is what I was thinking of earlier.
<cocreature>
I usually just pass it explicitely
<andromeda-galaxy>
is there a particular advantage to either approach? I had an override (well, extend) version that seemed to be causing some spurious rebuilds, but it might also have been due to buggy filtering
<cocreature>
I don’t think it makes a difference in most cases
<cocreature>
spurious rebuilds sound very much like missing filtering
<andromeda-galaxy>
specifically, when I built the depended-on package, deleted its result symlink, and then built the package that depends on it, it somehow rebuilt the depended-on package
<andromeda-galaxy>
I'm trying again with the filtering fixed to see whether or not it fixes it. anyway, I think I have something working now. thanks for all the help!
<Harpalus>
I'm running a Thinkpad x230 and have a problem with ethernet (probably e1000e driver): When using the ethernet port, the connection drops randomly, but when using the connector of the dock, it doesn't. I know it has to be related to Nixos somehow, because with other distributions this problem doesn't occur. I tried using kernel 3.10, 4.4 and 4.12, all have the same problem. Any advice on what else I could try?
simendsjo has joined #nixos
ris has joined #nixos
fikovnik has quit [(Ping timeout: 260 seconds)]
noam_ has joined #nixos
noam__ has quit [(Read error: Connection reset by peer)]
dywedir has joined #nixos
ma27 has quit [(Quit: WeeChat 1.9.1)]
<ottidmes>
I am trying to add a local c file the srcs of a derivation, but I am getting the error "do not know how to unpack source archive <file>.c", how can I solve that without writing a custom unpackPhase?
<ottidmes>
Harpalus: Seems a driver issue, did you try hardware.enableAllFirmware?
<Harpalus>
ottidmes: yeah, tried that. Strange thing is the same driver is working fine on the second ethernet port (that routes to the same network card; i.e. same MAC). Btw, I've ruled out that it's a hardware problem: I've tried different cables and since it's working fine in other distros, I don't think it's a hardware issue either.
<ottidmes>
Harpalus: Maybe look at what linux modules are loaded in NixOS compared to the other distros you have tried. And maybe try a different network manager, I have had problems that I was only able to fix by using NetworkManager
jmc_fr has joined #nixos
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
asymmetric1 has quit [(Ping timeout: 248 seconds)]
<Harpalus>
Thanks for the hint, I'll compare the dmesg outputs. (As for the network manager, I've tried marking ethernet as unmanaged (since I'm using NetworkManager), but to no avail.)
<ottidmes>
Harpalus: Maybe in your case NetworkManager is problematic, so changing it might still be worth the effort if you are out of leads
<ottidmes>
Regarding my problem, I have just used ${./<file>.c} and it seems to work. If there is a better way to solve it, I am open to suggestions
<Harpalus>
ottidmes: Will do, thanks.
jmc_fr has quit [(Ping timeout: 250 seconds)]
cybrian has joined #nixos
thc202 has joined #nixos
Sonarpulse has joined #nixos
kier has joined #nixos
noam__ has joined #nixos
noam_ has quit [(Read error: Connection reset by peer)]
<asktoask>
manveru: mean, without running buildscripts. I have in mind something like overriding mkDerivation to be something like 'getAttr "meta"', but it's not obvious for me how to do that.
<manveru>
no need for that really
<asktoask>
What alternative do you propose?
<ylwghst>
ylwghst: btw. when you was talking about libinput-gestures what exactly did you meant? can you send link to source?
<LnL>
this will give you the metadata of most packages
ylwghst has quit [(Read error: Connection reset by peer)]
ylwghst has joined #nixos
dywedir has quit [(Remote host closed the connection)]
<manveru>
`NIXPKGS_ALLOW_BROKEN=1 nix eval --json '(let pkgs = import <nixpkgs> { config.allowBroken = true; config.allowUnfree = true; }; lib = import <nixpkgs/lib>; tryEval = builtins.tryEval; in lib.mapAttrs (k: v: let name = (tryEval v.name or ""); desc = (tryEval v.meta.description or ""); in [name.value desc.value]) pkgs)' | jq .`
<manveru>
asktoask: something like that
a6a3uh has quit [(Quit: Bye)]
<manveru>
`nix eval --json '(let pkgs = import <nixpkgs> { config.allowBroken = true; config.allowUnfree = true; }; lib = import <nixpkgs/lib>; tryEval = builtins.tryEval; in lib.mapAttrs (k: v: let name = (tryEval v.name or ""); desc = (tryEval v.meta.description or ""); in {name = name.value; description = desc.value;}) pkgs)' | jq .`
<manveru>
even nicer :)
<manveru>
if you don't have nix 1.12 you can use `nix-instantiate --strict --eval --json -E` instead of `nix eval`
<manveru>
then again i think LnL has a nicer solution, just not as flexible :)
cybrian has joined #nixos
Phillemann has joined #nixos
<asktoask>
manveru: Cooking now, but I'll study that expression in a bit. Thank you!
<Phillemann>
I have a gradle project that builds fine with "nix-shell -A mypackage --run gradle" but not when I run nix-build. What's the difference between the two?
<manveru>
Phillemann: try with nix-shell --pure
<Phillemann>
manveru: Same result.
<manveru>
how does it fail with nix-build?
<Phillemann>
gradle says "Failed to load native library 'libnative-platform.so' for Linux amd64."
ylwghst has quit [(Read error: Connection reset by peer)]
<manveru>
nix-shell has network access, nix-build doesn't, so that's usually the big difference
<Phillemann>
Ah, that _might_ be it...have to check if gradle accesses the network in a crucial way.
jmc_fr has quit [(Ping timeout: 248 seconds)]
<Phillemann>
It's a little frustrating because there doesn't seem to be any gradle-dependent packages in nixpkgs. Otherwise I'd just copy&paste. :/
ylwghst has joined #nixos
<manveru>
yeah... i don't know much about it, sorry
<Phillemann>
Don't worry, thanks anyway. :)
<Phillemann>
I might just post to the mailing list about that.
ma27 has joined #nixos
Myrl-saki has joined #nixos
<Myrl-saki>
Need kinda-urgent help.
<Myrl-saki>
I dd'ed my / and /boot to my new drive, but I mkfs.ext4 && rsync'ed my /home/user.
<hyper_ch>
as long as it's only kinda-urgent, it's not big deal :)
<Myrl-saki>
hyper_ch: :(
<Myrl-saki>
Anyways. The problem's obvious. Different UUIDs.
<hyper_ch>
what do you want to do?
<Myrl-saki>
So I waited for the /home/user mount to timeout.
ma27 has quit [(Ping timeout: 260 seconds)]
ma27 has joined #nixos
Harpalus has quit [(Remote host closed the connection)]
<gchristensen>
probably easiest to boot to the installer, mount everything exactly as they should be, edit the uuids in the nixos config and I think you can safely run nixos-install again
<hyper_ch>
still no idea where the problem is or what you want to do
<gchristensen>
as far as I can guess, the probolem is the new /home/user has a different FS UUID from the old one, breaking the boot process
Wizek_ has joined #nixos
Myrl-saki has quit [(Ping timeout: 260 seconds)]
<hyper_ch>
if it's just that, boot live iso, mount the root somewhere, adjust /etc/fstab manually with the new uuid, reboot to nixos, adjust the uuid in the hardware-configuartion.nix
<hyper_ch>
or dd whole disk, boot with new disk, use partition manager to expand partitions if new disk is larger
cybrian has quit [(Read error: Connection reset by peer)]
Myrl-saki has joined #nixos
<Myrl-saki>
You know that moment when yuo think you know everything?
<Myrl-saki>
Well, guess what. I forgot to mount my oboot.
<Myrl-saki>
my /boot
<Myrl-saki>
Problem's fixed now.
<gchristensen>
lol nice!
<gchristensen>
good
<Myrl-saki>
TMW I felt very smart thinking "Oh, yeah, I'll boot my drive then fix it on emergency mode."
<Myrl-saki>
Then of course it doesn't get fixed. Because I forgot to mount /boot
<Myrl-saki>
Since we're already on the topic of partitions. Is there a way to have /boot not automount?
i-am-the-slime_ has quit [(Ping timeout: 260 seconds)]
<Myrl-saki>
(But mount on, say, nixos-rebuild switch then unmount again?)
<hyper_ch>
write an bash script that does that
<Myrl-saki>
hyper_ch: Makes sense lmao
<hyper_ch>
mount boot, check if boot is mounted, run nixos-rebuild, umount boot
<Myrl-saki>
How do I append to /etc/nixos/hardware-configuration.nix?
<hyper_ch>
no idea what you mean by append to hw-conf.nix
<Myrl-saki>
hyper_ch: Change /boot to not automount.
<manveru>
Myrl-saki: hardware-configuration.nix is imported into your configuration.nix, so you can modify anything you want inside configuration.nix to override what's in the hardware cofig
<Myrl-saki>
Ah. Thanks.
<manveru>
or just modify it directly, it's not like it'll be overwritten unless you run nixos-install...
<hyper_ch>
no idea, never tried to not-automount /boot
<Myrl-saki>
I'll go screw my hard drive now.
<Myrl-saki>
brb. Probably going to take an hour, since I'll be moving my desktop ssd to laptop.
<hyper_ch>
desktop and notebook must be pretty far apart if that takes an hour
<Myrl-saki>
hyper_ch: I'm a coward.
<hyper_ch>
just have backups
<Myrl-saki>
I'll probably spend 50 minutes debating whether or not to actually go through.
<Myrl-saki>
hyper_ch: I mean, I'm scared of frying my laptop's mobo.
<hyper_ch>
:)
<Myrl-saki>
:C
<Myrl-saki>
It's my only lappy
<MichaelRaskin>
hyper_ch: it's not the distance between them, it's the distance that has to be travelled by the screws holding the drives.
<manveru>
zeno in action
<hyper_ch>
swapping drive in notebook should be a no brainer
<hyper_ch>
but then, I guess there's notebook producers that make it extra hard to do so
<samueldr>
even without bundix, using nix and nix-shell for ruby was already muuuuuch better
<samueldr>
I always hated rvm and such tool, how they are... side-effecty
<manveru>
true that
<manveru>
it's just that bundler likes to do stuff all over the place
<samueldr>
muscle-memory has me use --path with bundler
<manveru>
even then it does stuff like .bundle/config
<samueldr>
archlinux defaults to global gem installs, but without write access to that location
<samueldr>
yeah
<samueldr>
not the prettiest
<samueldr>
still better than npm
<manveru>
i'm still using yarn instead of yarn2nix for dev though
a6a3uh has quit [(Ping timeout: 248 seconds)]
<samueldr>
haven't had time to look into "nixing" the npm parts yet
<samueldr>
well, yarn parts
<manveru>
node2nix works too, it's just super slow for large projects
<manveru>
yarn2nix reuses the hashes in the yarn.lock file, so it's pretty fast
<ylwghst>
brb
erictapen has joined #nixos
ylwghst has quit [(Read error: Connection reset by peer)]
<manveru>
anyway, i'm working on a nixos-installer in my free time, and using elm for that, which is an unholy combo of elm-package and npm :P
<manveru>
plus they have "native" packages that can't be published to their offical repo, so you need yet another tool for those
<gchristensen>
pstn: if you make a tool to take the history file and convert it to an RSS feed, I'll run it when the channels change
<manveru>
i'm working on a unified nix experience for this... yak shaving ftw
akfp has joined #nixos
<pstn>
gchristensen: I'll put it on my list. I'll let you know, when I have anything.
<gchristensen>
coo/
ylwghst has joined #nixos
<akfp>
How do I build "amdgpu-pro" which is nested under linuxPackagesFor?
<gchristensen>
pstn: what matrix room is this for?
<akfp>
nix-build '<nixpkgs>' -A <..something>.amdgpu-pro
<pstn>
I would make a room for myself to have notifications
<gchristensen>
kinda weird
<gchristensen>
you could use dunst and libnotify + something to poll the latest file
<akfp>
nix-build '<nixpkgs>' -A linuxPackages_4_9.amdgpu-pro worked.
<ylwghst>
samueldr: I don't have the image anymore. I overwritten it with stable 7f6f0c49f0 which I've decided to download instead of that affected unstable image at that moment.
<samueldr>
aw, oh well
<pstn>
akfp: What do you need amdgpu-pro for? If it's hardware support, we now have the linux 15-rc1 kernel that also supports all the new cards and is less broken than amdgpu-pro imho.
civodul has joined #nixos
<akfp>
I need the 17.40-492261 driver.
<akfp>
it's a newer driver, so I need to update nixpkgs.
<hodapp>
woo \o/ got tensorflow_object_detection building... but only on an older version which has the good fortune of having a build script in the root dir that only works with object_detection
<hodapp>
are there are examples in nixpkgs of checking out a repo, then working only in a specific subdirectory thereof?
<WilliamHamilton>
hi all, is the package `cups-pdf` somehow available in nixos? I didn't find it grepping nixpkgs nor through `nix-env -qa`
<WilliamHamilton>
(I'd like to add a pdf printer visible through `lpstat -p`)
<akfp>
psrn: for 15-rc1, which channel should I use, or do I have to use unstable?
patrl has joined #nixos
<pstn>
it's in unstable and you have to enable the testing kernel.
Wizek_ has quit [(Ping timeout: 268 seconds)]
<eraserhd>
so, nar doesn't keep setuid bits, is that right? What do you do if you need them?
magnetophon has quit [(Remote host closed the connection)]
<samueldr>
this seems to correlate
Kozu has joined #nixos
magnetophon has joined #nixos
<Kozu>
I'm trying to install Nixos with UEFI and LVM. I've tried following the manual, and other blog posts and I still get stuck in the same issue every time. I get "error: changing mode of '/nix/store...-update-users-groups.pl' to 100444: Read only file system". What am I doing wrong? I just downloaded the latest stable image (17.09.2253.559ebb7ed02)
<samueldr>
hi!
<samueldr>
there's a known issue with the stable iso
<ylwghst_>
Kozu: use current unstale instead or workaround in link above ^^^
<akfp>
is there an "easy" way to mostly disable all drivers during a kernel compile? it's taking ages.
<samueldr>
Kozu: I would personally use a known working 17.09
<akfp>
the workaround in the issue installs 17.09. probably the safer option?
proteusguy has quit [(Remote host closed the connection)]
<samueldr>
Kozu: do you need minimal or graphical?
<samueldr>
yes, probably
<Kozu>
samueldr: I'm new to NixOS but I've installed it previously on VirtualBox. Now I got a new laptop, and want it to run NixOS. I've always used to minimal installer
<Kozu>
ylwghst_, samueldr: Thanks, you've really saved a lot of my hair from being pulled out
<samueldr>
don't worry, hair was shed for you already
<ylwghst_>
hehe i know that feeling
<samueldr>
(it's been a head scratcher)
<Kozu>
Looking forward to try running NixOS on my every day computer :-)
<samueldr>
yay
<akfp>
is there some script that will take all the kernel modules currently used and create a kernel config based on a minimal config that contains what I need?
cybrian has quit [(Read error: Connection reset by peer)]
<fearlessKim[m]>
akfp nope
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
<fearlessKim[m]>
dnsmasq doesn't seem to work with edns option (in nixos at least)
erictapen has joined #nixos
ylwghst_ has quit [(Quit: leaving)]
Harpalus has quit [(Quit: Leaving)]
ylwghst has joined #nixos
Harpalus has joined #nixos
Harpalus_ has joined #nixos
Harpalus has quit [(Client Quit)]
Harpalus_ has quit [(Remote host closed the connection)]
Harpalus has joined #nixos
cybrian has joined #nixos
Myrl-saki has joined #nixos
<Myrl-saki>
Did anyone take note of how long it took me to install the SSD on my laptop?
<Myrl-saki>
Let me guess. Too damn long?
magnetophon has quit [(Remote host closed the connection)]
magnetophon has joined #nixos
jonascarpay has joined #nixos
<fearlessKim[m]>
edns is enabled by default and I have it working everywhere so that must be some bug/security in this house wifi.
jonascarpay is now known as plakbang
plakbang is now known as plakband
iyzsong has quit [(Ping timeout: 240 seconds)]
sg2002 has joined #nixos
ylwghst has quit [(Quit: Lost terminal)]
cybrian has quit [(Read error: Connection reset by peer)]
<plakband>
When booting from a live-usb on a 2012 rMBP, starting the display manager gives me a black screen. I tried choosing the nomodeset boot option, but to no avail. Has anyone else had this issue?
rogue_koder has quit [(Ping timeout: 240 seconds)]
erictapen has quit [(Ping timeout: 260 seconds)]
ylwghst has joined #nixos
ylwghst has quit [(Remote host closed the connection)]
ylwghst has joined #nixos
ylwghst has quit [(Remote host closed the connection)]
ylwghst has joined #nixos
Ivanych has quit [(Ping timeout: 250 seconds)]
kreetx has joined #nixos
jsgrant has joined #nixos
proteusguy has joined #nixos
ylwghst has quit [(Ping timeout: 255 seconds)]
plakband has quit [(Quit: Lost terminal)]
ylwghst has joined #nixos
Kozu has quit [(Ping timeout: 260 seconds)]
rogue_koder has joined #nixos
cybrian has joined #nixos
i-am-the-slime_ has quit [(Ping timeout: 260 seconds)]
Myrl-saki has quit [(Read error: Connection reset by peer)]
<Guest40001>
a *stupid* question, been away from nix for a while: I can use `fetchurl` to specify the src attribute of `mkDerivation`. May I also use a folder from my filesystem as `src` instead?
rogue_koder has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin>
Yes, you can; it will be copied to Nix store.
JosW has joined #nixos
<Guest40001>
so I guess the syntay for it is just: `src = './myfolder'` ?
<MichaelRaskin>
No quotes.
<Guest40001>
ok
Ivanych has joined #nixos
b has quit [(Quit: Lost terminal)]
rogue_koder_ has quit [(Read error: Connection reset by peer)]
rogue_koder_ has joined #nixos
rogue_koder_ has quit [(Read error: Connection reset by peer)]
rogue_koder_ has joined #nixos
ylwghst has quit [(Ping timeout: 260 seconds)]
i-am-the-slime_ has quit [(Ping timeout: 260 seconds)]
endformationage has joined #nixos
<akfp>
anyone installed AMD ROCm OpenCL drivers?
<sphalerite>
oh boy, mass rebuild on my chromebook
roconnor has joined #nixos
b has joined #nixos
b has quit [(Changing host)]
b has joined #nixos
<roconnor>
Does Haskell's Cabal's mkDerivation have an attribute that does builds an sdist?
srdqty has quit [(Ping timeout: 248 seconds)]
srdqty has joined #nixos
ambro718 has quit [(Quit: Konversation terminated!)]
patrl has joined #nixos
<akfp>
where is linux-vdso.so.1 for using with patchelf. it's not under /run/current-system/
civodul has quit [(Read error: Connection reset by peer)]
cybrian has quit [(Read error: Connection reset by peer)]
<akfp>
ah, there is no such library..?
civodul has joined #nixos
cybrian has joined #nixos
patrl has quit [(Quit: WeeChat 1.9.1)]
<toogley>
i have two computers, both running with nixos. although both are very differently used, i use on both the same subset of programs, defined via environment.systemPackages = with pkgs; [] . how can i generalize those? for some other settings i have a file general.nix which i do include in both configuration.nix - but defining pkg list there doesn't work, because i would then define that twice
<toogley>
what would be the best way to solve that?
Harpalus has quit [(Quit: Leaving)]
Harpalus has joined #nixos
Harpalus has quit [(Remote host closed the connection)]
Harpalus has joined #nixos
mightybyte has joined #nixos
<akfp>
hmm.. how am I supposed to run binaries on NixOS when the dynamic loader is not under /run/current-system: find -L /run/current-system/ -iname '*ld-linux*' return nothing, while a typical executable uses an interpreter from /nix/store: /nix/store/h1a1ncbkkhapzm0509plqjlfrgxw22f3-glibc-2.25-49/lib/ld-linux-x86-64.so.2
<mightybyte>
Why is it that when I do "nix-env -i tetex", the latex executable is available, but when I do "nix-shell '<nixpkgs>' -A tetex" it's not?
ma27 has joined #nixos
ryantrinkle has joined #nixos
<ryantrinkle>
is there a standard way to turn a nix string into a string representing a nix string literal?
<LnL>
nix-shell -A gives you the build environment of a package, not an environment with the package already available
<ryantrinkle>
but it'd be nice if it also handled "\n" and all the other things nix typically turns into printable characters when it produces a string
Harpalus has quit [(Quit: Leaving)]
Harpalus has joined #nixos
<sphalerite>
ryantrinkle: why do you want to do that?
<sphalerite>
ryantrinkle: maybe builtins.toJSON would work?
<Guest40001>
A freshly built nixos vm I can start like this: `QEMU_NET_OPTS="hostfwd=tcp::8888-:80" result/bin/run*`, whereas my local traffic on port 8888 is forwarded to the vm's port 80. Nice, but how can I specify multiple forwards? I'd like to forward 2222 to 20 as well.. it's a bit tricky..
<sphalerite>
Guest40001: not 100% sure on this one, but maybe add another hostfwd=foo after that one, separated with a comma
Neo-- has joined #nixos
<Guest40001>
sphalerite: magic, I was sure I tried this one.. works!
ylwghst has joined #nixos
i-am-the-slime_ has joined #nixos
<mightybyte>
The nix manual has a nice simple example illustrating a nix expression for hello. But how do I take that expression and make it into something that I can put into a default.nix and call nix-build or nix-shell on?
<toogley>
btw. do pkgs in stable releases (such as 17.09) ever get a version upgrade?
<mightybyte>
The manual talks about how to do it if you add that nix expression to all-packages.nix, but I don't want to do that.
<sphalerite>
mightybyte: you can also write a separate default.nix file in which you do `(import <nixpkgs> {}).callPackage ./hello.nix {}`
<sphalerite>
toogley: usually no. There are some exceptions though, like browsers
<mightybyte>
sphalerite: Hmmm, is that the canonical accepted way to do it? I got the impression that the accepted way was to put it all in default.nix.
cybrian has quit [(Read error: Connection reset by peer)]
<sphalerite>
mightybyte: using callPackage makes it overridable and generally more versatile
erictapen has joined #nixos
i-am-the-slime_ has quit [(Quit: Konversation terminated!)]
<sphalerite>
you can also pass a package function to callPackage, rather than a path, in order to keep it in a single file. But then the package function is harder to get out, and you have ugly parentheses around the majority of the expression
<mightybyte>
sphalerite: Any chance that can be added to the manual? It seems like that is always the first thing I want to do.
srdqty has quit [(Ping timeout: 248 seconds)]
<sphalerite>
PRs are always welcome :)
<toogley>
sphalerite: thanks
<mightybyte>
sphalerite: What repo is the manual in?
<sphalerite>
the nixpkgs repo, in the doc/ directory
<mightybyte>
Ahh, ok.
srdqty has joined #nixos
Arcaelyx has quit [(Remote host closed the connection)]
<Guest40001>
anyone a comment on this chicken/egg problem: I have nixos server configuration stored in a github repo. This config runs on a remote server. fine. It should be able to rebuild itself from the latest master of the repo. a shell command could do so in an inpure way: 'git clone... bla... nixos-rebuild switch'. I thought I could also do so a bit cleaner by making a derivation using fetchFromGithub. However fot this I n
<Guest40001>
eed the sha of the latest commit, which I cannot know beforehand. Anyone bumped into this?
<sphalerite>
Guest40001: it's a fairly stateful task, so I wouldn't try to make it pure
<mightybyte>
sphalerite: That's the Nixpkgs Contributors Guide. I'm talking about the Nix Package Manager Guide.
<sphalerite>
you could use builtins.fetchTarball I suppose
<sphalerite>
mightybyte: oh right, that's in the nix repo doc subdirectory :)
<sphalerite>
Hm, nix-shell is segfaulting D:
<herzmeister[m]>
helloes, i'm trying to install nixos with an encrypted root file system. seems i have to change or override the `filesystems."/"` setting in the generated `hardware-configuration.nix`, otherwise conflict. what's the best practice? let go of importing the hardware configuration altogether?
<mightybyte>
sphalerite: Perfect, thanks.
<sphalerite>
herzmeister: why would you need to change that?
<sphalerite>
herzmeister: it should be detecting it correctly.
<herzmeister[m]>
when i tried to boot it didnt find the device
goibhniu has joined #nixos
<herzmeister[m]>
also the manual specifies i have to put the line in the standard configuration file
<sphalerite>
fileSystems."/" should be fine, you may need to specify the luks volume manually though
ylwghst has quit [(Remote host closed the connection)]
ylwghst has joined #nixos
jmc_fr has joined #nixos
ma27 has joined #nixos
<herzmeister[m]>
now i have other problems, i want to keep my boot partition unencrypted, and this seems to cause trouble. I get an `ERROR: not a subvolume: /mnt/boot` and `ERROR: Failed to get subvol info /mnt/boot: 1`, and two entries with `filesystems."/boot"` were being created in the hardware configuration. as far as i can tell i had prepared and mounted everything correctly before.
<herzmeister[m]>
perhaps i have to just start all over you mean :-]
<ylwghst>
how does look your partiton scheme?
<ryantrinkle>
zimbatm: just put up some more nat-related PRs; not sure how interested you really are in this stuff :P
<ryantrinkle>
(i just replaced my home router with a nixos box, so I'm pretty interested right now, lol)
<ylwghst>
herzmeister[m]: you don't have to edit hardware-configurations.nix
hellrazor has joined #nixos
<ryantrinkle>
but it'd be great to get your feedback on this stuff, or if there's someone else you think I should run them by, let me know :)
<zimbatm>
ryantrinkle: I was roped into reviewing the PR mostly :0
<ryantrinkle>
haha, well i appreciate it
<mightybyte>
sphalerite: Ok, I'm making progress with a default.nix as you described. But now the files of my simple package don't seem to be available. I'm using "src = ./.". Is that correct?
<zimbatm>
I don't mind spending a bit of time on this
<herzmeister[m]>
ylwghst: i dont intend to. :)
<ryantrinkle>
i took your suggestion a bit further than the original idea, but i think it might be useful in other places
<ryantrinkle>
this adds regex-based types generally
<ryantrinkle>
i'm not sure if that's something folks really want, but i figured it'd be easier to decide after seeing it in action
zzamboni has joined #nixos
<ylwghst>
herzmeister[m]: if you are ok with only 2 partitons scheme create one for boot and second which will be luks enc device
<sphalerite>
mightybyte: ./. rather than ./
<mightybyte>
Yeah, that's what I have
<ylwghst>
herzmeister[m]: first - boot should be formated as vfat
<herzmeister[m]>
thats exactly what i did. and the boot is mounted normally. still i get this error.
<herzmeister[m]>
i try to re-mount
<mightybyte>
If I use ./ it doesn't even build. With ./. it builds but there's a build error and when I use -K as described in the manual and go to the build directory I don't see any of the source files.
exfalso has joined #nixos
<zimbatm>
ryantrinkle: interesting, I wonder if this could be used anywhere else
<zimbatm>
did you notice that builtins.match doesn't support "\d" to match numbers?
<ylwghst>
herzmeister[m]: mount /dev/volumegroup/yourootpartition /mnt && mkdir boot /mnt && mount /dev/sdaX /mnt/boot
<ylwghst>
mkdir /mnt/boot offcourse
<ryantrinkle>
zimbatm: i'd expect it could potentially be used for most of the string options
<ryantrinkle>
most aren't actually totally unconstrained
<ryantrinkle>
however, we'd probably need to make the docs a bit nicer
<zimbatm>
yeah, it's a start
<ryantrinkle>
i.e. say "string representing a domain name" instead of "string matching <regex>"
<ryantrinkle>
or whatever
<ryantrinkle>
IP addresses might be a good place to start
<ryantrinkle>
regarding "\d", i hadn't noticed - i just pasted in your regex - but that is a bit annoying
<ylwghst>
ylwghst: and define this in your configuration.nix boot.loader.grub = {
<ylwghst>
enable = true;
<ylwghst>
device = "/dev/sda";
<exfalso>
Hi, brand new nixos user here. I'm writing a package in nixpkgs and would like to use nix-shell to drop into the build env. How can I do this seeing that the default.nix is a function (taking stdenv etc)?
<magnetophon>
toogley: you can make file common.nix with ale the common settings, and import that in the configs for the different machines. if you define systemPackages multiple times, they just get added together. makes sense?
<toogley>
magnetophon: ooh, okay
<toogley>
magnetophon: didn't knew that, thanks!
<magnetophon>
yw
<mightybyte>
sphalerite: Hmm, I'm not quite sure how to modify the manual. It is operating with the context of default.nix being the expression that requires arguments. Your approach of making a hello.nix and a default.nix seems like it would require fairly extensive surgergy to the example.
sigmundv__ has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to release-17.09: https://git.io/vbYgY
<NixOS_GitHub>
nixpkgs/release-17.09 83bc80f Tim Steinbach: linux-copperhead: 4.14.2.a -> 4.14.3.a...
NixOS_GitHub has left #nixos []
Arcaelyx has joined #nixos
griff_ has joined #nixos
<nh2[m]>
fadenb: do you still do stuff with the elastic beats? I find that some files are missing from the package (filebeat.template.json)
mmlb has quit [(Ping timeout: 276 seconds)]
<herzmeister[m]>
ylwghst: thanks, reinstallation seems to work now. (after another reboot.) fyi i got an assertion failure for `name = "rootfs";` but i just removed the name.
<hyper_ch>
hmmm, anything wrong with unstable? I'm stuck at download:
ryantrinkle has quit [(Ping timeout: 248 seconds)]
<ylwghst>
herzmeister[m]: nice
<herzmeister[m]>
and system also boots now finally. thanks. success so far.
ma27 has quit [(Quit: WeeChat 1.9.1)]
<akfp>
how do I find libstdc++. if I use ${getLib pkgs.gcc}/lib/libstdc++.. then I'm getting a path in gcc-wrapper, not gcc.
<fadenb>
nh2[m]: have not used it in a while.
<nh2[m]>
fadenb: do you know your way around buildGoPackage? The problem is that the nix filebeat package really contains only the built binary, not the other files like that json file
jmc_fr has quit [(Remote host closed the connection)]
<nh2[m]>
fadenb: e.g. the debian package Elastic offers has `./etc/filebeat/filebeat.template.json` in it
jmc_fr has joined #nixos
cybrian has joined #nixos
<fadenb>
I actually have no idea how it is currently build. I believe globin changed it some time ago to the buildGoPackage
justanotheruser has quit [(Ping timeout: 240 seconds)]
ashkitten has joined #nixos
<jmc_fr>
Hi. Quit new to nixOs. I'd like to enable htop automatcaly when loging in : any idea how to do this ?
<jmc_fr>
quite new
patrl has joined #nixos
<hyper_ch>
you can do that like on other distros
<jmc_fr>
hyper_ch: I mean "how to do that from configuration.nix" ...
<nh2[m]>
anybody know how can I add extra files to a `buildGoPackage`?
<hyper_ch>
nixos doesn't manage .dot files or user environments
<ashkitten>
hi, how can i add custom mp3 files to icecast's search path? it currently looks for them in `/nix/store/w05fl28kv0smiygvr9w65dl586pxmp4z-icecast-2.4.3/share/icecast/web`
<jmc_fr>
hyper_ch: OK, thks
cybrian has quit [(Read error: Connection reset by peer)]
Turion has joined #nixos
gchristensen is now known as {^_^}
<Turion>
I'm developing a gloss/haskell/opengl app. With Ubuntu, it Just Works, but with Nixos, I'm getting the error "Unknown GLUT entry glutInit". I'm running it in a "nix-shell -p mesa mesa_glu freeglut".
{^_^} is now known as gchristensen
nix-build has quit [(Remote host closed the connection)]
{^_^} has joined #nixos
<sphalerite>
hyper_ch: it does manage user environments!
<sphalerite>
that's exactly what nix-env is for
<hyper_ch>
sphalerite: you know what I mean
<sphalerite>
I do, but I don't think everyone will
<infinisil>
hyper_ch: home-manager!
Avaq has joined #nixos
<gchristensen>
and nix-env is a terrible experience :/
<akfp>
is there a fakeroot-like program that makes it possible to emulate that /etc/foobar is a given file?
<sphalerite>
infinisil: not part of nixos ;)
<sphalerite>
gchristensen: yeah…
<infinisil>
sphalerite: Eh, home-manager is pretty much nixos really, it just lives outside of nixpkgs
<sphalerite>
akfp: proot might be able to do what you want
zzamboni has quit [(Quit: Leaving.)]
zzamboni has joined #nixos
sigmundv__ has quit [(Ping timeout: 260 seconds)]
ylwghst has quit [(Remote host closed the connection)]
<ashkitten>
where should i put arbitrary directories like the icecast webroot?
<Avaq>
It took longest to figure out that the recommended `boot.loader.generic-extlinux-compatible` should no longer be used, and it should be `boot.loader.raspberryPi` instead.
<Avaq>
Anyway, everything worked fine until I `nixos-rebuild` started to fail because it couldn't write .tmp files to /boot. I then tried resizing the partition and destroyed everything.
<Avaq>
Now I'm starting over, and I wonder if there's anything I can do from the start to prevent this happening.
<Dezgeg>
why shouldn't boot.loader.generic-extlinux-compatible be used? that's just wrong
ylwghst has joined #nixos
<Avaq>
Oh - it couldn't write the tmp files because the partition was too small, doing the following would work: `mv /boot/nixos /root/nixos; nixos-rebuild switch; mv /root/nixos /boot/nixos`.
<NixOS_GitHub>
[nix] mightybyte opened pull request #1711: Show an example default.nix that calls hello.nix (master...master) https://git.io/vbYad
NixOS_GitHub has left #nixos []
<Avaq>
The boot proces would get stuck on "Starting kernel.." or something of that sort.
<JosW>
Yeah instead of a reply "nixos doesn't manage .dot files or user environments" as a period answer. Someone new to Nixos would likely need some more info or guidance.
<Avaq>
Dezdeg: In one of these files under /boot/extlinux ?
<Dezgeg>
or maybe it's console=ttyS0 in rpi3
Harpalus_ has quit [(Quit: Leaving)]
<Dezgeg>
in boot.kernelParams (which eventually does get written to exlinux.conf)
leothrix has quit [(Ping timeout: 250 seconds)]
jb55 has joined #nixos
<Avaq>
I remember manually editing the exlinux.conf to append this console line, which did resolve the issue but not fully, this was a week or two ago so I can't quite remember fully.
phreedom has quit [(Ping timeout: 240 seconds)]
<Avaq>
Ah, I should have used boot.kernelParams
patrl has quit [(Quit: WeeChat 1.9.1)]
JosW has quit [(Quit: Konversation terminated!)]
<Avaq>
Dezgeg: So it's unlikely that the boot partition will be too small when I use the generic-extlinux-compatible bootloader (and get it to work this time)?
roberth has joined #nixos
<Dezgeg>
well you do need to delete old generations quite aggressively
<Avaq>
Every generation just writes a few lines into the extlinux.conf right? Or are there other files under /boot used solely by older generations?
<sphalerite>
Does anyone know a nice tool for dissecting arbitrary binary files?
<i-am-the-slime>
psc that comes from purescript (haskellPackages.purescript on Nix) <-- I installed that purescript package but I don't have psc in my path
phreedom has quit [(Quit: No Ping reply in 180 seconds.)]
sigmundv has joined #nixos
<thblt>
Could someone please try to reproduce an issue for me? Run "nix-shell --pure -p tetex" ; then "tex", type "Hello" or something followed by return. Does it segfault?
asymmetric2 has joined #nixos
<thblt>
It's the first time I see tex segfaulting, but thanks god it's reproducible.
<srk>
thblt: yup, it does
cybrian has quit [(Read error: Connection reset by peer)]
<thblt>
srk: Cool, thanks! And now for a bug report!
asymmetric1 has quit [(Ping timeout: 248 seconds)]
<Avaq>
Dezgeg: I realized you're likely the one behind the wiki page on ARM nixos, so you may be interested in the problems I encounter: I found that in both cases I had to do `date -s "2017..."` before sucesfully being able to `nixos-rebuild`.
<Avaq>
When booting for the first time, date is 1970.
b has quit [(Quit: Lost terminal)]
<hyper_ch>
infinisil: installing anew
chreekat[m] has left #nixos ["User left"]
bitonic is now known as mazu
mazu is now known as bitonic
sg2002 has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
<thblt>
Avaq: ntp?
civodul has joined #nixos
mkoenig has joined #nixos
ylwghst has joined #nixos
Avaq has quit [(Ping timeout: 248 seconds)]
Mateon1 has quit [(Ping timeout: 240 seconds)]
Mateon3 has joined #nixos
<oleks>
Hi, I'm trying to build poppler utils from source but get the error "Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)", despite having the freetype package installed via configuration.nix
<Ralith>
thblt: you need it in buildInputs; nix-shell just gives you the package again
<joepie91>
Achievement Unlocked: packaged a proprietary game, and it worked on first try
<joepie91>
unfortunately it did irrecoverably crash my GPU driver 10 seconds laterf...
<hyper_ch>
infinisil: that's so nice about nixos... server already re-installed... just upgrading to latest unstable smalln ow
<joepie91>
later*
<hyperfekt>
Could anyone shine some light on what mounting configurations are generated at installation? I'm trying to add encryption to bcachefs but don't know how I'm supposed to get a list of encrypted volumes without having to hardcode them into configuration.nix. ZFS has the advantage of having a "-a" option that unlocks them all, but it seems LUKS actually requires hardcoding?
<hyper_ch>
infinisil: and upgrade done, rebooting now
<MichaelRaskin>
joepie91: given the GPU mess you are tempting fate: irrevocably is when a power-cycle still doesn't help…
<thblt>
(oleks: see Ralith's answer above)
<hyper_ch>
hyperfekt: be careful about bcache on 4.14... there are bug reports (and fixes) that will cause write error
<infinisil>
hyper_ch: what do you consider hardcoded? Putting UUID's in your nix config? Because that's needed for it to be reliable
<hyper_ch>
also for luks, you just need to provide key for / to unlock
<hyper_ch>
on the root partition you can then have a key that unlocks all other encrypted partitions
<joepie91>
MichaelRaskin: well, irrevocably as in cannot recover without a reboot :P
<joepie91>
MichaelRaskin: radeon driver usually does an okay job at restarting itself
<hyper_ch>
infinisil: wrong person :)
<joepie91>
but this time it really was schluss, and needed a reboot
<infinisil>
hyper_ch: oh whoops, meant hyperfekt
cybrian has joined #nixos
<joepie91>
MichaelRaskin: anyway, let's start the game again, and let's hope it was an anomaly.. :(
<hyper_ch>
hyperfekt needs to change his nickname to avoid [tab completion] confusion
<joepie91>
otherwise I may need to try and get a refund for it...
jb55 has quit [(Ping timeout: 248 seconds)]
<joepie91>
wish me luck :P
<infinisil>
rycee: you here?
zzamboni has joined #nixos
<hyperfekt>
infinisil: I see. I was thinking that since nixos-generate-config detects mounted devices and their filesystems it could also detect if they were decrypted.
zzamboni has quit [(Read error: Connection reset by peer)]
zzamboni1 has joined #nixos
zzamboni1 is now known as zzamboni
<hyper_ch>
hyperfekt: it detects mounted filesystems I think
<MichaelRaskin>
joepie91: or run the game with sw rendering…
<joepie91>
MichaelRaskin: that's going to get me .5 FPS I'm afraid, it's a very new game
<joepie91>
(Dungeons 3)
<rycee>
infinisil: Yep, howdy :-)
<infinisil>
hyperfekt: everything that gets detected was implemented by somebody. You could add to the implementation that encrypted btrfs's get detected :)
<MichaelRaskin>
joepie91: hm, it does seem to have actual complicated graphics…
exfalso has quit [(Ping timeout: 240 seconds)]
<joepie91>
MichaelRaskin: (it's Mono-based, if that makes a difference)
<infinisil>
rycee: Regarding HM, what do you think of linking files like `$HOME/some/file -> /nix/var/nix/profiles/per-user/$USER/home-manager/home-files/some/file`, which would get HM closer to atomic switching
dywedir has joined #nixos
frankpf has joined #nixos
<hyperfekt>
hyper_ch: The keyfile in root trick is a good idea! A bit too imposing to set as a default for users though, I fear.
mkoenig has quit [(Ping timeout: 260 seconds)]
leothrix has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<hyper_ch>
hyperfekt: users? not sure what you mean
<MichaelRaskin>
joepie91: what makes a difference is actually having a world with multiple 3D models that partially occlude each other.
<hyperfekt>
hyper_ch: Well ideally if I implement this it's going to nixpkgs so other people can just use it.
<infinisil>
rycee: or `~/some/file -> ~/.home-files/some/file` and `~/.home-files -> /nix/var/nix/profiles/per-user/$USER/home-manager/home-files`
<joepie91>
ha, I retract my achievement
<joepie91>
it actually wants GTK too for some plugin
<rycee>
In principle it should work (assuming the systemd hack is kept). You still need to set up the links originally.
<rycee>
infinisil: ^
<hyper_ch>
hyperfekt: no idea what you really wanna do, but good luck
<hyperfekt>
hyper_ch: Haha, sorry and thanks :b
typeggzero has joined #nixos
<rycee>
infinisil: So you still have to loop over all links to check whether they still are valid or if some is missing.
leothrix has joined #nixos
i-am-the-slime has quit [(Ping timeout: 255 seconds)]
adamt has joined #nixos
adamt has quit [(Changing host)]
adamt has joined #nixos
<rycee>
infinisil: So I'm not certain whether there is a significant amount of "atomicity" added by doing this.
<infinisil>
rycee: Hmm
<infinisil>
rycee: I mean most of the time you don't add/remove any files, you just change them, which would be atomic
<gchristensen>
that would reduce the atomocity of the switch
Sonarpulse has joined #nixos
typeggze1o has quit [(Ping timeout: 260 seconds)]
<infinisil>
gchristensen: how so?
<gchristensen>
well if your ~/.home-files dir is a link to the /nix/store, then when the switch happens anything pointing to ~/.home-files switches atomically
<gchristensen>
doing bare links to /nix/store make it piecemeal
<infinisil>
gchristensen: Yeah that's what i mean
<infinisil>
currently home-manager doesn't work like that
<LnL>
^ that's why the nixos etc module has indirect symlinks to /etc/static
<gchristensen>
yeah I was saying rycee's link to a PR about links going directly to /nix/store paths would make it less atomic
<infinisil>
gchristensen: I personally don't really get the point of that PR, rycee you know what's the advantage of linking files directly?
sigmundv has quit [(Ping timeout: 255 seconds)]
ma27 has joined #nixos
mkoenig has joined #nixos
jmc_fr has joined #nixos
ylwghst has quit [(Quit: leaving)]
mkoenig has quit [(Remote host closed the connection)]
<rycee>
infinisil: Not sure. The main thing I see is that it avoids a level of link indirection and therefore avoids the hack needed for systemd units (which get the wrong name if they are doubly linked).
Sonarpulse has quit [(Ping timeout: 255 seconds)]
cybrian has quit [(Read error: Connection reset by peer)]
zraexy1 has quit [(Ping timeout: 260 seconds)]
<joepie91>
MichaelRaskin: yep, it still crashes my GPU driver :(
<MichaelRaskin>
Pity.
zzamboni has quit [(Quit: Leaving.)]
hariel has joined #nixos
hyperfekt has quit [(Ping timeout: 260 seconds)]
mkoenig has joined #nixos
<infinisil>
rycee: Oh, actually that hack can be avoided rather easily
jensens has quit [(Ping timeout: 276 seconds)]
jmc_fr has quit [(Remote host closed the connection)]
<infinisil>
rycee: The systemd module should just use `writeTextDir` instead of `writeText` to create the service files and adjust the passed source attributes of xdg.configFile
jmc_fr has joined #nixos
alhariel has quit [(Ping timeout: 276 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dywedir opened pull request #32265: youtube-dl: 2017.11.06 -> 2017.12.02 (master...youtube-dl) https://git.io/vbYiE
NixOS_GitHub has left #nixos []
agjacome has joined #nixos
ma27 has quit [(Ping timeout: 248 seconds)]
ylwghst has joined #nixos
frankpf has quit [(Ping timeout: 260 seconds)]
<rycee>
infinisil: Hmm, not sure if that would work with the link cleanup.
<rycee>
Since it would point to something outside the HM generation.
<aanderse>
does anyone know what linux-vdso.so is?
<aanderse>
trying to run a steam game but it isn't running at all
<aanderse>
ldd says the game is referencing that but can't find it
<aanderse>
a find on my system doesn't find a linux-vdso.so either
<infinisil>
rycee: just switched my user profile to use this patch, works without problems :)
ylwghst has quit [(Remote host closed the connection)]
jensens has joined #nixos
i-am-the-slime has joined #nixos
Sonarpulse has joined #nixos
<rycee>
Cool! 👍
cybrian has quit [(Read error: Connection reset by peer)]
ylwghst has joined #nixos
ma27 has joined #nixos
taktoa has quit [(Remote host closed the connection)]
ylwghst has quit [(Remote host closed the connection)]
<toogley>
i have this nixfile: https://paste.pound-python.org/show/2GiDOJmCZCn7ICOyio7D/ which is based on the current file on master, but slightly modified. when i run nix-build neomutt-pkg.nix, then i get:error: cannot auto-call a function that has an argument without a default value (‘stdenv’) - i've read https://nixos.org/nix/manual/#note , i guess i should add sth like that somewhere, but i don't know where
ylwghst has joined #nixos
dywedir has quit [(Remote host closed the connection)]
<toogley>
output path ‘/nix/store/0gz3mssnrwvk9m6iszs8zg9ijm3c38ir-neomutt-neomutt-20171027-src’ has r:sha256 hash ‘0pwc5zdxc9h23658dfkzndfj1ld3ijyvcxmsiv793y3i4dig0s3n’ when ‘10z523cy3s6syh0mwpsncl87wrvyzsk99y7nzicwvx6y3hmdw01d’ was expected
<infinisil>
Dezgeg: You mean because it uses the hash of the unpacked content which is usually not the one the distributors put on their website?
<viric>
Dezgeg: have you ever used yocto linux?
<Dezgeg>
viric: no
<Dezgeg>
infinisil: copying the hash from the error message is 100% foolproof, with nix-prefetch-* you can end up with dozens of cases where it appears to work but you silently got a wrong hash instead
<viric>
Dezgeg: it'd be nice if nixpkgs allowed something like what yocto allows
<Dezgeg>
what does it allow?
<viric>
cross-building, prepare a full OS image
<viric>
that may be very small in size
<infinisil>
Dezgeg: Oh didn't know thatt
<Dezgeg>
maybe one day
ma27 has joined #nixos
<viric>
It also creates packages for that OS (rpm, deb, opkg, whatever you want) so you can later install binaries over that image
<viric>
there is a big overlap with nixpkgs
<viric>
they don't target desktop os, though
<Dezgeg>
I do have used buildroot touch, much simpler to understand than yocto (I believe)
<viric>
yocto has nix-like things in the build system
<viric>
but recipes are a hell to write
phdoerfler has joined #nixos
<viric>
similar to gentoo/arch
<viric>
all goes through overwrite of env vars
<viric>
or addition to arrays
<viric>
so you kind of run them all and the vars have the proper final values
<Dezgeg>
buildroot is all just makefiles, the recipes are just a bunch of make variables; quite horrible (and almost no dependency management at all) but they keep the recipes very simple
<viric>
yocto luckily has support for many boards
isidore has quit [(Quit: WeeChat 1.9.1)]
pie_ has joined #nixos
<viric>
often provided by vendors
<phdoerfler>
join #linux
<phdoerfler>
oops
<phdoerfler>
:D
<phdoerfler>
It's getting late
jmc_fr has quit [(Ping timeout: 260 seconds)]
cybrian has quit [(Read error: Connection reset by peer)]
<ma27>
when I want to package a python-based application (which has a `requirements.txt`) should I use pypi2nix or the packages from `pythonPackages.*` (the package is supposed to land in nixpkgs soon)
dan_b_ has joined #nixos
<infinisil>
ma27: Have a look at other python based packages in nixpkgs
<infinisil>
ma27: They use buildPythonPackages and the pythonPackages attribute
ShalokShalom has joined #nixos
<infinisil>
(I'm not sure what pypi2nix does)
kreetx has quit [(Ping timeout: 260 seconds)]
<ma27>
infinisil: `buildPythonPackage` relies on a `setup.py` internally which is not available in this case
orivej has quit [(Ping timeout: 240 seconds)]
<ma27>
hmm, but it seems as there's actually another tool in nixpkgs which uses pypi2nix for dependency resolution
<infinisil>
ma27: (and buildPythonApplication is pretty much just buildPythonPackage)
<infinisil>
I'm not familiar with python packages, but something ought to be the thing you're looking for in there
<infinisil>
ma27: I'm pretty sure just using buildPythonApplication should work though
Guest40001 has quit [(Ping timeout: 248 seconds)]
<ma27>
infinisil: ah, didn't know about `buildPythonApplication`, will try this out, thanks!
Turion has quit [(Ping timeout: 248 seconds)]
<ma27>
IOError: [Errno 2] No such file or directory: 'setup.py'
<ma27>
however, I might be missing something and I'll have a deeper look into the pythonpkgs internals now %)
<fikovnik>
hi, a newbie question, but how can I log into the vm built by nixos-rebuilt? I have a user defined in users.users with hashedPassowrd, but that does not seem to work.
i-am-the-slime has quit [(Ping timeout: 255 seconds)]
<clever>
fikovnik: try using initialPassword, and delete the temporary .qcow2 file it made
<infinisil>
fikovnik: Oh wait, that link is for nixos test vms, never mind
<fikovnik>
infinisil: :)
<fikovnik>
clever: thanks, I will try deleting the .qcow2 file - I already tried the initialPassword (and password) and nothing worked so far
<fikovnik>
I can connect by ssh via authorized_keys, but then I cannot change the password
shanemikel has joined #nixos
<benley>
any of y'all have a grasp of how dbus user sessions are supposed to work? I'm trying to figure out why I end up with DBUS_SESSION_BUS_ADDRESS set to something completely different in my x11 session versus what's in `systemd --user show-environment`
<clever>
fikovnik: initialPassword only has an effect the first time it boots
<clever>
fikovnik: then the /etc/passwd is setup and it ceases to do anything
<clever>
but if you delete the .qcow2 file, it will be a fresh boot
<fikovnik>
ok
<benley>
I tried toggling services.xserver.updateDbusEnvironment to true, and that got the systemd environment matching what my shell sees for a minute after login, but then somehow the systemd environment got reset to the per-user value instead of the per-session one
<fikovnik>
clever: where exactly should the file be?
<rycee>
benley: I haven't seen the problem you describe before, though.
<benley>
hmmmm
<clever>
fikovnik: the build-vm will drop it in the current directory
<clever>
fikovnik: and the name will start with the hostname
<benley>
rycee: thanks for the issue link - what a confusing mess
<rycee>
benley: For me the two are equal inside and outside the systemd environment: `systemctl --user show-environment | grep $DBUS_SESSION_BUS_ADDRESS` gives `DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-DXlgGBjq0f,guid=1038805ae2f755126d7963225a2275b7`
<benley>
mine gives me DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
shanemikel has quit [(Quit: My MacBook Air has gone to sleep. ZZZzzz…)]
<infinisil>
For me it's the same as benley
<rycee>
benley: Yeah, it's a bit unfortunate. I really want to be able to use `--wait` but can't until it's fixed in NixOS. And I haven't had time to champion the change.
<fikovnik>
clever: amazing! it works!
<benley>
if you have `services.xserver.updateDbusEnvironment = false` in your config, the /run/user/1000/bus path is what you'll get in systemd I'm pretty sure
<infinisil>
rycee: Is that the reason for the sleep 0.5 ... loop in HM?
<benley>
but if you set that to true, it looks like systemd _should_ get the abstract=... one that matches the x session
<benley>
but ... that somehow still isn't working right for me
<rycee>
infinisil: Yes, and also why the window manager itself is not running as a systemd unit.
<rycee>
benley: Do you use socket activated dbus?
<benley>
oh hm. *should* the window manager be run as a systemd unit?
<benley>
rycee: I don't think so, unless that has become the default.
<infinisil>
I think theres' more problem with WM on systemd than that
<benley>
I can try it and see what breaks
shanemikel has joined #nixos
<infinisil>
i wanted to get xkeybind running with systemd, but after hours of frustration i ended giving up
<infinisil>
#linux said it can't work
<benley>
heh. My issue is with dunst, which is supposed to get started via dbus activation
<infinisil>
because it needs X and X doesn't like systemd or something
<rycee>
benley: I think the `updateDbusEnvironment` option causes the wrong DBUS_SESSION_BUS_ADDRESS to be set.
<benley>
the x session itself gets a new environment if services.xserver.startDbusSession is true (which is the default)
<benley>
and in the xsession script it sure does look like the systemctl environment should get updated to reflect that, when it runs systemctl --user import environment DBUS_SESSION_BUS_ADDRESS
<rycee>
Yeah, it should start dbus with dbus-launch. That should also set the DBUS_SESSION_BUS_ADDRESS variable.
<benley>
but that doesn't actually seem to stick
<rycee>
benley: Odd, it stays as /run/user/1000/bus in systemd?
<benley>
I'm doublechecking that, one sec
<rycee>
benley: In any case, dbus activation should work since it happens outside systemd. Did you install dunst in your user profile?
<benley>
oh interesting, it _does_ get updated to the dbus-launch value
<rycee>
benley: Cool.
<benley>
dunst is in the system profile, and I added it to services.dbus.packages as well as systemd.packages
<benley>
okay ... I just ran `systemctl --user start dunst.service`, and dunst started up ... and also the systemd environment got reset to DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus at that time.
<benley>
which is really strange
<rycee>
Yeah, you don't want to use systemd to run dunst.
cybrian has joined #nixos
<benley>
(and dunst was launched with the "bad" bus address)
<benley>
perhaps I should just start dunst in .xprofile and move on
<rycee>
(assuming org.knopwob.dunst.service is where I think it is)
<benley>
I'm really confused by the systemd environment changing when I ran systemctl start; that is surprising
fractal is now known as Guest96194
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vbY9f
<NixOS_GitHub>
nixpkgs/master 58307d1 Tuomas Tynkkynen: Merge remote-tracking branch 'upstream/staging' into master
NixOS_GitHub has left #nixos []
<benley>
whoa - after adding that symlink, dbus managed to launch dunst.
<rycee>
benley: From what I know systemd _always_ uses `/run/user/$USER/bus` so I'm not terribly surprised that it finds the value we inject offensive and overwrites it ;-)
<rycee>
I get the same when I run dunst manually: DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
Acou_Bass has joined #nixos
<rycee>
Which is why the user systemd knows nothing about the user dbus, and vice-versa
<benley>
hrm, I guess that makes sense
<benley>
is it unusual to run a user dbus that's separate from the one started by systemd?
<benley>
also, why did adding a symlink in ~/.local/share/dbus-1/services make dbus activation start working?
<rycee>
From what I've been able to tell from reading mailing lists and such the only supported way to run dbus is though socket activation.
<rycee>
I absolutely would like a socket activated dbus by default in NixOS 18.03.
<benley>
That sounds like a good goal
<rycee>
The .local path is simply a path that the session dbus looks at by default.