{^_^} has quit [Remote host closed the connection]
Supersonic has quit [Ping timeout: 259 seconds]
arjen-jonathan has joined #nixos
{^_^} has joined #nixos
gchristensen has joined #nixos
MmeQuignon has quit [Ping timeout: 248 seconds]
toppler`` has joined #nixos
Supersonic has joined #nixos
Glider_IRC_ has joined #nixos
mnoronha has joined #nixos
Glider_IRC__ has quit [Ping timeout: 252 seconds]
arjen-jonathan has quit [Ping timeout: 252 seconds]
kvda has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fj0Sv
Esa_ has quit []
ddellacosta has joined #nixos
<nh2>
clever: hmm, so far I have no luck on the OVH server. Even the normal NixOS install doesn't work. In EFI boot mode, it claims nothing is found. In LEGACY boot mode, I get just a black screen.
ris has quit [Ping timeout: 272 seconds]
<clever>
nh2: what is boot.loader.grub.device set to?
<clever>
nh2: have you tried it with just one entry, on the same device as a single /boot partition?
<nh2>
clever: actually, now that you say it, I forgot to include the SSD I'm using as `/` (and `/boot` on the same partition) :| Would still be surprised why that would matter, as usually installing Grub to a different device than what's / or /boot works, but certainly not intended
alexherbo2 has joined #nixos
<clever>
nh2: where are you getting a black screen, how are you looking at the monitor?
abathur has joined #nixos
<nh2>
clever: with the server's IPMI KVM
<clever>
ah
<clever>
no kvm access on my ovh box
<nh2>
(alias web- or java- based remote VGA)
<clever>
ive had to use activex *barf* based KVM before, lol
<nh2>
clever: by now OVH has at least 4 offerings that I know of: normal OVH (what I'm using now), Kimsufi, Soyoustart and OVH Cloud
<clever>
i think i'm on soyoustart
<nh2>
they are all wonderfully French, e.g. the rescue mode is like "Pas de carte raid dans le serveur"
<samueldr>
what's the issue with that? ;)
<clever>
nh2: why are you setting the grub device to 4 different drives? and what is special with / and /boot ?
<samueldr>
with kimsufi I had to make my own kvm with qemu and vnc(+ssh) to install nixos
zeta_0 has joined #nixos
Rusty1 has joined #nixos
<samueldr>
it's so nice how Linux doesn't really care on what hardware it runs
<nh2>
nothing, it's just very entertaining because of this mix. For example, there's this half-French-English boot screen in an unquittable pager of a file named /tmp/do_it_for_me.out :D
<clever>
samueldr: i once moved a win95 machine to a nearly identical laptop, and it never ran right since
orivej has joined #nixos
<nh2>
also, the decision of whether they send you things like the rescue mode's password email in English or French seems to be made by a random number generator
<nh2>
the first 10 such emails I got were English, now it's suddenly French
<samueldr>
weird, though I never used OVH outright, it always ends up in english in my e-mails (I think)
<samueldr>
though sometimes it's hard to tell :/
<zeta_0>
hello guys, how do i setup use-package correctly in .emacs being that i installed emacs with nix? i am a little confused on the instructions: https://github.com/jwiegley/use-package
<zeta_0>
so basically i just need to remove this line right?
<zeta_0>
(add-to-list 'load-path "<path where use-package is installed>")
<clever>
nh2: what FS is / on? is there any raid involved?
<pie_>
raid decides whether the emails are english or french
<nh2>
clever: currently not. This machine has 1 SSD + 4 HDs. I put on the HDs (partitions -> mdadm RAID -> LUKS -> LVM -> ext4), but the SSD is just a plain (partitions -> ext4).
schjetne has joined #nixos
<clever>
nh2: i would try adding the SSD to the devices
<nh2>
clever: yes that's what I'm currently doing, now rebooting with best hopes
<mac10688>
hi all. I want to create a dual boot for my system76 linux machine to run nixos. I was wondering what steps I need to take. I believe I need to make sure I have a second partition and grub right?
<clever>
mac10688: what is the other OS?
<mac10688>
ubuntu
<mac10688>
I know there are lots of guides out there for this kind of stuff but I just want a high level idea of what i'm about to do before I start going through google searches.
<mac10688>
I think my plan is good. I can use gparted to make sure i have partitioned space and then liveboot with the usb and install on that partition
<mac10688>
and to install on that partition it looks like I'll have to read quite a bit from the manual because I saw someone do it on youtube and it didn't look so newbie friendly
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
Anton-Latukha has quit [Ping timeout: 244 seconds]
<nh2>
clever: dammit still no luck. It boots the rEFInd boot manager, which says "Chain on hard drive failed. Next". But the output also suggests it's pulling that manager via PXE, which isn't really my understanding of the OVH web panel's option box "Boot from hard disk". The BIOS boot menu doesn't list the SSD as all, only the 4 HDs.
rprije has joined #nixos
schjetne has quit [Ping timeout: 272 seconds]
<samueldr>
refind means it's UEFI booting
<samueldr>
you were installing as legacy IIRC, wouldn't that be an issue?
vk3wtf has quit [Quit: WeeChat 2.4]
vk3wtf has joined #nixos
<clever>
nh2: yeah, sounds like you want to go into the bios, and turn off efi booting
<nh2>
yes, I did that, unfortunately the SSD doesn't appear as a boot device at all
<clever>
nh2: what type of ssd is it?
<nh2>
clever: /dev/nvme0n1, so probably some PCIe device
<clever>
nh2: nvme cant boot via legacy, only efi
<clever>
nh2: also, if you put grub on the non-nvme disk, it cant access a nvme /boot while booting
<clever>
that likely explains all of your problems
<clever>
grub technically doesnt support nvme, it relies on the EFI firmware to provide nvme drivers
<clever>
but if your booting in legacy, it cant access the EFI firmware
<nh2>
clever: yeah, that makes sense. I'd still expect the legacy mode to be able to at least load grub from the SATA HDs, but I guess I'll try a full EFI setup first
<clever>
so you need a /boot partition on the non-nvme disk, or switch to efi
<clever>
the grub on in the bios-boot-partition will fail to load the bulk of grub, and drop you into a rescue shell with very limited capability
mac10688 has quit [Ping timeout: 244 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<nh2>
clever: that's not what I get though, only black screen so far. Also, is having a 1MB BIOS boot partition not enough to make the grub work normally?
<clever>
nh2: then it loads the normal module, which upgrades grub from the bare-bones rescue mode, to a fairly fully functioning grub (adds help, and tab completion)
<clever>
after that, its all fairly obvious stuff, based on insmod cmds in grub.cfg
habbah has joined #nixos
o1lo01ol1o has joined #nixos
freeman42x has quit [Ping timeout: 258 seconds]
<habbah>
I want to build my project with a dependency for a library which uses an older version of aeson, but I personally want to use the newer version in my own code. Is this possible with nix?
<clever>
habbah: haskell.lib.doJailbreak
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
Wharncliffe has quit [Quit: Lost terminal]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kaliumxyz>
whats your opinion, running kali in a vm vs running it using docker?
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #62271 → postgresql: install in $out/share/postgresql → https://git.io/fj09U
<emptyflask>
I can't seem to find any info on adding a self-signed SSL cert for *.localhost development. ACME seems to only be useful for real domains...
<emptyflask>
is there a declarative way to do this?
Supersonic has joined #nixos
<emptyflask>
maybe just security.pki.certificateFiles = ["${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt" "other.crt"]
wfranzini has quit [Remote host closed the connection]
abathur has quit [Ping timeout: 248 seconds]
<immae>
fresheyeball: are you using it with callPackage? If so, it "studies" the function arguments, so it’s not exactly equivalent
<immae>
(and maybe other function do that too)
<fresheyeball>
I mean just from a syntax perspective
<fresheyeball>
I would expec
<fresheyeball>
{pkgs}: pkgs
<fresheyeball>
and
<fresheyeball>
x: x.pkgs
<fresheyeball>
to be the same statement
<fresheyeball>
err expression
clacke_movim has left #nixos [#nixos]
clacke_movim has joined #nixos
<immae>
There are ways to look (and override) arguments, so it’s not equivalent actually
<immae>
in particular callPackage, which is used in many places, will look at all the elements of the first argument and add them automatically
mexisme_ has joined #nixos
<dminuoso>
What is the exact semantic difference? If I apply some Haskell thinking I'd guess that `{pkgs}: pkgs` is strict in its argument, but `x: x.pkgs` is not - though this exactly is lacking to demonstrate the difference.
mexisme_ has quit [Ping timeout: 268 seconds]
<fresheyeball>
right they should be the same
<immae>
dminuoso: fresheyeball the content is the same. You can look at the callPackage definition (lib/customization.nix) but it’s not very easy to read. To sum up, if you have a nix expression of the form "{a, b}: (...)", then `callPackage thatExpr {}` will inspect that expression, see the a and b, and make as if you called thatExpr with {a=pkgs.a; b=pkgs.b}
mexisme_ has joined #nixos
clacke_movim has left #nixos [#nixos]
clacke_movim has joined #nixos
<immae>
so it’s not equivalent to having `x: (...)`, in which case callPackage is not able to inspect x
<immae>
though `thatExpr { a = "something"; b = "something" }` is exactly equivalent wether you wrote it as `{ a, b, ... }:` or `x:`
<immae>
It’s only some functions that will inspect the arguments, and callPackage is the one that is used almost everywhere
<immae>
dminuoso: the difference with haskell is that the arguments are opaque. To find a remote analogy, in haskell you cannot know from a caller point of view if the function you’re calling was defined as `foo Bar{..} = (use Bar’s elements)` or as `foo bar = (call some functions on bar)`, and it usually doesn’t make sense to wonder about that. In nix you can
<dminuoso>
immae: Curious
<dminuoso>
immae: Doesn't the ability to make that distinction break referential transparency?
<immae>
dminuoso: maybe, but I don’t know the term "referential transparency" :)
<bahamas>
is there a quick way to see a function's definition?
alp has joined #nixos
mac10688 has joined #nixos
<immae>
dminuoso: according to the wikipedia definition, yes you cannot refactor a nix expression in any way you want (in particular, the arguments)
<immae>
so you don’t have referential transparency
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<immae>
if you replace `{ nodejs }: (use nodejs here)` with `{ glibc }: (use glibc here)` then you’ll end up with a completely different result
clacke_movim has joined #nixos
<dminuoso>
immae: The wikipedia definition is particularly bad, sadly.
<immae>
ok
slack1256 has quit [Ping timeout: 248 seconds]
clacke_movim has left #nixos [#nixos]
vmandela has joined #nixos
<dminuoso>
immae: A consequence of (not a definition) referential transparency is being able to replace any term with its definition.
<dminuoso>
immae: In case you are curious by the way, this gives a compact summary of what referential transparency is, and where you can read more about it: https://stackoverflow.com/a/9859966
<immae>
dminuoso: The function will always return the same thing if you call it with same arguments (as far as I know), the only problem is that the variable names in the argument of the function arguments are important
<immae>
thanks I’ll have a look
<dminuoso>
immae: No it's about something different.
<dminuoso>
immae: What you refer to is purity, and that's somewhat orthogonal to referential transparency
<immae>
(in fresheyeball’s question, it’s the caller that is calling the expression with different arguments)
<dminuoso>
You can have one without the other. :)
<{^_^}>
[nixpkgs] @marsam opened pull request #62284 → pythonPackages.apprise: init at 0.7.6 → https://git.io/fj0QK
<dminuoso>
immae: well if a caller can inspect how a term is implemented, then you lose some referential transparency.
hoijui has joined #nixos
<johnw>
is Timo Kaufmann here?
<immae>
dminuoso: then yes it breaks referential transparency
<dminuoso>
immae: If we extend the examples from the SO answer, you'd get: "The first letter of the term <The capital of Scotland> is T"
<dminuoso>
And that's obviously a different sentence from "The first letter of the term <Edinburgh> is T"
cuse[m] has joined #nixos
<immae>
yes
<{^_^}>
[nixpkgs] @jwiegley pushed to master « Revert "rustfmt: mark as broken on darwin" »: https://git.io/fj0QS
mac10688 has quit [Ping timeout: 258 seconds]
<bahamas>
is there a way to see the source of a derivation (in an easy to read manner)?
<immae>
bahamas: is looking at its source not sufficient?
<bahamas>
immae: you mean the source on my machine or on nixpgks-channels? I remembered just now about the latter option
<bahamas>
immae: ideally, I would want to see the source of the derivation that nix is trying to build on my computer and that it's failing
<li_matrix>
the nix code source or the derivation's `src` attribute?
<li_matrix>
you can `nix build nixpkgs.hello.src` to see the latter
hyper_ch2 has joined #nixos
<fresheyeball>
oh lovely
<fresheyeball>
my configuration.nix is now just a builtins.fetchGit
<li_matrix>
the former is just a big repo which you ought to navigate
<li_matrix>
well, nixpkgs is big anyhow
<bahamas>
li_matrix: the nix code source
<bahamas>
li_matrix: if you're looking for a specific version of a derivation, how do you do it?
<immae>
bahamas: you can see the derivation itself with nix show-derivation /nix/store/the-derivation-that-failed.drv
<li_matrix>
you could probably return that programmatically from nix but I just search the tree
<li_matrix>
there ya go ^
<bahamas>
immae: aha. I didn't know about nix show-derivation. thanks!
<immae>
otherwise, if you’re building say package foo, you can see where it is in the nix repl by looking at foo.meta
<immae>
It will give you a path to the file that lead to that derivation
<li_matrix>
since I usually end up editing it, Ill open my dev tree
orivej has quit [Ping timeout: 248 seconds]
schjetne has joined #nixos
<bahamas>
immae: you mean the "position" field of the set returned by .meta? I tried it on pkgs.haskellPackages.mtl
<immae>
I meant that yes bahamas but it may not work everywhere
clacke_movim has joined #nixos
<immae>
(mtl is empty for me, so it has no "meta")
hoijui has quit [Remote host closed the connection]
<immae>
But for instance pkgs.haskellPackages.mtl-c.meta.position says that it is in /nix/store/80mja9vp5x1akvwk4b54hs8mcm8zvdyq-nixexprs.tar.xz/pkgs/development/haskell-modules/hackage-packages.nix:155857 in my case
<bahamas>
immae: yeah, the output looks similar for me. namely, a line number in hackage-packages.nix.
<immae>
yep
<immae>
Isn’t it what you wanted bahamas?
<bahamas>
immae: yes, it is. thank you.
<immae>
cool
Thra11 has quit [Ping timeout: 248 seconds]
endformationage has quit [Ping timeout: 250 seconds]
rauno has joined #nixos
<bahamas>
so, here's my situation. the project that I'm trying to build relies indirectly on a library called jvm-batching. it's a mixed (Haskell and Java) library. the build process of the library relies on gradle. I assume that the derivation should have gradle in "inputDrvs", no? it doesn't currently
slack1256 has joined #nixos
<immae>
bahamas: I don’t know about gradle/java in particular, but many "package manager" in nix have a packagemanager2nix utility that will build an expression that permits to build derivations without that package manager
<immae>
you should check in that direction for gradle, maybe that’s why it’s absent
<bahamas>
immae: in this particular case, the build fails because `cabal` can't find the `gradle` executable.
<bahamas>
so I'm assuming the binary needs to be present
<immae>
Ok, then just add it. It may be needed for other tasks than just building the derivation (seems to be the case for you)
<immae>
but it’s also possible that cabal shouldn’t call gradle at all, you’ll have to dig into that
hmpffff has joined #nixos
<immae>
(that’s very dependent on what you’re trying to build here)
clacke_movim has left #nixos [#nixos]
<bahamas>
immae: basically, I'm trying to use this project https://github.com/tweag/sparkle (it allows you to run Haskell code on Apache Spark). the way it currently works, it forces you to put your project inside `sparkle` and it builds it with stack. I want to make my project build standalone and only specify sparkle as a dependency
<bahamas>
the build error might have something to do with the fact that sparkle is using a custom build setup.
<immae>
Hmm I already heard someone talking (and I tried to help) about sparkle on this chan, could you have a look at the logs maybe?
<immae>
(not sure it is relevant, but it’s worth trying :p )
kvda has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
InFlames has quit [Ping timeout: 248 seconds]
<bahamas>
immae: I see a question from 2016, but no one answered it
<immae>
much more recent, I’m only a few months old nix user :p
<immae>
Ah it was already you, at the beginning of the month
<bahamas>
immae: I seem to have found a way around that issue. now the situation is that I have to use a more recent version for a bunch of libraries. is my only option to create a nix file for each or is there something easier?
<arianvp>
The authors of sparkle are heavy nix users and are even in this channel iirc
<bahamas>
they all have the same version, because they're autogenerated from the same repo.
<bahamas>
arianvp: I guess they're just busy or maybe in different timezones
<immae>
bahamas: you can override existing libraries if you want, but it’s probably easier to rewrite them. There may be tools that make that easy, though
wfranzini has joined #nixos
<hyper_ch2>
gchristensen: howdy
fionnan has joined #nixos
<kaliumxyz>
what if I let nix manage the users of my service?
<kaliumxyz>
is there some way to add new users by just building without having to rebuild?
<kaliumxyz>
if modules can do it it should be plausable.
<immae>
bahamas: I meant taking the libraries from their original location, and adjusting them to upgrade the version. From what I saw the haskell libraries derivations are very succint
slack1256 has quit [Remote host closed the connection]
<bahamas>
immae: ok. that's what I did, namely I created nix files for all of them. I thought maybe you meant something else
<immae>
No, I don’t have a better suggestion
<bahamas>
it's ok. it works. I'm now back to my build failing because of gradle
<immae>
bahamas: Is cabal trying to use gradle to build the package? If so, you should modify it to not build it, since it is already
<immae>
and it’s that dependency that fails, not the parent one, right?
jb55 has joined #nixos
<bahamas>
immae: sparkle needs jvm-streaming which needs jvm-batching. the last one fails
<bahamas>
maybe jvm-streaming will fail as well, but I haven't gotten that far :)
<immae>
I can try to have a look if you share your jvm-batching derivation (and its dependencies), but I never built any java thing so far so I cannot promise I’ll be able to help
jb55 has quit [Client Quit]
knupfer has joined #nixos
<bahamas>
immae: ok, I made gradle available in the jvm-batching derivation and it moved past that step. now it's a different error
<bahamas>
thank you for trying to help
<immae>
you’re welcome :)
jb55 has joined #nixos
<{^_^}>
[nixpkgs] @ngerstle-cognite opened pull request #62289 → dapper: init at v0.4.1 → https://git.io/fj05i
<cinimod>
the package cmdstan is defined twice: once as pkgs/development/compilers/cmdstan/default.nix and once as pkgs/applications/science/stats/cmdstan/default.nix
arjen-jonathan has joined #nixos
<tilpner>
cinimod: There is no pkgs/applications/science/stats
<immae>
kaliumxyz: there is a targetPort config, but the port 22 is hardcoded in many places in nixops so I wouldn’t recommend changing it
<immae>
(some of those hardcoded places are to check when the machine is up, for instance)
HangoverGenius has quit [Ping timeout: 272 seconds]
Alling has joined #nixos
<Alling>
OK, I'm lost again, chat. :P
<Alling>
I'll present my thesis the upcoming Wednesday. Overleaf has decided not to work, so I'd like to work on my laptop instead. I have LaTeX working. But I can't get more than 1024x768 on my Asus Swift PG278Q.
<goibhniu1>
Alling: are you sure you're using the right GPU?
<Alling>
It worked on an identical monitor, like, two days ago, but I've rebuilt NixOS since and maybe that changed something. At least xrandr says XWAYLAND2 instead of DP1 like before. The xrandr commands I used to add 2560x1440 as a resolution do not work anymore. I found a guide for Wayland though:
<__monty__>
Then I'm sure it's fine, just used to seeing ./.
dontdieych has joined #nixos
<marek>
I have tried pkgs = import ./.. {config.allowUnfree = true;};
<marek>
as well as pkgs = import ./.. {config = { allowUnfree = true; }; };
<srhb>
marek: One thing I notice is that you don't seem to be using pkgs for anything but lib
<srhb>
marek: So the one place where you've allowed unfree is in lib -- which is irrelevant.
lukego has quit [Ping timeout: 256 seconds]
<srhb>
marek: The expression is a bit convoluted (I'd simplify from scratch if I were you) but I think you're getting all the packages from your nixos' attrset, so that's where you want to allow unfree.
<srhb>
Or, hm, maybe from nixpkgs'
<srhb>
Not sure :)
<srhb>
Try using nixpkgsArgs in the import for nixpkgs'.
<Shoubit>
How do I load configuration.nix in a user nix repl?
<dminuoso>
Shoubit: configuration.nix is a nixos module, what do you expect that to do?
<dminuoso>
(or at least its the filename of a common nixos module, and I assume you refer to /etc/nixos/configuration.nix)
<srhb>
But yeah, curious what you're trying to achieve as well :)
<Shoubit>
I just want to explore all the configured options
<Shoubit>
Thanks :)
<srhb>
Shoubit: nixos-option is more handy for that
<srhb>
Especially if you set up tab completion
bahamas has joined #nixos
<yorick>
if I use --builders, it seem that it only does 1 job on the builder
<yorick>
is there a way to do more?
<Shoubit>
Oh I'm just inspecting systemd.units for some examples. I want to resolve a painful bug with gnome-terminal not respecting ulimits in the NixOS way, I need a high LimitNOFILE to get stuff working. I didn't know about nixos-option though, that's cool.
<yorick>
oh, --builders with extra space arguments
<manveru>
yorick: yeah... the manpages don't tell you how to use it at all
<yorick>
it's still using only 1 core per job now
Shoubit has quit [Remote host closed the connection]
<manveru>
i think the nix.conf on the remote might need it too?
<manveru>
though that should be 0 by default
Ariakenom has quit [Quit: Leaving]
<manveru>
see nix.buildMachines nixos option
<yorick>
it's specifying -j4, I have no idea why
mexisme_ has quit [Ping timeout: 244 seconds]
<avn_>
Folks, can anyone remind me -- what parameter in services.systemd.... force service to reload if path changed on update?
<yorick>
that would by my local system cores
<yorick>
but it's doing it even if I add --cores 24
<{^_^}>
#53665 (by ElvishJerricco, 20 weeks ago, closed): Parallel Haskell build time regression with high core counts
<marek>
srhb: with my config I pasted, any idea how to include a python package in that list to build? for everything with dot I get: error: syntax error, unexpected '.', at [1m/nix/store/fr1jpfcpdzqkxddmacrxmwl5v4xskg2z-source/nixos/release-myos.nix[0m:81:14
<michaelpj>
anyone know much about restricted mode? I'm a little confused as to what I can and can't do. In particular, I don't appear to be able to use even `builtins.filterSource` on a path
<michaelpj>
so if I try to fetchgit something with a default.nix and build it, the IFD is fine, but if it uses `filterSource` on its source then it won't work
<Shoubit>
bahamas, start a `nix repl '<nixpkgs>'` and type `openjdk.outPath`. You can use tab-complete to see what properties a set (e.g. `openjdk`) has
hoijui has quit [Remote host closed the connection]
<bricewge>
gchristensen: My breaking change may lock some people out of their systems (it's PAM related), does `mkRenamedOptionModule` and writing in the release note is sufficent?
ricekrispie2 has quit [Ping timeout: 248 seconds]
asheshambasta_m has joined #nixos
asheshambasta_m has quit [Max SendQ exceeded]
asheshambasta_m has joined #nixos
<gchristensen>
bricewge: hrm... not sure ...
<gchristensen>
bricewge: sounds scarcy :P
<bricewge>
gchristensen: Yup :/ but it prevent a possible privilege escalation via `sudo`.
<gchristensen>
I hear that
<gchristensen>
needs doing
Jackneill has joined #nixos
alex`` has joined #nixos
<filedesless>
can't you make nixos-rebuild fail with a warning?
dansho has joined #nixos
npmccallum has joined #nixos
silver has joined #nixos
eyJhb is now known as eyJhb
<bricewge>
Yes I need to make `nixos-rebuild` fail when the deprecated option is used but I don't know what will do: `warning`, `assertion`, `mkRemovedOptionModule` (even if it's only renamed)?
alex`` has quit [Ping timeout: 244 seconds]
<Baughn>
bricewge: Neat. I will now scan nixpkgs for pull requests from you, to see what you're doing and reverse-engineer an exploit.
Jackneill has quit [Remote host closed the connection]
Jackneill has joined #nixos
<filedesless>
Baughn: lol, don't forget to give credits where due ;)
<{^_^}>
[nixpkgs] @vanschelven opened pull request #62312 → pythonPackages.rfc3987: init at 1.3.8 → https://git.io/fj0hg
xacktm has joined #nixos
<{^_^}>
[nixpkgs] @vanschelven opened pull request #62313 → pythonPackages.strict-rfc3339: init at 0.7 → https://git.io/fj0hM
xantoz has quit [Read error: Connection reset by peer]
vmandela has quit [Quit: Leaving]
<emptyflask>
I've got self-signed SSL certificates for web app development working for nginx (just specified files in /root/ssl/) but they're still not trusted by the system (chrome, curl, etc). I appended the cert to `security.pki.certificateFiles` and see it in /etc/pki/tls/certs/ca-bundle.crt, but no dice
<{^_^}>
#56907 (by LnL7, 12 weeks ago, merged): python: make it possible to disable the python setup-hook
<genesis>
i see
<LnL>
the way python dependencies propagate is a bit broken IMHO, you can't mix versions even if you just want a binary
<genesis>
sure something is broken here
ddellacosta has joined #nixos
cfricke has joined #nixos
freeman42x has joined #nixos
Shoubit has quit [Ping timeout: 252 seconds]
<genesis>
thanks for help, let's try
<LnL>
another solution might be to enable strictDeps and split the dependencies over nativeBuildInputs and buildInputs
<LnL>
not sure if that's enough to git rid of the native inputs in PYTHONPATH
schjetne has quit [Ping timeout: 258 seconds]
kvda has joined #nixos
kvda has quit [Client Quit]
Shoubit has joined #nixos
o1lo01ol1o has joined #nixos
gagbo has joined #nixos
drakonis has joined #nixos
ddellacosta has quit [Read error: Connection reset by peer]
ddellacosta has joined #nixos
<catern>
is there some explicit way in which Nix builds for different architectures are differentiated and so end up at different paths? or is it all purely a consequence of different arguments passed to the builders? this is purely theoretical, I'm just wondering if it's meaningful to say "Nix doesn't explicitly differentiate binaries for different archs, instead they're just built differently due to build arguments"
<catern>
(i.e. if we had some flag variable ARCH being passed to some root derivation for a given architecture)
xantoz has joined #nixos
<maurer>
catern: My understanding is that package separation is entirely a matter of build inputs here. nixpkgs *itself* has a "system" parameter which selects what system to build for, but Nix doesn't have any such thing
endformationage has joined #nixos
<gchristensen>
(Nix does actually)
cfricke has quit [Quit: WeeChat 2.4]
<maurer>
Oh, nevermind. What is it?
<gchristensen>
«system»
<maurer>
...is that not defined in nixpkgs?
<gchristensen>
it is
<gchristensen>
but it is also required by fundamental `derivation` function
<maurer>
Ah, but that is not a build *for* that sytem, it's a build *on* that system
<maurer>
e.g. in build/host/target, that system parameter describes "build", but I think catern was asking about "host"
<maurer>
(I may also have misread the question)
acarrico has joined #nixos
<gchristensen>
well
<gchristensen>
if system = i686-linux, Nix sets the kernel's mode to be 32 bit only
<gchristensen>
I'm not sure what we're talking about exactly :P
ambro718 has joined #nixos
linarcx has quit [Quit: WeeChat 2.4]
bahamas has quit [Quit: leaving]
<clever>
catern: if you have 2 nearly identical derivations, for the same thing, but on 32 and 64bit, they will still differ in many ways: the system attribute, the storepath for all of its inputs (32 or 64bit version, which each have the same difference casdading)
<clever>
well, 2 if you only look at the first level, but it casdades up the tree
<LnL>
but in theory the system parameter isn't necessary, the outputs will be different because the root (bootstrap-tools) will be different depending on the platform
wfranzini has quit [Remote host closed the connection]
<clacke_movim>
catern: So, in summary, "yes". :-)
erasmas has joined #nixos
<clacke_movim>
(Build system is explicit, but host system is implicit -- but in practice they concur, so in practice the answer kind of happens to be "no, it is kind of explicit")
<drakonis>
hmm, i'm having a moment of confusion, i can't seem to figure out how to update my channels
<weebull[m]>
My memory is failing me. I'm using nix on MacOS and I think I've switched something to allow expressions which are broken on darwin to install. Any ideas what I've changed? (My google-fu is failing me)
<drakonis>
i don't quite understand how to update
<clacke_movim>
weebull[m]: allowBroken = true
xantoz has quit [Read error: Connection reset by peer]
<clacke_movim>
In your ~/.nixpkgs/config.nix
<weebull[m]>
clacke_movim: Thanks. Now to find where I hid it 🙂
<weebull[m]>
Ah
<clacke_movim>
drakonis: What does `nix-channel --update` do for you?
<drakonis>
it unpacks the channels i guess?
trevorriles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<drakonis>
nothing else is output
xantoz has joined #nixos
HangoverGenius has joined #nixos
<{^_^}>
[nixpkgs] @bricewge opened pull request #62317 → nixos/pam: safe defaults for pam_ssh_agent_auth → https://git.io/fjEvU
alex`` has quit [Ping timeout: 252 seconds]
alex`` has joined #nixos
Torro has left #nixos ["-bye"]
ivan_rossi has left #nixos [#nixos]
<fresheyeball>
- You can not use networking.networkmanager with networking.wireless
<Mic92>
it is just a default value, which can be overwritten by `networking.networkmanager.enable = false;`
drakonis has quit [Quit: WeeChat 2.4]
<Shoubit>
I think you can add a connection with `networking.networkmanager.extraConfig` in your configuration.nix as well
<fresheyeball>
ok I am trying that
gchristensen has quit [Quit: WeeChat 2.4]
gchristensen has joined #nixos
trevorriles has joined #nixos
Thra11 has joined #nixos
<exarkun>
what's the environment variable you set to fix "ValueError: ZIP does not support timestamps before 1980" w/ pip?
<exarkun>
found it one time and then lost it
<fresheyeball>
that worked, hurray!
<exarkun>
ah SOURCE_DATE_EPOCH
acarrico has quit [Ping timeout: 248 seconds]
<catern>
maurer: gchristensen: clacke_movim: ah, cool, thanks, that is a great explanation: explicit for build, implicit for host
schjetne has joined #nixos
<{^_^}>
[nixpkgs] @kampka opened pull request #62318 → Use cross build packages in extlinux builder when hostPlafrom differs from buildPlatform → https://git.io/fjEf1
<{^_^}>
[nixpkgs] @grahamc opened pull request #62325 → wireguard: 0.0.20190406 -> 0.0.20190531 and Change peers without tearing down the interface, handle DNS failures better → https://git.io/fjEUa
ris has quit []
ris has joined #nixos
* ris
is trying to understand why we've still got 20140304 as our re2 version
ambro718 has quit [Quit: Konversation terminated!]
<ris>
wow nox-review rebuilds for re2 are just nix-build -A grab-site -A re2 -A chromiumDev -A python27Packages.fb-re2 -A chromium -A openexrid-unstable -A python37Packages.fb-re2 -A sbt-with-scala-native -A gitlab -A dnsdist -A chromiumBeta -A clickhouse -A john -A cre2
chinarin has quit [Remote host closed the connection]
chinarin has joined #nixos
ardumont has joined #nixos
MichaelRaskin has joined #nixos
schjetne has joined #nixos
bbarker has joined #nixos
<chinarin>
hi all! I'm new to nix (again! This time I'm staying tho ;) and I just can't find how to install python packages! :o I'm *not* a python developer; I just need to install a python library (namely b2) because a program (namely duplicity) requires it. What's a fool to do?
<bbarker>
Hey all, I have a shellHook that has the line `source foo.sh` in it, which is great - if your CWD is that of the nix expression and the foo.sh. Is there an alternative that doesn't depend on absolute paths, even if it involves embedding the script in the nix expression (which would be desirable, but with shellHook I know some things are interpreted by nix within the string ... which I do not want here)?
<PyroLagus>
chinarin: is installing duplicity via nix an option?
<bbarker>
chinarin, are you using duplicity via a nix package?
<chinarin>
tilpner: sorry I haven't learned nix lang yet. Where should I put that statement? Sticking it in configuration.nix in global scope gave a syntax error.
<tilpner>
chinarin: Depending on where you put it, you may need to wrap it in parentheses
Guanin has quit [Remote host closed the connection]
wfranzini has joined #nixos
<chinarin>
tilpner: putting it in parens (in the systemPackages section) /did/ make it compile! Duplicity still fails with "B2 backend requires B2 Python APIs (pip install b2)," though.
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<chinarin>
tilpner: huh. OK so here's what happened: I'd assumed that I needed to run nix-env ops in sudo Xo Now everything's working correctly! Thanks so much for sticking with me to fix this.
<bbarker>
ivan, cool thanks - i actually was able to run intellij alright in nix, though come to think that was nix on ubuntu (though intellij was installed via nix)
o1lo01ol1o has quit [Remote host closed the connection]
<ddellacosta>
hey folks, trying to build semantic (https://github.com/github/semantic) via nix-build, and having trouble understanding how to use source packages that are set up as git submodules (e.g. freer-cofreer https://github.com/robrix/freer-cofreer, which doesn't exist in hackage anyways). Can anyone point me at an example or docs for how to include source libs like this in a haskell package? Do I simply have to
<ddellacosta>
define a default.nix for each one as with anything else, or are there shortcuts?
fasd` has quit [Remote host closed the connection]
<sm>
g'day all. I have a haskell program installed with nix that seems unaware of the system locale. This doesn't happen when installing it in any other way. Can you think of what might cause this ?
<samueldr>
fasd: never have known it as working badly, always worked fine for me
<samueldr>
fasd: (thought there might be a really new issue with the really new upgrade of grub on nixos-unstable)
<clever>
nefix: just run `nix-store -r /nix/store/hash-foo` on the storepath in hydras details page
<samueldr>
though*
Anton-Latukha has quit [Quit: Leaving.]
<clever>
nefix: you can do that on any arch with nix installed
<nefix>
clever: thanks!
Neo-- has quit [Ping timeout: 258 seconds]
<samueldr>
hm, we probably should add the thing to make it downloadable through hydra to the u-boot build...
<nefix>
That would be really helpful, since I downloaded the aarm64 image directly through Hydra
<clever>
samueldr: hydra-build-products would make it a lot simpler
<samueldr>
clever: yeah, that thing
knupfer has quit [Ping timeout: 252 seconds]
<nefix>
By the way, is there any reason why the aarm64 image is still in the 18.09 release and not in the 19.03?
<{^_^}>
[nixpkgs] @Kiwi opened pull request #62334 → hplip: add aarch64-linux to platforms → https://git.io/fjEIy
<DigitalKiwi>
why does it always take longer to write the PR than the actual change :(
<samueldr>
the curse of trivial changes
<DigitalKiwi>
hmm i just noticed my pi is on 18.09 channel i thought it was not
<DigitalKiwi>
ah, but i have been building the img with nixos-unstable
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
<zeta_0>
hello guys, when i tried to activate mpc in emacs to play music it through an error, apparently i need to setup mpd first to get mpc to work, in nix options i found mpd but i am not sure what options i need to setup to get it to work with mpc? https://hastebin.com/ebujeregev.rbhttps://nixos.org/nixos/options.html#services.mpd
<zeta_0>
i want to play music from within emacs, that is why i am setting this up
freeman42x has quit [Ping timeout: 258 seconds]
mac10688 has joined #nixos
<DigitalKiwi>
samueldr: haha or it's not as trivial as i thought seems there's more to it
lord| has quit [Ping timeout: 258 seconds]
m0rphism has quit [Ping timeout: 246 seconds]
shibboleth has quit [Quit: shibboleth]
Rich[m] has left #nixos ["User left"]
MmeQuignon has quit [Ping timeout: 248 seconds]
zeta_0 has quit [Quit: mpd setup]
ghostyy has quit [Read error: Connection reset by peer]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
st4ll1_ has quit [Ping timeout: 272 seconds]
<adamantium>
Hey, anyone know how to toggle the nixos redshift via shell command? I use the nixos redshift service, and the typical pkill -USR1 '^redshift$' just returns 1
slack1256 has joined #nixos
o1lo01ol1o has quit [Ping timeout: 272 seconds]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<DigitalKiwi>
hey adamantium i noticed a way to solve that zfs errata thing more easily
<DigitalKiwi>
(if you don't care about the past snapshots, which i didn't, you can just delete all of them, instead of copying all of them over)
schjetne has joined #nixos
<adamantium>
cool
<adamantium>
DigitalKiwi: hopefully no more erratas for a long time to come :)
xorAxAx has quit [Ping timeout: 258 seconds]
<adamantium>
Anyone use a desktop environment and just replace the WM with your favorite tiling? I use exwm and was considering trying this
<adamantium>
If you do, which DE would be the best to try first?
xorAxAx has joined #nixos
goibhniu1 has quit [Ping timeout: 248 seconds]
alp has quit [Ping timeout: 248 seconds]
hmpffff has quit [Quit: nchrrrr…]
o1lo01ol1o has joined #nixos
<nh2>
adamantium: I use i3, and start only those gnome services in addition that I like, for example gnome-settings-daemon
<nh2>
happy with this approach for the last 10 years