<noonien>
i don't think there's another way of doing it, when downloading the github repo as an archive takes 2GB(which is what the current nerdfonts package does)
<gchristensen>
I always have to google some terms from it to try and find what it is
<tobiasBora>
infinisil: by curiosity you need to put everything for custom license?
<gchristensen>
the first legaly sentence is usually sufficient - "Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:"
<infinisil>
If only there was a way to identify licenses based on a simple identifier..
<infinisil>
Oh wait, there is
<tobiasBora>
gchristensen: yes true, I was so used to gpl/mit stat state at the very begining what they are that I though every licence would do the same
<{^_^}>
[nixpkgs] @kalbasit merged pull request #56567 → datadog-agent: update go packages and sub-packages → https://git.io/fhAOp
<yl[m]>
gchristensen: who's the 'someone else' in this case :-)
<gchristensen>
I defer everything to vcunat, maybe samueldr has additional information
<yl[m]>
I'll reach out to them later tonight when they come back online
<yl[m]>
unless someone here can answer that :-)
* samueldr
has never followed the staging bits
<yl[m]>
samueldr: you should be asleep!
<yl[m]>
lol
<samueldr>
why?
witchof0x20 has quit [Quit: WeeChat 2.2]
<samueldr>
it's only 20:06 here!
<samueldr>
I'm not silly^W on the other side of the ocean
<yl[m]>
samueldr: oh, sorry I thought you're on EU time zone
slack1256 has joined #nixos
<samueldr>
nah, only part of the main francophone population of north america
witchof0x20 has joined #nixos
<yl[m]>
ha
<yl[m]>
`samueldr is connected via barjavel.freenode.net (Paris, FR, EU)`
<yl[m]>
VPN?
<samueldr>
[20:10:05] * [Whois] yl[m] is online via sinisalo.freenode.net (SE, EU)
<samueldr>
VPN?
<gchristensen>
I think the routing is basically random
<yl[m]>
:O
<samueldr>
when connecting to irc.freenode.net, yeah
<yl[m]>
lol
<yl[m]>
I'm using irccloud, I wonder if their servers are closer to EU or if it's totally random
<samueldr>
and AFAIK no IRC network tries to geographically distribute
<samueldr>
I bet on random
<yl[m]>
that's pretty weird
<yl[m]>
seems like it
<samueldr>
it's not really sensitive to latency
<yl[m]>
true
Rusty1 has joined #nixos
<samueldr>
most implementation will wait ~30s of silence to ask "are you still there?" and waits for ~120s IIRC (times may be wrong, but it's in the couple minutes range)
<yl[m]>
what timezone is vcunat on?
jluttine has joined #nixos
<gchristensen>
CET
<samueldr>
pretty sure it's one of +1 or +2
<noonien>
gchristensen: sadly, fetchsvn can't fetch a specific git revision, i'll try using a svn version number
<noonien>
sadly, they're not really the same thing
<gchristensen>
they're not, that is true
<tobiasBora>
I just want to add shelldap, should I also add a maintainer (me?) to it, or can I just let is as it?
<tobiasBora>
(few packages actually have a maintainer in this perl list)
<yl[m]>
tobiasBora: add yourself as a maintainer if you're willing to do so
<yl[m]>
that helps ofborg request reviews from you
<gchristensen>
and please do maintain it
<tobiasBora>
well the point is that I don't really know this package, but it seems pretty stable anyway so I guess I can try...
<gchristensen>
one option is to package shelldap in an overlay and keep it local, or shared on NUR -- it doesn't have to go in to nixpkgs specifically
<aanderse>
shelldap... that looks like a useful tool
* aanderse
takes note
black-brick has joined #nixos
<black-brick>
Hi all! I have some problem with my boot screen resolution. I use systemd-boot btw
<aanderse>
black-brick: maybe a few more details?
<noonien>
can a derivations have multiple sources?
<black-brick>
aanderse: yea sorry that was pretty vague. Well it's too zoomed in, so the boot entries dont show up entirely and their name aren't showing all the way. Maybe a picture would help?
<aanderse>
noonien: grep for srcs
<aanderse>
black-brick: some of my computers do that too
<black-brick>
aanderse: is there a setting to correct that?
<aanderse>
thats a bios thing, no?
<elvishjerricco>
immae: FYI I figured it out. Apparently systemd-ask-password-wall.service has this: `ExecStartPre=-/nix/store/...-systemd-239/bin/systemctl stop systemd-ask-password-console.path systemd-ask-password-console.service systemd-ask-password-plymouth.path systemd-ask-password-plymouth.service`
<black-brick>
aanderse: well uefi is that matters
<aanderse>
black-brick: yeah my older uefi mobo does that
<aanderse>
the newer ones don't
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhpT0
<elvishjerricco>
So I guess I just need to either disable that service (bad idea), or figure out what must come before it and put the console one before that
<black-brick>
aanderse: ohh sad :/ i have a thinkpad T420 so yea it's kinda old! I'll use grub then, it worked properly with grub on other distros
<aanderse>
black-brick: yeah if you show boot options with grub you can control that easy enough
<aanderse>
black-brick: go into your bios first and see if you find any resolution options?
<{^_^}>
[nixpkgs] @tobiasBora opened pull request #56933 → shelldap: init at 1.4.0 → https://git.io/fhpTo
<tobiasBora>
gchristensen: ok. I tried to upload it, if people are not interested to include it, they can drop it I guess (but it's pretty small, and present in other distros like debian, so I don't think it's a big deal to include it anyway)
Acou_Bass has joined #nixos
jluttine has quit [Ping timeout: 255 seconds]
silver has quit [Read error: Connection reset by peer]
<gchristensen>
but $src doesn't exist -- $srcs does
<noonien>
it seems to want to unpack the first file
<noonien>
then it errors, because the file is not an archive
thomashoneyman has joined #nixos
<thomashoneyman>
Hey folks! I installed NixOS last night and have been running it just fine with close to the default configuration on the command line; I haven't been able to load any display / window / desktop manager, however, and I was hoping to get some help.
<thomashoneyman>
Is this a good place to ask a few questions, or is there a better way to go about this?
<thomashoneyman>
I know that diagnosing issues can come down to very specific bits of configuration and it might be a bit much pouring a lot of that info into the channel.
sb0 has joined #nixos
<sb0>
hi
<sb0>
on NixOS, if I add a channel with name "foo", then I can install packages with:
<sb0>
nix-env -f "<foo>" -iA package
<sb0>
however, with the Nix package manager installed in another distribution, this doesn't work
<sb0>
this is also breaking "import <foo>" in other places
<elvishjerricco>
sb0: Yea I think they changed the installer on other distros to not include channels in the default NIX_PATH, instead hard coding the path to the nixpkgs channel for "<nixpkgs>". I'm honestly not a fan of this change. Examine your NIX_PATH on each system and compare.
<CMCDragonkai>
sb0: I don't get the channel feature, it's too inflexible. I alias my `nix-env` command to go into a nixpkgs git branch that I've cloned onto my local system
<sb0>
elvishjerricco: why did they make that changes? it makes it very annoying to use my own channels with non-NixOS
<sb0>
(they're channels with my own software, which isn't distributed with nixpkgs)
<elvishjerricco>
sb0: I honestly can't tell you for sure. I think it has something to do with the fact that the new `nix` standalone command doesn't respect unlabeled directories in NIX_PATH like nix-* command do, i.e. `NIX_PATH=/somedir` as opposed to `NIX_PATH=nixpkgs=/somedir/nixpkgs`
<gchristensen>
elvishjerricco: I thought we made a change to fix this :/
<elvishjerricco>
Oh? I thought this was a conscious decision at one point. But it's been a while so I'm probably misremembering :P
<thomashoneyman>
elvishjerrico: thanks! one sec, i'll type up a bit of background and if it seems like too much at once I can post to Discourse instead.
drakonis1 has quit [Ping timeout: 255 seconds]
maximiliantagher has quit [Remote host closed the connection]
<sb0>
elvishjerricco: so what's the solution? do I have to tell users to edit their NIX_PATH manually?
<elvishjerricco>
sb0: Either that or find whatever gchristensen is talking about.
<gchristensen>
you can add the channels as root
jluttine has joined #nixos
<gchristensen>
you can file a bug report to fix this _very_ annoying bug :/
<elvishjerricco>
why would it work for root?
<sb0>
annoying for users, or annoying/difficult to fix?
<gchristensen>
annoying for users
<gchristensen>
sb0: what is your NIX_PATH?
drakonis has quit [Ping timeout: 252 seconds]
<sb0>
on nixos it's /home/sb/.nix-defexpr/channels:nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos (and some more)
<sb0>
on nix it's simply nixpkgs=...
<sb0>
so I guess that explains it
<gchristensen>
:/
<gchristensen>
that should not be true
<gchristensen>
oooOOOooooh
drakonis has joined #nixos
<gchristensen>
:( okay, yeah, this is not nice
drakonis1 has joined #nixos
<tobiasBora>
Hum... How can I call perlPackages.buildPerlModule from a configuration file? I tried to put at the beginning { config, pkgs, lib, stdenv, fetchurl, perlPackages,... }: but it fails, so I guess I should import perlPackages differently but I don't see how
<thomashoneyman>
Backstory: I bought a new Dell Precision 5530 with Ubuntu 18 pre-installed. We use Nix / NixOS / Hydra at work, so I would like to dive in to NixOS for my home machine and get used to it. I produce music professionally, so I need to dual-boot Windows for some of that software to work. My goal is a functioning Windows + NixOS machine.
<thomashoneyman>
Steps taken so far: I replaced the Ubuntu installation with a Windows installation. I left most of the disk unallocated. Then, I followed the instructions here to create two new partitions and install NixOS: https://qfpl.io/posts/installing-nixos/
<thomashoneyman>
When I use a live installation disk for NixOS I can boot into the KDE Plasma desktop and poke around. With my NixOS installation I can boot the machine and poke around on the command line, but ONLY if I have not enabled any xserver stuff. Enabling a window manager, display manager, etc. all result in what looks like an empty terminal (black screen, blinking cursor, no contents).
<elvishjerricco>
thomashoneyman: Ah, yea that's the xterm thing
<elvishjerricco>
Super annoying
<thomashoneyman>
Well, I'm both relieved and scared to hear you're familiar with the problem
<elvishjerricco>
You have to select the right desktop environment from the login screen. There's usually a button somewhere, but I forget where on all but lightdm
<elvishjerricco>
thomashoneyman: What you were *supposed* to do was inform nixos of the desired default DE in your configuration.nix, and it would have set it on first boot. But that doesn't work after the first boot anymore
drakonis has quit [Client Quit]
<gchristensen>
elvishjerricco: eh? it doesn't?
<elvishjerricco>
super frustrating
<thomashoneyman>
I tried selecting a desktop environment with autorun=false, so that I have to explicitly start it with `systemctl start display-manager.service`
<elvishjerricco>
gchristensen: At least not with lightdm. Lightdm is stateful and remembers things too well
<thomashoneyman>
which is fine, because then on boot I can log in as my user or as root and do things and then i can actually start the display manager when i see fit
<thomashoneyman>
that's nice, because it helps isolate that starting the display manager is what causes the blank screen
<Glenn_S>
Does anyone know of a reason why systemd.services.<name>.restartTriggers wouldn't work? In particular: does it fail if the service is not currently running? I'm trying to do the following: https://pastebin.com/H3hkk21J
<elvishjerricco>
gchristensen: Does it work for other login screens?
<thomashoneyman>
elvishjerrico: i actually did select the desired default DE in configuration.nix on first boot, I believe
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elvishjerricco>
thomashoneyman: Can you past the relevant chunk of your configuration.nix?
<elvishjerricco>
paste*
<thomashoneyman>
but it resulted in the black screen + cursor i'm talking about, so I re-partitioned the drive and re-installed
<gchristensen>
I'm not sure, it seems to work for me?
drakonis1 has quit [Ping timeout: 250 seconds]
<elvishjerricco>
gchristensen: With lightdm?
<gchristensen>
yeah
<elvishjerricco>
huh. At one point that definitely did not work at all, so I opened a PR to make it work on first boot. Someone must have improved it to work for each configuration
maximiliantagher has joined #nixos
<thomashoneyman>
elvishjerrico: one sec, i'm actually using the machine i'm talking about
<elvishjerricco>
thomashoneyman: Did you set the `services.xserver.desktopManager.default` option?
<tobiasBora>
elvishjerricco: indeed great thanks a lot!
<thomashoneyman>
elvishjerrico: i think at one point, but not currently. i can try adding that and restarting.
<elvishjerricco>
thomashoneyman: Ah yea you need that, and I think `windowManager.default` too
<thomashoneyman>
the machine has NVIDIA graphics (and Intel) and I added a little to see if that was the problem -- specifically adding 'intel' and 'nvideo' as video drivers
<thomashoneyman>
do you have a suggested one to try?
<thomashoneyman>
i don't care which desktop / window manager etc. for the time being, just getting anything to display is a good first step :)
<elvishjerricco>
thomashoneyman: Ah hm you're not using a DE... Let me check something, you might not need the desktopManager.default
<gchristensen>
thomashoneyman: are you not using a DE on purpose?
<elvishjerricco>
thomashoneyman: So you can just do `windowManager.default = "whatever-you-use-for-i3-probably-just-i3";`
<thomashoneyman>
gchristensen: no, i'd just been unable to load the system using the default configuration.nix that's generated
<gchristensen>
ok
<thomashoneyman>
so i wanted to isolate the issue a bit
<thomashoneyman>
i've never used a Linux machine
<gchristensen>
ooooh welcome!
<thomashoneyman>
so have no preconceived notions about this sort of thing :)
<thomashoneyman>
well, I've used Linux, but only ssh-ing in to the server and Docker and that sort of thing
<thomashoneyman>
never as my actual home machine!
<elvishjerricco>
thomashoneyman: I just use xfce and xmonad. It's extremely low-tech. I previously just used xmonad, but I found I needed *some* desktop manager to get any games working for some reason.
simukis has quit [Quit: simukis]
<gchristensen>
elvishjerricco: I'm sort of thinking thomashoneyman would be better off getting started with plasma
sigmundv has quit [Ping timeout: 255 seconds]
<elvishjerricco>
Gnome and Plasma are both way better looking than my desktop
<elvishjerricco>
That's likely
<gchristensen>
and all of the default, standard set up
<elvishjerricco>
much more windows-y
<thomashoneyman>
i *am* a sucker for good design
<thomashoneyman>
i've never used Windows either ;)
<gchristensen>
and a bit less to chew on while they learn Linux
<elvishjerricco>
much more macOS-y? :P
<thomashoneyman>
started on a clamshell mac in like 2000 and been stuck there since
<thomashoneyman>
not on a clamshell, but on Macs
<thomashoneyman>
i write PureScript / Haskell at work
slyfox has quit [Ping timeout: 245 seconds]
<thomashoneyman>
and everything's on Nix, deployed machines are NixOS, etc.
<slack1256>
thomashoneyman: I want your job :p
<gchristensen>
very nice
<jasongrossman>
I've noticed GDM working better than LightDM recently, e.g. for autologin. I haven't investigated in detail because I don't care which I use (so I just switched to GDM).
<thomashoneyman>
but back on topic -- totally fine with any option
<elvishjerricco>
I still use a macbook when I'm not at my desk. I literally only use Linux because you couldn't get a 16 core mac when I bought my machine, and because virtually all programming tasks work better on Linux
<elvishjerricco>
thomashoneyman: Yea, I'd just try out the xserver settings generated by nixos-generate-config.
<jasongrossman>
thomashoneyman: If I were you I'd use plasma if you don't mind something complicated, and otherwise gnome shell.
<thomashoneyman>
elvishjerrico: it was hard not to notice that a machine with (close, but not the same) specs from Apple would be another $1200
black-brick has quit [Ping timeout: 256 seconds]
<elvishjerricco>
oh that too lol
<jasongrossman>
Gnome shell is also a fully featured desktop manager ... just not QUITE as fully featured as plasma.
<thomashoneyman>
ok, i'm willing to fully replace the configuration.nix
<jasongrossman>
thomashoneyman: You could also consider xmonad, since you know Haskell, but it's much much more minimalist.
<elvishjerricco>
thomashoneyman: If you're already booted into the installed system, you can just do `nixos-generate-config --root /`, and then edit that file to your liking before doing `nixos-rebuild switch`
andreabedini has joined #nixos
<thomashoneyman>
ok. i've regenerated the config.
<elvishjerricco>
xmonad is super minimalist and extremely reliant on knowing several keybindings. I wouldn't recommend learning all those while also trying to learn to set the system up :P
<thomashoneyman>
i'm going to keep it absolutely the default for now
<jasongrossman>
thomashoneyman: There isn't really a default. plasma and gnome shell are both fine though.
<slack1256>
You will probably have less problems overall with gnome shell or plasma
slyfox has joined #nixos
<thomashoneyman>
jasongrossman: i just mean to verify that i can get anything at all to load
<thomashoneyman>
for the moment
<jasongrossman>
I see, yes.
<thomashoneyman>
ok i'm rebuilding with the generated config, only changed the locale to dvorak
<elvishjerricco>
thomashoneyman: I think you'll need to uncomment the generated xserver section. NixOS is not graphical by default.
<jasongrossman>
thomashoneyman: When you get back to using X, you'll need xkbVariant = "dvorak";
<thomashoneyman>
oh: something else i noticed -- i'm not able to just `reboot`, it hangs on `Starting mdadm-shutdown.service...`
<jasongrossman>
thomashoneyman: I mean services.xserver.xkbVariant = "dvorak";
<thomashoneyman>
oh, shoot, this won't work
<thomashoneyman>
because the disk is encrypted
<thomashoneyman>
logical volume etc.
<elvishjerricco>
thomashoneyman: Whoops :P It may have detected that and inserted the necessary parts in hardware-configuration.nix
<elvishjerricco>
If you're using ext4 for the filesystem, I think it should have
<thomashoneyman>
i get "waiting for device to appear......." with the generated config
<thomashoneyman>
if I use that, then it will find the device and ask me for the password
<elvishjerricco>
Huh. Well that's frustrating; nixos-generate-config really ought to catch that. What does the hardware-configuration.nix look like?
<thomashoneyman>
is there a convenient way to post these files from the command line on the booted machine
<elvishjerricco>
(sidenote: I personally just skip LVM. It's pointless for a single drive, and worse than ZFS for any number of drives. Not saying it's worth the trouble to undo it though)
<jasongrossman>
thomashoneyman: Do you actually want your disk to be encrypted? The reason I ask is that if you've followed that guide you may have chosen encryption unnecessarily.
<jasongrossman>
elvishjerricco: I believe thomashoneyman has just wiped his drive and can easily wipe it again.
<yl[m]>
tobiasBora: FYI I left you comments on #56933
<elvishjerricco>
I think encryption should be enabled on virtually any laptop.
<elvishjerricco>
desktops it's less essential, but if you're careful it's still probably a good idea.
<elvishjerricco>
on cloud hosting, it's literally pointless :P
<thomashoneyman>
jasongrossman: work is adamant the disk should be encrypted
<thomashoneyman>
not that it's LVM or anything
<jasongrossman>
thomashoneyman: OK, cool. In the long run you might prefer ZFS ... although if your colleagues are using ext4 then maybe you'll prefer that.
<thomashoneyman>
tbh i have no idea how to evaluate the differences atm
<jasongrossman>
thomashoneyman: ZFS is better in every way (!) except that it's probably not be worth the bother if it's not what your colleagues are using. So forget I spoke.
<jasongrossman>
- be
<thomashoneyman>
to clarify a bit: this is my home laptop, but I will be writing code for work on it as well
<elvishjerricco>
Yea ZFS is surprisingly interesting and amazing for something as simple as a filesystem
<elvishjerricco>
but it's a bit more complicated to set up
<thomashoneyman>
as long as the disk is encrypted, I don't mind wiping it entirely and starting over with ZFS
Supersonic has quit [Ping timeout: 257 seconds]
<elvishjerricco>
I like it a lot for anything critical because it can tell you on its own if files are corrupted
<thomashoneyman>
but being new I would need some pretty friendly resources
<jasongrossman>
Well, I wouldn't say ZFS is complicated to set up. Maybe just a tiny bit more complicated than ext4. The problem with it is that it's DIFFERENT.
<jasongrossman>
elvishjerricco: I feel like we're being enablers, encouraging thomashoneyman to dive into filesystems when what he really needs is to get NixOS working. Even though nobody loves ZFS more than I do.
<thomashoneyman>
haha
<thomashoneyman>
i mean -- i AM here to be enabled
<jasongrossman>
In THAT case, have a read about what's so great about ZFS.
<elvishjerricco>
lol yea I just want ZFS to rule the world :P
<thomashoneyman>
i still have my work laptop, which is a Mac running everything I need just fine
acarrico has quit [Ping timeout: 245 seconds]
<thomashoneyman>
so i'm able to fuck up the dell precision over and over until either i've got a great machine on a solid foundation or i return it
<jasongrossman>
thomashoneyman: I have bad news for you then.
<thomashoneyman>
no
<thomashoneyman>
ok, hit me
<jasongrossman>
thomashoneyman: It's almost impossible to fuck up a NixOS machine once you've got one good installation.
<jasongrossman>
thomashoneyman: Sorry.
<thomashoneyman>
i'm a few fuckups in so i'll be delighted to have them behind me :)
<elvishjerricco>
The short list of the biggest benefits of ZFS in my opinion: The ability to rollback entire file systems; the ability to backup filesystems extremely easily; and the ability to check for corruption.
<thomashoneyman>
installing windows in the first place was rough
fresheyeball has joined #nixos
<fresheyeball>
hey out there
<fresheyeball>
I am using succeed on fail in jenkins
<fresheyeball>
and need to redo a build
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elvishjerricco>
and the ability to add storage seamlessly, but that rarely matters for laptops
<thomashoneyman>
elvishjerrico: i'm not sure what's most important fom the hardware configuration
<tobiasBora>
yl[m]: you are kalbasit? Thanks for the review, I answered you.
<yl[m]>
tobiasBora: yes, sorry for the confusion
<yl[m]>
thx, will review
<elvishjerricco>
thomashoneyman: Nah, that's common. There's very few full systems detailed in nixpkgs, so it just uses scanned info placed in hardware-configuration.nix
<thomashoneyman>
it picks up two file systems, `/` which is ext4, and `/boot` which is vfat
<thomashoneyman>
and a swap
<tobiasBora>
yl[m]: ok thank you!
<elvishjerricco>
(consider not using swap. you will regret it every time you end up needing it)
<jasongrossman>
It depends how much memory you have.
<jasongrossman>
And also how much memory your computer has.
<thomashoneyman>
man, i specifically didn't have swap at first, but i'm tbh just bouncing around random linux articles at this point
<thomashoneyman>
i have NO IDEA what i'm doing haha
<thomashoneyman>
i have 32gb ram in this guy
<elvishjerricco>
thomashoneyman: lol swap is just a place for the kernel to page memory out to if the system runs low on ram.
<elvishjerricco>
thomashoneyman: It makes everything instantly insanely slow as soon as that starts happening
<elvishjerricco>
usually unusably slow
<jasongrossman>
thomashoneyman: With 32 GB of RAM you don't need swap.
<jasongrossman>
thomashoneyman: I have 16 GB of RAM ... and I almost never actually use more than 8 GB.
<thomashoneyman>
let's say i wanted to puzzle out some step-by-step "wipe your drive, partition it, install nixos, hey there it is"
<jasongrossman>
thomashoneyman: It's different with MacOS because the system itself uses a truly immense amount of RAM.
vonfry has joined #nixos
<elvishjerricco>
8GB or more 100% does not need swap except in very specialized applications. 4GB can probably get away with it too
<thomashoneyman>
elvishjerrico: i've got your article up
<thomashoneyman>
i do music production professionally
<thomashoneyman>
in addition to coding
<elvishjerricco>
thomashoneyman: Oof, careful with that. It's not that hard, but there are several details you don't want to mess up.
<elvishjerricco>
particular the keyfile you generate. Do not let that ever be visible to anyone other than root, and never copy it anywhere else
acarrico has joined #nixos
drakonis1 has quit [Ping timeout: 240 seconds]
<jasongrossman>
thomashoneyman: As far as I can tell, music production is the only thing Linux is really terrible at. :-(
<elvishjerricco>
video production too, right?
<jasongrossman>
Oh, yes, OK.
<thomashoneyman>
that's the only reason i'm dual booting windows
<jasongrossman>
thomashoneyman: I see, good.
<elvishjerricco>
(I have something even more ridiculous for dual booting windows better but I'll keep my mouth shut because that's definitely many hours worth of trouble)
<elvishjerricco>
then you hypervise windows from the second linux system
<elvishjerricco>
headlessly, so that you can VFIO the graphics card to the VM
<tobiasBora>
yl[m]: before reviewing I'm thinking about something... I think I need a mkdir -p $out/bin (no -p will make it fail)
<elvishjerricco>
using ZFS zvols for the VM's disk to get better performance, snapshots, etc.
<yl[m]>
tobiasBora: sure
<tobiasBora>
yl[m]: hum it was already there
drakonis1 has joined #nixos
<tobiasBora>
don't know why on another version I had it was not there and I thought I forgot it. but it's fine
acarrico has quit [Ping timeout: 255 seconds]
<thomashoneyman>
ok this boots
<thomashoneyman>
elvishjerrico: what is the minimum i should enable to see if i can get a gui?
<tobiasBora>
yl[m]: just, I'm not sure to understand your review: why it should not be in all packages? Is it bad to put a program in all-packages? Why does it matter if it is build in Perl?
<thomashoneyman>
from the generated config
<thomashoneyman>
i'm assuming i should enable `services.xserver.enable`
<yl[m]>
tobiasBora: you can install it with `nix-env -f '<nixpkgs>' -iA perlPackages.Shelldap`
<tobiasBora>
yl[m]: yes sure
<tobiasBora>
but for example exim-tools is also in app-packages
<thomashoneyman>
it also has `xserver.displayManager.sddm.enable` and `services.xserver.desktopManager.plasma5.enable` commented out
<jasongrossman>
thomashoneyman: Do you have the NixOS manual, by the way?
<yl[m]>
tobiasBora: you're basically creating an alias for it on the top-level, I don't think it's the right thing to do
<thomashoneyman>
i do have a copy of that up
<jasongrossman>
thomashoneyman: See above for the option to enable dvorak in your gui.
<tobiasBora>
yl[m]: ok. I'm just trying to understand when it is the right thing to do and when it's not ;)
<thomashoneyman>
got it, i'll make sure that's enabled
<jasongrossman>
thomashoneyman: IMO, the hardest part of installing NixOS is configuring the disk. You'll be fine from now on. (See, I just jinxed it.)
<thomashoneyman>
ok. i've now got the default config, except it will check for the encrypted disk, and then enabled xserver, sddm, and plasma
<thomashoneyman>
but otherwise default
<jasongrossman>
thomashoneyman: Nothing can go wrong.
<thomashoneyman>
let's give this a try
<thomashoneyman>
loading....
<thomashoneyman>
NO GOOD
<thomashoneyman>
rejected by the blank terminal
<thomashoneyman>
oh, wait -- getting something occasionally flashing on the scree
<thomashoneyman>
started load/save kill switch status...
<thomashoneyman>
ok, got something new: "a start job is running for DHCP Client (22s / 1min 31s)
<thomashoneyman>
appears to be frozen on that, though, not counting up
<thomashoneyman>
oh! never mind, flashed again
<thomashoneyman>
now i've got a nice zig-zag pattern of a few messages
<thomashoneyman>
"reached target network is online"
<elvishjerricco>
thomashoneyman: What does your `services.xserver` section look like?
<thomashoneyman>
how could i check that+
<thomashoneyman>
?
<thomashoneyman>
afaik i can't interact with this
<thomashoneyman>
typing does nothing
<elvishjerricco>
(also, yay my article worked)
<thomashoneyman>
including say `chvt 1`
<elvishjerricco>
ctrl-alt-f1 maybe?
<thomashoneyman>
no luck
<thomashoneyman>
side note: i can boot without the gui stuff, and i could run the gui stuff off of the live usb
<elvishjerricco>
Huh, that's odd; that should have switched you to a differt vt
<thomashoneyman>
nope. no key does anything to the screen
<slack1256>
copy the file on /etc/nixos/configuration.nix onto http://piratepad.net and paste your link
<elvishjerricco>
yea but the live CD has an excessive number of drivers installed so that it works everywhere. An install just relies on the drivers detected and placed in hardware-configuration.nix
<elvishjerricco>
slack1256: They can't copy the file if they can't interact with the system :P
<elvishjerricco>
so you'll probably need to reboot into the live cd and mount the disk again
<thomashoneyman>
that's what i did last time
<thomashoneyman>
which i'm happy to do again, but i do worry that it will lead to the same result
<elvishjerricco>
thomashoneyman: You don't need to redo any of the install work
<thomashoneyman>
slack1256: it's the default generated config, with nothing changed except for the xserver stuff uncommented
<thomashoneyman>
i can restart and grab the actual contents but i'll have to do that later
yl has joined #nixos
<thomashoneyman>
i'm going to have to head out in a few
vonfry has quit [Quit: WeeChat 2.4]
<elvishjerricco>
thomashoneyman: Hm. You probably need the nvidia driver since you said you have an nvidia card
<thomashoneyman>
i tried to futz around and see about disabling hardware acceleration or something to see if that's it, and install nvidia packages in configuration.ni
<clever>
tA: yep, line 3, that will cover the entire file, but it might have other problems now
<clever>
tA: and line 59, you are re-importing nixpkgs
<tA>
yeah fixed that up now
<clever>
59 could be `with pkgs;` but since 3 now does that, 59 doesnt need a with at all
<tA>
its telling me apppkgs doesnt exist, thats it evaluating those lists in alphabetical order right? do i need to put them in a let expression or something?
<clever>
thats a normal set, and it cant refer to its own attrs
<clever>
you likely want a let block
<clever>
with pkgs; let mediapkgs = [ mpv ]; in { home.packages = mediapkgs ++ thing; }
<tA>
do i need to set anything to the with pkgs; let .....? if i put it on its own line it complains about let
<clever>
line endings dont really matter at all
<clever>
can you pastebin what you currently have?
<tA>
same link as before clever
<tA>
sorry for all this, still learning
<clever>
the let goes before the {
<clever>
{ pkgs, ... }: <value>
<clever>
is a function that takes pkgs, and returns a value
<clever>
let key = <value>; in <value>
<clever>
is also a value
<clever>
{ key = <value>; } is also a value (and an attrset)
<slack1256>
Is there an easy way to search the modules available to modprobe on the current kernel?
<tA>
ok making lots of progress
<clever>
so you basically want:
<slack1256>
currently I am searching /nix/store for the current version and using `find` on that.
<clever>
{ pkgs, ... }: let key=value; in { key2 = value2; }
<tA>
my audios stopped working in everything except mpd, any idea why? ive got ffmpeg-full installed. i noticed mpv complained about not having mp3float, but ffmpeg -codecs shows it under mp3
calbrecht has quit [Ping timeout: 245 seconds]
yl has quit [Ping timeout: 252 seconds]
palo1 has joined #nixos
calbrecht has joined #nixos
palo has quit [Ping timeout: 255 seconds]
palo1 is now known as palo
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
justanotheruser has quit [Ping timeout: 255 seconds]
Diagon has joined #nixos
orivej has joined #nixos
alex`` has joined #nixos
Diagon has quit [Client Quit]
<Shouou>
How do I package a Python program that doesn't really have a build structure? I.e. it's just ran through `python program.py`. I assume I need buildPythonApplication.format = "other" and makeWrapper?
<johanot>
is there a lib function or something for getting the hash part of a store path?
phreedom has quit [Ping timeout: 256 seconds]
calbrecht has quit [Ping timeout: 252 seconds]
<makefu>
flokli: was this commit pushed directly to master? i cannot find the related PR as part of the review process is " Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip""
<{^_^}>
[nixpkgs] @7c6f434c pushed to master « luarocks: switch to a less intrusive update-walker metadata style »: https://git.io/fhpYs
_kwstas has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fhpYG
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskellPackages: switch default package set to ghc 8.6.4 »: https://git.io/fhpYc
<{^_^}>
[nixpkgs] @peti pushed to master « haskellPackages: switch default package set to ghc 8.6.4 »: https://git.io/fhpYC
ubert has joined #nixos
_kwstas has quit [Client Quit]
_kwstas has joined #nixos
pie_work has joined #nixos
<clefru>
Are there any sub nix communities? Like people doing android development on nix, or java on nix, or nodejs stuff on nix?
<clefru>
I feel that spamming this channel with node2nix questions would not be relevant to most people
<EffSquared>
infinsil: It is missing the cstddef and the cassert headers, which should both be part of the C++ standard lib. Maybe these are actually handled in the cc wrapper and therefore they do not show up in the CFLAGS by default.
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskellPackages: switch default package set to ghc 8.6.4 »: https://git.io/fhpYu
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhpYz
_kwstas has quit [Quit: _kwstas]
<EffSquared>
infinsil: I am getting closer. They come the gcc derivation under include/c++/<version>
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_kwstas has joined #nixos
cmacrae has joined #nixos
<EffSquared>
infinisil Ok, stdenv.cc is the wrapper, stdenv.cc.cc the actual compiler. Just remebered that patchElf two needs to be run with the unwrapped version.
zupo has joined #nixos
zupo_ has joined #nixos
<EffSquared>
infinisil, thanks fot the help
EffSquared has quit [Quit: Leaving]
zupo has quit [Ping timeout: 255 seconds]
zupo_ has quit [Client Quit]
fendor has quit [Ping timeout: 255 seconds]
<delan>
I migrated one of my boxes from a neglected debian 8 install to nixos 18.09 the other day, but I’ve run into a very strange problem with a libvirt/KVM guest that handles my ZFS pool (freebsd 10.3 with a 9211-8i over vfio): each vdev throws well over 10 CKSUM/s when the guest scrubs the pool on nixos, damaging hundreds of files in the process, and zdb -ec crashes randomly on the exported pool, but the scrub
<delan>
continues perfectly when the old debian install is restored
<delan>
I realise the excessive complexity of my setup makes this a long shot, but would anyone know where I could look to narrow the problem down?
<{^_^}>
[nixpkgs] @7c6f434c pushed to master « luarocks: fix meta after refactoring, thanks to @peti for mentioning »: https://git.io/fhpYj
alex`` has quit [Ping timeout: 252 seconds]
<lukego>
I installed Firefox from nixpkgs and my monospace font doesn't work (isn't monospace). Any idea how to troubleshoot that?
init_6 has joined #nixos
fendor has joined #nixos
_kwstas has joined #nixos
<etu>
lukego: On nixos or not?
<lukego>
This happens to be on nixos, though I'd like to use the same expression on other distros too
<ar>
/60
<lukego>
(actually I can quickly test this in an alpine linux container, lemme try that)
<etu>
lukego: And you've installed fonts using fonts.fonts = []; ?
Makaveli7 has quit [Quit: Leaving]
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
ij has joined #nixos
<lukego>
etu: no, had assumed a monospace font would be there by default, thanks for the poke
<lukego>
I'd really like to ensure that this Nix expression always makes a font available to the application, regardless of host OS config. any workable approach?
<{^_^}>
[nixpkgs] @danbst opened pull request #56948 → nixos/auto-upgrade: enable service only when it's enabled in options → https://git.io/fhpOi
ij has joined #nixos
<__monty__>
lukego: On mac os I've had to use the font manager application to actually make nix installed fonts available manually. So I'm not sure it's possible to regardless of OS.
noonien has joined #nixos
<lukego>
well regardless of Linux distro at least e.g. also when running Nix in an Alpine Linux container
<Myrl-saki>
The option `services.duplicity-backup.enable' in `/home/myrl/Development/NixOSEncryptedLiveCD/nix-duplicity-backup/duplicity-backup-common.nix' is already declared in `/home/myrl/Development/nix-duplicity-backup/duplicity-backup-common.nix'.
<Myrl-saki>
Uhhh ???
<srhb>
Psychic debugging time. On boot, after nixos-install, zfs times out trying to import my pool (with the correct name), and eventually fails: "No such pool available". I reboot back into the installer, and now I can import it just fine. What might be the cause?
<Myrl-saki>
Oh wait. That's the symbolic link.
<Myrl-saki>
Hm.
<Myrl-saki>
I wonder if there's a way to canonicalize symlinks.
<__monty__>
Canonicalize how?
offlinehacker has quit [Quit: OFTC spam preventative kick]
<Myrl-saki>
Like `realpath`
<Myrl-saki>
IIRC, infinisil had an open issue about symbolic links.
dotglitch[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : OFTC spam preventative kick"]
fosterop[m] has quit [Quit: OFTC spam preventative kick]
<hyper_ch2>
hmmmm, if I create a huge list of domains to blacklist via hosts file, is it better to 127.0.0.1 domain.tld or 0.0.0.0 domain.tld?
<{^_^}>
[nixpkgs] @teozkr opened pull request #56957 → plantuml: downgrade graphviz to 2.32 → https://git.io/fhpGC
Makaveli7 has joined #nixos
<avn>
Folks, does anyone have working example of weechat+wee-slack setup?
<fendor>
when compiling a c++ executable, i get the error that the "vector" lib cannot be found. default.nix looks like: https://pastebin.com/qat5NAFP
<jasongrossman>
hyper_ch2: I've been told that it's better to use 0.0.0.0, but I can't remember why. Maybe because you might actually run something on 127.0.0.1?
<{^_^}>
[nixpkgs] @shlevy pushed 3 commits to release-18.09: https://git.io/fhpG0
* clever
heads off to bed
<hyper_ch2>
clever: did you try trim yet?
<clever>
hyper_ch2: not yet
<avn>
clever: ty ;)
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso>
clever: Mind my asking, how does one use such a nix file?
zupo has joined #nixos
jtojnar has joined #nixos
<delan>
I think I’ve narrowed it down… with sporadic corruption running sha1 on the first MiB of each vdev inside geli(8) and out, one thing led to another and I discovered that neither the guest nor the freebsd 10.3–11.1 installers were even able to sha1 /dev/zero reliably (under that guest and box at least) 🙃
<delan>
gchristensen: my immediate problem should be solved by building a new storage guest with freebsd 12.0, but if I was to investigate it further I would start with the fact that one of my boxes is affected (18.09 with linux 4.14.94 etc.) and the other isn’t (nixos-unstable with linux 4.14.102 etc.)
<steveeJ>
well, it does put it in the systemPackages, but only if any user is granted permissions
<nh2>
infinisil: it feels a bit ugly though; my intent with adding it to the top-level pkgs namespace was that it is "generally available" vs having to be passed in
<gchristensen>
Mic92: you aren't listed as a ZFS maintainer, would you like to be? :)
<infinisil>
nh2: (I recommend overlays and `haskell.packages.ghc822.extend` btw, packageOverrides is discouraged/deprecated and `override` for haskell package sets can have odd behavior)
<infinisil>
nh2: Hmm I get you..
<Mic92>
gchristensen: Guess that would make sense. I need to revert the linux 5.0 regression that disabled vector instructions in zfs anyway.
<nh2>
oh, I should also mention: The haskellPackages override looks like this:
<nh2>
`haskellPackages = with pkgs.haskell.lib; pkgs.haskell.packages.ghc822.override { overrides = self: super: let myhaskellpackage = self.callPackage ./myhaskellpackage.nix {}; in ... }`
<nh2>
is it important for callPackage's auto-passing that here things are called `self` and `super`?
<Mic92>
Also I do quite a lot filesystem stuff lately
<gchristensen>
what is the occasion, Mic92 ?
<srhb>
nh2: Nope.
<srhb>
nh2: My favourite so far for the inner ones is helf and huper :-)
<Mic92>
gchristensen: regarding the vector extensions? They made a symbol private that zfs used, but they don't zfs so they don't care.
<nh2>
infinisil: if I switched everything to .extend, would that change the way I could propagate the `myFunction` in wor would I still have to pass it?
<gchristensen>
Mic92: I mean what is the occasion for you to be doing lots of FS stuff
zupo has quit [Ping timeout: 240 seconds]
<infinisil>
nh2: Hmm I don't think it will help with this but it's more flexible in general
<nh2>
OK, I'll look into upgrading that in general
<infinisil>
nh2: Oh actually, you could just define `inherit pkgs;` in haskellPackages, then you can take pkgs as an argument to the definition of your haskell package
stepcut has joined #nixos
<Mic92>
gchristensen: I currently port a NVME driver and a rollback-protected filesystem to Intel SGX.
<gchristensen>
ooooo
<nh2>
infinisil: thing is, inside the `haskellPackages@{ mkDerivation, text, bytestring, ... }: mkDerivation { src = myFunction ./. }` there seems to be already a `pkgs` available even when I don't do that, but I don't know what it is. It hangs if I trace it
<infinisil>
Oh hmm..
<nh2>
I also wonder what would happen if somebody made a Haskell package called "pkgs"
Neo-- has joined #nixos
<infinisil>
nh2: What do you mean by it hangs?
<nh2>
in general the approach of passing in Haskell package names and system package names in the same attrset seems kinda questionable/confusing to me
<infinisil>
No infinite recursion error even?
<nh2>
infinisil: if I `src = builtins.trace pkgs ...`, the nix-build invocation hangs forever and outputs nothing
<infinisil>
Weird
<infinisil>
nh2: Maybe try switching to overlays + extend, I've seen weird problems getting solved by doing this
<Izorkin>
infinisil: checked PR unit service?
gagbo has joined #nixos
<Izorkin>
and nginx rootless mode)
<{^_^}>
[nixpkgs] @grahamc pushed 2 commits to release-19.03: https://git.io/fhpZM
alex`` has quit [Ping timeout: 240 seconds]
mariel__ has quit [Remote host closed the connection]
mariel__ has joined #nixos
ErAsMuS has joined #nixos
<infinisil>
Izorkin: I didn't get what you meant by "Everything connected to the web-apps, I drag in a folder /var/data/web and allow access to it only to a specific user."
<infinisil>
Izorkin: Why do you need stateDir and logDir to be NixOS options exactly?
<JonReed>
How can I get `nix repl` or `nix eval` to print the stack? I have an expression with a stack overflow and I'm trying to debug it, but it just says that there is a stack overflow somewhere without any hints.
<ToxicFrog>
--trace?
<JonReed>
ToxicFrog: --show-trace doesn't work for whatever reason :(
benhoman has joined #nixos
mariel__ has quit [Remote host closed the connection]
mariel__ has joined #nixos
simukis has joined #nixos
mariel__ has quit [Remote host closed the connection]
mariel__ has joined #nixos
<nh2>
Myrl-saki srhb infinisil __monty__: whoa actually it worked all along without inherit, I just had a typo in `myFunction`...
<infinisil>
Haha, classic
ThatDocsLady_ has joined #nixos
<Izorkin>
infinisil: I have moved site to /var/data/web/folder2/domains/my_site. nginx log and spool modev to /var/data/web/folder1/logs/nginx and /var/data/web/folder1/spool/nginx. Wanted to move unit to /var/data/web/folder1/spool/unit
<infinisil>
nh2: Would probably have been a good idea to gist the code and error, maybe one of the eyes here would've spotted it earlier
<Izorkin>
access to /var/data/web only group www-data
ThatDocsLady_ has quit [Remote host closed the connection]
<nh2>
infinisil: I think the copy-pasting would have taken long in this case, it's my big 3D project :D `myFunction` is called `filterSourceConvenience` and I missed an `i`
mariel__ has quit [Ping timeout: 258 seconds]
ThatDocsLady_ has joined #nixos
<infinisil>
Izorkin: Hmm, alright
<infinisil>
nh2: 3D project? :O
<__monty__>
Now where is it coming from though? Cause what about name collisions with haskell packages if pkgs is always opened up?
ThatDocsLady_ has quit [Remote host closed the connection]
Makaveli7 has joined #nixos
<nh2>
infinisil: the one I may have shown at the meetup at some point
zupo has joined #nixos
ThatDocsLady_ has joined #nixos
<timor>
sphalerite: That gist with the alternative to nix-env that you showed me recently, are you using it?
<Myrl-saki>
infinisil: It messes so much with foo@.service.
<Myrl-saki>
infinisil: Case-in-point.
<Myrl-saki>
infinisil: getty@.service
<Myrl-saki>
infinisil: getty@tty1.service will be overridden by whatever the dfeaults are in configuration.nix.
<Myrl-saki>
infinisil: instead, you have to copy getty@.service to getty@tty1.service, then create getty@tty1.service.d/overrides.conf, which actually contains your config.
<Myrl-saki>
infinisil: But it doesn't stop htere. Because getty@.service.d/overrides.conf still exists. Which conflicts with getty@tty1.service.d/overrides.conf.
<Myrl-saki>
So now you have to rename it to getty@tty1.service.d/overrides2.conf, to make the order correct.
<infinisil>
i guess i can be fortunate to never have needed this :)
Fare has joined #nixos
<Myrl-saki>
So yeah. I hate thiss stuff already. :(
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
imdoor has joined #nixos
alex`` has joined #nixos
zupo has joined #nixos
<srhb>
Myrl-saki: What are you doing?
<Myrl-saki>
srhb: Making getty@tty1 run a specific TUI program.
<nh2>
is there a nixpkgs function that can turna list of components into a tree, e.g.
<timor>
rnhmjoj: It depends how they are unpacked. Documentation sais that all sources are unpacked by default into the current directory. Then it cd's into the subdirectory, if there is only one, or complains if there are multiple, in which case you have to set sourceRoot yourself. From that directory, patchPhase is run.
endformationage has joined #nixos
<timor>
rnhmjoj: tldr; you override patchPhase :)
ng0 has joined #nixos
ij has quit [Ping timeout: 246 seconds]
<rnhmjoj>
timor: I tried changing sourceRoot but that failed hile traying to modify file permissions
<rnhmjoj>
in the end I swapped src for another source which didn't need patches
<timor>
rnhmjoj: you probably set sourceRoot to a non-existing directory or something, and then the chmod failed
<cmacrae>
Anyone know what I need to get Sway to show up in GDM? Not sure if I need to link the `sway.desktop` file anywhere? I tried setting `environment.pathsToLink = [ "/share/wayland-sessions" ];`, but that doesn't seem to have worked
<cmacrae>
Every time I log in with GDM, it just starts xterm. I've confirmed sway works (launched from a root shell)
<dsx>
Could someone please help me understand how to use overlays? I'm using nixops to deploy on my machines. Where and how to plug overlay in this case?
orivej has quit [Ping timeout: 240 seconds]
<infinisil>
dsx: You should use the nixos option `nixpkgs.overlays` for that
<{^_^}>
dsx: Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dsx>
error: Module `[…]' has an unsupported attribute `environment'. This is caused by assignments to the top-level attributes `config' or `options'.
<dsx>
=\
<infinisil>
dsx: Well what's your code? Can't help if I don't see that
<dsx>
I'm on it. 1 minute :)
o1lo01ol1o has quit [Remote host closed the connection]
<noonien>
i'm having a bit of trouble understanding the first one though
<infinisil>
:)
<dsx>
infinisil: I've been struggling to understand this since yesterday night
ij has joined #nixos
<infinisil>
noonien: I prefer the second, I don't like srcs, it's weird
<Alling>
Trying to use kmeans-par from Hackage by adding it to stack.yaml. When I run stack build, I get an error about "Missing dependencies on foreign libraries:"
<Alling>
"* Missing (or bad) C libraries: blas, lapack"
<noonien>
infinisil: yes, it is, i'm still trying to understand how it works
<Alling>
"This problem can usually be solved by installing the system packages that provide these libraries (you may need the "-dev" versions). If the libraries are already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are."
<Alling>
So hm, how do I know if I have those packages installed (NixOS)?
<infinisil>
Alling: Use the stack nix integration: Add a section `nix: \n packages: [ blas ... ]` to stack.yaml
<ddellacosta>
folks, I'm still stuck on making some modifications to a Haskell transitive dependency using overlays. This is based on what srhb helped me with yesteday, and while it is not throwing errors, it doesn't seem to be doing what I want either: https://gist.github.com/ddellacosta/910c09f284e6a1eabdf9d3c658547019
<infinisil>
Oh that link doesn't work anymore
<ddellacosta>
anyone see any obvious problems?
maximiliantagher has joined #nixos
<selfsymmetric-pa>
Hi! I have a `python` on my path and I can't figure out where it comes from. It's at `/nix/store/gbwx5sc4w0i0ipnmsa0nsk88svs983vl-python3-3.7.2/bin/python`. On Arch I remember I could specify a binary and pacman would tell me where it came from. I figure on Nix it should be even easier, since I have the hashed derivation. Is there a command which can tell me which package made this `python`?
<{^_^}>
Just ask your question. It's the best way to know if anybody can help. Or look at other ways of getting in touch with the Nix community here: https://nixos.wiki/wiki/Get_In_Touch
<Alling>
,ask What is NixOS?
<{^_^}>
What is NixOS?: Just ask your question. It's the best way to know if anybody can help. Or look at other ways of getting in touch with the Nix community here: https://nixos.wiki/wiki/Get_In_Touch
adamt has quit [Ping timeout: 255 seconds]
<Alling>
> 5 + 3
<{^_^}>
8
<selfsymmetric-pa>
`timor` it says `/nix/store/gbwx5sc4w0i0ipnmsa0nsk88svs983vl-python3-3.7.2/bin/python`. That's kind of the problem...
<dsx>
infinisil++
<{^_^}>
infinisil's karma got increased to 55
xqsl has joined #nixos
<selfsymmetric-pa>
I'm in a nix-shell, but I don't have `python` as a environment package.
<infinisil>
Alling: If you want to try out the bot, #bottest is the best place (spam allowed ;))
<selfsymmetric-pa>
I'm trying to figure out which one is sticking it in there. It's frustrating since I think a virtualenv is sticking around and wrecking my environment...
<timor>
selfsymmetric-pa: nix-shell adds dependencies' bin directories to PATH
<selfsymmetric-pa>
Hm, okay. Does it track which packages provide those dependencies?
<ddellacosta>
infinisil: yeah that gave me the exact same output so I guess this is completely not getting picked up. Hmm...the output of cabal2nix for the specific package I'm trying to build to test this specifies the compiler vs. using haskellPackages...could that be the issue? I assumed haskellPackages would apply to anything but maybe not?
<selfsymmetric-pa>
timor Brilliant, thank you.
<infinisil>
ddellacosta: Oh, you might need to use haskell.packages.ghc822 or so instead
<ddellacosta>
infinisil: sorry I should have said, the default.nix I added for the cabal2nix output...okay yeah, let me try that. Thanks!
<infinisil>
ddellacosta: haskellPackages is only the default haskell package set
maximiliantagher has quit [Ping timeout: 245 seconds]
<ddellacosta>
infinisil: right, so if my default compiler doesn't match whatever I'm using in a given project, the overlay won't get picked up, do I have that right?
<ddellacosta>
(I mean, if I'm only specifying haskellPackages in the overlay)
<infinisil>
Yeah I think so
<ddellacosta>
okay cool
<infinisil>
I'm wondering myself how this should be done optimally now
Tucky has joined #nixos
jasongrossman has quit [Ping timeout: 255 seconds]
<infinisil>
Unfortunately the docs still use packageOverrides and override, which are both discouraged..
<{^_^}>
[nixpkgs] @veprbl merged pull request #56862 → openafs: fix OpenAFS 1.6 on Linux 4.20 → https://git.io/fhxiZ
<{^_^}>
[nixpkgs] @veprbl pushed commit from @artemist to master « openafs: fix OpenAFS 1.6 on Linux 4.20 (#56862) »: https://git.io/fhp8s
<infinisil>
(override for haskell packages is discouraged)
<infinisil>
(not the .override in non-haskell packages)
<infinisil>
(my god this is too confusing, I want unity!)
<ddellacosta>
infinisil: so I simply naively substituted "haskell.packages.ghc844" everywhere "haskellPackages" appeared in that overlay and now I'm getting "attribute 'packageOverrides' missing," so I'm clearly still not understanding something
<yl[m]>
👍
<ddellacosta>
infinisil: yeah, the haskell infrastructure is pretty hard to get familiar with at first :-(
<noonien>
where can i read more about how `srcs` works?
<infinisil>
ddellacosta: Not as easy as that, the link i posted demonstates this a bit, you need a bunch of //
<infinisil>
I gotta go for now though, be back later
<ddellacosta>
yeah although I'd rather stick with using an overlay at this point rather that use a separate technique, but I guess whatever :-/
<ddellacosta>
rather *than
<ddellacosta>
infinisil: oh but maybe I can apply what you linked me to in the overlay, I see--thanks!
dsx has left #nixos [#nixos]
yl has joined #nixos
<Alling>
I ran into more problems. Adding blas and liblapack to stack.yaml worked, but now it complains about dependencies. I've added subdependencies to extra-deps as it suggested, but now it suggests adding base-4.6.0.1, even though it's already there.
ubert has quit [Remote host closed the connection]
linarcx has joined #nixos
<timor>
noonien: I wondered that myself recently. I think pretty much everything there is to that you can find in pkgs/stdenv/generic/setup.sh in unpackPhase().
<linarcx>
Hi. i installed i3. and in config file there is a section that shows bar. the error is:`Error:status_command not found or is missing a library dependency`
Dr8128 has quit [Ping timeout: 240 seconds]
<Alling>
Also in my regular dependencies I have "base >= 4.7 && < 5" and it seems that stack build finds base-4.12.0.0 which it doesn't like.
<noonien>
timor: hmm, i'll give that a look, thanks!
<linarcx>
what is statu_command? is there seperate package or option for it?
<timor>
linarcx: How did you install i3?
<linarcx>
timor: I follow the wiki.
<linarcx>
services.xserver = {
<linarcx>
enable = true;
<linarcx>
layout = "us";
<linarcx>
desktopManager = {
<linarcx>
xkbOptions = "eurosign:e";
<linarcx>
default = "none";
_kwstas has joined #nixos
<linarcx>
xterm.enable = false;
<linarcx>
};
<linarcx>
# Enable the SDDM Display Manager.
<linarcx>
displayManager.sddm = {
<linarcx>
enable = true;
<linarcx>
autoNumlock = true;
<timor>
linarcx: please use a paste bin
<linarcx>
theme = "maya";
<linarcx>
};
<linarcx>
windowManager.i3.enable = true;
<linarcx>
};
<linarcx>
services.xserver.windowManager.i3.extraPackages = with pkgs; [
<linarcx>
dmenu
<linarcx>
i3status
<linarcx>
i3lock
<linarcx>
#i3nagbar
<linarcx>
];
<linarcx>
I have not browser right now. sorry.
<slack1256>
you can use: `$ cat file | curl -F 'f:1=<-' ix.io` as a pastebin from the cli
<tilpner>
Or | nc termbin.com 9999
<tilpner>
Which I find easier to remember
<slack1256>
(although I would like irc to handle multiline msgs)
<{^_^}>
[nixpkgs] @amazari closed pull request #56794 → chromium: Add optional vaapi hw video decoding support → https://git.io/fhxY8
<Shouou>
If I have a /nix/store/p72iz7ha8g7lsbm3ygf5vralj1jhbv96-X-1.0/bin/app should `app` be in PATH or is there some extra magic I have to sprinkle after placing a binary in $out/bin?
<srhb>
ddellacosta: My "the right way" sense it tingling again. ;-)
<symphorien>
Shouou: you obtained the binary wit nix-build ?
<symphorien>
nix-env -i ./result is the quick and dirty way
linarcx has quit [Ping timeout: 245 seconds]
<srhb>
ddellacosta: The short version is just `appendPatch yourPackage patch`
<ddellacosta>
srhb: so I've tried refering to the patch that I put in my .config/nixpkgs/overlays/ directory as well as hardcoding the full path, but no luck--I still get "no such file..."
<ddellacosta>
so I'm thinking I need to somehow "import" the file into the nix work directory or something, somehow
<Shouou>
symphorien, ah I completely forgot. Thanks!
<srhb>
ddellacosta: No, the path is correct. care to share a snippet?
<symphorien>
ddellacosta: Did you quote the path ?
<ddellacosta>
srhb: sure one sec
<ddellacosta>
symphorien: yeah, tried it multiple ways--it clearly sees what I'm adding based on the error
<srhb>
ddellacosta: It should not be quoted.
<timor>
linarcx: sorry, I probably won't be able to help you with the specifics. The reason I asked how you installed it is that sometimes new users get confused how to install a window manager. But you could post the commands you ran, and the errors you received, maybe relevant logs, too.
vidbina has joined #nixos
<linarcx>
timor: indeed. i have to read the logs?
<timor>
linarcx: well, that depends on what happened. `journalctl -eu display-manager` is usually a good starting point
<pie_work>
is it possible to get pypi2nix to generate a nix file but not actually try to build anything?
<srhb>
ddellacosta: That is funny. Let me try and reproduce..
erasmas has quit [Quit: Lost terminal]
linarcx has quit [Ping timeout: 245 seconds]
erasmas has joined #nixos
<srhb>
ddellacosta: It ought to be normalized to a nix store path
<ddellacosta>
srhb: you mean, whatever I pass in should get normalized, as long as it can find it in the first place?
<ddellacosta>
or are you talking about something I need to be doing that I'm not?
<ddellacosta>
argh okay wait a second now it looks like I am in fact getting an error with the patch itself. Sorry folks. Let me work on this and come back if it's still not working
<srhb>
ddellacosta: Okay :)
<ddellacosta>
srhb: looks like your initial guess may have been exactly right!
<srhb>
ddellacosta: And yes, that error seems to imply that the file is literally not there such that it couldn't be put into the store even.
<ddellacosta>
srhb: yeah, apparently I don't know the right flags to diff to make it do that so I just manually edited the second filename to match. Thanks!
kreisys has joined #nixos
<srhb>
ddellacosta: Here's a trick. nix-build '<nixpkgs>' -A haskellPackages.Diff.src; tar xf result; cd Diff-*; git init; git add .; [edit file]; git diff
<noonien>
should i quote paths given by nix, such as $out?
MichaelRaskin has joined #nixos
<srhb>
noonien: $out itself will never contain a space.
<gchristensen>
can't hurt, but no
<ddellacosta>
srhb: oh nice, thanks
<noonien>
srhb: what guarantees this?
<noonien>
can a user not change the "/nix" prefix?
maximiliantagher has quit [Remote host closed the connection]
<srhb>
noonien: .. I suppose you're right!
<noonien>
not that it matters anyway, from what packages i've read, none escape $out anyway
<gchristensen>
I suppose you are
Xal has quit [Ping timeout: 245 seconds]
<tilpner>
Technically yes, but everything else will break too
maximiliantagher has joined #nixos
<gchristensen>
you would be in a nightmare if you tried it though, hehe
<noonien>
so chaning the /nix prefix will probably break a lot of stuff
<srhb>
noonien: I had never considered that tbh :)
<srhb>
noonien: It does. Caching, for one.
<srhb>
noonien: (Even without breaking nixpkgs with spaces in $out :-P)
<noonien>
oh, i had a question i wanted to ask for a while, what would you change about the nix language/ecosystem? i for one would improve the "stdlib", by moving most functons from pkgs.lib into builtin, and making them more easily available
reinhardt has quit [Quit: Leaving]
<MichaelRaskin>
I have done some cross-builds with non-/nix store
<MichaelRaskin>
But no spaces
<timor>
noonien: Do you need them that often?
<srhb>
C:\Nix Store
* srhb
runs away scared
<gchristensen>
srhb: you're hurting me
<srhb>
Sorry xD
<noonien>
timor: i've not used nix long enough to answer that, but i did use `lib` in my short time using nix
<ldlework>
doh, summon is not in nixpkgs
<srhb>
noonien: My very vague feeling is that I'd prefer the builtins to be as few as possible to keep the core language really simple
Xal has joined #nixos
<srhb>
noonien: So it should only implement things that are impossible in nixlang
<pie_work>
this seems sketchy, i need to pass -E python27 to get this to work: pypi2nix -e unicorn -E python27
<srhb>
noonien: Right now, we also have to implement things that are too _slow_ in nixlang.
<srhb>
noonien: So I guess my wish is: Faster nixlang :)
<timor>
noonien: I think it is good to have a clear distinction between `nix` and `nixpkgs`. The `lib` you mention comes from the latter.
<infinisil>
noonien: Yeah I agree, a standard library of sorts would be nice
<noonien>
I find that library providers rarely give as much thought to APIS/functionality as as given the stdlib
<timor>
noonien: Do you plan to use nix for something else besides system configuration and package management?
kreisys has joined #nixos
<srhb>
ldlework: Hard to say, I don't know go very well. Give it a shot, it usually works.
<noonien>
timor: to be honest, i'm unsure
<timor>
I think that would be quite unusual
<srhb>
noonien: fwiw I come from mostly Haskell, and there's a ton of top-notch libraries, and the base language is really quite small.
<timor>
With that in mind, I think the set of core features matches the intended class of problems to solve quite well.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<noonien>
i love it so far, best of everything i have experience with so far
ij has quit [Ping timeout: 240 seconds]
<infinisil>
srhb: Haskell does however come with a default set of packages available
<srhb>
infinisil: base?
<ldlework>
srhb: when you run go2nix and it shits out the files, how do you then add it to nixpkgs?
<noonien>
srhb: i've not used any functional programming languages tbh, i dislike haskel for a number of reasons
<ldlework>
do you have to get the .nix files comitted to the project?
<srhb>
ldlework: iirc there's two files, one that doubles as the default.nix, one that's the deps.
<infinisil>
srhb: Yeah, and I think a bunch more are also included in ghc by default, text and bytestring are part of that set
<srhb>
ldlework: search the nixpkgs tree for goDeps (I think) for examples
<srhb>
infinisil: True!
<ldlework>
:S
<noonien>
out of all the languages i've used, i came to prefer go the most. because of its stdlib, libraries tend to work together a lot better in my experience
<srhb>
ldlework: Or read the nixpkgs manual go section :)
<infinisil>
noonien: srhb: timor: (Btw, we would have a #nix-lang channel focusing on nix as a language)
<srhb>
infinisil: Thanks, I always forget that. Maybe I should just, like, hang out >_>
<srhb>
It's not like I already have too much #nix-blah in my sidebar...
<noonien>
and ease of code documentation, something i see nix has as well, which a LOVE! havinng to write documentation independent of code, or having to go through painful rituals and convetions makes writing documentation even more of a chore
<noonien>
i'm also unsure how cross-compilation works in nix, but it would have been super great if it was built into nix, and not an artifice of nixpkgs
<srhb>
I firmly disagree with that last point, but yeah, probably a better topic for -lang :)
gagbo has joined #nixos
<noonien>
cross-compilation?
<srhb>
Yes.
slack1256 has quit [Remote host closed the connection]
<infinisil>
Let's go to #nix-lang shall we?
Christia7 has joined #nixos
<noonien>
sure
<ddellacosta>
infinisil, srhb : on a positive note this patch finally worked! So thanks so much for all of your help. Unfortunately I'm now seeing this: https://gist.github.com/ddellacosta/4f4b4341c72fd9596e333a97c5436f12 Any chance either of you know what this could be? Seems like this may be a more haskell-specific issue though, something I need to include as an explicit dependency or something
<ddellacosta>
I feel like the fact that the library it's complaining about is called "patience" is some kind of cosmic message to me
<srhb>
ddellacosta: I believe so too :-)
<ddellacosta>
heh
<srhb>
ddellacosta: What version is it at?
<srhb>
You may just need to jailbreak things.
<ddellacosta>
srhb: I don't think I'm explicitly requiring that lib in my cabal file, if that's what you're asking about.
<srhb>
ddellacosta: Is your package chell?
Christia7 is now known as Christia9
<srhb>
ddellacosta: chell is demanding patience == 0.2.*, but your version of patience is (nix eval nixpkgs.haskellPackages.patience.version)
<srhb>
ddellacosta: Which, if you're on 18.09, is 0.1.1
<ddellacosta>
oh no, it's my web site, basically a hackyl install
<srhb>
ddellacosta: Somehow you're (possibly transitively) depending on chell, which depends on patience in that version.
freeman42x has joined #nixos
<ddellacosta>
ah, okay, so this may be simple to fix, and moreover, all about my cabal setup. Sorry--let me mess with it and come back if I'm still stuck. Thanks as always for your copious amounts of help srhb !
<srhb>
ddellacosta: (The possible solutions are: bumping patience locally for your build, jailbreaking chell (with probable other breakage to follow), ... )
<nh2>
tilpner: it also has the tree stuff you helped me with ^
<infinisil>
nh2: I feel like ideally Nix should have something like this builtin, instead of the really inconvenient and confusing builtins.filterSource
<srhb>
lejonet: It's not, just when we work together I hear it every day :D
linarcx has quit [Quit: WeeChat 2.4]
<lejonet>
srhb: moahahahaha!
<infinisil>
nh2: Well, there is nixpkgs/lib/sources.nix that already has a bunch of filter stuff, I wouldn't mind it in a separate directory in lib though
<infinisil>
(defined in sources.nix as `import ./filterSourceConvenience.nix`)
selfsymmetric-pa has quit [Remote host closed the connection]
vidbina has quit [Ping timeout: 255 seconds]
<Izorkin>
infinisil: nothing more needs to be fixed?
ericsagnes has quit [Ping timeout: 252 seconds]
<infinisil>
Izorkin: If there's something I want to say I'll do it in the PR
<Izorkin>
ok
JonReed has quit [Ping timeout: 256 seconds]
ericsagnes has joined #nixos
<nh2>
infinisil: do you think it should have a better name? `filterSourceConvenience` sounds a bit generic
Guest41138 has quit [Quit: rcirc on GNU Emacs 27.0.50]
<ddellacosta>
srhb: okay so I'm reviewing what you wrote, and I'm confused because for my system, `nix eval nixpkgs.haskell.packages.ghc844.patience.version` gives me 0.2.1.1 (the latest), and chell is at 0.5 and requires 0.2.* according to hackage (and the error output). This seems broken?
<infinisil>
nh2: Hmm can't think of a better name right now, maybe ask for some discussion on that in the PR
<srhb>
ddellacosta: Are you sure your expression uses the same version of nixpkgs?
<ddellacosta>
srhb: pretty sure, only because I spent so much time figuring out that I needed to refer to haskell.packages.ghc844 vs. haskellPackages to get the patch working in the first place
<srhb>
ddellacosta: This was 18.09, right?
<ddellacosta>
yeah, 18.09
<srhb>
(I get a different problem with chell on unstable)
<srhb>
Let me check..
<ddellacosta>
I mean, I do also have nixpkgs-unstable in my channels if that is relevant, but that's it
<infinisil>
nh2: Maybe such a long and unwieldy name is a good thing, because maybe we could deprecate all other filter functions eventually, then this could become the new lib.filterSource (or so)
arjen-jonathan has joined #nixos
<infinisil>
And the unwieldy name is good so people don't get confused
<infinisil>
It's like naming something thingThatDoesFooYetToBeNamedProperly :P
<srhb>
ddellacosta: On a clean 18.09, it looks like chell builds for me. So something is fishy.
<srhb>
ddellacosta: Pastebin your full build log please
<srhb>
ddellacosta: Maybe I missed something :)
<ddellacosta>
srhb: more likely I did, haha...but sure thing, one sec
<Shouou>
My Python package complains about not finding lame, which I've listed in propagatedNativeBuildInputs – is this correct usage or should I list it elsewhere?
<srhb>
ddellacosta: delete, readd under a name like nixpkgs-unstable, update your channels, try again.
<ddellacosta>
srhb: yeah I'm starting to wonder if this is the cause of a bunch of my problems
<ddellacosta>
yeah, just did that
<__monty__>
nh2: That looks pretty good. Why put it in pkgs rather than lib though? Wouldn't that get rid of the dependency on lib?
calbrecht` has joined #nixos
Alling has quit [Ping timeout: 256 seconds]
<ddellacosta>
it annoys me that by default doing `nix-channel --add https://nixos.org/channels/nixpkgs-unstable` names it 'nixpkgs' by default...seems like I'm not the only beginner that could bite
<ddellacosta>
I didn't think about it until now
<srhb>
ddellacosta: I'm not sure how to save beginners from nix-channel at all :P
<ddellacosta>
I mean, I'm just cranky because of how much time I've spent on this, lol
<nh2>
__monty__: I put it into pkgs only in my local project, to indicate that it's not a standard nixpkgs thing; for the PR into nixpkgs, it'd go into lib
<{^_^}>
[nixpkgs] @kyren opened pull request #56977 → stepmania: switch to clangStdenv → https://git.io/fhpB0
<srhb>
ddellacosta: But you're right, that might be a pitfall we could get rid of...
calbrecht` has quit [Client Quit]
<srhb>
ddellacosta: To be fair, it's caused by two things: The default channel in nixos being called nixos instead of nixpkgs, which is a historical mistake, probably, and the fact that user and root channels can share names but be different, which is probably not something we want to change.
<{^_^}>
#33231 (by jaens, 1 year ago, open): GDK_PIXBUF_MODULE_FILE should not be set in DE modules (KDE, Xfce)
adamt has joined #nixos
<ddellacosta>
yeah, this kind of stuff happens. I'll think about how this could be improved myself...I've got a lot of documentation and beginner-learning-related notes to type up as soon as I get this sorted
<srhb>
ddellacosta: Nice, thank you for that. :)
<ddellacosta>
wait until I actually produce something, haha! But I'll ping you when I have something to show...
<garbas>
pie__: i'm assuming you are pie_work who pinged me an hour ago regarding pypi2nix. you can not use python packages from nixpkgs and pypi2nix.
<ddellacosta>
srhb: oh hey guess what now that I fixed my nixpkgs-unstable channel name it builds without any overlays or cabal file tweaking. Wow, do I feel dumb...at least I learned something...a lot actually. I still feel stupid though, haha
<srhb>
ddellacosta: Live and learn :)
<ddellacosta>
indeed!
<pie__>
garbas, hi yes thanks
maximiliantagher has quit [Remote host closed the connection]
<noonien>
how can i iterate over a list and create an attrset from it?
<pie__>
noonien, you mean turn a list of strings into a set with attributes named like the strings_
<pie__>
?
<LnL>
> stdenv.lib.listToAttrs [{ name = "foo"; value = 42; }]
<{^_^}>
{ foo = 42; }
<pie__>
noonien, if you have some free time and motivation at some point, i highly recommend peeking through the lib directory
jasongrossman has joined #nixos
<noonien>
no, not strings. i have a list like so: `[ { name = "foo"; src = fooSrc; } { name = "bar"; src = barSrc; } ]`, and i need to turn it into `{ foo = doSomething fooSrc; bar = doSomething barSrcl }`
work_ has quit [Quit: Connection closed for inactivity]
<noonien>
pie__: i am looking at the documentation, have looked in the source before i remmeber seeing exactly what i need but i can't find the name, i'll look again
<garbas>
pie__: let me find an example for pillow for you
<symphorien>
use listToAttrs and then mapAttrs then I guess
<pie__>
garbas, i did see a snippet in a makefile in your repo somewhere
<pie__>
garbas, I tried it and it failed :/
<pie__>
it was complaining about some jpeg stuff, but I had all the jpeg stuff in -e :/
<pie__>
i mean -E
<noonien>
symphorien: ah, builtins.listToAttrs is exactly what i was looking for, thanks!
<pie__>
noonien, lnl gave an example after i started talking :)
<symphorien>
yes credit goes to LnL
<noonien>
oh, didn't notice that, thanks LnL!
<LnL>
:p
<garbas>
pie__: weird, let me try to get travis to be green again and then the example from there should work
calbrecht has quit [Quit: rcirc on GNU Emacs 27.0.50]
<{^_^}>
[nixpkgs] @veprbl pushed commit from @stephengroat to master « qtwebkit-plugins: fix build for different hunspell version (#56925) »: https://git.io/fhpR6
<LnL>
noonien: there's also genAttrs which is a bit more convenient for certain cases
<LnL>
> stdenv.lib.genAttrs ["foo"] (name: 42)
<{^_^}>
{ foo = <CODE>; }
<noonien>
it looks like listToAttrs is a better choice in this case, i'm looking how to iterate over an array now
<pie__>
noonien, do you have any functional programming experience_
<noonien>
pie__: i do, but i prefer documentation to intuition.
ng0 has joined #nixos
<noonien>
map was what i was going for as well, i was lookinng in the nix manual builtins and missed it
<pie__>
noonien, ok just wondering, i was peeking at this the other day, also i highly recommend nix repl, though tab completion isnt always helpful beause either you think of the right name or not; map is a builting, theres also fold around somethwere
<pie__>
yeah the builtin list is a good thing to read over
<pie__>
LnL, oh theres things that arent in there? :O
<LnL>
I noticed last time, it's only lib.attrsets.*
<pie__>
might be nice if the docs mentioned the existence of undocumented functions
<pie__>
maybe it does and i just didnt read carefully :V
<symphorien>
the existence of undocumented functions is undocumented
<pie__>
x'D
<{^_^}>
[nixpkgs] @veprbl pushed commit from @stephengroat to release-19.03 « qtwebkit-plugins: fix build for different hunspell version (#56925) »: https://git.io/fhpR9
<tazjin>
LnL: I think the new docs will be included on nixos.org once the manual is updated after the 19.03 release
<LnL>
noonien: ^ that's the one you want
<LnL>
tazjin: yeah just checked that, thought you did it before 18.09
<tazjin>
There are also still two files or so missing, because cleaning up the doc comments is a bit of work (to ensure we generate nice docs with annotated parameters etc.)
<tazjin>
LnL: I did it at NixCon last year so it was just about too late :)
<LnL>
yeah, but this is much better already
<gchristensen>
tazjin++
<{^_^}>
tazjin's karma got increased to 2
<{^_^}>
[cabal2nix] @peti pushed to v3 « cabal2nix: greatly simplify the CLI »: https://git.io/fhpRx
<infinisil>
> :p map (x: x + 1) [1 2]
<{^_^}>
[ 2 3 ]
ij has quit [Ping timeout: 268 seconds]
<tazjin>
LnL: if you fancy writing some docs yourself, check out #49383 for the cleanup that was necessary in the existing modules
<nh2>
infinisil: I added it to `sources` in the end, it seems to fit in quite nicely there, also because of the terminology of the other `...filter = path: type` functions
<tilpner>
Does anyone have an example of packaging a Go application that doesn't vendor everything?
<tilpner>
They say it uses go modules from Go 1.11
<noonien>
oh, so sorry, perhaps i'm too tired
<noonien>
jtojnar: thanks for noticing!
slack1256 has joined #nixos
<{^_^}>
[nixpkgs] @bkchr opened pull request #56988 → Plasma5: Use upstream xsession/wayland-session files → https://git.io/fhp0E
<pie__>
garbas, to be fair im not even sure whats pulling in Pillow and I'm not sure how to find out. I googled and pipdeptree only seems to operate on already installed packages.
<tazjin>
tilpner: there's a buildGoPackage helper in nixpkgs for which you generate derivations using different tools based on the dependency manager used in the project
<adamt>
Is it safe to assume all services have a `enable` attribute? I want to get the list of enabled services, and use it to generate monitoring templates. :-)
vk3wtf has quit [Ping timeout: 258 seconds]
<tilpner>
tazjin++
<{^_^}>
tazjin's karma got increased to 3
<noonien>
jtojnar++
<{^_^}>
jtojnar's karma got increased to 7
<noonien>
infinisil++
<{^_^}>
infinisil's karma got increased to 56
Neo-- has quit [Ping timeout: 240 seconds]
maximiliantagher has joined #nixos
ng0 has quit [Remote host closed the connection]
ng0 has joined #nixos
<pie__>
garbas, ok i figured out that the first part of pypi2nix output shows dependency resolution as it happens
<noonien>
i've got `boot.kernelPackages = pkgs.linuxPackages_latest;`, combined with `boot.kernelParams = [ "zfs.zfs_arc_max=5368709120" ];`, when doing a rebuild, i get `modinfo: ERROR: Module alias zfs_arc_max=5368709120 not found.` am i doing something wrong?
<{^_^}>
[nixpkgs] @garbas pushed commit from @dtzWill to master « notmuch: 0.28.2 -> 0.28.3 »: https://git.io/fhpET
<MichaelRaskin>
Chromium is worst-case, obviously…
acarrico has joined #nixos
<MichaelRaskin>
(because rebuilding it takes time)
<MichaelRaskin>
Well, worst case is probably a glibc bug only triggered by Chromium
<sheyll>
I am having trouble groking the Chapter 3.3 in the nixpkgs manual "Specifying dependencies"; I find it very hard to follow, also there seem to be gramatical errors; I wonder what the problem is that they solve, and after spending hours trying to understand this, I wouldn't mind contributing to the documentation, but I still don't know if I have understood the chapter
<infinisil>
Fare: If there's a patch, it can get applied and merged rather quickly (if somebody does it that is). Then it gets also backported to stable.
<symphorien>
sheyll: the gist is: buildInputs are for .so and code which goes in the build product, and nativeBuildInputs are for tools used by the build system but which are not supposed to go in the build product, for example cmake, pkgconfig etc.
<symphorien>
other types of dependencies are for tricky cross compilation cases
<sheyll>
first of all it says "platforms imply whether or not the dependency is needed at run-time or build-time" but the footnote 1 says: " The build platform is ignored..."
<elvishjerricco>
sheyll: It's a complicated system trying to cover all the corner cases of the target/host/build triad in cross compiling. Personally I find it vastly over engineered. buildInputs and nativeBuildInputs is a good distinction but the others are.... overdone IMO
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<sheyll>
@elvisjerricho: then footnote 1 is wrong?
<elvishjerricco>
And most of that documentation section was written by like one or two people over a relatively short period of time, so errors in it aren't terribly surprising
<elvishjerricco>
But I'm not sure about that footnote
<elvishjerricco>
infinisil: Something like it needs to be in the manual, but it needs improvement and probably needs a good sized chunk of it carved out and moved to a cross compilation chapter
hedning has quit [Remote host closed the connection]
ym555 has joined #nixos
<infinisil>
Yeah something like that
<pie__>
worst part of nix is waiting for builds :c
<elvishjerricco>
But I think the bare minimum of describing buildInputs and nativeBuildInputs is an important distinction so that new package authors can get cross compilation without even realizing it
<pie__>
productivty -> drain
<symphorien>
also it becomes mandatory
<infinisil>
pie__: Worst part about nix is having to debug nix!
<infinisil>
At least you know a build will end at some point
drakonis_ has joined #nixos
<sheyll>
in the formal explaination does "propagated-dep(h0, t0, A, B)" mean I am building derivation A which runs on h0 and produces binaries for t0, and requires B?
nD5Xjz has quit [Ping timeout: 252 seconds]
nD5Xjz_ has joined #nixos
<{^_^}>
[nixpkgs] @flokli pushed commit from @wkral to release-19.03 « vagrant: re-add nowarn patch (#56863) »: https://git.io/fhpE4
<sheyll>
or does it mean I am building derivation A on h0 such that A will run on t0, and requires B
<noonien>
does anyone know, is it possible to fetch a specific github git commit using fetchsvn?
<infinisil>
noonien: um, git /= svn
erictapen has quit [Ping timeout: 250 seconds]
<noonien>
i know
<noonien>
that's why i'm asking specifically for github, since it has svn support
<noonien>
the reason i'm doing this is because i want to fetch only a directory from a git repo, which svn allows
<sheyll>
I would like to help improve that documentation - even if you rip it apart - it might be worth making it clearer
drakonis has quit [Ping timeout: 246 seconds]
<symphorien>
it is in the doc/ directory of nixpkgs
<sheyll>
thanks .. found it
<symphorien>
so "normal" PR workflow applies
<symphorien>
there should be makefiles to build and lint it
<pie_>
garbas, not sure how this happened but apparently this is also a thing "Error: Unable to find release for package jsonschema of version 0.0.0" via 'pypi2nix -V "2.7" -e jsonschema'
<noonien>
and gchristensen(Sorry for the ping) suggested to use svn, which i have, and it works great, however, i would like to use a git commit hash instead of a svn revision (since i believe these might not point to the same commit in case of rebases)
nD5Xjz has joined #nixos
<sheyll>
ok, but I am still seeking for help, I cannot improve unless I understand
<infinisil>
sheyll: I think most of us here don't understand that section either..
jasongrossman has joined #nixos
<sheyll>
:)
<sheyll>
m)
jasongrossman has quit [Remote host closed the connection]
nD5Xjz_ has quit [Ping timeout: 252 seconds]
<sheyll>
ok ... :) .. maybe I move on with live; how do I explicitly declare a runtime dependency?
<infinisil>
,runtimeDeps
<{^_^}>
In order of preference: Patch source OR ((if it uses PATH -> wrap with new $PATH) AND (if it uses dlopen, (patchelf --set-rpath in postFixup OR wrap with new LD_LIBRARY_PATH)))
<symphorien>
sheyll: can you be specific?
<sheyll>
@infinisil thanks :)
imdoor has quit [Quit: imdoor]
<sheyll>
@symphorien: I made a (Haskell) program, that calls some programs, e.g. "mkfs.ext4" and I would like to write a derivation that includes the nix derivation that contains "mkfs.ext4" as runtime dependency
<sheyll>
@symphorien: ok... I would like to write a nix expression that generates a derivation that contains the program and a reference to "mkfs.ext4"
<symphorien>
then either hardcode the path to mkfs.ext4 during the build, or wrap the executable with the correct PATH
<symphorien>
as the factoid said, patching is "better"
<sheyll>
@symphorien: with hardcoding you mean, passing the path the build such that it will be in the executable?
nD5Xjz has joined #nixos
<symphorien>
or patching the source before building
<sheyll>
ah ok, I get it.
stepcut has quit [Remote host closed the connection]
<sheyll>
I also searched for "runtimeDeps" in the NixPkgs manual, but did not find anything, is this an attribute understood by 'derivation'?
jackdk has joined #nixos
<symphorien>
no, runtime deps are implicit
arjen-jonathan has quit [Ping timeout: 252 seconds]
<symphorien>
when the build finishes, nix will grep the outputs for /nix/store paths and add them as dependencies
<{^_^}>
[nixpkgs] @flokli pushed commit from @bendlas to release-19.03 « azure-mgmt-*: re-init older versions for use with nixops »: https://git.io/fhpEK
<symphorien>
this can be problematic when paths are zipped in a jar for example
<symphorien>
but usually you don't have to worry about it
<sheyll>
ah, so could one simple generate a dummy script that contains all the 'runtimeDeps' ?
<symphorien>
writescript will result in another derivation so it won't work
<symphorien>
(note that $out/nix-support is purely a convention)
<sheyll>
won't there be runtime dependencies to that other derivation, whose runtime deps are propagated, such that instantiating one will cause the others to be installed?
<sheyll>
oh wait... that makes no sense in nixos
<symphorien>
nix does absolutely nothing at runtime
<symphorien>
so either it has the path of its runtime dependency hardcoded
<symphorien>
or it won't find it
<sheyll>
I get it now
Makaveli7 has quit [Ping timeout: 250 seconds]
<sheyll>
it is not about "installing" stuff, it is more about adding store paths to PATH for example
<sheyll>
and nix figures out the exact paths of the totally isolates derivations, something like that... right?
<symphorien>
yes
<sheyll>
nix is different
<sheyll>
and great
<symphorien>
you can query the list of all the paths a derivation recursively depends on with nix-store -qR /nix/store/foo
<{^_^}>
[nixpkgs] @qolii opened pull request #56996 → zsh-git-prompt: switch to a new fork. → https://git.io/fhpuJ
hamishmack has joined #nixos
hlavaty has joined #nixos
<pie_>
is it just me or does using rec just to get a version in a name feel dirty?
<pie_>
let ... in looks uglier imo but it feels less dirty
<symphorien>
you can use pname instead
<symphorien>
(unstable only)
<pie_>
uh what exactly does that do because im looking at python stuff and that uses pname and im not sure its the same thing
<symphorien>
name defaults to "${pname}-${version}"
<sheyll>
OMG I just did "tar cvf firefox.tar $(nix-store -qR /nix/store/9r8mlpa8yf1hcams85n9c8i96ci7ay9m-firefox-65.0.1)" then copied that tar to a CENTOS machine and 'ssh -Y xxx@xxxxxxx /nix/store/9r8mlpa8yf1hcams85n9c8i96ci7ay9m-firefox-65.0.1/bin/firefox"
<sheyll>
it worked!!
<symphorien>
:)
<symphorien>
some limitations apply: opengl stuff does not work, notably
<sheyll>
that tar weighs only 500MB
<{^_^}>
[nixpkgs] @amazari reopened pull request #56973 → chromium (72): Add hardware video decoding using VAAPI → https://git.io/fhp8j
<sheyll>
this is really something for the companies deployments.
<{^_^}>
[nixpkgs] @mtrsk opened pull request #56997 → Fixed fatal error with X11 and libGL while building playonlinux → https://git.io/fhpus
<elvishjerricco>
sheyll: Wait till you get to NixOS. Deploying an entire OS has never been so trivial. Easier than containers IMO
<sheyll>
I am on nixos right now
<ivan>
I'm running /nix/store/rr4nd0hh48p7dwxz5yhc803x7rjss4xy-chromium-72.0.3626.121 but chrome://version says it's 72.0.3626.119
<sheyll>
also the distinction between containers and "classical" installation vanishes with nixos
erictapen has joined #nixos
<sheyll>
in some sence
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sheyll>
in some sense, what remains is the cgroups stuff that "containers" eintail
maximiliantagher has quit [Remote host closed the connection]
<sheyll>
nixos is even better than docker, since it enables "package"-level reuse of "containers" without giving up on isolation
maximiliantagher has joined #nixos
<symphorien>
there are utilities in nixpkgs to generate docker images
<symphorien>
so that you can have the runtime side of things
Shouou has quit [Ping timeout: 245 seconds]
<sheyll>
I will read through this, once I am conviced deploying docker images in production is helpful for the scenarios I work in
jasongrossman has joined #nixos
drakonis_ has quit [Quit: WeeChat 2.3]
drakonis has joined #nixos
maximiliantagher has quit [Ping timeout: 255 seconds]
vk3wtf has quit [Ping timeout: 252 seconds]
ddellacosta has quit [Ping timeout: 252 seconds]
ddellacosta has joined #nixos
<sheyll>
I just did 'readlink /run/current-system' and got '/nix/store/...-nixos-system-wega-18.09.2266.aabc61049c0' - I did a 'nix-store -qR' on this path and got a list that contains a lot of stuff. I this the 'whole' system, that I could copy to another system, set a few symlinks and boot into?
<sheyll>
in order to clone the machine?
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<jasongrossman>
sheyll: I don't know, but the standard way would be to copy configuration.nix across and then regenerate the store. That way you can be sure you've got a consistent system.
<adamt>
sheyll: Yeah, it should be. But you don't want to handle links manually, there's a store path that contains a binary that activates it as default
acarrico has quit [Ping timeout: 255 seconds]
<elvishjerricco>
jasongrossman: I would not say that is the standard way
justanotheruser has quit [Ping timeout: 252 seconds]
thomashoneyman has quit [Ping timeout: 256 seconds]
<adamt>
jasongrossman: We build our hosts locally, push them, and run the activation script, so that nothing is built remote
<elvishjerricco>
I find it much more common (and much better) to build the system on a different system and simply `nix copy` the path to the target machine
<elvishjerricco>
^ what adamt said
<elvishjerricco>
target machines (at least in my work) are generally quite weak in CPU performance, so they're no good for building on. Much easier to use Nix's excellent closure concept to just copy from a beefier build machine
<jasongrossman>
I see.
<elvishjerricco>
sheyll: NixOps is a tool for automating all this, as well as cloud resource provisioning. You give it a nix expression, it figures out what hardware to provision on the cloud provider, it builds the system locally, it copies it to the server, and it activates it
<{^_^}>
#56705 (by hedning, 4 days ago, open): Fix trash-cli and meld's checkPhase after #53440
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
shibboleth has quit [Quit: shibboleth]
<sheyll>
thanks adamt
justanotheruser has joined #nixos
<adamt>
Notice how there's two binaries being called. the nix-env one is needed to persist the configuration change (generate a new generation and set it as default). `configuration` here is just a store path, I think.
<justanotheruser>
not sure this is a nixos issue, however thought I might ask here: I'm trying to get cron to work. /etc/crontab looks like this https://paste.debian.net/plain/1071984 and journalctl indicates that the cron job is being run https://paste.debian.net/plain/1071983 however the file ~/cron.log isn't being written to. How can I resolve this?
hedning has joined #nixos
<azazel>
I have a problem that when my server comes up firewall fails to start because a firewall piece fails to resolve an IPv6 fqdn but then via ssh doing a "systemctl restart firewall" completes without issues.... what can it be
<azazel>
justanotheruser: you really need cron when you have systemd?
<justanotheruser>
azazel: I didn't realize I could replace cron functionality with systemd. Let me look into that
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]