<samueldr>
I wouldn't call it the best, but it's working and runs here on this channel
<waynr>
i am running nix on top of debian rather than full-blown NixOS and so far i've been having a good time just adding ~/nix-profile/bin to my PATH and using the packages i've installed in that way
<waynr>
but it doesn't seem to work as well for python packages, particularly pipenv
grantwu has joined #nixos
rprije has quit [Ping timeout: 256 seconds]
<waynr>
whenever i try to use pipenv installed using `nix-env -i pipenv`, i get stack traces related to either missing imports or related to erroneous values for variables used to construct binary paths
rprije has joined #nixos
justbeingglad has joined #nixos
<grantwu>
Does anyone here use zsh who is willing to help me try to reproduce a bug?
<waynr>
is the only way to effectively use python in a setup like mine by using nix-shell?
<samueldr>
waynr: while I don't have experience with the python side of nixpkgs, I'm pretty confident that what you see isn't related to nix on non-nixos vs. nix on nixos
<grantwu>
I'm getting a duplicated "cd"; current theory is that it's due to an assumption that every character is a single byte
<grantwu>
Someone in #zsh couldn't reproduce
<worldofpeace>
grantwu: yeah I can't. I hope me using home-manager for zsh won't affect this at all. It could be your teminal.
<grantwu>
worldofpeace: out of curiosity, what version of zsh are you running?
andymandias has quit [Ping timeout: 268 seconds]
<worldofpeace>
grantwu: zsh 5.5.1; i'm using konsole as terminal
matthewbauer has joined #nixos
<worldofpeace>
grantwu: I works fine in xterm for me also
<samueldr>
grantwu: give the full nix store path to your zsh
<samueldr>
worldofpeace: `nix-store --realise that full path` would allow you to try it (assuming it's not customized)
<grantwu>
samueldr: /home/grantwu/.nix-profile/bin/zsh: symbolic link to /nix/store/c3syc3dvdiz96566gc3d09v89xji4ifi-zsh-5.5.1/bin/zsh
<samueldr>
see also: the see also section at the bottom
<fresheyeball>
nah, I strongly believe in the meta-theory that software engineering should have theory.
<worldofpeace>
we all love nix here I think
<grantwu>
I also believe that it should have engineering >_>
* grantwu
slowly switching away
<fresheyeball>
grantwu: haha
<worldofpeace>
I remember the day i discovered nix...
<samueldr>
oh, just meant that if you copy that line out of context, it sounds like indoctrination propaganda
<worldofpeace>
oh my it does
<samueldr>
I'm still sad it took me 2 years after dipping a toe in to actually switch :/
<fresheyeball>
sure. I have no problem with that. Indoctrination into theory would be great for most programmers.
<worldofpeace>
When I discovered it i switched completely that evening :)
<fresheyeball>
any of you use GitLab?
roconnor_ has quit [Remote host closed the connection]
roconnor_ has joined #nixos
<worldofpeace>
yeah
<grantwu>
So my current working theory is that zsh from Nix on non-NixOS is not respecting locales properly, and thinks that I'm on a non-Unicode locale
jmeredith has quit [Quit: Connection closed for inactivity]
<grantwu>
Based on an additional symptom of the issue, which is that Japanese text is getting escaped
<worldofpeace>
ding(makes sound), bug report
<grantwu>
Is that directed at me? It's just a hypothesis; I have no proof
<fresheyeball>
I mean, I get how imports and functions work
<fresheyeball>
I dont know how I aquire the arguments
<fresheyeball>
if I `import ./myservice.nix`
<fresheyeball>
its going to fail because it didn't pass a set no?
jackdk has quit [Ping timeout: 256 seconds]
<worldofpeace>
you mean because you didn't declare it false?
<fresheyeball>
I need to `import ./myservice.nix { config = config, lib = pkgs.lib }`
<fresheyeball>
no?
<fresheyeball>
or is `systemd.services.myservice = <<lambda>>`
<fresheyeball>
the expected type?
<fresheyeball>
I guess it must be
<elvishjerricco>
fresheyeball: Usually, people just use `imports = [./myservice.nix];` in their `configuration.nix`, which tells the module system to load that module as well
<elvishjerricco>
Oh or maybe you're trying to deal with submodules?
<worldofpeace>
they're not
<elvishjerricco>
Ok, forget I mentioned submodules :P
<elvishjerricco>
Anyway, the `imports` option tells the module system to extend your configuration with another file of exactly the same form as your main configuration file; i.e. it can create and set options.
<elvishjerricco>
The `lib` and `config` are passed automatically
<elvishjerricco>
`imports` is better than manually `import`-ing and using `//` because the module system has a robust merging system, in case both modules set a nested option in the same top level option, i.e. `foo.bar` and `foo.baz`.
<worldofpeace>
wait i get what you want now
<fresheyeball>
I mean I set systemd.services.kassir to the import
<fresheyeball>
but it still says services.kassir does not exist
karlguy has quit [Remote host closed the connection]
<elvishjerricco>
fresheyeball: Yea, `services.xyz` options are not automatically created for any `systemd.services.xyz`. Generally you create the options and use them to control the way you set `systemd.services.xyz`
<fresheyeball>
elvishjerricco: now I am totally confused
<worldofpeace>
fresheyeball: i have a working example for you coming
<fresheyeball>
sweet, expressing myself on this one is hard for some reason
<elvishjerricco>
Note in the second file how we have to segregate `config` and `options`.
<worldofpeace>
what i gave you can just go in the config section of the nixos module
<worldofpeace>
`options = { }; ` defines options, and `config = {};` is where all the actual configuration will go.
<elvishjerricco>
fresheyeball: Refresh. Fixed some typos :P
<worldofpeace>
yeah keep that enable in the configuration.nix
<fresheyeball>
elvishjerricco: OK! This I understand
<elvishjerricco>
worldofpeace: `systemd.services.foo.enable = true;` I thought they were enabled by default? Hence using mkIf to only create the service if another option is enabled
Rusty1_ has quit [Quit: Konversation terminated!]
<worldofpeace>
oh no there's an enable option in systemd.services.
<elvishjerricco>
worldofpeace: Right, but I think it's `true` by default, isn't it?
<worldofpeace>
it's default to true though
<elvishjerricco>
From the description: "If set to false, this unit will be a symlink to /dev/null. This is primarily useful to prevent specific template instances (e.g. serial-getty@ttyS0) from being started."
<elvishjerricco>
Huh
<worldofpeace>
it would be really confusining if it were default to false though :)
orivej has quit [Ping timeout: 240 seconds]
<elvishjerricco>
Lol "Why is my service /dev/null?"
andreabe_ has joined #nixos
<fresheyeball>
worldofpeace: how are you using hastebin?
<fresheyeball>
do you have the cli tool?
<fresheyeball>
ALSO IT'S EVALUATING
MercurialAlchemi has joined #nixos
<fresheyeball>
thanks to worldofpeace and elvishjerricco I have been empowered with systemd
<fresheyeball>
MUAHAHAHA
<worldofpeace>
lolz
<worldofpeace>
and hastebin.com
<elvishjerricco>
Haha nice
<fresheyeball>
worldofpeace: so not cli tool?
<worldofpeace>
but it looks really dumb if you don't set the file type. like all the pastes i send you...
<worldofpeace>
it has a webeditor
<fresheyeball>
the cli functionality looks stupid handy though
<worldofpeace>
you don't have to learn how to import anything because there is nothing
<elvishjerricco>
worldofpeace: Yea, I thought fresheyeball wanted the service configurable with a top level `services.myservice` thing
<elvishjerricco>
Made it seem like it was supposed to be a module meant to be imported by others
<fresheyeball>
I like what you did there elvishjerricco
kreetx has joined #nixos
Drakonis has quit [Remote host closed the connection]
<elvishjerricco>
I kinda don't like systemd philosophically. But man the way we get to configure systems with NixOS because of it is so much better than the old ways I used to do it with Ubuntu and no systemd.
<elvishjerricco>
So it's a net win :P
<worldofpeace>
just reminise on when you first met nix...
<MichaelRaskin>
Well, I liked NixOS with upstart more.
rprije has quit [Ping timeout: 268 seconds]
dnovosel has quit [Ping timeout: 265 seconds]
<worldofpeace>
fresheyeball: i have to package haste-client now :P
<fresheyeball>
elvishjerricco: what is path = doing in there?
<fresheyeball>
worldofpeace: lol
<fresheyeball>
worldofpeace: I will use it!
<MichaelRaskin>
Like, I actually used mainline NixOS…
<fresheyeball>
now I can read the docs and have a hello world
<fresheyeball>
path to learning engaged!
<worldofpeace>
ahh music to my ears, people should refer back to this
<elvishjerricco>
Does `nixos-option` also describe the custom options in your nixos config? If so, fresheyeball you can even see the docs for any imported services not from NixOS using `nixos-option`
Tobba_ has quit [Remote host closed the connection]
Tobba_ has joined #nixos
cw789 has quit [Quit: cw789]
michiell2 has joined #nixos
<Lisanna>
I've finally finished wrangling our hardware simulation platform to run inside a nix-build sandbox, and finished scripting everything up to generate and batch submit testing jobs as nix builds. It's so cool watching this thing go. Nix makes me really happy.
orbekk has quit [Ping timeout: 256 seconds]
<gchristensen>
!!! so cool!
<Lisanna>
A huge thank you to everyone in this channel who has given me a tremendous amount of help in debugging the various problems I've run into.
<Lisanna>
clever++
<{^_^}>
clever's karma got increased to 8
<Lisanna>
gchristensen++
<{^_^}>
gchristensen's karma got increased to 8
<Lisanna>
infinisil++
<{^_^}>
infinisil's karma got increased to 9
<Lisanna>
MichaelRaskin++
<{^_^}>
MichaelRaskin's karma got increased to 7
<ldlework>
Lisanna: now you gotta do a write up of course
<Lisanna>
sphalerite++
<{^_^}>
sphalerite's karma got increased to 7
<Lisanna>
ldlework I think the first thing I need to do is find the time to upstream as much of my stuff as possible :p
<sphalerit>
❤
civodul has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
testuser_ has joined #nixos
Lisanna has quit [Quit: Lisanna]
realrokka has quit [Ping timeout: 260 seconds]
<worldofpeace>
Why does the installer start the graphical env as root? Which is different to what people not familar would expect(a less privileged 'live' user)
<{^_^}>
[nixpkgs] @fpletz pushed commit from @r-ryantm to master « libpfm: 4.10.0 -> 4.10.1 (#42489) »: https://git.io/f4QWP
Ariakenom has joined #nixos
<mojjo>
hi.. anyon an idea why neither of this lines work in my nixos/xmonad config: `("<XF86AudioMute>", spawn "${pkgs.pulseaudioLight}/bin/pactl set-sink-mute 0 toggle")` .. `.. "${pkgs.alsaUtils}/bin/amixer -D pulse set Master toggle"`
roberth has joined #nixos
jackdk has quit [Ping timeout: 268 seconds]
<Orbstheorem>
20
newhoggy_ has joined #nixos
toby1851 has joined #nixos
philippD has joined #nixos
<adisbladis[m]>
worldofpeace: Does it matter?
<adisbladis[m]>
It's just install media
Have-Quick has quit [Quit: Have-Quick]
<adisbladis[m]>
We could have a passwordless sudo but what difference does it make
mojjo has quit [Ping timeout: 276 seconds]
<worldofpeace>
Specifically for a live session, they're programs that cannot be run as root and other things as well.
newhogg__ has joined #nixos
<adisbladis[m]>
worldofpeace: Which programs are those? :S
newhoggy has quit [Ping timeout: 276 seconds]
<adisbladis[m]>
Huh. Dolphin does not run as root. TIL.
<worldofpeace>
File managers, text editors, wayland will never i think. Many other well established programers cannot find a justification for any gui app to be ran as root.
newhoggy_ has quit [Ping timeout: 260 seconds]
rprije has joined #nixos
<worldofpeace>
It can be 'a massive, gaping security hole' according to Emmanuele Bassi, a gnome dev.
goibhniu has joined #nixos
<adisbladis[m]>
Sure, if used as a desktop system
<adisbladis[m]>
If used as install media that's not true
newhogg__ has quit [Ping timeout: 256 seconds]
<worldofpeace>
I'm actually only concerned about the graphical installation medias. Anything else is fine.
<adisbladis[m]>
worldofpeace: Seems like dolphin has decided to change the behaviour though and allow running as root again
<worldofpeace>
adisbladis[m]: Yeah I saw that. But for the sake of new users, I think we should adopt some familiarity, because I think new users will opt for the graphical media much more.
obadz- has joined #nixos
reinzelmann has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @bjornfor pushed commit from @joachifm to release-18.03 « tor-browser-bundle-bin: 7.5.4 -> 7.5.5 »: https://git.io/f4Q8c
obadz has quit [Ping timeout: 265 seconds]
obadz- is now known as obadz
<worldofpeace>
It appears that this is being done with the virtualbox appliance. I wonder why this was seen needed for that and not the gui install media.
<adisbladis[m]>
worldofpeace: I think it's a good change actually
<worldofpeace>
I don't get why graphical.nix at profiles is being imported to virtualbox and parts of the same config are there too :) Refactoring is needed
<gchristensen>
aszlig: hmm building the manual automatically would be nice :/
<adisbladis[m]>
worldofpeace: Yeah. I suspect the install media just hasn't had some love in a while :)
<aszlig>
gchristensen: mhm, probably every time something in nixos/ was changed
<worldofpeace>
almost a decade in some spots
<adisbladis[m]>
Well it mostly just works
tzemanovic has quit [Ping timeout: 256 seconds]
asuryawanshi has joined #nixos
<cw789>
Dear nix people. Once again my question. I'm building docker images with nix (dockerTools). But my images are ending with too much runtime dependencies (/nix/store) in it. I've found the solution to use patchelf to minimize it a bit, but still don't get to the point where I need to be. Is there any other way to remove runtime dependencies from my final image?
<etu>
emacs with nix-mode would be nice to have in the installer... :)
<gchristensen>
aszlig: my problem is I'm not comfortable automatically building unreviewed stuff. hmmm!
<aszlig>
gchristensen: hm, maybe move the "untrusted builds" to another host?
<adisbladis[m]>
cw789: Which runtime deps do you want to get rid of and from what?
<gchristensen>
aszlig: yeah, or ideally, a VM I can throw away a lot :)
<cw789>
adisbladis[m]: I think most of them came from installing node_modules (phyton2 for bcrypt, ...). But the are only needed for building - not in the final image.
periklis has joined #nixos
<adisbladis[m]>
cw789: I have some experience with that. I ended up not running patchSheBangs on the full code but only what I link as bin outputs
tzemanovic has joined #nixos
andymandias has quit [Ping timeout: 256 seconds]
viric has joined #nixos
<cw789>
adisbladis[m]: That sounds quite useful. I'll try that.
andymandias has joined #nixos
tzemanovic has quit [Ping timeout: 256 seconds]
tzemanovic has joined #nixos
orbekk has quit [Quit: WeeChat 2.0]
kiloreux has joined #nixos
knupfer has joined #nixos
<kiloreux>
Nix's Glibc is leaking into my local installation of curl and I get this error "relocation error: /nix/store/s7dw1yngwiskqa2ac1bkc6m9g7740agg-glibc-2.25/lib/libpthread.so.0: symbol __libc_vfork, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference"
wirew0rm has quit [Quit: WeeChat 2.1]
<kiloreux>
Any idea how I can stop that from leaking to my ubuntu installation ?
<aszlig>
kiloreux: okay, that looks fine for nix-env itself, so i'd suspect it's something in your shell
<kiloreux>
aszlig, how can I investigate what's wrong ?
<aszlig>
kiloreux: as said, the output of "set" would be helpful, as it shows all shell variables
freeman42x]NixOS has joined #nixos
<kiloreux>
Ohh
<kiloreux>
I pasted secrets there
<kiloreux>
now i can't delete them
<kiloreux>
:(
<cw789>
adisbladis[m]: Hi again. I now have tried to set "dontPatchShebangs = true;" before my builder. But it doesn't change my runtime dependencies. Any other suggestions?
<srhb>
It's a great idea, but in practice you end up resolving a ton of things by hand that sbtix doesn't pick up at first, at least for non-trivial projects.
<gchristensen>
yea
<teozkr>
yup :(
agander has quit [Ping timeout: 256 seconds]
<srhb>
But it's great that it's being worked on. It's a hard project, the java ecosystem is just downright hostile to purity. :)
<gchristensen>
teozkr: <3 thank you for doing the good work :)
pie_ has quit [Read error: Connection reset by peer]
pie_ has joined #nixos
<teozkr>
frankly, trying to purify Node stuff at work makes me realize that maybe SBT isn't so bad after all :p
<srhb>
teozkr: That sounds really scary. :P
<joepie91>
teozkr: hm, what issues are you running into with Node stuff? node-pre-gyp?
__monty__ has joined #nixos
acarrico has quit [Ping timeout: 265 seconds]
<teozkr>
joepie91: mostly that yarn2nix isn't very happy about workspaces, and that people aren't patient for yarn to reassemble stuff
<{^_^}>
[nixpkgs] @xeji pushed commit from @volth to master « perlPackages: add meta.broken = true; (#42595) »: https://git.io/f4Qod
xy2_ has joined #nixos
goibhniu has quit [Ping timeout: 268 seconds]
acarrico has joined #nixos
freeman42]NixOS has joined #nixos
<mupf>
Is there any way to limit bandwith when installing packages?
<mupf>
I don't want my gf to be angry. )
<mupf>
;)
tzemanovic has quit [Remote host closed the connection]
freeman42x]NixOS has quit [Ping timeout: 256 seconds]
freeman42]NixOS has quit [Ping timeout: 245 seconds]
simukis has joined #nixos
tzemanovic has joined #nixos
jensens has joined #nixos
goibhniu has joined #nixos
tzemanovic has quit [Ping timeout: 248 seconds]
kisik21 has joined #nixos
<srhb>
mupf: Maybe use tc before and after.
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
goibhniu has quit [Ping timeout: 264 seconds]
<mupf>
srhb: thanks, I will look it up
<steveeJ>
I've created a custom python environment which is installed in my PATH. when I run it manually the installed modules work fine. however, when vscode uses is the modules aren't found. any idea what could be wrong?
<srhb>
steveeJ: can you get vscode to emit its own environment? Could be it's wrapped with a different pythonpath
kisik21 has quit [Remote host closed the connection]
<steveeJ>
srhb: seems like it is *not* the same python interpreter. I can actually verify the issue with the one that vscode uses
kisik21 has joined #nixos
sir_guy_carleton has joined #nixos
Guest1138 is now known as korv
andymandias has quit [Ping timeout: 256 seconds]
<steveeJ>
srhb: seems like it doesn't pull in python from PATH but from some dependency
agander has quit [Quit: Leaving]
deepfire` has quit [Ping timeout: 276 seconds]
<steveeJ>
srhb: sorry for the fuss :) it had set a previous python interpreter in the workspace settings in vscode
cw789 has joined #nixos
kisik21 has quit [Ping timeout: 245 seconds]
tzemanovic has joined #nixos
<srhb>
steveeJ: :)
andymandias has joined #nixos
<cw789>
roberth: Wasn't aware of that before, but that was the tool I've needed. Thank you very very much.
ericsagnes has joined #nixos
goibhniu has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<__monty__>
clever: Toxvpn seems to work flawlessly on two linux boxes : ) I'm not on nixos so I can't install the service module, could you pastebin the resulting service file somewhere, easier than piecing it back together from the derivation?
mariatsji has quit [Remote host closed the connection]
npmccallum has joined #nixos
<MasseR>
I have some weird problem with nix on a debian system. Whenever I do 'nix-store --gc' or 'nix-collect-garbage' it will remove everything from all generations
<MasseR>
nix-env -q is empty afterwards
<MasseR>
I can switch between generations, but they're all empty
mkaito has quit [Read error: Connection reset by peer]
mkaito has joined #nixos
mkaito has quit [Changing host]
mkaito has joined #nixos
<andi->
Anyone reasoably good at writing erlang? I have been trying to fix the hex2nix tool to handle errors (to be specific tls errors) well enough but my erlang is so little :/ (nix-shell -p hex2nix --run hex2nix to reproduce...)
<winem_>
hi, we do have some customers who are really... paranoid about there firewall rules. is it safe to use 54.217.220.47 as dst IP for the nix installation and the communication with the default nix channel?
<srhb>
MasseR: Sorry, my network is very unstable today for some reason...
<MasseR>
srhb: 'network' is the theme for me as well, no worry :)
<srhb>
winem_: You mean for cache.nixos.org? Presumably amazon could change those at any time. Guess you'll need to check cloudfronts ip ranges if you want to whitelist specifically.
__Sander__ has quit [Ping timeout: 245 seconds]
__Sander__ has joined #nixos
Florian___ has quit [Ping timeout: 260 seconds]
pie_ has joined #nixos
<MasseR>
I think I got it fixed
<MasseR>
thanks for the hint
FloK_ has joined #nixos
reinzelmann has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @Profpatsch closed pull request #42611 → clisp-tip: allow build on Darwin → https://git.io/f4QHW
<FloK_>
Hi! Is this the right place to ask when I'm having trouble to install a Haskell package? :)
<Profpatsch>
FloK_: Sure
xy2_ has joined #nixos
knupfer has quit [Ping timeout: 276 seconds]
andymandias has quit [Ping timeout: 256 seconds]
<FloK_>
Ok, so I'm trying to install diagrams-pandoc via Nix 2.0 on macOS...
<betaboon>
hello #nixos, i have a question regarding nixops+virtualbox: when deploying a virtualbox with several containers and services, sometimes the deployment gets stuck. does anyone experience simliar issues ?
<hodapp>
but pip should be giving some reasoning why it can't find it (though you may have to run in verbose mode)
<ma27>
goibhniu: virtualenv doesn't help unfortunately
<ma27>
hodapp: true, it's not the first time I experience issues with it :D
<ma27>
until now it was fine for me to use tensorflow from stable nixpkgs, but after observing different results in comparison to a debian setup (the results on debian and nixos are reproducible though) I have to debug that again^^
<joepie91>
so, I'm currently trying to install NixOS on a new server, but bizarrely, while IPv6 is working out of the box, IPv4 seems totally broken
<joepie91>
help?
<joepie91>
:P
phdoerfler has quit [Read error: Connection reset by peer]
<joepie91>
server includes a /29 but the only IPv4 showing up in ifconfig was a 169.x address
simukis has quit [Quit: simukis]
<joepie91>
possibly no DHCP server to talk to? but then I wonder why IPv6 *did* work out of the box
<hodapp>
weird...
<srk>
for ipv6 neighbor discovery might work
<srk>
without dhcpv6
* joepie91
has no idea how that works
<joepie91>
anyhow, what should be my next step to get it to work? I'm fairly clueless here
<LnL>
what happens if you run dhclient manually?
<joepie91>
LnL: dhclient doesn't appear to be an existing command at all? in the minimal image
blankhart has joined #nixos
<srk>
host will try to locate routers on the link automatically via router solicitation
Drakonis has quit [Remote host closed the connection]
Drakonis has joined #nixos
frank87_ has quit [Remote host closed the connection]
frank87 has joined #nixos
tzemanovic has joined #nixos
<joepie91>
srk: LnL: aha, dhcpcd is available
<joepie91>
logs suggest that it ran already, and asked for a lease, and then it suddenly tried to acquire a link-local address
Sonarpulse has joined #nixos
<LnL>
isn't that the same package?
<Taneb>
I'm trying to nix-copy-closure from a computer running a slightly older version of nix to one that's running a newer version of nix and getting "error: import archive of '/nix/store/blah' lacks a signature"
<joepie91>
but there's no indication of a timeout or anything
<Taneb>
How can I work around this?
<joepie91>
LnL: that package does not contain a dhclient
deepfire` has joined #nixos
<LnL>
huh? ls $dhcp/bin # => dhclient dhclient-script dhcpd
<winem_>
is it correct that nix always asks the nix channel for the derivation and just downloads the required binaries from the binary cache if I run `nix-env -i clickhouse-1.1.54385 -- option extra-binary-caches ssh://myserver`=
<winem_>
?
Ariakenom has joined #nixos
<clever>
winem_: with just -i, it will check the .name of every derivation in every channel, and install the matching packages
<winem_>
clever: is there any way that I do not rely on the nix channel and it just checks the server specified as extra-binary-caches?
<clever>
it needs to be given nix expressions that match what was used to build that cache
<winem_>
ah, yes, the -A thingy came to my mind a few minutes ago and I put it to my list of stuff to test already :)
<clever>
nix-env -f /path/to/nixpkgs -iA hello
rardiol1 has quit [Ping timeout: 248 seconds]
<winem_>
ok, this works if I clone the nixpkgs repo but not with just the derivation file because stdenv is not defined. and I would actually like to keep the final solution as close to the public nix channel and nixpkgs as possible
<winem_>
the problem is that we might not have access to the nix channels in some customer environments and this is really a pain in the ass :/
<clever>
you often want to fetch a specific version of nixpkgs in your own expressions
<joepie91>
oof, installing NixOS from a redirected ISO is sloooooow.
<symphorien>
then it's the same principle but you have to do it in the profile where the nix-daemon is installed
<symphorien>
and then restart the nix-daemon
<winem_>
clever: we have one server we use as "nix repository" (it actually just serves the nix store via ssh) for our own applications and I have built clickhouse on this server with the derivation file as served in the nixpkgs repository. is there any other way to "pull" this clickhouse installation than using nix-env -i /nix/store/9r8wwb14rzz8lpk95qhsqs92g7zha996-clickhouse-1.1.54385 ... ? I am really struggling at this point and I am sure that there must be a
<winem_>
I just dropped that during the installation of our own applications. but it might help here. I will have a look at it:)
<symphorien>
Taneb: how are you tools incompatable with nix 2 ? try with "export NIX_REMOTE=daemon"
<symphorien>
this makes a lot of nix 1 apps work
<Taneb>
symphorien: package signing, I think
<symphorien>
ah ok
<Taneb>
"error: attribute 'nixStable1' in selection path 'nixpkgs.nixStable1' not found"
<{^_^}>
[nixpkgs] @dtzWill opened pull request #42616 → glibc: remove unused 2.26 patch series → https://git.io/f47Ye
<Taneb>
nix1 works though
<Taneb>
symphorien: thanks a lot :)
<symphorien>
ah I misremembered :)
tbone has joined #nixos
shad has joined #nixos
<Taneb>
You remembered enough to help
<winem_>
symphorien: nix copy also requires always the full path and does not simply work with clickhouse for example, right? not sure if I miss any option or param
<tbone>
having problems with my hydra server, doesn't seem to want to finish evaluating a jobset
<winem_>
then I get this one again "cannot auto-call a function that has an argument without a default value ('stdenv')" - is there a smart way to solve it without modifying the default.nix from nixpkgs?
<joepie91>
tbone: moment
pie_ has quit [Ping timeout: 256 seconds]
<winem_>
I think I might even get the result I want with nix-store --export and --import as well. but would like to follow the current approach first
dbmikus_ has quit [Ping timeout: 256 seconds]
<symphorien>
go to the root of your clone, and "nix-instantiate . -A clickhouse"
<symphorien>
winem_: nix copy can copy to a file
<symphorien>
then you can transfer the file the way you want
<symphorien>
and nix copy --from "file:///sdfsdfsd" path
<winem_>
holy this will create a 777mb file... that's the moment hwere I know that I do something wrong
ajs124 has left #nixos ["Machine going to sleep"]
<symphorien>
winem_: either that or the path shown in the outputs section of "nix show-derivation blah.drv"
<symphorien>
nix-store -qR path will show its dependencies
<{^_^}>
[nixpkgs] @jfrankenau opened pull request #42620 → tvbrowser-bin: init at 4.0.1 → https://git.io/f47ZX
<symphorien>
to know what takes space
<winem_>
ok, I think I confuse 2 of your statements above. the nix instantiate thingy is not related to the nix copy --to file... and copying the file to the target and extract it, right?
<symphorien>
its just to get the drv filename
<symphorien>
(nix-instantiate)
<winem_>
ok ok, then I got my mistake. will check what takes the space now
blankhart has joined #nixos
xorkle has joined #nixos
ajs124 has joined #nixos
mmercier has quit [Client Quit]
jperras has quit [Ping timeout: 256 seconds]
<winem_>
ok ,boost, binutils and gcc are the real big ones
jperras has joined #nixos
<winem_>
so it sounds valid
<symphorien>
mmh maybe copying the drv copies the build time dependencies and copying the real path only copies runtime deps
<symphorien>
I can't remember
jensens has quit [Ping timeout: 248 seconds]
<winem_>
ok, then I will try copying the drv as well
<boothead>
hi all, i'm having a bit of trouble re-enabling my xserver... I've got lightdm and xmonad, but X is failing to start - not sure what I need to run to get journalctl to give me a clue
<winem_>
I get a syntax error when I install from the generated .drv file. and get a warning that I did not specify add-root
orivej has joined #nixos
<winem_>
I think this is really the last thing I'll do for today.. need some sleep after 13 hours of work..
<averell>
boothead: anything in /var/log/X.0.log ?
Drakonis has quit [Remote host closed the connection]
Drakonis has joined #nixos
<boothead>
Ah - seems I have an nvidia problem averell... No device detected
<boothead>
I only have a terminal log in - so hard to paste
<averell>
do you have videoDrivers = [ "nvidia" ]; ?
<averell>
in services.xserver.
<boothead>
yes that's what I've switched to
<averell>
switched? because that might have to load a kernel module, which will have to be binary compatible
<averell>
if you mean you didn't reboot in a while maybe
<boothead>
averell: the back story here is that i tried to upgrade about 6 weeks ago and completely hosed the whole machine. I've been rebuilding it since then on and off
btbytes has joined #nixos
tzemanovic has joined #nixos
<boothead>
I'm currently on generation 28 since I managed to get it booting at all (had to keep jumping back into the set up usb stick)
<boothead>
:-)
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
drakonis_ has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<averell>
ok, that's cool, and you got there, nobody can take 28 away from you then :) but you'll probably have to reboot now to get a matching running kernel
Drakonis has quit [Ping timeout: 245 seconds]
<boothead>
I've been rebooting after almost every one..
drakonis_ has quit [Client Quit]
<averell>
one with this nvidia line?
<boothead>
Yep
<averell>
if you do lsmod|grep nvidia, is there anything?
Drakonis has joined #nixos
<averell>
or modprobe nvidia?
<boothead>
I get to the log starting the x server and then it stops and I have to switch virtual console
tzemanovic has quit [Ping timeout: 248 seconds]
<boothead>
averell: yes several matching module nvidia nvidia_drm nvidia_modset
xy2_ has quit [Read error: No route to host]
<averell>
how old is the graphics card? maybe you need a legacy driver?
xy2_ has joined #nixos
<boothead>
I'm on an XPS 15.. not sure how old, maybe a year
<averell>
sounds rather new. can you run nvidia-smi?
<boothead>
averell: roughly this setup was what I had before: https://grahamc.com/blog/nixos-on-dell-9560 and it was working fine up until I tried to upgrade to 18.03. I'm not really sure what relevant things have changed
<boothead>
yup
<boothead>
GeForce GTX 1050 aparently
<boothead>
(says Off next to that though)..
cobbal has left #nixos [#nixos]
foldingcookie has quit [Ping timeout: 245 seconds]
<averell>
are you using bumblebee? not sure how these dual setups work, but maybe only onboard intel is working?
<averell>
try giving videoDrivers "intel" as well
<boothead>
intel wouldn't work at all. I just got lots of messages in all my terminals saying stuff about rcu_shed which In ever got to the bottom of
<boothead>
Not using bumblebee as far as I know
<averell>
you could try nouveau driver (open source, but worse performance), see if that finds anything
<averell>
bumblebee will be mentioned in your configuration.nix if you have it probably
<boothead>
Ok can give nouveau a try
<boothead>
rebuild switch seems to have tried and failed to restart display-manager averell, do I need to reboot?
<averell>
would be safest, unless you can see anything definitive in the X log
<boothead>
x log looks exactly the same as last time
<boothead>
will try a reboot, thanks
realrokka has joined #nixos
hotfuzz_ has joined #nixos
<boothead>
Nope that has hosed it again averell - my rcu_sched detected stalls on CPUs/tasks messages are back
<boothead>
although when I powered off it seems to be claiming that X was running (I got a stopping X server message in the console)
<boothead>
nouveau 0000:01:00.0 DRM: Pointer to TMDS table invalid
<boothead>
I've found a backtrace in the journal by the looks
<boothead>
but I haven't got the first clue what it all means :-)
jb55 has joined #nixos
dhess has joined #nixos
<boothead>
something about clocking node structures on CPU 2
<averell>
maybe find some rest paste service to upload. but could be the same, that only the intel card is active, so the nouveau driver doesn't work either
<boothead>
rcu_node structures I mean
<nyanloutre[m]>
hi, I just submitted a pull request with a new Python library (BlockIO API bindings). I had to fix a small bug with a patch, can someone tell me if I did the right choice ?
<tmplt>
How would I add another package to the path of a systemd unit? I tried `nixpkgs.config.services.libvirtd.path = [ pkgs.bash ];`, but to no result.
<{^_^}>
[nixpkgs] @dtzWill pushed to release-18.03 « editline: init at 1.15.3 »: https://git.io/f478j
Izorkin has quit [Ping timeout: 245 seconds]
andymandias has joined #nixos
ajs124 has left #nixos ["Machine going to sleep"]
numerobis has quit [Ping timeout: 256 seconds]
hotfuzz has joined #nixos
freeman42x[nix] has joined #nixos
Cale has quit [Ping timeout: 255 seconds]
hotfuzz_ has quit [Ping timeout: 256 seconds]
<averell>
no result meaning you can't see bash in the PATH in the service file? cause that works for me.
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/f47BB
<averell>
wait, config.systemd.services...
<tmplt>
averell: that's what I mean. I tried `systemd.services.libvirtd.path = [ pkgs.bash ];` in configuration.nix instead of the previous line in an imported file instead. Now it works.`
matthewbauer has quit [Ping timeout: 264 seconds]
Guanin has joined #nixos
patrl has quit [Ping timeout: 268 seconds]
Rusty1_ has joined #nixos
szicari has joined #nixos
roberth has quit [Ping timeout: 256 seconds]
Cale has joined #nixos
reinzelmann has joined #nixos
<tmplt>
I'm confused. `{ systemd.services.libvirtd.path = [ pkgs.bash ]; }` in configuration.nix works, but not in a custom module. What gives?
<clever>
tmplt: what error does it fail with?
<tmplt>
clever: no error, bash just isn't in the systemd unit path
<ariutta>
clever: can I just use nixpkgs-unstable for one dependency?
wchresta has quit [Ping timeout: 248 seconds]
<glasserc>
Do applications like e.g. Rhythmbox not typically put themselves in e.g. the GNOME applications menu?
<matthewbauer>
ariutta: something like (import (fetchTarball "channel:nixpkgs-unstable") {}).hello ?
spear2 has quit [Remote host closed the connection]
<clever>
ariutta: if using nix-env, you can just give a channel name, nix-env -iA channelname.packagename
<ariutta>
mattherbauer: this worked as a proof of concept: nix-build -E 'with import (fetchTarball "channel:nixpkgs-unstable") {}; callPackage ./default.nix {}'
Mr_Keyser_Soze has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @xeji merged pull request #42184 → pasystray: add libappindicator-gtk3 for appindicator support → https://git.io/ffCSx
<{^_^}>
[nixpkgs] @xeji pushed commit from @IvanMalison to master « pasystray: add libappindicator-gtk3 for appindicator support (#42184) »: https://git.io/f471E
tzemanovic has quit [Remote host closed the connection]
<infinisil>
ldlework: Btw, systemd tip:
* ldlework
perks up
<infinisil>
systemd has a ton of man pages and it can be hard to find the one with the thing you need
<ldlework>
how sexist
<infinisil>
For that there is `man systemd.directives`, which acts as an index for all other systemd man pages
<ldlework>
ah cool
<infinisil>
Search for what you need there and it will tell you the manpage with more info on it
<ldlework>
neat thanks
btbytes has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ldlework>
just wrote that down in my org file ;)
<tmplt>
Sourcing ${pkgs.stdenv}/setup the unit fails with "_assignFirst found no valid variant!". Wrong stdenv?
pie_ has joined #nixos
sbdchd has joined #nixos
<infinisil>
Hmm no idea. I've never actually sourced this just for these functions
<clever>
what about just using sed?
<Orbstheorem>
Hi, how do you store and reference your staic file from your nixos configuration? I have the following: https://paste.gnugen.ch/raw/gIx3 but that means that the builder needs to have the `/usr/local/systech` path available. That is, I not only have to track two different repos, but I also have to install it in a hardcoded place. Any better ideas?
<clever>
Orbstheorem: ${/path/to/file}
<tmplt>
clever: then I'd have to write that too. I'll postpone that for when I clean stuff up
<clever>
Orbstheorem: or just dont quote the paths
btbytes has joined #nixos
<clever>
Orbstheorem: but then nix will usually copy them into /nix/store/ and make them world-readable
Drakonis has quit [Remote host closed the connection]
wchresta has quit [Ping timeout: 248 seconds]
alter-schjetne has joined #nixos
<Orbstheorem>
(regarding copying to a world readable location, I don't have any choice right?. They are going to be shipped in the package anyways)
<Orbstheorem>
s/package/closure/
roconnor_ has joined #nixos
iitalics has quit [Quit: WeeChat 2.1]
<clever>
Orbstheorem: then just unquote them and you should be good, and try to avoid readFile when you can
dbmikus_ has quit [Ping timeout: 255 seconds]
newhoggy has joined #nixos
sbdchd has quit [Ping timeout: 248 seconds]
<Orbstheorem>
is there any way not to hardcode paths?
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « ghcjs-ng: Move to $out/lib/ghcjs-8.4 »: https://git.io/f47Ht
<clever>
Orbstheorem: you can also use relative paths, ./file
<Orbstheorem>
but then I'd had to ship keys in a git repository :/
schjetne has quit [Ping timeout: 240 seconds]
<Orbstheorem>
At least the nix store is only readable by the server users, but my repos are public :/
<infinisil>
You could also make some script generate the path at runtime
coot has quit [Quit: coot]
<infinisil>
Or require the user to provide it some way
Drakonis has quit [Remote host closed the connection]
<Orbstheorem>
:o
Drakonis has joined #nixos
<tmplt>
In leiu of getting substituteAll to work, is it possible to combine derivations? The PATH I'm giving to the systemd unit is too long.
<gchristensen>
you can use pkgs.buildEenv
myshoe has quit [Quit: Lost terminal]
<tmplt>
ah, nice. thanks
<ison111>
I'm having some trouble testing out the Sway wm which uses wayland. If I try to launch it from tty it says "Couldn't exec sway-pcap: Permission denied" and I also can't seem to launch it through eith slim or gdm display managers because the only session available seems to be "xterm". (Even if I use gdm and set gdm.wayland=true)
<ison111>
Not sure what I'm missing.
__monty__ has quit [Quit: leaving]
<judson>
A while ago, there was a presentation about the efforts to get nixpkgs working on Macs...
<gchristensen>
by daniel peebles
<judson>
That sounds right. Maybe enough to google for myself now...
jperras has quit [Ping timeout: 260 seconds]
<bpye>
Hm, how do I configure the zfs-zed service on NixOS? I want it to send emails to me
jperras has joined #nixos
<Orbstheorem>
clever: infinisil thanks, I'll take a look at #8
<infinisil>
bpye: Relevant and just recently merged: #41928
<infinisil>
bpye: I'd think it would be the default location /etc/zfs/zed.d
<infinisil>
bpye: See man zed
Lisanna has joined #nixos
<tmplt>
Is it known that a long PATH supresses the actual error message from a systemd unit when run, or is this just with my libvirtd unit?
<bpye>
infinisil: I know how to configure it that way, is that my only option? I was hoping something was exposed in configuration.nix
<infinisil>
bpye: Well there's environment.etc
<infinisil>
I've been meaning to write a better zed module though
<infinisil>
A module at all I mean
<bpye>
I wish monitoring/alerting was easier on.. well any Linux distro, it seems whatever I do I'm going to end up with some duplicate configuration however hard I try
<infinisil>
duplicate config?
<bpye>
So zfs-zed needs to know to use msmtp, the email to send, etc, as will any other monitoring service pretty much
<bpye>
For example I'd want alerts if an rclone backup didn't work, or if my disk health was poor
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil>
The nixos module could support that in a modular fashion
<infinisil>
The nixos module system*
alexteves_ has quit [Remote host closed the connection]
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
hamishmack has joined #nixos
drakonis_ has joined #nixos
drakonis_ has quit [Remote host closed the connection]
<Ralith>
what's the proper place to stick an assert inside a package definition?
matthewbauer has quit [Ping timeout: 265 seconds]
knupfer has quit [Ping timeout: 265 seconds]
matthewbauer has joined #nixos
tzemanovic has joined #nixos
ihar has quit [Quit: WeeChat 2.0]
kiloreux has quit [Remote host closed the connection]
matthewbauer has quit [Ping timeout: 260 seconds]
newhoggy has quit [Remote host closed the connection]
philippD has joined #nixos
<rycee>
tmplt: Nice. Yeah, I'd also like to move away from Thunderbird. Hopefully it won't take too long to get this into a usable state. But it'll be pretty opinionated for now. There are so insanely many ways to configure a mail setup :-)
<rycee>
I'm heading to bed.
newhoggy has joined #nixos
<rycee>
Ralith: Typically I think they are put after the arguments to the function producing the derivation. For example, see `pkgs/tools/networking/ntp/default.nix`.
justbeingglad has joined #nixos
btbytes has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jensens has quit [Ping timeout: 255 seconds]
btbytes has joined #nixos
newhoggy has quit [Remote host closed the connection]
newhoggy has joined #nixos
tzemanovic has quit [Remote host closed the connection]
xy2_ has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @timokau opened pull request #42633 → palp: fix runtime error introduced by #28029 → https://git.io/f47Fd
<maurer>
glasserc: Usually there isn't a -devel/-dev style package except in odd cases - in the case of pg_config, I think it should be installed as part of the postgresql package by default
<maurer>
Is it missing?
ericsagnes has quit [Ping timeout: 256 seconds]
<samueldr>
also: `nix-locate` can be used to search for files in packages you don't have installed
<samueldr>
looks like it's part of `postgresql`
<maurer>
(It's present on my system, as part of postgresql)
<maurer>
(but since you're asking the question, I'm guessing you're experiencing something involving it not being there)
hph^ has joined #nixos
steell_ has joined #nixos
<worldofpeace>
Is `...libinput.enable = true;` a default for plasma5 in nix? I know it is for gnome.
patrl has joined #nixos
rprije has joined #nixos
steell_ has quit [Ping timeout: 256 seconds]
erasmas has quit [Quit: leaving]
btbytes has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
btbytes has joined #nixos
Sonarpulse has quit [Ping timeout: 276 seconds]
btbytes has quit [Client Quit]
btbytes has joined #nixos
<Jason_Grossman>
Does anyone happen to have a recommendation for a program that has a Nix package that will show me a menu of snippets, to be pasted anywhere in X11? (I know how to do this with stumpwm and with Emacs, but neither of those shows a nice system-wide menu. I can do it with ROFI if necessary but I suspect there's something better.) Thanks!
btbytes has quit [Client Quit]
btbytes has joined #nixos
btbytes has quit [Client Quit]
btbytes has joined #nixos
ericsagnes has joined #nixos
jackdk has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Ralith>
is there an environment variable in checkPhase that contains the build root e.g. used for cmake?
<Ralith>
nvm
sbdchd has joined #nixos
newhoggy has quit [Remote host closed the connection]
newhoggy has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 256 seconds]
ericsagnes has quit [Ping timeout: 240 seconds]
<glasserc>
maurer: samueldr: Thanks for your response. Hmm, yes, it is there. I'm trying to build a shell.nix file for a Python program which depends on psycopg using pypi2nix, and it keeps failing with the error that pg_config is missing
<glasserc>
I didn't even check whether it was there before asking because I assumed it wouldn't complain if it was :)