<{^_^}>
#50992 (by cyounkins, 4 hours ago, open): git: wrap git-credential-netrc to set PERL5LIB
<leotaku>
infinisil: Not 100% the same thing, but one thing I "tried and saw" was somehow getting the output path of the source: With "normal" derivations I can just "nix-build" and get a symbolic link. How would I achive that here.
<gchristensen>
cyounkins: I'd post your error to that thread and ask for help there :) sounds like maybea bug in staging?
<gchristensen>
I'm sorry I can't help further
<cyounkins>
I'll do that. Thank you!
<infinisil>
leotaku: nix-instantiate --eval -A outPath will give you the output path
<infinisil>
And then you can just `ln -s` that
<infinisil>
There are however the quotes around it which are admittedly a bit annoying
<infinisil>
Yeah, would be cool if nix-build would work on such non-derivations as well tbh
<Mic92>
gchristensen: I am currently working on the macOS aquivalent
<gchristensen>
this is wild
<ottidmes>
"do not merge" status: Merged :P
<Mic92>
when I wrote this, it was really not supposed to be merged. Now the changes I did where pretty small
<Mic92>
Also cross-compiling with go is also easy without nix, we are still in a unique position when it comes to native dependencies like linking C-Libraries.
<ottidmes>
clever: 28M tarball with builtins.unsafeDiscardStringContext config.system.build.toplevel vs without the discard which ended up in: wait! wait! stop! Ctrl+C because I saw my disk shrink to below 1G :P
<ottidmes>
clever: my guess is that I did not ran into that problem before because of the use of initialRamdisk instead of netbootRamdisk
<Mic92>
Ericson2314: depsTargetTargetPropagated is the same as propagatedBuildInputs?
<Mic92>
gchristensen: yes. I have a pull request for that as well
doyougnu has quit [Ping timeout: 244 seconds]
<gchristensen>
Mic92 for MVP
<Mic92>
mhm. macOS cross looks a bit hairy. Ideally one want to use stdenv.cc = buildPackages.clang; but at the moment there is infinite recursion that I do not understand yet.
worldofpeace has joined #nixos
apaul1729 has joined #nixos
<Mic92>
I might should leave the basic bootstraping for someone how can actually test the binaries.
cyounkins has quit [Remote host closed the connection]
slack1256 has joined #nixos
cyounkins has joined #nixos
cyounkins has quit [Ping timeout: 268 seconds]
<v0|d>
Mic92: any links regardings to tracing leaks?
<v0|d>
may be on breakpointHook/cntr.
<Mic92>
v0|d: what kind of leaks?
<v0|d>
like the ones we've had in openssl
<Mic92>
What was it leaking?
mkoenig has quit [Remote host closed the connection]
<v0|d>
perl?
mayhewluke has quit [Ping timeout: 272 seconds]
mayhewluke has joined #nixos
<Mic92>
v0|d: well in that case you can either use breakpointHook or just grep for the offending path in $out.
<v0|d>
any link on how to use breakpointHook?
<Mic92>
I added some documentation to the manual
<v0|d>
read a paragraph that it exists not sure how to employ it
<Mic92>
But it could indeed need a concrete example
<Mic92>
Just add it to nativeBuildInputs
<v0|d>
what about cntr? should i nix-env -iA it?
<Mic92>
ideally add it to environment.systemPackages
<v0|d>
so I add breakpointHook to nativeBuiInput and nixos.cntr to sysPacks, then when I do cross build and get a reference err, what should I expect to happn?
<Mic92>
also do `mkdir /var/lib/cntr` on your machine. There is a bug that I have not fixed yet that prevents creation in cntr for the nix sandbox case.
<Mic92>
v0|d: it will break at the error and prints the instruction that you are supposed to execute
<v0|d>
good to know:)
<Mic92>
I also made a demo in my nixcon talk
<v0|d>
must have missd it, i'll check it out.
thc202 has quit [Ping timeout: 250 seconds]
technoidX has joined #nixos
<infinisil>
Oh my god, yet another thing that broke backwards compatibility in nixpkgs
<infinisil>
I've stumbled in like 3 occurences of this today (while updating nixpkgs)
<infinisil>
The public interface should be constrained as much as possible
<infinisil>
And only those parts would get covered by the bot
ottidmes has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @Mic92 opened pull request #51005 → doc: add example usage for breakpointHook → https://git.io/fp05i
<Mic92>
v0|d: ^
<v0|d>
Mic92: nativeBuildInputs = [ cntr ]; ?
<Mic92>
ah right
iyzsong has joined #nixos
<{^_^}>
[nixpkgs] @eadwu opened pull request #51006 → edex-ui: init at 1.0.1 → https://git.io/fp05M
<Mic92>
fixed
<v0|d>
:)
<Mic92>
the runtime closure of pandoc is way to big
<mdash>
Mic92: 'pan-' is a greek prefix meaning 'everything'
<Mic92>
that's why I have to install ghc!
<Ankhers>
Is there a prefered way to have a language work within the nix ecosystem? As an example, I know Haskell has a giant nix file with a bunch of derivations based off I think stack. Is this the suggested way to get a language to work?
<Ankhers>
An auto generated file
<simpson>
Ankhers: There's no standard technique. How does your language currently do its modules and packages?
<Ankhers>
Erlang/Elixir has hex.pm. There is some support for Erlang and Elixir already within Nix, but I wan tto improve it. I'm just wondering what ends up being ergonomic for the user.
<simpson>
Hm. I'm not sure but the topic's interesting to me.
worknonwork has joined #nixos
<Ankhers>
I've basically been thinking, should we go the route of Haskell and have nixpkgs "own" the list of BEAM packages (which is sortof how it is implemented at the moment), or should we supply a binary that can convert a rebar3/mix project into a nix project and output a deps.nix file or something.
<Ankhers>
I'm also open to hearing about other options I haven't thought of.
<Ankhers>
simpson: Topic of the BEAM, or topic of the ergonomics?
<simpson>
Of taking Nix into account when designing a language.
<infinisil>
simpson: Are you thinking of using Nix as the build tool itself? (in case of designing a language integrated with nix)
<delroth>
I'm starting to use nixops to manage my personal infra, and one thing I'd like to do is to have the config for machine A depend on some of the config for machine B (e.g. in A, if B.services.foo.enable, reference B.services.foo.port). Are there any good examples / best practices in the wild on how to do that?
<delroth>
in a simple case like that I'm pretty sure I could get away with some manual evalModules of B's config module, but I don't know how that will work if I end up having circular dependencies between configs
<delroth>
(e.g. A looking at B.services.foo and B looking at A.services.bar -- not circular dependencies that are unresolvable ofc)
<delroth>
a more practical example, if what I'm talking about is unclear: A is my monitoring machine, when evaluating its config I'd like to iterate on all other machines and find which ones are running e.g. nginx, if they do add an http probe to A's config
<jasongrossman>
Ankhers: Thank you for looking into this.
<jasongrossman>
Ankhers++
<{^_^}>
Ankhers's karma got increased to 1
<Ankhers>
jasongrossman: My pleasure. Do you have a preference on how this should work?
<simpson>
infinisil: Sort of. I don't want Monte to have its own idea of "packages" and "managing" those packages.
<infinisil>
delroth: Add the `nodes` argument at the top of the NixOS module, then `nodes.B.config.services.foo.enable` to refer to it
<infinisil>
simpson: Have you considered the caching implications of this?
<infinisil>
simpson: Because nix doesn't have any finer grained caching than derivations, and having too many derivations is expensive
<simpson>
infinisil: Monte will probably be switching to static linking soon, so it should be fine. No worse than Go.
<infinisil>
simpson: Why would static linking influence caching of build products?
<delroth>
infinisil: oh wow, didn't realize that was supported out of the box, thanks!
<delroth>
the nixops documentation says basically nothing about this :/
<infinisil>
delroth: Yeah, it's a bit hidden
<simpson>
infinisil: I guess I don't see the problem.
ng0_ has quit [Quit: Alexa, when is the end of world?]
<infinisil>
simpson: E.g. say you have a single derivation for every package: Then when you change a file in that package, you need to rebuild the full package, can't use cached version of other files. Now what if you make a derivation for every file: This could give you lots and lots of derivations which are also expensive if you have too many. Can even be worse if you use derivations to cache intermediate build products
<infinisil>
Whereas in Haskell you can just use `cabal` for development, giving you very fast cycles
<infinisil>
With lots of caching
<simpson>
Ah, sure, if Monte compiled like Haskell. Right now, to use Monte for development, the entire application is loaded into the REPL from source. And in the future, our compiler will compile an entire application from source, without intermediate objects.
<infinisil>
simpson: So there won't be a nix-free way to build a binary and you only develop through the repl?
<infinisil>
If the repl is good enough this seems like a great solution
<simpson>
infinisil: Well, that's kind of the question. In the ideal Monte world, what does Nix *do* for us? It's good at assembling a pure build environment. But that doesn't have to be the only way to do builds.
nD5Xjz has quit [Ping timeout: 268 seconds]
<infinisil>
simpson: Are you saying in an ideal world there would be a "generic" way to build it, the Nix way being an instance of this, but other ways being possible too?
<jasongrossman>
Ankhers: I don't know enough about BEAM to have a preference - sorry.
cyounkins has joined #nixos
<Ankhers>
jasongrossman: No problem. Thanks.
orivej has joined #nixos
hubbypa has joined #nixos
<WhittlesJr>
What's it mean if nix-env -i (pkgname) succeeds, but adding the package to my config and rebuilding fails? (Removing the package and rebuilding succeeds). This is for `appdaemon`, tracking master.
<WhittlesJr>
The failing dependency is python3.7-aiohttp-2.3.10
<jasongrossman>
WhittlesJr: I'm sure you've thought of this, but let me just check: are you using the same channel in both cases? (If you're using sudo with nix-env then you probably are.)
hubbypa has quit [Client Quit]
<WhittlesJr>
well, does nix-env ignore NIX_PATH? I assumed it didn't
<WhittlesJr>
didn't ignore it, I mean
<WhittlesJr>
Oh, I guess it is different. Let me see...
<{^_^}>
[nixpkgs] @WhittlesJr opened pull request #51010 → aiohttp: move idna-ssl into propogatedBuildInputs → https://git.io/fp0Fj
init_6 has joined #nixos
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
acarrico has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @ryantm opened pull request #51011 → deskew: init at 1.25 → https://git.io/fp0bE
drakonis1 has quit [Quit: WeeChat 2.2]
jtojnar has quit [Quit: jtojnar]
mayhewluke has quit [Ping timeout: 244 seconds]
mayhewluke has joined #nixos
hjulle[m] has joined #nixos
virus_dave has joined #nixos
<virus_dave>
hello all! I’m a nix user on OSX. Hoping someone can help me understand what is probably a stupid misunderstanding on my part. I’m trying to use `nix-env` to install wine64 on my mac. Per https://github.com/NixOS/nixpkgs/blob/master/pkgs/misc/emulators/wine/packages.nix#L23, it seems like it should be possible. However, i can’t see this package with `nix-env -qa` (even after adding a channel via `nix-channel —add
<virus_dave>
oh wow, thanks. That might be relevant. However, i’ve followed the instructions there (adding `{ allowUnfree = true; }` to `~/.config/nixpkgs/config.nix`, but that doesn’t seem to make a difference. `nix-env -qa` still doesn’t show it (despite nix-env -qa -v` showing the `nixpkgs` file being scanned)
<fusion809>
Hi folks, I'm having trouble locating where in the manual it mentions setting locales for Nix on a non-NixOS system. I ask because after installing a heap of Texlive packages on my host system (openSUSE Tumblewleed) I keep getting errors like: https://gist.github.com/fusion809/4d900c5ce0abc4491fb3c0634e133b7a from Nix packages.
sir_guy_carleton has joined #nixos
<fusion809>
after uninstalling the Texlive packages^
NinjaTrappeur has quit [Client Quit]
<fusion809>
The texlive packages, to be clear, were uninstalled with my host's package manager, Nix.
aszlig has quit [Quit: Kerneling down for reboot NOW.]
aszlig has joined #nixos
bemeurer_ has joined #nixos
<fusion809>
leotaku: thanks, that worked.
<fusion809>
the export LOCALE_ARCHIVE="$(readlink ~/.nix-profile/lib/locale)/locale-archive" being added to ~/.zshrc
bemeurer has quit [Ping timeout: 260 seconds]
<ottidmes>
fusion809: I can at least confirm that I too had this error and that making sure everything used the right LOCALE_ARCHIVE fixed things for me, but I am on NixOS (in my case I had old stuff in my nix-env profile)
<ottidmes>
Error: unsupported locales detected: en_US.UTF-8/UTF-8 \ You should choose from the list above the error. (and inside the list above: en_US.UTF-8/UTF-8 \), whats going on?
bbarker has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @zimbatm merged pull request #50934 → systemd timeout arguments to use infinity instead of 0 → https://git.io/fpR3H
<{^_^}>
[nixpkgs] @zimbatm pushed commit from @cyounkins to master « treewide: systemd timeout arguments to use infinity instead of 0 (#50934) »: https://git.io/fpEJ4
<{^_^}>
[nixpkgs] @zimbatm pushed commit from @nyarly to master « Bugfix: gemsets didn't handle paths correctly (#51002) »: https://git.io/fpEJ9
<ottidmes>
the minimal profile contains: i18n.supportedLocales = [ (config.i18n.defaultLocale + "/UTF-8") ]; which breaks glibcLocales because I already had that entry, so that needs either a mkDefault, or the locales need to be filtered to be unique
<{^_^}>
[nixpkgs] @basvandijk opened pull request #51027 → opencv4: init at 4.0.0 → https://git.io/fpEkw
reivilibre has joined #nixos
<leotaku>
ottidmes: Thank you, however with the "/. + path" method, I still can't convert a store "path-string" to an actual path. How would I do that?
iyzsong has quit [Read error: Connection reset by peer]
<infinisil>
leotaku: why do you need a path? A string is perfectly fine too and almost pretty much the same thing
acarrico has joined #nixos
<reivilibre>
Hello, any ideas to solve 'error: while setting up the build environment: unable to make '/' private mount: Permission denied' when running 'nix-channel --update' on NixOS? I should mention I'm running NixOS in an LXC container..
<leotaku>
infinisil: Do you remember how we talked about the quotes on a string returned from "nix-instantiate ./thing-that-returns-a-string.nix --eval" being anoying? I wanted to avoid that by simply storing all of the outPaths as actual paths.
<leotaku>
I know I can just "tr -d '"'" or something, but I wanted a cleaner solution.
dbmikus has joined #nixos
<reivilibre>
(alternatively, any ideas on installing NixOS on a server where there isn't an interface to insert a custom disk image for installation? I'm happy to run outside of LXC but thought it might make migration easier)
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @fuerbringer to master « diskus: 0.4.0 -> 0.5.0 (#51023) »: https://git.io/fpEII
<ottidmes>
leotaku: I just tried, it does return a path for me
<ottidmes>
> ./. + "/foo"
<{^_^}>
/var/lib/nixbot/state/nixpkgs/foo
<ottidmes>
> toString (./. + "/foo")
<{^_^}>
"/var/lib/nixbot/state/nixpkgs/foo"
<infinisil>
leotaku: Hehe, just yesterday I actually switched from `builtins.toFile` to `pkgs.writeText` for something because I was annoyed at the former not returning a derivation and not being able to nix-build it because of that :P
<ottidmes>
leotaku: sorry, did not read your message correctly, I will see if I can make it work, that is: "/nix/store/i7adhv25xgbjmy3v6vls1cqncs81m0fs-tarball.drv" to /nix/store/i7adhv25xgbjmy3v6vls1cqncs81m0fs-tarball.drv for example
Rusty1 has joined #nixos
v0|d has joined #nixos
<{^_^}>
[nixpkgs] @clefru opened pull request #51028 → Write cargo config to temporary file instead of source dir. → https://git.io/fpEIG
<leotaku>
ottidmes: Yeah that is what I want to achieve.
<ottidmes>
infinisil: haha, I was experimenting with that as well, writing it as a function: absToPath (since you can only really use it this way for absolute paths), maybe with eval you could work around it
<leotaku>
infinisil: That indeed works perfectly, thanks again.
<leotaku>
infinisil: I was just about to say that there was something weird when I tried it with "actual" store paths from nixpkgs.
<ottidmes>
> with lib; let toPath = str: if hasPrefix "/" str then /. + (substring 1 (-1) str) else ./. + "/${str}"; in [ (toPath "/foo/bar") (toPath "foo/bar") ]
<{^_^}>
[ <CODE> <CODE> ]
<infinisil>
leotaku: Note that doing the context discard means it the derivation won't get built anymore
<sphalerite>
tilpner: for..?
<sphalerite>
Oh right the nmtui fix
<tilpner>
For the "sphalerite | tilpner: the patch is complete!" I just got
<sphalerite>
:)
<infinisil>
,context
<ottidmes>
infinisil: why do I get <CODE> here, but I get the right paths in my repl?
<{^_^}>
Nix strings can have a context representing a set of derivations this string depends on. E.g. "foobar ${pkgs.hello}" has the hello derivation in its context, "foobar" doesn't have any context.
<infinisil>
ottidmes: lazy eval, you can wrap the thing in `deepEval` to evaluate it fully
<ottidmes>
infinisil: is that how the bot is configured?
<infinisil>
> [ (1 + 1) ]
<{^_^}>
[ <CODE> ]
<infinisil>
> deepEval [ (1 + 1) ]
<{^_^}>
[ 2 ]
<infinisil>
> :v deepEval
<{^_^}>
deepEval = x: builtins.deepSeq x x
dbmikus has quit [Ping timeout: 246 seconds]
<infinisil>
ottidmes: Yeah, needs lazy eval because evaluating derivations strictly is bad. And I can still go from lazy -> strict with deepSeq (but the other way isn't possible)
<ottidmes>
infinisil: and how come the discard is not necessary in the assert?
<{^_^}>
[nixpkgs] @timokau opened pull request #51030 → sage: add jupyter notebook support → https://git.io/fpEIN
<infinisil>
ottidmes: It's not used for anything other than a comparison, which is allowed. The other instance needs it because paths can't have any context, as indicated by the error
<infinisil>
As far as I understand at least
<ottidmes>
> with lib; let toPath = str: let str' = builtins.unsafeDiscardStringContext str; in if hasPrefix "/" str' then /. + (substring 1 (-1) str') else ./. + "/${str'}"; in deepEval [ (toPath "/foo/bar") (toPath "foo/bar") (toPath pkgs.hello.outPath) ]
<{^_^}>
[nixpkgs] @ryantm pushed to master « deskew: init at 1.25 »: https://git.io/fpEtg
<Myrl-saki>
Oh. I just realized a way to make NixOS more useful on cross-compiled systems.
<Myrl-saki>
Basically, have 2 cross compilation variable sets.
<Myrl-saki>
So, the first cross compilation is the "system build", while the second cross compilation is through nix-build.
das_j has joined #nixos
<Myrl-saki>
Err, I have no idea what the fuck I'm saying.
<Myrl-saki>
Basically, a Nix-y way to use cross compiled programs as if they were native.
<sphalerite>
Myrl-saki: that relies on good faith that the results will be the same. Which they won't. :p
<Myrl-saki>
sphalerite: Yes, that's why we need 2 variable sets.
<Myrl-saki>
Basically, the first argument set is a way to build the system.
<Myrl-saki>
And the second argument set is basically overriding pkgs to be pkgsCross.
<Myrl-saki>
So it's like they are native.
<sphalerite>
Myrl-saki: oh you mean for mixing and matching natively-built with cross-built stuff?
<Myrl-saki>
sphalerite: That's probably stronger than what I actually want.
<Myrl-saki>
sphalerite: Basically, the reason why I don't use `nixos-rebuild --build-host` is because `nix-build` on the device will require you to build everything.
nika has joined #nixos
<Myrl-saki>
sphalerite: So the idea is that nix-build on the system will use the cross compiled package set.
<{^_^}>
[nixpkgs] @magnusjonsson opened pull request #51033 → ocamlPackages.opti: init at 1.0.3 → https://git.io/fpEY4
johann__ has quit [Read error: No route to host]
justanotheruser has joined #nixos
graphene has joined #nixos
Rusty1 has joined #nixos
<booglewoogle>
on my 32-bit machine current firefox install fails (OOM) -- https://hastebin.com/enugagibuh.rb. machine has 3G cap and <100M in use, so shouldn't be a problem on this side, I guess
<andi->
Yeah, gkrust ist failing there with memory requirements.. Also had then while trying to compile it from 64bit.. Not sure how to fix that yet.. Also haven't spent much time :/
umbaws has quit [Ping timeout: 250 seconds]
<LnL>
philippD: are you sure that package isn't a dependency of one of the others?
<LnL>
otherwise that won't work
<philippD>
LnL: it's a dependency of distributed-static
<booglewoogle>
I would if I could, can't thought :(
<booglewoogle>
in the meantime, can anyone recommend a (preferably lightweight) alternative?
c0bw3b_ has quit [Remote host closed the connection]
umbaws has joined #nixos
sgillespie has joined #nixos
alex_giusi_tiri has joined #nixos
zolk3ri has quit [Ping timeout: 256 seconds]
pointfourone has joined #nixos
zolk3ri has joined #nixos
phreedom has quit [Quit: No Ping reply in 180 seconds.]
jonreeve has joined #nixos
phreedom has joined #nixos
pointfourone has quit [Client Quit]
acarrico has quit [Ping timeout: 246 seconds]
<jonreeve>
Does anyone know how to configure a sound card? My subwoofers apparently don't work, and it's probably a pin assignment issue, but hdajackretask is giving me trouble, since it's trying to run `tee` and `mv`, and put things in `/lib/firmware` which of course doesn't exist in NixOS
<ottidmes>
jonreeve: you mention that you have multiple outputs unmuted, I have had trouble when I had multiple sources enabled, I had to only enable the one of my USB soundcard for it to work, but that might just have been a particular problem with my setup
<ottidmes>
jonreeve: you could also try and patch the package on nixpkgs such that the script.sh does work correctly, or you might the more "hacky" workaround is to copy over the files from the nix store to the /lib path it wants to find them
periklis has quit [Remote host closed the connection]
<infinisil>
,overlay dsx
<{^_^}>
dsx: Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
drakonis2 has quit [Quit: WeeChat 2.2]
fusion809 has quit [Remote host closed the connection]
<__monty__>
ottidmes: How can I test changes to configuration-ghc-head.nix?
<maurer>
Is there something analogous to "src = ./." which will ignore the .git subdirectory of a local git repo? Do I need to try to convince fetchgit to ignore a hash?
<maurer>
I'm asking because I'm working in a repo where the .git directory is substantially larger than the checked out source
<infinisil>
maurer: If you're not concerned about uncommitted changes, `fetchGit ./.` should work
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @Melkor333 to master « cadence: fix wrong wrappings (#50610) »: https://git.io/fpEGF
zopieux has left #nixos ["WeeChat 2.2"]
makefu has joined #nixos
makefu has quit [Client Quit]
makefu has joined #nixos
drakonis1 is now known as drakonis
<booglewoogle>
regarding the firefox on 32bit issue: I found this comment: "Well, linux distros tend to not cross-build so they would build 32-bits binaries on 32-bits OSes. What I do on Debian is add -Wl,--reduce-memory-overheads -Wl,--no-keep-memory to LDFLAGS. Maybe we could do that automatically."
sir_guy_carleton has quit [Quit: WeeChat 2.2]
<booglewoogle>
is there a way I can add those flags myself to test this?
oida has quit [Ping timeout: 256 seconds]
<pikajude>
i have a package.yaml with build-tools that include a certain package
<pikajude>
there's a package with this name both in allPackages and in haskellPackages
<pikajude>
is there a way to disambiguate the one cabal2nix wants to use
pie_ has joined #nixos
<v0|d>
how much ram does nix-daemon require?
<{^_^}>
[nixpkgs] @c0bw3b pushed to master « taglib_1_9: refresh meta »: https://git.io/fpEn5
oida has joined #nixos
technoidX has quit [Remote host closed the connection]
pie_ has quit [Remote host closed the connection]
<__monty__>
pikajude: I guess you could change the nix file cabal2nix generates?
pie_ has joined #nixos
<ottidmes>
v0|d: would that not depend on how its used? I read yesterday about kexec into the memory of a VPS and they mentioned you need at least a 1GB VPS for that to work, so I would say at least 512MB ram (a basic NixOS will be 512MB as well, hence this estimate)
<v0|d>
ottidmes: just interstnd in nix-daemon particulars
<ngsa>
Greetings. I'm new to nixos. Aside from a few issues, it's been a great transition. I've run into a problem properly configuring my mouse (logitech M510). Under other distros, all buttons work immediately including the wheel and side buttons (for forward/backword in a browser). Under 'xev' these button presses are not recognized. Any suggestions on how I might try to fix this? I noticed catchall entries are generated in
<ngsa>
X11/xorg.conf.d/10-edev.conf and I tried to overwrite that content without success.
<ngsa>
Apologies for the noise. I found an article that stated the mouse must be power cycled after every reboot of the OS. That fixed the problem.
freeman42x]NixOS has quit [Ping timeout: 240 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<develCuy>
sphalerite: thanks for the link! Actually I came from there. My situation is that I need to install and up-to-date version of a program, but its nix package is installing a very outdated one, so I'm looking for instructions to update a package
<develCuy>
btw, not being able to get some up-to-date programs is preventing me to switch to nixos, until I can learn to update them myself and perhaps send patches
<develCuy>
s/an/and
<tilpner>
develCuy - Which package? Maybe you're just using an older channel?
<develCuy>
palemoon
<tilpner>
Ah, okay, nixpkgs only has 27.9.4, but the website mentions 28.2.1
<tilpner>
You can of course try just changing the version and hash, which might work if they changed nothing about dependencies or build setup
<develCuy>
yeah, how?
<tilpner>
Easiest might be to copy the Nix expression somewhere else and edit the version number
<develCuy>
ok, I can do that, but how to run the install?
<tilpner>
You can find the file with EDITOR=echo nix edit nixpkgs.palemoon
<tilpner>
Then, the simplest way is to put (callPackage ./your-palemoon.nix { stdenv = overrideCC stdenv gcc49; }) into your systemPackages
<tilpner>
Though you may later want to put that into an overlay to make it prettier
<develCuy>
ok, found the file, stored the output in my-palemoon.nix
johann__ has joined #nixos
<develCuy>
i don't know what to put in sha256
<tilpner>
I always put the output of "sha256sum /dev/null"
<develCuy>
oh, cool!
<tilpner>
Which is wrong, so it gives you the correct one :/
<tilpner>
,togu
<{^_^}>
tilpner: Did you mean tofu?
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<develCuy>
ok, how to know what is the right hash?
johann__ has quit [Client Quit]
<tilpner>
You *can* use nix-prefetch-git, but getting the right hash from the error message after putting in a wrong one is usually quicker
johann__ has joined #nixos
johann__ has quit [Client Quit]
johann__ has joined #nixos
<develCuy>
ok
johann__ has quit [Client Quit]
<develCuy>
I updated the git repo path and version, because palemoon hash switched
<develCuy>
now, I don't know what this means :( "Then, the simplest way is to put (callPackage ./your-palemoon.nix { stdenv = overrideCC stdenv gcc49; }) into your systemPackages"
<tilpner>
The repo path?
fengels has joined #nixos
<tilpner>
I assumed you were using NixOS. Are you?
<develCuy>
changed params in fetchFromGitHub
<tilpner>
You shouldn't need to change more than "sha256" and "version"
<develCuy>
oh not yet, I'm on KXStudio
<develCuy>
ok
<tilpner>
Then you have no systemPackages and that message doesn't apply
<develCuy>
oh, ok
<develCuy>
I tried this without luck: nix-env -f ~/my-palemoon.nix -A palemoon-src
hamishmack has joined #nixos
umbaws has quit [Ping timeout: 246 seconds]
<develCuy>
I get: error: cannot auto-call a function that has an argument without a default value ('stdenv')
<tilpner>
I don't use nix-env, I forgot how to make it install things with callPackage
<NickHu>
I'm having a weird issue whereby okular works, unless I try to launch it through zotero
<NickHu>
It gives me the error qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""; seems to not be respecting the QT_PLUGIN_PATH environment variable
<NickHu>
Oddly enough, if I unset that variable I am still able to launch Okular
<develCuy>
got this: fixed-output derivation produced path '/nix/store/lzg5ysvkjb1h9p93pqfx1j06b8wzgsg1-palemoon-src' with sha256 hash '0jcp5imiar88r72kspwjynbl0r3v90knyszagjydkrx9g58lkpzr' instead of the expected hash '0000000000000000000000000000000000000000000000000000'
<develCuy>
so I updated the nix file with the right hash
<develCuy>
unfortunately it fails with this message: cannot build derivation '/nix/store/30y572v888a04gdf03clmqn98nqanb3n-palemoon-28.2.1.drv': 1 dependencies couldn't be built
<tilpner>
That's likely not the full error message
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fpElO
vk3wtf has joined #nixos
<develCuy>
yes, but it started to build
<develCuy>
now I see that you pass the same to -E
<develCuy>
but more stuff
<develCuy>
let me try yours
<develCuy>
will try install later
<dsx>
How to make mpd and firefox (and maybe some others) to output audio simultaneously? I can't figure out correct combination of alsa and pulse.
<{^_^}>
[nixpkgs] @dawehner opened pull request #51047 → Add the tychus application → https://git.io/fpElc
<dsx>
I used to use alsa for everything and simple config for pa to just sink everything to alsa's dmix. But I can't figure out how to properly do that now.
<dsx>
hardware.pulseaudio.enable = true; sound.enable = true; nixpkgs.config.pulseaudio = true; doesn't seem to be enough
<clever>
dsx: what user is mpd running as?
<dsx>
mpd
<clever>
pulseaudio is in single-user mode by default
<clever>
all audio using apps must run as the same user
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dsx>
I see mpd having own pa instance running
<dsx>
As well as my user
<clever>
one of those claimed exclusive control of the alsa device
<clever>
which breaks the other
<foldingcookie>
speaking of pulseaudio, is there a way to compile Firefox on nixos to support ALSA (as done in Arch packaging)?
<{^_^}>
[nixpkgs] @ttuegel opened pull request #51048 → melpaBuild: Get package-build from melpa/package-build → https://git.io/fpEl0
<booglewoogle>
develCuy: isn't palemoon just a very old firefox? why do you need that?
<dsx>
clever: I don't know why, but I was sure that PA supposed to figure that out by itself and…
<dsx>
Oh well.
<develCuy>
booglewoogle: I just need it ;)
<clever>
dsx: the single pa instance, will then share the alsa device between all apps, on that user
<dsx>
I see.
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « Revert "make-derivation: add disallowedReferences in strictDeps" »: https://git.io/fpEla
justanotheruser has joined #nixos
__monty__ has quit [Quit: leaving]
<develCuy>
tilpner: I tried with nix-env but I created an infinite loop, so I created another file: install.nix, with your code and run the install nix-env -f install.nix -i palemoon
<develCuy>
it is still giving me an error :(
Thra11 has quit [Ping timeout: 245 seconds]
<lassulus>
develCuy: the error message would be helpful
<develCuy>
yeah, I'm debugging
<develCuy>
I'm very new to this, so just bootstraping my local env dev
<foldingcookie>
is there a guide somewhere to how you customize a nixOS system? I want to make changes such as removing the -w option from dhcpcd's system service file, but don't know where I would start
rprije has joined #nixos
<foldingcookie>
do I need to create a forked version of the dhcpcd package derivation, or is there a way to specify the changed part of the service file inline in configuration.nix?
<foldingcookie>
and now I have `man configuration.nix` <3
<infinisil>
LnL: Disabling documentation increases NixOS evaluation time by ~40%
<infinisil>
If you feel like improving it and don't care about man pages
<infinisil>
documentation.enable = false
cyphase has quit [Ping timeout: 245 seconds]
virus_dave has joined #nixos
<infinisil>
This is the thing that makes every nixos option evaluate even if you don't use it
<infinisil>
If we can somehow dynamically generate these man pages we could get the 40% for everybody, which would be hella rad
<clever>
infinisil: oh, that might be something i should look into with nixops deployments
<LnL>
building them for the channel instead of dynamically would be fine 90% of the time
<infinisil>
clever: Yeah definitely
<LnL>
having custom/local options not show up in there is reasonable I'd say
<infinisil>
LnL: They already don't show up anyways
<infinisil>
Like the out-of-tree ones don't
oida has quit [Quit: byez]
<clever>
yeah, configuration.nix's imports dont come into play i think
mayhewluke has joined #nixos
<infinisil>
I kinda wish they did
<infinisil>
Would be neat to see your own options docs
<infinisil>
I have a lot of em
oida has joined #nixos
<clever>
infinisil: defaults.documentation.enable = false; makes my eval go from 21 seconds to 21 seconds, lol
<infinisil>
Another way to get rid of the static docs: Don't build a manpage, but instead just provide a website where every options docs are dynamically generated when you click on them
<infinisil>
With nix-instantiate --eval
cyphase has joined #nixos
<infinisil>
clever: Something is wrong then, it should definitely improve by a lot, confirmed on my 3 machine set up and a minimal nixos configuration
sgillespie has quit [Quit: leaving]
<infinisil>
I didn't use nixops defaults
<{^_^}>
[nixpkgs] @alyssais opened pull request #51050 → Remove reference to unpackaged GHC version → https://git.io/fpE4Q
<clever>
it definitely did have an effect on the drvs, it initially took 30sec, as ot checked caches, and now wants to build new things
<infinisil>
Hmm weird
vidbina has quit [Ping timeout: 250 seconds]
<infinisil>
Oh and a problem with the dynamic nix-instantiate --eval idea is that there's no way to "collect" all nix files such that the evaluation will succeed on the target host
klntsky has quit [Remote host closed the connection]
Radivarig has joined #nixos
klntsky has joined #nixos
<infinisil>
Oh well actually, the module system evaluates all imports at the beginning already
<infinisil>
We can read that out
<infinisil>
And build a derivation with all those files in it
<infinisil>
Assuming the options don't depend on any other files, which could be the case in some weird configs
<infinisil>
It's just not solid.. :(
noffle has joined #nixos
<dsx>
Apparently I'm not smart enough or something. Could anyone show example of an overlay applied system-wide?
<dsx>
I can't figure this out.
<dsx>
Please.
<clever>
dsx: nixpkgs.overlays = [ (super: self: { ... }) ]; will affect everything in the nixos configs
<clever>
but for nix-build/nix-shell/nix-env, it has to be somewhere else, cant remember exactly where
<ottidmes>
clever: I believe /etc/nixpkgs/overlays
carlosdagos has joined #nixos
<ottidmes>
clever: nope, it is based on the value of nixpkgs-overlays in NIX_PATH
<tilpner>
dsx - It is self: super: in that snippet
ng0 has quit [Quit: Alexa, when is the end of world?]
<clever>
there is also a defualt based on $HOME
<clever>
tilpner: thanks, i can never remember which way it is
<tilpner>
Alphabetically
<ottidmes>
clever: yes, ~/.config/nixpkgs/overlays.nix and ~/.config/nixpkgs/overlays/
<clever>
overlays.nix might be the simplest then, just `nixpkgs.overlays = import /home/clever/.config/nixpkgs/overlays.nix;
<clever>
now EVERYTHING has a single source of truth on what overlays are
<clever>
and that file can just be [ (import ./overlay1.nix) ]
<clever>
and you can still have your overlays split over many files
<ottidmes>
clever: that is one way to structure it, personally since I have all my overlays defined as part of my system configuration, I just have NIX_PATH with nixpkgs-overlays=/etc/nixpkgs/overlays and I symlink my overlays to that location
<clever>
that would also work
<clever>
though when using a dir, how do you make nixos load it? does it accept a dir, or must it be a list of functions?
<dsx>
Says: error: infinite recursion encountered, at undefined position
justanotheruser has quit [Ping timeout: 240 seconds]
<tilpner>
._.
<clever>
dsx: as tilpner said, i got self and super backwards, so line 3 refers to itself
<ottidmes>
dsx: pkgs
<ottidmes>
dsx: super.writeText
ajs124 has quit [Quit: Gateway shutdown]
<clever>
dsx: the pkgs on line 4 should also be a self
lunik1 has joined #nixos
sgillespie has joined #nixos
zolk3ri has quit [Quit: Lost terminal]
ajs124 has joined #nixos
<dsx>
… error: anonymous function at /nix/store/f5dd6kj[…] called with unexpected argument 'alsaConf', at […]
<lunik1>
Is anbody experiencing issues with sshguard on 18.09? The latest update causes the service to fail with "modprobe: ERROR: could not insert 'ip6_tables': Operation not permitted" for me.
<clever>
dsx: why do you think the arg is called alsaConf?
<dsx>
Same error. I don't know is that matters, I actually have some text there.
<dsx>
(It doesn't)
maurer has left #nixos ["WeeChat 1.5"]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
haslersn has joined #nixos
<dsx>
Is there a way to completely mask nixos/modules/config/pulseaudio.nix with my version?
<ottidmes>
dsx: your version of that module? yes
<dsx>
How to?
<ottidmes>
dsx: for example at the same level as imports, config, and options: disabledModules = [ "system/boot/initrd-ssh.nix" ];
<ottidmes>
dsx: so in your case disabledModules = [ "config/pulseaudio.nix" ];
<haslersn>
Hi, I've got a python script that throws `AttributeError: module 'enum' has no attribute 'IntFlag'`. People on the internet suggest to uninstall the `enum34` package with is not stdlib compatible from python3.6 on. However, I didn't even install that package. I used `(python3.withPackages(ps: with ps; [ pyyaml jmespath ]))`. Is there any solution for NixOS? Is this something I should write a nixpkgs-Issue for?
<dsx>
ottidmes: how to enable my and where do I place it so it become available globally?
<dsx>
* enable mine
<clever>
dsx: then put a copy in /etc/nixos/ and imports = [ ./pulseaudio.nix ];
<clever>
then your free to modify that copy all you want
das_j has quit [Remote host closed the connection]