<{^_^}>
[nixpkgs] @worldofpeace pushed to master « pantheon.elementary-files: rely on desktop-file-utils hook »: https://git.io/fhAtU
Erasmus has joined #nixos
drakonis_ has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
drakonis has quit [Ping timeout: 245 seconds]
roni has quit [Ping timeout: 240 seconds]
shibboleth has joined #nixos
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #56552 → pantheon.elementary-screeshot-tool: fix conceal text → https://git.io/fhAtt
scientist has quit [Quit: WeeChat 2.2]
tdeo has quit [Quit: Quit]
<talqu>
elvishjerricco, https://pastebin.com/G3cmyL5j, what am i doing wrong here? Once in nix shell -> ghci I can't import the Turtle module
tdeo has joined #nixos
<clever>
talqu: was that in a shell.nix? how did you run nix-shell?
<elvishjerricco>
talqu: The `packages` argument is the list of packages you want to work on, not the ones you need to be available.
<elvishjerricco>
talqu: So you're saying "Give me all of turtle's deps so that I can build my local copy of it" but obviously that's not what you want :)
<elvishjerricco>
talqu: Do you want to add turtle to your cabal file's build-depends?
o1lo01ol1o has joined #nixos
<mek42_laptop>
hmmm... the zfs install procedure looks too easy
<talqu>
no, in that case i know i had to add it to default.nix (generated with cabal2nix). I want to add to shell.nix as a development only needed package
<talqu>
just for learning purpose
<clever>
talqu: is your project on github?
<talqu>
clever, :), no im just poking around with these ideas now
<elvishjerricco>
talqu: Alright, then that's not really something shellFor supports at the moment. Sounds like a good idea though, so I may add such a feature in the future. Anyway, for now you can add turtle as a buildDepends of your package using `haskell.lib.addBuildDepend(s)`
<clever>
talqu: if you already have a default.nix from cabal2nix, you dont need to mess with shellFor at all
<clever>
talqu: just make this shell.nix: (import ./.).env
<clever>
or maybe: (import ./. {}).env
<clever>
depending on what your default.nix wants
<elvishjerricco>
clever: They also need to add ghcid as a native build input and change to a GHC with hoogle. shellFor is the lowest friction way to do that
<clever>
then (import ./. {}).env.overrideDerivation
<talqu>
elvishjerricco, clever thanks, i saved cardano link and elvishjerricco elegent shellFor solution. learned something new :)
kvda has joined #nixos
mek42_laptop has quit [Quit: Leaving]
hedning has quit [Ping timeout: 255 seconds]
<talqu>
it is nixpkgs in nix package worlds, but nixos in nixos os?
mizmorYodh has joined #nixos
<elvishjerricco>
talqu: Not sure what you're asking, sorry
<talqu>
i've seen nix-env -iA nixos.hello, and other time nixpkgs.hello
<clever>
talqu: the nixos and nixpkgs there, is the name of a channel from nix-channel --list
o1lo01ol1o has quit [Remote host closed the connection]
<elvishjerricco>
(which only gets more confusing when different users have different channel lists)
<clever>
on some machines, it will be sudo nix-channel --list
<mizmorYodh>
Hey all! I have audio issues and i'm new to nixos in general. In my config, I have sound.enable and hardware.pulseaudio.enable set to true. Am i missing something?
o1lo01ol1o has joined #nixos
<clever>
mizmorYodh: what kind of audio issues?
<mizmorYodh>
clever: well I dont have any devices listed in the device tab of the audio volume app from KDE
<clever>
mizmorYodh: and the same in pavucontrol, on the output devices tab?
<clever>
slightly modified though, because staging-next doesnt have a channel
<gillmanash>
clever: I have a little function to help override single python packages. Is there a recommded way to do that?
<clever>
python things may break if you use one package from a different channel, so it may help to get the entire set of python things from staging-next
<gillmanash>
Since the live inside a set, and can be both python3Packages.blah and python3.pkgs.blah
<ingenieroariel>
Hello everyone, I am looking to compile a golang package that only works with golang 1.8 - I see in latest nixos that only 1.10 and 1.11 are available. Does anyone know a workaround?
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
drakonis1 has quit [Ping timeout: 258 seconds]
Rusty1 has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
<aanderse>
ingenieroariel: maybe you could add the version of nixos that has the version of go you want to your channels list, then pass that version of go to that go package? might work
silver has quit [Read error: Connection reset by peer]
<ingenieroariel>
thanks aanderse, although I have all my custom packages in a nur-repository which makes channel handling a bit more complicated
stepcut has joined #nixos
shibboleth has quit [Quit: shibboleth]
ninjin has quit [Ping timeout: 256 seconds]
ninjin has joined #nixos
<ingenieroariel>
aanderse: I did an ugly hack within the derivation - totally not proud but I think will work for now
<adamantium>
Hey -- anyone use mate ? i have it installed with services.xserver.desktopManager.mate.enable = true; but there is no gsettings, and if i install glib, then I have gsettings, but the gsettings commands to tweak mate from the command line from the arch wiki "do not work"
<{^_^}>
#42770 (by leo60228, 34 weeks ago, open): GSettings override requires Gnome 3, despite usecases including most/all Gtk DEs
mog has quit [Quit: im quiting!]
mog has joined #nixos
jasongrossman has joined #nixos
MinceR_ has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MinceR has quit [Ping timeout: 250 seconds]
slack1256 has joined #nixos
gillmanash has quit [Ping timeout: 240 seconds]
lsyoyom has quit [Ping timeout: 245 seconds]
<drakonis>
i'm not sure if anyone's using the podman package right now
<worldofpeace>
adamantium I don't know what to think when you say "there's no gesttings". Do you mean that the gsettings commands you try to execute have no effect or don't persist?
<adamantium>
worldofpeace, the url i linked is pretty informative, but with mate, you still need to install glib to get "gsettings" on the path. And I've found it now seems to be mostly working, not every mate key mentioned by the arch wiki seems to be here, and not sure why
<adamantium>
worldofpeace, for example, this one worked gsettings set org.mate.background show-desktop-icons false
<adamantium>
okay wait, no i think it all works now! Well, maybe i can help the next guy then. Perhaps glib should be included with mate.nix though
<worldofpeace>
adamantium Yes, I've looked at the module and there's some things that look like they were missed.
<adamantium>
worldofpeace, ah, thanks. well so far i have added glib to system packages and done services.xserver.desktopManager.gnome3.extraGSettingsOverrides = true; and things seem to be working
<worldofpeace>
adamantium Thank you too :) Because you pointed it out I can now fix this in nixpkgs for you
<adamantium>
worldofpeace, thank you! well, there is heads up also, the included mate log viewer is basically broke with systemd
<adamantium>
worldofpeace, i wonder if we should include gnome-logs, it is what i installed and it works great. saw a bug upstream reported about it, seems the devs dont want to fix it
<worldofpeace>
adamantium Does it want access to set system settings with systemd?
<adamantium>
worldofpeace, i have no idea, the only log it shows is xorg.0.log ... no dmesg, nothing from journalctl
<adamantium>
gnome-logs is what the mate devs said to install *lol*
Erasmus has quit [Quit: reboot]
<worldofpeace>
If they say it's just broken they probably shouldn't even ship it
<adamantium>
"lack of manpower" , maybe it works on systemd-less
Erasmus has joined #nixos
o1lo01ol1o has quit [Read error: Connection reset by peer]
<bgamari>
How do I refer to the source derivation of a derivation (e.g. pkg.drvPath) from the builder of another derivation without actually requiring that `pkg` be built?
<bgamari>
which is supposed to generate a shell script which collects the logs from a set of derivation builds (testedPackages)
<ottidmes>
bgamari: you probably want builtins.unsafeDiscardStringContext to remove the dependency on pkg
<bgamari>
hmm
<adamantium>
worldofpeace, you said you use exwm iirc? i'm basically using exwm + mate for some added lipstick. I wonder if i should try gnome-flashback
<bgamari>
I'm just a bit surprised that even referring to drvPath causes a build
<bgamari>
afterall, drvPath is just a source derivation
<bgamari>
ottidmes, indeed that does the trick, thanks!
<ottidmes>
it should build the derivation, but I would not have expected it to build the derivation too
<ottidmes>
ok, that sentence is confusing
<bgamari>
it should build the derivation but not the output
vk3wtf has quit [Client Quit]
<ottidmes>
it should build the .drv file, but I did not expect the .drv file to be realized as well
vk3wtf has joined #nixos
countingsort has quit [Ping timeout: 250 seconds]
<adamantium>
worldofpeace, oh! also the weather feature does not seem to work in mate, maybe it needs geoclue ?
<worldofpeace>
adamantium Probably. They're missing a lot of dbus services being enabled. I would open an issue in nixpkgs with your findings.
<adamantium>
okay
<adamantium>
i was just glancing at the gnome3 dbus services, which ones do you recommend i enable, if you have time
<worldofpeace>
I'm not really familar with mate, so I don't know exactly what they're using. Though you can quickly find out if I needed service isn't running by a certain application not functioning they way you expect, and then running it from a terminal like `G_MESSAGES_DEBUG=all executable` to get some debug output.
<gillmanash>
Why does `nix why-depnds` start building the closure?
<clever>
gillmanash: it operates on the runtine closure, which is only known after the build is finished
<clever>
gillmanash: you can also give it storepaths to finished builds
<yl>
clever: I don't want to fully use modules for the project that I have (overkill) so I have a something like `{ a = [ 1 ]; } // (import path/to/expr.nix)` where the expr.nix defines `{ a = [ 2 ]; }` and it's obviously setting it to `{ a = [ 2 ]; }`
<yl>
clever: how to make it merge a instead of overriding it since it's an array?
<clever>
yl: both // and recursiveUpdate will overwrite the list, not merge it, so you would need to either use a custom recursive function, or the module framework
<gillmanash>
clever: Ah right, I was trying to use it so I can eliminate a failing-to-build dependency
<clever>
gillmanash: nix already tells you the dependency chain, when it prints everything that failed to build, in the order they depend on eachother
<yl>
clever: I see what you mean. Do you know if any exists in nixpkgs or write my own?
<clever>
yl: the module system is fairly easy to work with, let me toss together an example...
<yl>
clever: if you can toss an example in 5 minutes, I think I'm sold. I have not used it yet to make an informed decision on it
<yl>
s/it yet/it engouth yet/
<gillmanash>
clever: It doesn't omit any? It says python.partd -> python-user-env -> userPackages, but I don't ask for partd in my user env
<clever>
gillmanash: then its in the $out/nix-support/propagated-* of something of something else the python-user-env depends on
<clever>
yl: example.nix defines a to be an option, that is a list of ints, and then exrp.nix and expr2.nix set a to different things, [1] and [2], default.nix then merges all 3 files together, and looks at config.a
reinhardt has joined #nixos
<yl>
clever: ohh that's dead simple
<clever>
yl: yep
<yl>
clever: thank you!
<clever>
yl: nixos is just repeating that pattern, across 100's of files, until you have a full distro
<clever>
yl: you can also set a default value inside the mkOption block, which will vanish if the config is set anywhere
<clever>
and imports is recursive, so any module can define more modules to load
<yl>
clever: yea I've used the modules, but indirectly
<yl>
I did not know about the evalModules and I was mostly relying on nixos-rebuild
<clever>
yl: oh, and now that it is using the module framework, you could do: a = lib.mkMerge [ [1] [2] ]; i think
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
Mythology has joined #nixos
<Mythology>
The Economic Community of Central African States (ECCAS) is an Economic Community of the African Union for promotion of regional economic co-operation in Central Africa.
<Mythology>
Economy of South India - Dravidian speakers form the majority of the population of South India
Mythology has quit [Remote host closed the connection]
Rusty1 has quit [Quit: Konversation terminated!]
<teto>
does buildRustPackage do anything strange with src ? I am trying to do a fetchgit but it fetches many packages and my postFetch hook runs in an empty directory /build
_kwstas has joined #nixos
<clever>
teto: run `nix show-derivation /nix/store/foo.drv` on the drv that fails to build
_kwstas has quit [Client Quit]
ddellacosta has quit [Ping timeout: 250 seconds]
ddellacosta has joined #nixos
vk3wtf has quit [Ping timeout: 250 seconds]
wfranzini has quit [Remote host closed the connection]
hyperfekt has quit [Ping timeout: 256 seconds]
<teto>
clever: good idea, it gives some insight. I have been trying to run "git fetch --tags ${url}" as a postFetch operation to satisfy a program constraints but I never am in the correct folder. Will try later
<clever>
teto: the body of the fetch command usually outputs directly to $out
<clever>
teto: so postFetch may need to `cd $out` first
<teto>
I tried that but I ended up in /nix/store so git could not write the tags
<clever>
teto: can you pastebin the show-derivation output?
<neonfuz__>
Any way to "skip" packages when upgrading?
<neonfuz__>
I'm trying to do a nix-env -u but one package is failing rn
<neonfuz__>
some way to invert the pattern, like a "not", or a --skip
ninjin has quit [Remote host closed the connection]
<neonfuz__>
I swear I read in the manpage somewhere an option that let you skip a package by a pattern matching it's path
<neonfuz__>
but I can't find that now
<clever>
teto: and what is the error when you try to build with that overlay?
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 244 seconds]
<{^_^}>
[nixpkgs] @andrew-d opened pull request #56565 → plex: rewrite to use FHS userenv → https://git.io/fhAYV
yl has quit [Ping timeout: 252 seconds]
MinceR_ is now known as MinceR
domogled has joined #nixos
<yl[m]>
clever: does the modules in evalModules have to be files? Can I pass expression directly there?
<clever>
yl[m]: it can also be raw functions
<clever>
yl[m]: the example from nixos uses a pkgsModule to set nixpkgs.system
<yl[m]>
clever: oh nice
<yl[m]>
thank you
<teto>
clever: log output https://paste.ubuntu.com/p/qZZGC7FjDf/ . It starts by fetching the src I specified, than I suppose rust fetches many things, and only at the end it runs postFetch
<clever>
teto: your overlay does a `exit 1` so the build fails
<clever>
teto: but otherwise, it appears to be working normally
<teto>
hum.. right, I was expecting git fetch to output something but I removed the url (I need to specify one since there is no FETCH_HEAD), when putting it back it fetches the tag
bemeurer has joined #nixos
<bemeurer>
If I have a default.nix for a project, and then in the same dir I have a some_dep.nix formula; how can I add that dep to my default.nix?
<clever>
teto: also note, if you leave the sha256 unchanged, nix assumes the output is unchanged, and wont re-run the derivation, no matter how much you change the postFetch
<omnipotententity>
Hi! I'm new to NixOS, and I'm having some difficulty with installing tensorflow subpackages (such as the tensorflow_dataset package) can someone point me in the general direction of a resource where I can read up on this?
<clever>
bemeurer: what does rustNightly.callPackage do differently?
<bemeurer>
clever: One second, refresh those pages, just pushed changes
SeanConnely has left #nixos [#nixos]
<bemeurer>
Oh
<bemeurer>
I see what you are saying
<bemeurer>
Woah
jackdk has quit [Ping timeout: 255 seconds]
<teto>
clever: I confirm that works (well I have another problem but I know how to fix it)
<teto>
clever++
<{^_^}>
clever's karma got increased to 108
<clever>
bemeurer: also, have you been to #osdev ?
<bemeurer>
clever:Yeah, I lurk there a lot :)
<bemeurer>
clever: `(rustNightly.callPackage ./bootimage.nix {})` did not work :(
<clever>
bemeurer: ah, then rustNightly doesnt have a callPackage
endformationage has quit [Quit: WeeChat 2.3]
<bemeurer>
:O
<bemeurer>
What do I do?
<clever>
bemeurer: poke around more in nix repl
<omnipotententity>
also a more general question, which way is preferred for installing packages, I see at least three ways: the first is to edit the /etc/nixos/configuration.nix file and place the packages in either the system environment or the user's environment. The second is to install it via nix-env. The third is to add it to your ~/.nixpkgs/config.nix file. Which way ought I be using? Or does each have particular use cases?
palo1 has joined #nixos
<bemeurer>
clever: This is my first time using Nix, I'm not sure what I'd be looking for in that poking
<bemeurer>
clever: So I am a Gentoo user. Have been for a while. I have been blessed with having access to a buildfarm which means I don't mind the compilation times, and I like compiling things myself, specially because of USE flags
<clever>
the nix file deals with fetching a linux kernel, compiling the haskel code (with musl, as a fully static binary), and then buildint an initrd with that code as /init
<bemeurer>
People at work love NixOS and have been pressuring me to try it, so I want to give it a shot
<clever>
i was a gentoo user, prior to discovering nixos
<bemeurer>
Can I get NixOS install where everything is built from source? Can I set my CFLAGS/CXXFLAGS?
<clever>
with the proper overrides, or changes to nixpkgs, you can
<bemeurer>
Interesting
<bemeurer>
I tried to find docs or a blog post about it, but found nothing
<clever>
i dont think its really documented, but it should be possible
<bemeurer>
If there was something like that I'd make the switch this weekend
<clever>
why do you want to change your CFLAGS?
<bemeurer>
clever: OCD
<bemeurer>
I get a weird pleasure from compiling packages
<adamt>
Imagine all the CPU cycles you're freeing up by not fiddling with your CFLAGS :P
<bemeurer>
Can't explain it
<clever>
bemeurer: you could simply turn off the binary cache, and build the world without the help of hydra.nixos.org!
<adamt>
bemeurer: I stopped when i realised the futility of trying to get my laptop with 256MB to compile open office. Didn't work :P
<bemeurer>
adamt: Hehehe, that _is_ futile
<bemeurer>
My nemesis is chromium
<bemeurer>
clever: That sounds like what I want! Is it easy to do?
<clever>
bemeurer: just set nix.binaryCachePublicKeys = lib.mkForce []; in your configuration.nix
<clever>
and it will stop using all caches
<bemeurer>
clever: That seems hackish, is it just invalidating the server keys, so now it can't "see" any valid binary cache servers?
<clever>
bemeurer: oh oops, wrong key
<clever>
bemeurer: meant to say nix.binaryCaches = lib.mkForce [];
thc202 has joined #nixos
rauno has joined #nixos
<omnipotententity>
Hi! I'm new to NixOS, and I'm having some difficulty with installing tensorflow subpackages (such as the tensorflow_dataset package) can someone point me in the general direction of a resource where I can read up on this?
wfranzini has joined #nixos
Ariakenom has joined #nixos
<adamt>
bemeurer: If you're really going to do that, you probably also want to look at the NixOS options nix.distributedBuilds and nix.buildMachines....
orivej has joined #nixos
<{^_^}>
[nixos-weekly] @zarelit opened pull request #86 → Nix in Termux → https://git.io/fhAOR
<clever>
bemeurer: nix.distributedBuilds+nix.buildMachines is basically distcc
<clever>
bemeurer: ultimately, you can just do a single nix-build command, and it will build the entire emulator, and kernel, then build a bash script to run the emulator on the kernel!
<clever>
i dont know a single thing about forth :P
<bemeurer>
Damn, I want that for daedalos :D
<bemeurer>
Compiling the qemu docs takes longer than qemu itself
Glider_IRC_ has quit [Ping timeout: 246 seconds]
growpotkin has quit [Quit: WeeChat 2.4]
<bemeurer>
Wish I could override that, doesn't seem to be an option
<Orbstheorem>
Hello, is there a way to build a derivation that contains all builddeps for a set of packages?
_lawlesseel has quit [Remote host closed the connection]
<Orbstheorem>
I want to build a package (not available in nixpkgs) from pip in a virtual env, which fails because of missing libs. I tried to make a shell with its requirements but it still fails because I believe it's expecting its requirements build deps to be also installed
goibhniu has joined #nixos
<Orbstheorem>
I have manually included them in the shell as the installs fail, but next time, I'd like to have a faster solution even if it implies compromising closure size
<pmiddend>
I'm a bit of a noob with respect to linking libraries. I'd like to link a library "X" that depends on "Y", so you don't have to have "Y" in your LD_LIBRARY_PATH or anything when "X" is used.
<pmiddend>
Can anyone tell me the respective linker flag?
<pmiddend>
(Sorry if this is not 100% Nix related, so to speak; I want to do it in a Nix derivation, though)
<qyliss^work>
If you want to link libfoo, you do -lfoo
<pmiddend>
I think I'm looking for -L in combination with -rpath
<pmiddend>
Ah yes, that worked. Sorry for the spam.
sigmundv__ has joined #nixos
ehmry has joined #nixos
jb55 has quit [Ping timeout: 245 seconds]
<jD91mZM2>
I finally resolved my weird display issues from months ago (xrandr caused the screen to behave weirdly), it boiled down to 1. using propietary nvidia 2. if using bumblebee, don't forget to set connectDisplay=true and add nvidia to x11 drivers
<{^_^}>
[nixpkgs] @sgraf812 opened pull request #56573 → Fix include path of libffi used in GHC build → https://git.io/fhAZp
patrl has joined #nixos
<{^_^}>
[nixpkgs] @vcunat pushed commit from @dtzWill to staging-18.09 « Merge #56494: file: 5.34 -> 5.36 (staging-18.09) »: https://git.io/fhAnU
__monty__ has joined #nixos
dejanr has joined #nixos
<dejanr>
hi all, i am trying to install nix on ubuntu with '--daemon' for multiuser setup, and having trouble running nix with other users, manual doesn't say that much for this use case
klntsky has quit [Remote host closed the connection]
ng0 has quit [Remote host closed the connection]
klntsky has joined #nixos
Glider_IRC__ has quit [Quit: Leaving]
ng0 has joined #nixos
Glider_IRC has joined #nixos
<emily>
how should I set the noop IO scheduler for a block device? `elevator=noop` in the command line no longer works (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=914758#10), as far as I can tell the options are just a /sys twiddle and I don't know the best NixOS-y way to toggle it on boot. Write custom udev rule? just add something to the stage1?
<dejanr>
so my jenkins user get connection refused from nix socket
<{^_^}>
[nixpkgs] @peti merged pull request #56573 → Fix include path of libffi used in GHC build → https://git.io/fhAZp
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fhAn6
fusion809 has joined #nixos
<immae>
Hey there, is there a helper function in nix that takes a script file and a list of "dependencies" and builds a wrapper around it (and modifies the `#!/usr/bin/env bash` line in it)? I can write a derivation, but it seems (?) like a rather common situation, so maybe...
orivej has quit [Ping timeout: 244 seconds]
<johanot>
immae: "patchShebangs" can be used to modify the shebang line in your script. As for the "dependencies", perhaps consider "makeWrapper" with --prefix PATH ? Depending on what you're trying to do.
EoF_ has quit [Quit: eof_]
<immae>
johanot: yes a makeWrapper is fine but it "forces" me to write a derivation, I wondered if there were a small helper existing already :)
<teto>
immae: you can use nix-shell in the shebang ?
<teto>
and pass dependencies along the command
<immae>
(maybe I spent more time looking for it than write the derivation myself though)
<freeluv60spropag>
Hey guys, this is unrelated to nixos but I was wondering if anyone could recommend me a dns service that is trustworthy or used by free software people
<gchristensen>
for your nixos computer?
<freeluv60spropag>
I don't need web hosting just the dns record thing
<__monty__>
immae: I think teto meant replacing the shebang with a nix-shell shebang, it's in the manual.
<immae>
ah right
zupo has joined #nixos
<gchristensen>
freeluv60spropag: are you looking for a DNS resolver like 1.1.1.1 / 8.8.8.8? or a nameserver for your domain?
<__monty__>
immae: Also note that shebangs only allow for one command and one argument afaik. Anything else isn't guaranteed to work.
<clever>
freeluv60spropag: ive been using https://dns.he.net/ for free dns, but aws is another service i use often
martinb has joined #nixos
<freeluv60spropag>
nameserver for my domain
mariel__ has joined #nixos
<gchristensen>
I'm a big fan of luadns.com
<immae>
__monty__: yes, it was a simple /usr/bin/env bash here, and I wrote the derivation by hand (with runCommand) finally :)
<clever>
gchristensen: is the nameserver written in lua?
<freeluv60spropag>
clever: thanks! already something promising has showed up!
<gchristensen>
I doubt it, clever :)
<freeluv60spropag>
looks very useful for right now but I don't mind paying for dns if it's good people
<__monty__>
immae: Yeah, just mentioning it in case you wanted to do #! /usr/bin/env VAR=val bash or something.
<teto>
immae: the nix-shell in shebang has quite a few quirks. What always work though is to pass a *.nix file to it
<gchristensen>
clever: you express your records in Lua in a git repo, and it realises them as DNS records
<teto>
no nixos.dev yet :D ?
ThatDocsLady_ has quit [Remote host closed the connection]
<freeluv60spropag>
ooh luadns is also great
<freeluv60spropag>
thanks guys!
<clever>
gchristensen: ah, nice idea
<gchristensen>
yeah
<clever>
dns.he.net has a very simple http api to set a subdomain to point to whatever IP made the http call
<gchristensen>
abstractions and variables are nice :P
<clever>
so you can just blindly curl it in a dhcpcd hook
<clever>
luagit sounds good if you want to programatically generate things, but when you have a dynamic ip, that could be a problem
<gchristensen>
it is not compatible with dynamic IPs
<clever>
you would need to push a new git commit every time your IP changes
<gchristensen>
right
<freeluv60spropag>
hmm well right now I'm just setting up my email and then I'll probably serve a webpage from a nixos box in closet at home with a static ip so I'm not too bothered
<clever>
__monty__: mine isnt static, but if i keep the route on, i can usually keep the same ip for months at a time
<clever>
though the ISP has been weird this week, and has forced 2 IP changes
asymmetric_ has quit [Ping timeout: 264 seconds]
<tobiasBora>
Hello,
<__monty__>
clever: Yeah but you can't rely on it. It could change at any time when you're not home. And that usually happens right when it's most unfortunate.
vidbina has joined #nixos
<locallycompact>
anyone successfully running nixos on a lenovo x1 extreme? considering buying
<clever>
__monty__: which is where dns.he.net having an API to update the IP easily comes in handy (but i have yet to actually configure that, lol)
<__monty__>
clever: I agree, looking into it. I just made the remark because freeluv60spropag might erroneously think they have a static IP. They're not exactly common on home connections afaik.
<tobiasBora>
I don't get something: I just installed plasma-nm using environment.systemPackages, but the command "plasma-nm" does not exist...
Guest80302 has joined #nixos
Guest80302 has quit [Changing host]
Guest80302 is now known as adamt
<tobiasBora>
and (as before), when I click on the systray => connection editor, nothing shows up
<clever>
tobiasBora: ls $(nix-build '<nixpkgs>' -A plasma-nm)/bin
<tilpner>
locallycompact: nixos-hardware has an entry for the x1
ng0 has quit [Quit: Alexa, when is the end of world?]
freeluv60spropag has quit [Ping timeout: 256 seconds]
ng0 has joined #nixos
ng0 has quit [Client Quit]
<adamt>
What method of building a nix pkg from a SBT-based project is least likely to make me want to jump out the window?
<locallycompact>
tilpner: thanks, there seem to be some bricking issues with the x1 extreme in particular on linux so trying to get a first hand verification
<tobiasBora>
clever: hum, thanks for the nice command, but no bin directory... not even a kde5-nm-connection-editor file. Maybe I'll just reboot and hope it appears in the network plasma menu...
<{^_^}>
[nix] @vcunat pushed to master « manual nitpick: document sha512 support in hashString »: https://git.io/fhACK
<martinb>
tobiasBora: We had the same issue in the past. Turned out to be a policyKit problem in our case, IIRC. What does `nmcli g permissions` show for you?
<{^_^}>
[nixpkgs] @dotlambda pushed to master « python.pkgs.pyscard: move swig to nativeBuildInputs »: https://git.io/fhACD
<{^_^}>
[nixpkgs] @dotlambda pushed to staging-19.03 « python.pkgs.pyscard: move swig to nativeBuildInputs »: https://git.io/fhACy
<martinb>
tobiasBora: ok, looks reasonable. Did you check whether `journalctl --user` shows an error whenever you try to click the connection editor?
<goibhniu>
tobiasBora: FWIW I don't have it installed and it works. Have you tried running `kbuildsycoca5`?
<ptotter[m]>
I'm trying to do this:
<ptotter[m]>
environment.systemPackages = with pkgs; environment.systemPackages ++ [ vim ];
<tobiasBora>
martinb: if I just run this, I get Failed to search journal ACL: Operation not supported
<ptotter[m]>
says it cannot find variable environment
<tobiasBora>
martinb: and with sudo, it's empty
<martinb>
tobiasBora: Oh. And only `journalctl`?
<tobiasBora>
goibhniu: hum that's a good idea. I'll try to reboot after that
<tobiasBora>
martinb: great idea: mars 01 14:59:27 colnixos xsession[3274]: Impossible de trouver le module « kcm_networkmanagement.desktop ». Veuillez saisir « kcmshell5 --list » pour obtenir la liste de tous les modules.
reinhardt has quit [Quit: Leaving]
<tobiasBora>
Impossible to find the module kcm_networkmanagement.desktop
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<goibhniu>
if that doesn't work, I'd try using a fresh user account
<tobiasBora>
martinb: this does not seem to work... But I noticed something funny: kcmshell5 --list | grep kcm_networkmanagement gives a result!
<tobiasBora>
can't it be because of the ".desktop"?
<martinb>
tobiasBora: can you log out and back in after running kbuildsycoca5?
Makaveli7 has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @PombeirP opened pull request #56577 → Add qtwebview to 5.11 and 5.12 packages → https://git.io/fhAWf
<ptotter[m]>
how would I extend environment.systemPackages that is set in an import?
katyucha has joined #nixos
<tobiasBora>
martinb: logging out/back does not help
vidbina has quit [Ping timeout: 264 seconds]
hera has joined #nixos
<martinb>
ptotter[m]: Set with "imports = ...;" or imported directly with "import ...;"?
katyucha has quit [Client Quit]
<hera>
hey everyone. I want to test that my hardware works on Nix. If I edit the configuration.nix file in my USB installation, then I do the full install from the USB, are all my configurations transferred?
<martinb>
tobiasBora: Hmm.... which NixOS version are your running?
<martinb>
tobiasBora: Oh ok, I only run stable, so this is probably not an issue that I have encountered before...
iyzsong has quit [Ping timeout: 258 seconds]
noonien has joined #nixos
<noonien>
hello folks!
<noonien>
does anyone have any issues with their headphones port recently?
<noonien>
has anyone had*
zupo has joined #nixos
<tobiasBora>
martinb: and nobody else is on unstable + KDE? that's strange.
<noonien>
plugging in my headphones mutes the laptop speakers, pulse says it's outputting, but i can't hear anything in the actual headphones (i've tried multiple pairs)
<{^_^}>
[nixpkgs] @yorickvP opened pull request #56578 → youtrack: add hostname to path → https://git.io/fhAWn
<martinb>
tobiasBora: I think there are people running that, but maybe they don't have that specific behavior? KDE/Plasma has quite a bit of issues every now and then, and they don't always manifest for everyone in the same way. But that's what life is like on unstable :)
<martinb>
tobiasBora: Are you completely sure that neither root nor your user have any Qt5 applications installed via `nix-env`?
<clever>
tobiasBora: ls ~/.nix-profile/lib/qt*
<martinb>
noonien: Did you try switching back to an older configuration and see whether it still works there?
<tobiasBora>
clever: martinb : I tried not to install anything with nix-env. so this commands gives No such file or directory
<noonien>
how can i list generations/switch to one?
<noonien>
i could reboot, but is there an alternative?
<martinb>
tobiasBora: and `ls /nix/var/nix/profiles/default/lib/qt*`
<tobiasBora>
martinb: same
<clever>
noonien: to list, [root@amd-nixos:~]$ nix-env -p /nix/var/nix/profiles/system --list-generations
<martinb>
noonien: "ls /nix/var/nix/profiles"
<martinb>
noonien: ... what clever wrote :)
<clever>
a dead-simple way to test older generations (without actual rollback) is just /nix/var/nix/profiles/system-460-link/bin/switch-to-configuration test
<clever>
but that wont help if the problem needs a reboot to test
<goibhniu>
tobiasBora: FWIW I'm running nixos unstable with KDE and nm
<martinb>
especially if it's kernel-related
<clever>
bit you could also `/nix/var/nix/profiles/system-460-link/bin/switch-to-configuration boot` to flag that as the default for the next boot, though grub also lets you just select one from that menu
<martinb>
tobiasBora: If that really is a new problem, you could also try booting an older configuration and see whether it works (again). That could help in identifying what caused it.
<tobiasBora>
martinb: well I hadn't network manager installed before...
ckauhaus has quit [Quit: WeeChat 2.2]
<martinb>
tobiasBora: How did you install it?
<tobiasBora>
martinb: I added in my /etc/nixos/configuration.nix: networking.networkmanager.enable = true;
<martinb>
tobiasBora: Yes, that should be sufficient, normally...
<tobiasBora>
Also, I'd like to check the content of the file uid = 1000;
<tobiasBora>
kcm_networkmanagement.desktop
<tobiasBora>
(sorry)
<tobiasBora>
any idea how to find this file?
scientist has joined #nixos
jabranham has joined #nixos
zupo_ has quit [Ping timeout: 240 seconds]
<tobiasBora>
I think it's supposed to be in /usr/share/kservices5/kcm_networkmanagement.desktop
<tobiasBora>
maybe in run/current_system
o1lo01ol1o has quit [Remote host closed the connection]
<scientist>
hey do you guys guys know when infinisil gets on, I need his for a few more things ?
<tobiasBora>
no
<tobiasBora>
sorry
<tobiasBora>
I mean no for run/current_system ^^
o1lo01ol1o has joined #nixos
<infinisil>
scientist: Just ask your question, I'm not the only one that can help you (and I'm also not obliged to help you anyways)
<martinb>
tobiasBora: `ls /run/current-system/sw/share/kservices5` turns up nothing?
dejanr has quit [Quit: WeeChat 2.3]
<__monty__>
Having some trouble finding where `fetchFromGithub`'s located with respect to my override. Getting missing attribute if I leave it unqualified, use pkgs.fFGh, self.fFGh and super.fFGh: http://ix.io/1Cla
<scientist>
infinisil: good moning, I am sorry to bother you, you have been the only person that has been able to help me setup my keyboard layout
Erasmus has quit [Read error: Connection reset by peer]
<martinb>
__monty__: possible typo ....GitHub
<scientist>
typo, morning
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
zupo_ has joined #nixos
<martinb>
tobiasBora: also, judging from your OS version string, you are about 250 commits behind upstream, maybe it has been fixed in the meantime?
<__monty__>
martinb: Wow, owe you a beer ; )
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<martinb>
__monty__: :) This specific typo happens to me all the time....
_kwstas has joined #nixos
<scientist>
infinisil: I think I am almost done with my custom keyboard layout, I think just need to add a few more things to the custom file, then adda few more things to nix.configuration file, almost there
_kwstas has quit [Remote host closed the connection]
<tobiasBora>
goibhniu: so I just did it, and it works when I log with a fresh user! What's the hell is that??
_kwstas has joined #nixos
_kwstas has quit [Client Quit]
<tobiasBora>
martinb: it does ^^ stupid me, thanks
<goibhniu>
aha!
<goibhniu>
my guess is something is cached in a dot file .local or .config perhaps
<goibhniu>
it could be an obsolete/incorrect store path
scientist has quit [Quit: WeeChat 2.2]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<martinb>
tobiasBora: you could diff ~/.config/plasma-org.kde.plasma.desktop-appletsrc between the old and the new account, maybe you find something suspicous
o1lo01ol1o has quit [Ping timeout: 255 seconds]
waleee has joined #nixos
o1lo01ol1o has joined #nixos
semilattice has joined #nixos
<tobiasBora>
martinb: the diff is here https://paste.debian.net/1070865/. I'll try to replace this single file to see what's going on. And thanks a lot for your help!
<tobiasBora>
I need to go so I'll do that after, but thanks everybody for your help
Ariakenom has quit [Quit: Leaving]
o1lo01ol1o has quit [Ping timeout: 245 seconds]
hyperfekt has joined #nixos
<hyperfekt>
If I pass a nix store path to a derivation, will that derivation be able to access it when built in a sandbox? Or does that only work for dependencies passed as derivations?
<martinb>
hyperfekt: What exactly do you mean by "passing a store path to a derivation"?
Erasmus has joined #nixos
Tucky has quit [Quit: WeeChat 2.2]
rycwo has quit [Ping timeout: 264 seconds]
<hyperfekt>
martinb: Say I have a file containing '/nix/store/hash-name' that my NixOS config reads and then uses as src for a derivation. The passing part is probably irrelevant.
hera has quit [Ping timeout: 256 seconds]
rpg has joined #nixos
o1lo01ol1o has joined #nixos
<edef>
hyperfekt: afaik it will refuse
<edef>
hyperfekt: at the very least, it won't include it
<edef>
dependencies are passed through string context
<yorick>
edef: it may work with builtins.storePath
<martinb>
hyperfekt: do you mean "src" as a fetchurl attribute?
<martinb>
hyperfekt: ah sorry, disregard that...
Erasmus has quit [Ping timeout: 240 seconds]
<yorick>
edef: yep, builtins.storePath adds the context
<samrose>
however, if I leave that out, and add it in later, the machine will autoupgrade from my custom channel/hydra and install that without issue
<dmj`>
Taneb: fantastic
<vaibhavsagar>
Church-: same as any other VPS with SSH access
<samrose>
(it will install mozilla rust overlay without issue on autoupgrade from my channels I mean)
<ldlework>
vaibhavsagar: wellllll
<dmj`>
Taneb: I am using the github plugin, I wouldnt' want to execute the RunCommand script until a successful build has occurred
<dmj`>
Taneb: er, until the branch has been merged
<ldlework>
nixops support for various iaas is not even
<dmj`>
Taneb: is that supported?
<noonien>
has anyone setup lauching AWS or GCE instances just to build nix-packages?
<hyperfekt>
tilpner: I'm currently implementing the scheme you told me about. Does evalModules { check = false } mean that I can have config values without corresponding option declarations?
<vaibhavsagar>
ldlework: I meant that there is baseline support for any VPS with SSH access, and one can interact with a Linode VPS the same way :)
<Taneb>
dmj`: I don't think so
<hyperfekt>
tilpner: Disregard that question, sorry. Missed the redirected comment that explains it.
<ldlework>
vaibhavsagar: sure but that doesn't tell the whole story is all :P
<vaibhavsagar>
that's what the manual is for :)
Erasmus has joined #nixos
<ldlework>
Church-: different providers have different levels of support from NixOps. You'll see services like Azure have very good support comparatively.
<dmj`>
Taneb: I was afraid of that
schjetne has joined #nixos
erasmas has joined #nixos
asymmetric has quit [Ping timeout: 264 seconds]
<noonien>
vaibhavsagar: nice, but i don't think hydra is what i want. my understand is that hydra builds a selection of packages, i need to be able to make nix-build and nixos-rebuild do the actual building on more powerful machines
<vaibhavsagar>
noonien: I'm pointing out that it's possible
<{^_^}>
nix#2696 (by hyperfekt, 5 days ago, open): support cloud spot instance building use case
knupfer has quit [Remote host closed the connection]
xkapastel has joined #nixos
knupfer has joined #nixos
<noonien>
hyperfekt: nice, for single-user builds, perhaps a ProxyCommand in .ssh/config might be enough, but for a global nixos config, i don't know how that might work
wfranzini has quit [Remote host closed the connection]
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
johanot has joined #nixos
drakonis has quit [Ping timeout: 250 seconds]
ng0 has quit [Quit: Alexa, when is the end of world?]
<vaibhavsagar>
I heard we can make windows binaries with Nix now
<vaibhavsagar>
is this true?
thblt has left #nixos ["ERC (IRC client for Emacs 26.1)"]
<srhb>
vaibhavsagar: Has been for quite a while, I think :)
<vaibhavsagar>
Good to know!
<srhb>
vaibhavsagar: (I've never actually tried to run them with anything but wine myself, but I don't see any big issues there)
<lejonet>
Anyone else having lightdm trolling them when logging in? I've both explicitly chosen session i3+none and set it as default with desktopManager.default = "none"; and windowManager.default = "i3"; but lightdm insists on giving me xterm+none regardless...
<srhb>
vaibhavsagar: Try pkgsCross.mingw32.hello or something like that :)
justanotheruser has quit [Ping timeout: 250 seconds]
<Izorkin>
yl[m]: found error package pg8000 requires Python '>=3.5' but the running Python is 2.7.15
<liminal18>
how do I get rid of older version of my os?
<liminal18>
just deleted them in the boot loader as root?
<yl>
Izorkin: I'm not sure I understand what you mean when you said on the PR: 'In rev c60d946 normal build'
drakonis_ has quit [Ping timeout: 252 seconds]
ixxie has joined #nixos
<liminal18>
nevermind
justanotheruser has joined #nixos
<Izorkin>
yl[m]: "git checkout c60d946" and apply my patch datadog
<yl>
Izorkin: can you then rebase your PR over the latest master?
<Izorkin>
yl[m]: if only roll back python27Packages pg8000 to 1.12.5
<Izorkin>
1.13.1 not worked in python27
<yl>
Izorkin: oh, if your PR will break on master then I won't be able to merge it. You'll have to fix whatever is broken on master (separate PR) first
<Izorkin>
FRidh[m]: how to fix build python27Packages pg8000 ?
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hyperfekt has joined #nixos
MichaelRaskin has joined #nixos
<hyperfekt>
Is there anything preventing mkDerivation from throwing an error if name = "" instead of just popping a contextless " illegal name: '.drv' " into the output?
<gchristensen>
what do you mean?
<gchristensen>
Nix can't handle no name:
<gchristensen>
nix-repl> derivation { }
<gchristensen>
error: required attribute 'name' missing, at /nix/store/sb4gq0rsvd4n62c5mfs7av3vy5n8jll3-nix-2.2/share/nix/corepkgs/derivation.nix:8:12
liminal18 has quit [Read error: Connection reset by peer]
<hyperfekt>
if i don't use --show-trace " illegal name: '.drv' " is actually the only output i get when trying to build a stdenv derivation without name
<samrose>
I wonder if I need to do mkDerivation when I am trying to fetchFromGitHub mozilla rust overlay in my package, and then have an installPhase before I can import and use those files, and maybe that is why I am seeing src/libexpr/primops.cc:56: void nix::EvalState::realiseContext(const PathSet&): Assertion `store->isStorePath(ctx)' failed. error?
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @jluttine to master « pythonPackages.pvlib: enable tests (#56301) »: https://git.io/fhA0H
<johnw>
I'm unable to login to my Hydra server, with the error "POST requests should come from <URL>". This happens in every browser I use, but not for my co-worker. Does anyone know how to track down what the problem is?
<mdash>
samrose: you wouldn't use fetchFromGitHub, that's for source you build, not nix exprs you import
<hyperfekt>
samrose: Can you link your package again?
Guest95242 has quit [Ping timeout: 250 seconds]
<thelounge52>
I'm making a utility usb and want a barebones and reliable operating system for general utility/recovery purposes. Before the operating system, I have 10 gb left on the usb. I want to see if I can fit this operating system, also along with an empty partition for testing iso installations. I know NixOS's size requirements are dependent on what you c
<thelounge52>
onfigure, but I'd like a rough estimate. What are the minimum requirements for NixOS with terminal, gparted, and firefox? Can I fit it in under 4 gb?
<johnw>
I don't understand this code in hydra's Root.pm: if ($c->req->method eq "POST" && $c->req->path ne "api/push-github"); it's this failing which is triggering my error. Why would my path ever be api/push-github?
<gchristensen>
if you're using github pull request integration I assume
<johnw>
ok, if I just got to the Hydra URL, without clicking through GitHub, then I can login
<emmynoether_>
anyone got good advice on building a CV (the logistics part not the stuff that goes on it)
<hyperfekt>
samrose: I don't know what's going wrong in your package but the way you're creating the overlay looks right. Compare my configuration: https://git.io/fhA0h
<slabity>
Hey all, yesterday I ran into an error with NixOS and btrfs on a drive (corrupt leaf node). I reinstalled on another drive and seem to have a similar issue. Is anyone else running btrfs on nixos-unstable and could see if dmesg has any errors?
<emmynoether_>
waleee: Actually I tried to use that at some point but it quickly started to be more trouble than it seemed to be worth. Latex is pretty nice though but I'd like something more minimal
<hyperfekt>
I am confused as to why you would set rustc to holoRust.channels instead of holoRust.channels.rustc though.
<hyperfekt>
samrose: ^^^
<mdash>
emmynoether_: hire someone to do a calligraphy rendering of it on parchment
<mdash>
emmynoether_: no employer can resist
<emmynoether_>
hahaha
<hyperfekt>
imho nothing beats some nice handcrafted HTML + CSS
<hyperfekt>
unless you need the kind of cv you can print out and put in pdfs D:
<samrose>
hyperfekt: thanks for those clues.I would have to double check, but I wasn't able to get makeRustPlatform working without that
_kwstas has joined #nixos
<hyperfekt>
samrose: Maybe you don't want to use the channel as your build input later on though.
<samrose>
hyperfekt: ok, good thought I will experiment with that
<hyperfekt>
line 36
<samrose>
I see thanks hyperfekt
nSeagull has joined #nixos
<hyperfekt>
it's always the smallest things that give the biggest trouble ;)
sinner has joined #nixos
<benwaffle[m]>
How come, when I rebuild openssl (`nix-build -A openssl`), it rebuilds what seems like all packages that depend on it?
drakonis has joined #nixos
sinner is now known as Guest55662
<hyperfekt>
like adding c where one shouldn't be?
<hyperfekt>
benwaffle[m]: That shuldn't happen. Are you sure those aren't dependencies of openssl? Reminder that most packages use stdenv which includes a whole host of packages.
<benwaffle[m]>
it's rebuilding libc++ now
<hyperfekt>
benwaffle[m]: Are you building from a fork of nixpkgs or a channel with cached packages?
NickSeagull has quit [Ping timeout: 268 seconds]
<slabity>
Is it safe to delete /nix/store/.links? I think it's messing up my filesystem
<gchristensen>
no
drakonis_ has quit [Ping timeout: 250 seconds]
Guest55662 has quit [Ping timeout: 250 seconds]
<hyperfekt>
benwaffle[m]: If you make modifications to nixpkgs you will always want to base them on either the nixos-unstable or nixpkgs-unstable branch of github.com/nixos/nixpkgs-channels
<slabity>
Is there anyway to rebuild it? It's causing a bunch of i/o errors
<{^_^}>
[nixpkgs] @johanot opened pull request #56589 → nixos/kubernetes: minor module fixes → https://git.io/fhAEO
<benwaffle[m]>
i'm making changes to nixos/nixpkgs
<benwaffle[m]>
and my mac has the nixpkgs-unstable channel
johanot has quit [Quit: WeeChat 2.2]
<gchristensen>
benwaffle[m]: can you share your diff?
<hyperfekt>
benwaffle[m]: Yeah, that means you have the latest changes and our Hydra hasn't yet had a chance to build all the dependencies for you. Base your fork off an unstable channel and voilá, you won't have to rebuild everything.
<benwaffle[m]>
how do i base it off an unstable channel
<gchristensen>
oof that is gonig to be a big thing
<gchristensen>
eh, we don' thave tls 1.3?
<therealwaphire[m>
guys is it possible for a nonroot user to mount zfs datasets?
<hyperfekt>
If you're starting with a fresh branch, you can add nixpkgs-unstable as a remote, and then check out the nixpkgs-unstable branch. if you don't know how to do those actions they're probably easy to google
<hyperfekt>
benwaffle[m]: Don't ask me how to rebase from master to unstable though, I always mess it up and discard all my changes *cries quietly*
<hyperfekt>
benwaffle[m]: nixpkgs-unstable is a branch in that repository
<benwaffle[m]>
oh, thanks
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 244 seconds]
Mateon3 is now known as Mateon1
kai_w has quit [Quit: Konversation terminated!]
<samrose>
hyperfekt: your suggestions resolved my issue!
<samrose>
thanks
<hyperfekt>
samrose: Glad I could help :)
waleee has quit [Quit: WeeChat 2.4]
<benwaffle[m]>
seems like it still wants to build a lot of derivations, including libc++
<benwaffle[m]>
off of channels/nixpkgs-unstable
<samrose>
I rarely see c++ errors coming out of nix hyperfekt so that was a bit of a mystery for me
<benwaffle[m]>
Also based on https://git.io/fhAE2, I should be doing `nix-build -A openssl_1_1`, right?
<hyperfekt>
samrose: Yeah, I'm always at a bit of a loss when that happens as well. I usually debug them reading through my .nix file extra hard.
scientist has joined #nixos
orivej has joined #nixos
<hyperfekt>
benwaffle[m]: You do have a normal nix installation though, with the /nix directory, right?
<benwaffle[m]>
yep
<gchristensen>
benwaffle[m]: why is that patch needed?
<hyperfekt>
benwaffle[m]: Strange. If you're truly building from nixpkgs-unstable that shouldn't be necessary - the channel advances only when the packages have been built.
timor has quit [Ping timeout: 258 seconds]
<benwaffle[m]>
I want to use curl with tls 1.3, but it says openssl is not compiled with tls 1.3 support
<liminal18>
hey how i enable steam controller support?
<gchristensen>
overriding openssl will certainly cause a *lot* of rebuilds.
<scientist>
hey guys, I was wondering if you know where I can find a list of all the xkb keycodes, I need to add some to my configuration, thanks !
<gchristensen>
benwaffle[m]: you're probably so low in the bootstrapping process that you're having to compile an interim version of libc++
<benwaffle[m]>
low? bootstrapping? why doesn't it just download it?
<scientist>
?
<gchristensen>
download what?
<hyperfekt>
gchristensen: Well, if ben is only building openssl it should hardly build any of its dependencies?
<gchristensen>
as part of bootstrapping we rebuild a some libraries a few times, each with more dependencies
<simpson>
scientist: Use the `xev` tool, included as `xorg.xev` IIRC in nixpkgs, to find them for your particular hardware.
<gchristensen>
I'll apply your patch to provide some specific info :)
drakonis has quit [Ping timeout: 264 seconds]
<hyperfekt>
gchristensen: Oh, so we have a few loops to get to the final state!
_kwstas has quit [Quit: _kwstas]
<gchristensen>
sort of, yeah!
<gchristensen>
benwaffle[m]: what revision of nixpkgs are you on?
<hyperfekt>
benwaffle[m]: In that case you'll want to avoid building with the nixpkgs directory that you've modified and refer directly to the modified openssl you're building.
liminal18 has quit [Quit: Leaving]
drakonis has joined #nixos
<benwaffle[m]>
gchristensen: i'm in github.com/nixpkgs/nixpkgs-channels on channels/nixpkgs-unstable
<scientist>
simpson: ok, I think I have used the command where you press a letter on your keyboard and it shows you the keycode, but I'm trying to find the list that shows all the keycodes, so I can I some to my custom keyboard configuration
<gchristensen>
benwaffle[m]: what revision exactly? git rev-parse HEAD
<gchristensen>
on eef63417d46c2b093ecce0bf07411a2ae0bbbb1e with your patch I only build openssl
<catern>
is it reasonable to say that the original intention for channels and nix-env are pretty much obsolete? everyone's just using nixpkgs and not other channels, and the whole channels stuff seems pretty weird - git is better
<jcob>
Hey all! Im considering switching to nixos and I have a few questions. 1. The only program that really matters on my computer is emacs. Within emacs, I am very happy with the straight package manager for managing my emacs packages. They all end up in ~/.emacs.d/straight. Would I be able to use this with nix?
<simpson>
scientist: I'm talking about the actual hardware, yes. It is difficult to predict the raw keycodes without actually checking using xev or similar.
<gchristensen>
catern: I don't care for nix-env, but I do like and use channels -- I think it would be risky to conclude they're obsolete
<mdash>
jcob: You could but it's much nicer to configure it via nix expressions
<simpson>
catern: I've had a couple multi-channel setups; back when the Monte project ran its own Hydra, we had a channel just for the Hydra. (These days we push to Cachix.)
<hyperfekt>
jcob: I don't know straight but it sounds like it's entirely confined to your home directory. NixOS shouldn't interfere with that in the slightest. NixOS will only manage emacs itself (if you let it).
<mdash>
jcob: not least because it's integrated with everything else and so you can manage dependencies on non-elisp programs/libraries in exactly the same way
<jcob>
oh great thanks mdash and hyperfekt !
<scientist>
simpson: so what is the command to see my the keyboard type of my hardware ?
<catern>
gchristensen: simpson: but you just use them for user-level stuff, right? packages you want to install and use for interactive/non-development purposes?
<jcob>
And my second q is related to the first: how well does nix play with programming language package managers like cargo and pip?
<simpson>
scientist: No idea, sorry; I don't really know much about individual keyboards.
talqu has joined #nixos
<simpson>
catern: We had had at least one person who used the channels as intended and installed a Monte into their user profile.
imalsogreg has joined #nixos
<scientist>
simpson: it's fine thanks, I am just trting to learn little things here and there.
wedens has quit [Quit: Connection closed for inactivity]
<hyperfekt>
catern: I think channels would become very interesting the moment we can confine a cache to only provide some packages, so you can actually use them without trusting the package author with your whole system.
<hyperfekt>
Right now I'd be wary to just add someone's cache, but I also don't want to build all my software from source.
<benwaffle[m]>
do some people not use nix-env?
<gchristensen>
I would say most people here avoid nix-env, preferring nix-shell and environment.systemPackages, or home-manager
<hyperfekt>
benwaffle[m]: I don't think I've ever entered the nix-env command into my terminal outside of the installation ISO.
<__monty__>
benwaffle[m]: It's fine if you're not on NixOS though.
<benwaffle[m]>
I've just been using `nix-env -i` as a replacement for brew
<__monty__>
That's fine, though you should be using nix-env -iA.
<__monty__>
,A
<__monty__>
,iA
<__monty__>
: /
<benwaffle[m]>
why -A? e.g. `nix-env -i vim` works fine
<hyperfekt>
Anyone know how I can link a bunch of files into the current working directory? 'ln -s path/* .' works in my shell but not in the builder (ln: failed to create symbolic link './.': File exists)
<gchristensen>
what if you change it to path/* ./
<jcob>
Does nix have something where you can fetch a package but rather than fetching the package itself you fetch the recipie
<jcob>
Im assuming the answer is yes
<hyperfekt>
benwaffle[m]: Also, as I recently learned, you can use nix search to fidn the attribute name for a package to give to nix-env -iA
<gchristensen>
jcob: nix doesn't fetch anything without knowing how to build it, so you probably already _have_ the instructions! :)
<benwaffle[m]>
yeah `nix search` is nice
<hyperfekt>
gchristensen: same error :/
<benwaffle[m]>
nix is kinda hard to learn. why is there no `nix install`?
<jcob>
gchristensen: in that case, what would you do to change the build instructions? Find them and change them and reinstall>
<jcob>
?
<emily>
benwaffle[m]: because nobody wrote one; also because imperative package management kinda sucks when you can avoid it
<gchristensen>
benwaffle[m]: nix's UI is a beta "2.0" interface, without all the functionality of the 1.0 interface ported over.
<emily>
I don't use nix-env at all
<gchristensen>
jcob: are you on nixos or no?
<jcob>
gchristensen: no, but I plan to be in the near future
<benwaffle[m]>
is there a doc or blog post or talk explaining how to think about nix and the ways in which it can be used?
<gchristensen>
jcob: `nix edit nixpkgs.vim` for example, will open the instructions in your editor (but read-only probably)
<gchristensen>
jcob: after that, best thing to do is git clone the repo, and edit it from there
<MichaelRaskin>
benwaffle: I think, in a sense there are _multiple_ implementations of nix install
vidbina has joined #nixos
<MichaelRaskin>
There was some discourse thread with links
<benwaffle[m]>
on my mac, i can just `brew install vim`, so with nix do i want to globally install vim to use it anywhere, with `nix-env -iA nixpkgs.vim`?
scientist has quit [Quit: WeeChat 2.2]
<jcob>
gchristensen: that is lit :)
<gchristensen>
jcob: =)
timor has joined #nixos
<jcob>
Once you change the package (or add an overlay)? do you have to do anything for nix to know to rebuild it?
<benwaffle[m]>
or do i want to run a nix shell with vim inside that?
<gchristensen>
probably just want to install it
<gchristensen>
that is fine, I'd do the same thing if I wasn't on nixos
<benwaffle[m]>
or use home-manager?
<MichaelRaskin>
I dunno, I build a few environments with buildEnv, and add some of them to PATH
<bgamari>
how does one convince nix-instantiate not to include !$OUTPUT suffixes in its output?
<hyperfekt>
benwaffle[m]: You can do any of those, nix-env is for installing imperatively, nix-shell / nix run for doing it ephemereally and home-manager for doing it declaratively
<bgamari>
which isn't a valid derivation path in the eyes of nix-store
<matix>
today I learned about nix edit
<matix>
gchristensen: thanks
<MichaelRaskin>
bgamari: what exact command are you running
<bgamari>
MichaelRaskin, nix-instantiate --quiet scripts/build-all.nix --arg bindistTarball $GHC_TARBALL -A buildDepends
<bgamari>
catern, because it's much larger than the bits that I need
o1lo01ol1o has quit [Remote host closed the connection]
<catern>
why? shouldn't the only thing in the store be build deps and the actual output? (you can delete the actual output I suppose if it's really so big)
<bgamari>
the idea in my case is to build a subset of hackage with a GHC binary distribution
<bgamari>
so the only build dependencies that I really need are cabal2nix and jailbreak-cabal
<bgamari>
but the CI job may produce tens of gigabytes of other derivations
<hyperfekt>
mkDerivation wrecking me so hard again I'm considering just using runCommand instead, ironically
<catern>
i see
<catern>
a CI mode like gchristensen mentions wouldn't help with that though
<catern>
because it would upload those tens of gigabytes of output derivations
<catern>
along with everything else
<gchristensen>
well it'd also be able to fetch the pre-built ones
<catern>
I assume the output derivations change every time or something
<gchristensen>
not for many of them
<catern>
otherwise I go back to asking why not just copy the entire store
o1lo01ol1o has joined #nixos
<catern>
that's isomorphic to a CI mode I think
<bgamari>
I'm actually not entirely sure I understand what is meant by "CI mode"
<bgamari>
really what I want is a way to take a set of derivations and collector all of their build dependencies
<bgamari>
collect*
<catern>
but is that really what you want? :)
<catern>
sorry to XY problem you
<bgamari>
quite alright
<bgamari>
I think so
<gchristensen>
something to mirror hydra's behavior , bgamari, of uploading everything built -- not just the end result of what built.
<gchristensen>
and as it goes -- not as a big stop-the-world phase at the end
<catern>
(I don't have this problem because I run all my builds on a persistent machine with a persistent disk)
<bgamari>
fair
<bgamari>
yeah, I'm actually not sure that will help me
<gchristensen>
no?
<bgamari>
well, because I don't want to upload everything
<gchristensen>
none of the builds would be cache-hits?
<bgamari>
every build will be done with a new GHC binary distribution
<gchristensen>
ah, heh
<bgamari>
so very few will be cache hits
<bgamari>
in my case the only things that will be cache hits are cabal2nix and jailbreak-cabal
<bgamari>
but those two unfortunately take a non-trivial amount of work to build
<bgamari>
it currently takes around 30 minutes just to get to beginning the interesting testing
<bgamari>
because of this
<gchristensen>
well there you go, those'd be two significant ones to run in a hypothetical --ci-mode
mounty has quit [Ping timeout: 240 seconds]
<bgamari>
yes
<bgamari>
I mean in principle I could just NAR up those two derivations
<bgamari>
and that was my first attempt
<bgamari>
but unfortunately I can't figure out how to reach the precise cabal2nix and jailbreak-cabal derivations that my builds are using
JosW has joined #nixos
<benwaffle[m]>
so I think i have this issue: openssl builds v1.0.2q and v1.1.1a. I need curl to link against v1.1.1a. How do i do this?
<bgamari>
catern, so anyways, perhaps my real problem is that
<bgamari>
I can't find an easy way to identify an attribute path to reach a given derivation
<catern>
gchristensen: I guess this notion of "CI mode" would ideally come from being able to list a bunch of Stores that any builds should be uploaded to. That's kind of a very natural inverse of listing a bunch of Stores to use as binary caches
Glider_IRC_ has joined #nixos
sitischu[m] has joined #nixos
Glider_IRC has quit [Ping timeout: 250 seconds]
<hyperfekt>
Can someone help me make this work? I'm absolutely at the end with my latin. https://git.io/fhAze
jcob has joined #nixos
<gchristensen>
hyperfekt: maybe just replace unpackPhase with src = pkgs.path ?
rycwo has joined #nixos
fendor has joined #nixos
lassulus has quit [Ping timeout: 250 seconds]
<hyperfekt>
gchristensen: That's gonna copy the whole tree though, won't it? Or am I misinformed?
<gchristensen>
ah
<jabranham>
does nixos remove the kernel modules after upgrading like Arch so that you have to e.g. reboot before USB works?
<gchristensen>
but you watch to patch it? you probably want to copy it.
<hyperfekt>
gchristensen: That's what the --follow-symlinks option is there for, at least in theory.
lassulus has joined #nixos
<gchristensen>
ah
<hyperfekt>
That means patch should follow symlinks, but any patch copies the file instead of modifying the target.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen>
well you probably don't actually want that, you probably want to mirror the directory structure and then symlink only files
<gchristensen>
anyway. disk is cheap. I'd just copy, heh.
zupo has joined #nixos
<hyperfekt>
It's less about size and more about time, given that store optimisation should get rid of the copy.
<hyperfekt>
gchristensen: Turns out patch even works with symlinked directories, though - so that shouldn't be necessary. The problem I'm having is doing the linking in the first place.
<{^_^}>
[nixpkgs] @andir opened pull request #56599 → tinc_pre: fix error after openssl upgrade → https://git.io/fhAzH
eadwu has joined #nixos
growpotkin has joined #nixos
<mekeor>
hi
<mekeor>
:)
<mekeor>
how are you? :)
<growpotkin>
Hey I wanted to give home manager a try, I'm not even really sure where to start after reading the little intro. There does not seem to be much documentation for how to set it up through Configuration.nix
<growpotkin>
Does anybody around there parts use Home Manager?
<ddellacosta>
I can't seem to catch a break with Haskell on NixOS. So now I'm experiencing this same issue: https://github.com/commercialhaskell/stackage/issues/4289 How do I go about patching a transitive dependency deep in the stack using Nix--anyone have any pointes or doc links?
<{^_^}>
commercialhaskell/stackage#4289 (by snoyberg, 7 weeks ago, open): Diff test suite fails to compile
zupo has joined #nixos
<growpotkin>
oh i had trouble finding pdf2text, one sec let me find the package name
<growpotkin>
yeah thats what I want to do. I have way too many dotfiles managed in my global config now; I don't want to wait on a full system rebuild because I wanted to edit my zshconf or change a line or two of my XMonad config
<growpotkin>
jabranham: I added a pull request to include a longer description no Xpdf which specifically lists it's inclusion of `pdftotext` and the million other scripts.
hyperfekt has quit [Quit: Page closed]
mekeor has quit [Ping timeout: 258 seconds]
<growpotkin>
jabranham: hopefully queries will lead people to Xpdf now
<{^_^}>
[nixpkgs] @BadDecisionsAlex opened pull request #56601 → Added long description → https://git.io/fhAgc
petersjt014 has joined #nixos
<jabranham>
growpotkin: thanks. I apparently have pdftotext via poppler?
<growpotkin>
jabranham: bizarre, I wonder if it is the exact same program, or just a common script name
<jabranham>
I dunno. I also used to use (on a different distro) "pdf2text" and have no idea if it's the same as "pdftotext" or something different
semilattice has joined #nixos
<growpotkin>
yeah when I googled `pdf2text` i didn't get any hits, but I am positive I've had it on an old machine or something
mkoenig has quit [Remote host closed the connection]
mobile_c has quit [Read error: Connection reset by peer]
<ddellacosta>
can anyone tell how to (or where to find docs for how to) patch a transitive dependency in a Haskell package? I'm trying to figure out how to work around this: https://github.com/commercialhaskell/stackage/issues/4289
<{^_^}>
commercialhaskell/stackage#4289 (by snoyberg, 7 weeks ago, open): Diff test suite fails to compile
<lejonet>
Hmmm, if I want a package to have a symlink in it that goes to a rw directory, is that possible to do? (trying to create a private package for a homepage, that has a file area, so kind of need to be able to place files there without needing to remake the package everytime :P )
<matix>
lejonet: of course, your app could even hardcode the path directly, like for example most programs use /var
Ariakenom has quit [Quit: Leaving]
<lejonet>
matix: yeah, that is what I'm gonna use, /var/www as the base, so I guess I could just add a symlink to the package that points to a location in /var somewhere, don't ask me why I didn't think about that... (the target of a symlink is allowed to not exist when the symlink is created...)
<matix>
lejonet: the build is pure even if some symlinks point to rw files since the build output only contains the *contents* of the symlink (which is the path that it points to) and that doesn't change
<omnipotententity>
Potentially stupid graphics configuration question. I have two nvidia cards connected to three monitors. I only have display on the two monitors connected to the primary card. Previously, I had used an nvidia configuration tool to setup sharing through... SLI I think? It was several years ago the last time I seriously tinkered with my setup. What's the correct way to do this in NixOS?
<omnipotententity>
Looks like it's "Base Mosaic," how do I do this from nix rather than having state within the nvidia-settings utility?
<omnipotententity>
brb restarting x
omnipotententity has quit [Remote host closed the connection]
_kwstas has quit [Quit: _kwstas]
siers69 is now known as sier
sier is now known as siers
kreisys has joined #nixos
_kwstas has joined #nixos
thc202 has quit [Ping timeout: 250 seconds]
_kwstas has quit [Client Quit]
fenedor has quit [Quit: Leaving]
clr_ has quit [Remote host closed the connection]
petersjt014 has quit [Remote host closed the connection]
endformationage has quit [Ping timeout: 246 seconds]
talqu has quit [Remote host closed the connection]
OmnipotentEntity has quit [Remote host closed the connection]
o1lo01ol1o has quit [Read error: Connection reset by peer]
<bemeurer>
Can someone help me understand why my QEMU build (I overrided some defaults) takes like 1-2 minutes to build, but an eternity (never got it to finish) at the end running "makeinfo"?
o1lo01ol1o has joined #nixos
<bemeurer>
Is there any way I can have it not build the docs? I don't need them