<noonien>
`services.fail2ban.jailes.my-jail = '' your filter/action here '';`
<CRTified>
noonien, no, I want to define a custom filter or action (so the things that you use when declaring a jail)
<noonien>
oh
<noonien>
i'm not sure about that, sorry
<CRTified>
I basically want to whitelist IPs for some duration if they have succesfully logged in over SSH, so that the user does not ban himself when he (e.g.) tries other clients (for example, sshfs has triggered fail2ban in the past for various reasons)
chiefgoat has quit [Ping timeout: 265 seconds]
werner291 has quit [Quit: werner291]
rogue_koder_ has quit [Ping timeout: 265 seconds]
logzet has quit [Ping timeout: 260 seconds]
logzet has joined #nixos
jluttine has quit [Ping timeout: 268 seconds]
chiefgoat has joined #nixos
lovesegfault has joined #nixos
Rusty1 has quit [Remote host closed the connection]
drew_b has joined #nixos
<bsima>
is nginx plus available via nix?
Rusty1 has joined #nixos
<noonien>
is it possible to generate a vmlinux file instead of bzImage when building a linux kernel?
jluttine has joined #nixos
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
aiverson has joined #nixos
<aiverson>
ryantm Twey you're on the git history of godot. I'm trying to package a custom fork of godot, and the build is failing to find <GLES3/gl3.h>. I've tried multiple sources of the gl3.h file and confirmed they show up in the shell, and use the patches for godot from nixpkgs. It's still failing. Could someone help?
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JvYKF
alex`` has quit [Ping timeout: 268 seconds]
<drew_b>
so I'm seeing a nix error of `gcc: error: No such file or directory
<drew_b>
`cc' failed in phase `Linker'. (Exit code: 1)
<drew_b>
but i have an impure nix-shell that has the hosts /usr/bin/cc in scope
AmandaC has quit [Read error: Connection reset by peer]
protocol has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @fpletz pushed to master « linux_5_5: init at 5.5 »: https://git.io/JvY6p
ddellacosta has joined #nixos
mmlb has joined #nixos
h0m1 has quit [Ping timeout: 246 seconds]
mexisme_ has quit [Quit: WeeChat 2.7]
mexisme has joined #nixos
h0m1 has joined #nixos
<noonien>
is it possible to get all dependencies of a derivation, in nix?
<Cale>
noonien: There's a field called propagatedBuildInputs which you can look at, and in the lib, there's a function closePropagation, which if you apply it to the propagatedBuildInputs, will track things down recursively.
<noonien>
that's neat! thanks!
<infinisil>
Though this only include dependencies in propagatedBuildInputs, which is usually almost none
<infinisil>
noonien: What do you need this for?
<noonien>
i want to create a squashfs image with the complete dependencies of a derivation
<Cale>
Yeah, it was sufficient when I was looking for the Haskell dependencies of Haskell packages, in order to build unified documentation for everything, but I'm not sure it would be suitable for constructing images.
<noonien>
i was just wondering if there's a way of doing it without closureInfo, since it looks like kind of a hack
<infinisil>
I see
<infinisil>
Yeah there is a way to do this
<infinisil>
It involves closureInfo (or the exportReferencesGraph it uses), and somehow building a derivation that contains the build-time dependencies
<infinisil>
The latter of which can be mostly achieved by running `env > $out` as the build
tomberek has joined #nixos
<infinisil>
Once you have such a derivation building (which will contain all build-time dependencies as runtime dependencies), you can give that to exportReferencesGraph
<infinisil>
(or closureInfo)
<noonien>
i see, it sounds rather complicated, and hacky, i'm probably better off just using closureInfo
<infinisil>
You can't get around the `env > $out` thing
pmyjavec has joined #nixos
<noonien>
hmm, i'm not sure if i explained correctly, i need the runtine dependencies, not build dependencies
<noonien>
i'm guessing that's what "propagatedBuildInputs" doesn't work
<noonien>
why*
<pmyjavec>
Hey all, I'm using PRIME as found on this wiki page: https://nixos.wiki/wiki/Nvidia#Nvidia_PRIME, what I don't understand is how to actually run applications with OpenGL? When I try run glxgears for example I get: Error: couldn't get an RGB, Double-buffered visual
<pmyjavec>
Do I need to run the process in some kind of wrapper ?
<infinisil>
noonien: Oh yeah then you don't need the `env > $out` thing. I assumed you were talking about build-time deps
<aiverson>
According to the docs, nix does figure out runtime dependencies by searching through the raw archive for paths in the nix store.
<infinisil>
(runtime dependencies are build-time dependencies that happen to be referenced in $out when the build is done)
<clever>
noonien: you just give it a list of things you want in the squashfs, and it figures out the closure for you
<noonien>
clever: that's awesome!
<noonien>
i'll look into make-squashfs.nix
<noonien>
infinisil: so the actual derivations have to be built, and that's why?
tertl3 has quit [Quit: Connection closed for inactivity]
b7j0c has joined #nixos
<infinisil>
yup
<Keith[m]>
is there any way to make ghc aware of xmonad and it's extensions? I'd like to be able to use ghc to check my config
<noonien>
clever: i'm building a language evaluator, something similar with https://github.com/tilpner/qeval, it would have been great to know the full dependencies in nix, then perhaps i could create a base squashfs with the common dependencies between all images i need, and then only have extra ones in their own image
<infinisil>
Has 50% chance that hello is a runtime dependency :)
delli3 has joined #nixos
<clever>
noonien: nix wont allow a path to exist without its deps though
<noonien>
infinisil: and the actual derivations start with the root is evaluated i'm guessing, right?
<b7j0c>
hello. when I install perl with `nix-env -iA nixos.perl`, and then install something like the the JSON package with `nix-env -iA nixos.perl530Packages.JSON`....I cannot load the package with `perl -e 'use JSON'`
<noonien>
clever: i plan to use these images in a firecracker microvm, i probably won't have nix inside it
<b7j0c>
I will get a message about my `@INC` for perl and it doesn't include the path where the package was installed
<clever>
b7j0c: you must use perl.withPackages to merge the libraries into the main perl
<ryantm>
aiverson: That's just my bot doing trivial version bumps. I don't have any special knowledge about it. Did you try adding libGL to the build inputs?
<noonien>
gchristensen: neat, thanks!
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
aw has joined #nixos
spacefrogg has joined #nixos
<kandinski>
where can I read the nixos manual for unstable? In particular, I'm trying to upgrade a 19.09 system and I have a nonstandard disk layout, so the deprecation of loaOf is refusing tow ork with the layout of my initrd.luks.devices
lovesegfault has quit [Ping timeout: 268 seconds]
<kandinski>
(not refusing: rather, it's warning, but I'd like to fix it anyway)
<pmyjavec>
Is there an easy way I can see my running X11 configuration on nixos?
butterthebuddha has quit [Remote host closed the connection]
<noonien>
i have a 4k external display connected via thunderbolt, it basically kills my iGPU in some cases
<colemickens>
worldofpeace: hey, just saw your comment on the 5.5 PR. I'm just happy to have it in, but I'm a bit confused about workflow.
nikola_i has joined #nixos
<colemickens>
Do certain people have permission to direct commit to master? And when I view the commit in GitHub, it links to a PR, but it's a PR on a fork repo? I don't really understand what I'm looking at: https://github.com/NixOS/nixpkgs/commit/ff54d08dc84474c0cac37116e33619dfa11747b0 -> then click #17 in the commit description
pmyjavec has quit [Remote host closed the connection]
<worldofpeace>
colemickens: I think there's this thing here where people could/would push things directly to master as they please because that is what they've been doing for years. And it just so happens that someone did... exactly that. For me it can be very frustrating because it can undermine contributors contributions without that being the exact intention.
<colemickens>
I really don't mind, mostly just surprised that it's allowed at the GH permission level and then surprised about why GH decided to associate it with a random PR.
<colemickens>
Which I guess aren't questions I expect you to have answers to :)
<worldofpeace>
colemickens: yeah it seems github does weird associations with direct pushes for some reasons, blame it on people's pull bots
<samueldr>
yeah, that last bit is unnerving :(
<worldofpeace>
colemickens: it's an ongoing discussion about direct pushes, and with how nixpkgs culture is changing I can only see it changing a certain way...
pmyjavec has joined #nixos
<pmyjavec>
noonien it's working nicely now, thanks for the help
<noonien>
pmyjavec: good to hear! no problem
<colemickens>
Hm, seems maybe delicate. Is there an RFC about this or somewhere I can read more? I'm sort of optimistic about seeing Nix and NixOS mentioned in more places and am curious about community/culture efforts, this seems relevant.
<samueldr>
colemickens: I guess in this particular case, it's good to see what was different, and pat yourself on the back for doing it exactly the same way
* samueldr
wonders how hard r-ryantm needs to be prodded to do those new kernels and kernel updates
<samueldr>
those updates are pretty mechanical
<worldofpeace>
colemickens: I believe as an RFC that sort of repo access restriction discussion happened a bit at https://github.com/NixOS/rfcs/pull/50, but good luck because of github's magic collapsing
<colemickens>
one of my least favorite github features
<samueldr>
one of the most surprising feature
<worldofpeace>
dtzWil's magical branch of all the fixes 🤣
<samueldr>
it would be better served with a clear indication "this is not part of any branches of this repository"
<aiverson>
ryantm, Adding libGL to the buildInputs had no effect on it.
<colemickens>
I don't think it always works either. I've tried to rely on it previously and had it not work anyway.
<samueldr>
colemickens, worldofpeace, care to continue (with a rehash) in #nixos-dev, where by european time the others will see it and chime in if they need to?
<{^_^}>
#78503 (by bhipple, 3 days ago, open): hexdino: use pname
<colemickens>
I need to hop off for a while and don't have a lot to contribute other than a nod in support of the RFC (I have some thoughts on it too but need to read more to make sure I'm not repeating anything already said and will comment on it if my thoughts are still relevant)
<{^_^}>
#78501 (by bhipple, 3 days ago, open): fetchcargo: use flat tar.gz file for vendored src instead of recursive hash dir
<worldofpeace>
My concern was stepping on contributors toes unintentionally samueldr but it's overlookable in this case because this kernel stuff is better suited for a machine anyways :D
<samueldr>
I hear and agree that it can get a bit chafing to see that whizz through while your PR with discussion is standing
mexisme has joined #nixos
protocol_ has quit [Remote host closed the connection]
<worldofpeace>
I will probably mention it because it's actually something I'm seeing too much, and I've been seeing people's feedback recently that it's a turn off to contributions sometimes
protocol_ has joined #nixos
<samueldr>
and I've seen cases where direct-to-master (direct-to-video when?) pushes have caused some eval or build issues :) those would not necessarily be as tested (e.g. fully built) by ofborg, but at the very least eval'd
protocol_ has quit [Remote host closed the connection]
protocol_ has joined #nixos
andersk has quit [Remote host closed the connection]
<worldofpeace>
hehe, I'm guilty of that a few times actually. but I've been trying to limit much more. problem is some things I actually have/want to direct push, backports.
andersk has joined #nixos
<samueldr>
right, though backports in theory are low impact changes
<worldofpeace>
samueldr: all the kids are onto direct-to-stream these days 🤣
<samueldr>
and the impact should be known
<worldofpeace>
samueldr: but things like backporting a new package, a PR feels more needed. (I've only ever broken eval with those types of changes on stable ☹️ )
protocol_ has quit [Read error: Connection reset by peer]
protocol_ has joined #nixos
<samueldr>
yeah, what I was thinking, but never written down: pushes to release branches may still be needed, or else it's a tarpit for the backports process
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<ryantm>
aiverson: Can you post your custom fork somewhere? Do you have a different derivation too?
<worldofpeace>
right, so at least direct pushes to master could be restricted. won't really mention the staging branches because the process goes down similar to how the backports process is. kinda internal.
<samueldr>
staging is kind of a big PR's staging ground, then staging-next the actual big PR
[Leary] has joined #nixos
mexisme has quit [Ping timeout: 265 seconds]
<ryantm>
samueldr: It's trying to update linux... the last thing it tried to do was update 2020-01-27T07:00:01 linux 5.4.14 -> 5.4.15
Lears has quit [Read error: Connection reset by peer]
<ryantm>
samueldr: but it couldn't find the derivation associated with that.
<samueldr>
ryantm: oh cool, I didn't check and assume
<samueldr>
and introducing new releases?
<samueldr>
I guess that's not really something the bot is ready for?
<ryantm>
Yeah, no hope of that currently.
<ryantm>
If we had some really clear standard for doing it, maybe.
<{^_^}>
#78453 (by wedens, 3 days ago, open): nixos/grub: make memtest work with EFI
bvdw has quit [Read error: Connection reset by peer]
<ryantm>
I'm guessing the problem is that it is looking looking for the exact version it sees at Repology, and someone has already updated it by the time nixpkgs-unstable has a channel update and gets to Repology
bvdw has joined #nixos
nikola_i has joined #nixos
Soo_Slow has joined #nixos
jb55 has quit [Remote host closed the connection]
jb55 has joined #nixos
drakonis has quit [Ping timeout: 252 seconds]
Cale has quit [Ping timeout: 260 seconds]
bhipple has quit [Remote host closed the connection]
protocol_ has quit [Remote host closed the connection]
protocol has joined #nixos
protocol has quit [Read error: Connection reset by peer]
Cale has joined #nixos
fusion809 has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
fusion809 has quit [Remote host closed the connection]
ddellacosta has quit [Ping timeout: 265 seconds]
endformationage has quit [Ping timeout: 240 seconds]
<butterthebuddha>
error: anonymous function at ~/nixpkgs/pkgs/os-specific/darwin/skhd/default.nix:1:1 called without required argument 'Carbon', at /nix/store/vafaz3chgg2gw58a15szd7zv3di08q86-nixpkgs-20.03pre207249.7e8454fb856/nixpkgs/lib/customisation.nix:69:16
<tilpner>
noonien: To allow paths to exist without their dependencies, check bitflip from my NUR repo
nikola_i has joined #nixos
* colemickens
is back to getting stack overflows on nixos-rebuild again
<srhb>
Miyu-saki: Not really. At least, not if you don't know what the deriver is, which you probably don't if it wasn't built locally (it's information from the DB)
mac10688 has quit [Ping timeout: 272 seconds]
<Miyu-saki>
srhb: nix show-deriation is a thing, but I'm not sure if fetches the drv or not. `nix show-derivation -r`
gagbo has joined #nixos
<Miyu-saki>
Nope, it does not, apparently.
<lovesegfault>
Is anyone with the commit bit around?
chagra has quit [Ping timeout: 268 seconds]
ixxie has joined #nixos
butterthebuddha has quit [Remote host closed the connection]
<Miyu-saki>
This is even more interesting than I thought.
<colemickens>
srhb: wooow. you led me to the answer
<colemickens>
srhb: my first google searches failed, but I primed it with "git" and then a subsequent generic search popped this right up: https://github.com/NixOS/nixpkgs/issues/42379
<{^_^}>
#42379 (by erictapen, 1 year ago, closed): stack overflow (possible infinite recursion) depending on type of git checkout
<colemickens>
Thank you! I wouldn't have wound up finding that. That would've been a rough one to sort out.
<Miyu-saki>
`--deriver` and `show-derivation` are giving different outputs. Huh.
<srhb>
colemickens: score for psychic debugging :)
<Miyu-saki>
[myrl@myrl-zenbook:~]$ nix-store -q --deriver $(nix-store -qR /nix/store/45niwgvrim8ra2zykm5881bcchxia27q-firefox-72.0.1 | ag atk) | head -n1
<{^_^}>
[nixpkgs] @knl opened pull request #78757 → perlPackages.TimeDate: fix tests that fail as of 2020 → https://git.io/JvYSR
<turion>
I'm trying to package a Python application. When I just do python3 setup.py install --user, it puts the executable script into ~/.local/bin, but I can't execute that script because it's lacking dependencies (its own library, as it happens).
<turion>
What I'm trying now: Create a default.nix in the repository, and use buildPythonApplication.
<turion>
I can nix-build this, but it doesn't work properly: result doesn't contain any executables it seems, and when I try to add callPackage ./path/to/the/thing/default.nix to my home-manager list of packages, it complains about "The option value [...] is not of type `package'"
<turion>
Where am I going wrong?
<pingiun>
warning: ignoring the user-specified setting 'sandbox', because it is a restricted setting and you are not a trusted user
<pingiun>
should I add myself to a group or something?
knupfer has quit [Remote host closed the connection]
<turion>
I forgot to put brackets around "callPackage foo {}" *facepalm*
<turion>
Now it builds. Still, I don't have the executable in the package. Does nix not execute `python setup.py`? Do I have to somehow tell it specifically which executable to install?
<__monty__>
Weird incompatibility imo. Why would it not work on timestamps pre 1980? That's so arbitrary.
<pingiun>
warning: ignoring the user-specified setting 'sandbox', because it is a restricted setting and you are not a trusted user. how do I become a trusted user?
<turion>
LnL yes :) that's it
<__monty__>
DOS, the gift that keeps giving...
<turion>
Ok, there is a *.whl file in build now
<turion>
Why does it not get installed...
<turion>
Is there any metadata or other attributes that I need to set in order for it to work?
<__monty__>
I doubt meta matters.
<turion>
Is there any way how I can debug this better? Run something with lots of -vvv
<__monty__>
If the package has a custom build process you'd probably have to override the buildphase, I guess.
<turion>
I don't think it really has a custom build process
<__monty__>
A nix-shell where you step through the phases one by one?
<turion>
Yep, that's what I'm trying
<turion>
I can make the .whl file
<turion>
Now I'm not sure how I could reproduce the pip install
<__monty__>
installPhase?
<turion>
I mean, how can I manually reproduce it in a nix-shell
<__monty__>
By running installPhase? I don't know what phase it's normally executed in.
<turion>
How do I run installPhase? I thought that's just an attribute in a derivation
<turion>
pip install should be run in installPhase
fendor has joined #nixos
<__monty__>
In a nix-shell for a package you literally get a command named `installPhase`.
<turion>
Ooohh
<turion>
Ok, I can run pip install dist/foo.whl --user
<turion>
I can't run it without --user because read-only file system
<turion>
Same goes for installPhase
<turion>
should I chroot or something??
<turion>
Oh wow I can do type installPhase to see what it tries to do
<srhb>
turion: You can redefine $out etc. as needed to avoid trying to manipulate the nix store.
<wedens[m]>
turion: you can set `format = "wheel"` in `buildPythonPackage`, btw
<turion>
srhb: Like "out=tmp installPhase"? doesn't seem to work...
<turion>
Ah, it's complaining that $prefix is on a read-only file system
<srhb>
turion: I usually export it before trying to run any of the phases (configurePhase eg. might set some other variables as a consequence of the value at that point in time, say)
o1lo01ol1o has joined #nixos
<turion>
Also, it wants to make a makefile, but echo $makefile doesn't show me anything
<srhb>
turion: When you first start the nix-shell, you may want to echo $phases to see what's going on
<srhb>
turion: Nothing is guaranteed if you don't follow that ordering.
<turion>
wedens[m]: I actually want to do setuptools, I think
<turion>
srhb: Ah... echo $phases doesn't give me anything
<turion>
So far, I only have a default.nix, not a shell.nix, does that change anything?
Makaveli7 has quit [Quit: WeeChat 2.7]
<__monty__>
turion: You're not doing nix-shell -p, are you?
<srhb>
turion: It shouldn't if the result is some mkDerivation {}
<turion>
(And btw. all tests seem to run fine. I can see their output when building the derivation)
<turion>
__monty__: Oh, yes I am... because pandas and pip and so on
<__monty__>
turion: Just do `nix-shell`. The buildinputs should be handled by the derivation.
<turion>
srhb: It's {}: buildPythonApplication {...}, that should translate into mkDerivation eventually?
<turion>
__monty__: Oh wow. A lot happened. First, echo $phases is still empty. But maybe that doesn't matter because I'm now in a shell where I have access to that executable
<__monty__>
Hmm, weird.
<__monty__>
I expected the opposite to happen >.<
<turion>
:D
<turion>
Gahh, how do I open the same shell from another directory?
<__monty__>
Pass the path to the default.nix
<turion>
I don't understand
<CRTified>
If I set users.motd in multiple modules, it will only use one value. Is there a way to compose it? And if so, in what order will it be composed?
<turion>
I'm trying nix-shell ~/path/to/foo, but from a different directory
<__monty__>
turion: Hmm, maybe it's picking up a default.nix in the PWD?
<turion>
__monty__: Maybe there's a relevant difference between default.nix and shell.nix here?
libbermia has joined #nixos
<turion>
Ok, well I'll just start the shell where it works and then navigate from there to where I need to execute the command...
<turion>
I still don't understand why I can't use the same derivation to install the executable globally
jgeerds has joined #nixos
<turion>
Maybe I need to return not the derivation, but one of its attributes? Like .env?
<__monty__>
turion: Well it's really weird that you get the executable when starting a nix-shell. Normally that's where the phases are run from to produce the executable. So maybe because there's no phases the executable never gets copied to $out.
troydm has joined #nixos
<turion>
Yes... almost as if my package was a dependency to itself..?
<magnetophon>
How do I use a function that is defined in interactiveShellInit in another function in interactiveShellInit? I get "command not found:"
Makaveli7 has quit [Client Quit]
<clever>
magnetophon: check what order they appeared in, within the generated files
nikola_i has quit [Ping timeout: 260 seconds]
<magnetophon>
clever: I didn't know the order mattered at all in shell. Shall I try to define the called function before I call it?
<__monty__>
Shell is like most interpreted languages.
<magnetophon>
__monty__: I'll take that as a yes. Thanks!
<clever>
magnetophon: you can use mkBefore and mkAfter in nix, to control what order things get emited, if your assigning interactiveShellInit several times
<srk>
astk: callCabal2nix example - nixpkgs.haskell.packages.${compiler}.callCabal2nix "reactive-banana-automation" ../git/reactive-banana-automation { };
<srk>
you can either use the default which is haskellPackages or specify compiler e.g. haskell.packages.ghc882
noudle has quit []
Chiliparrot has joined #nixos
<boeg>
Hi so I'm looking into using nix on arch os for development environments. So say I want to set up an environment with postgres - I guess since postgres runs as a service on the system, not just normally executed, two different environments with postgres wouldn't be isolated from each other? Would they not interfere?
<boeg>
arch linux *
<astk>
srk, is that to be typed at the command line?
<siers>
boeg, you can't have nixos services without nixos, since you're running nix on an other OS, I don't think
<boeg>
siers: alright, thats what i thought
<srk>
astk: usually part of default.nix, you can also test it in nix repl
<srk>
astk: from default.nix you either use callPackage pointing to your-project.nix which you can generate with cabal2nix . > your-project.nix or you skip the manual step and use callCabal2nix which does it for you
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<markusl2ll>
hi! I'm a nixos noob and have set the "nixpkgs.config.allowUnfree = true;" in the configuration.nix, but still, I get the same error (of the variable being not set) when installing proprietary software
wavirc22 has joined #nixos
<markusl2ll>
using NIXPKGS_ALLOW_UNFREE=1 in front of nix-env works
<andrewrk>
I just updated to 20.03pre210639.e59dcf8ccec (Markhor), and now when using cmake to configure my project, I get this: https://clbin.com/aDzrK
<andrewrk>
"The CMAKE_C_COMPILER /nix/store/382vgzzm7xrkqfply7y1h3fn03hp68m5-gcc-wrapper-7.4.0/bin/gcc is not a full path to an existing compiler tool."
<andrewrk>
"The C compiler identification is unknown"
<andrewrk>
this is in a nix-shell with cmake
<tilpner>
markusl2ll: nixpkgs.config only applies to the pkgs you use in your configuration.nix, not to nix-env
<andrewrk>
ok never mind, what actually happened is that a command I ran to remove a directory did not work, and I didn't notice
<tilpner>
markusl2ll: There's another config file that applies to nix-env, ~/.config/nixpkgs/config.nix IIRC
<markusl2ll>
tilpner: ah, thank you very much!!
<tilpner>
markusl2ll: You can share one file between both, if you want
<tilpner>
So your settings don't get out-of-sync
wavirc22 has quit [Ping timeout: 265 seconds]
<markusl2ll>
tilpner: since I use home-manager, I guess it's "idiomatic" to set that file from there?
<tilpner>
No idea, I don't use HM
<markusl2ll>
I'm using nixos with home-manager for multiple machines
<markusl2ll>
right
<tilpner>
I would expect HM to have a better solution though
<markusl2ll>
but thank you very much
sigmundv__ has quit [Ping timeout: 268 seconds]
wavirc22 has joined #nixos
<astk>
srk: how do i use callCabal2nix with a cabal.project file?
<astk>
but i dont understand all this call self.super stuff..
drew_b has joined #nixos
<astk>
whats overrides?
<astk>
clever*
wavirc22 has joined #nixos
fendor has quit [Ping timeout: 246 seconds]
<astk>
is it saying something like "the cabal.project file is pointing to packages that are via .cabal files, replace these with the nix version generated by callCabal2nix" ?
nikola_i has quit [Ping timeout: 260 seconds]
<OmnipotentEntity>
Anyone around who's used CUDA? I'm having some trouble getting all of my ducks in a row, apparently. I'm going through grahamc[m] 's CUDA github page, https://github.com/grahamc/nixos-cuda-example , but when I attempt to compile using the provided nix-build command I get a linker error vs cublas (which should be part of the cudatoolkit?)
wavirc22 has quit [Ping timeout: 260 seconds]
<srk>
astk: more like add these to the set of existing packages
<astk>
did you test to see that CUDA is properly set up?
<srk>
or replace existing
<srk>
astk: adding packages via overlay is better in case they depend on each other as you don't have to pass dependencies explicitly
<astk>
srk: so i have to kind of copy the contents of the cabal.project file into the default.nix with callCabal2nix for each .cabal file?
wavirc22 has joined #nixos
<astk>
srk: oh, how do i do that?
<srk>
astk: yes, you just list them in the overlay :)
<astk>
whats this "overlay" ?
<srk>
,overlay
<{^_^}>
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
<srk>
^^
<astk>
would you be able to link a default.nix that could compile the rotate project?
<xa0[m]>
hey, question, what actually is the difference between buildInputs, nativeBuildInputs and propogatedBuildInputs?
<astk>
or should i just try to modify the one from the macho tool example?
<{^_^}>
[nixpkgs] @jonringer pushed commit from gauvain@govanify.com to master « vimPlugins.vim-prosession: init at 2019-11-01 »: https://git.io/JvYjR
endformationage has joined #nixos
<clever>
astk: i try to limit the vm to a single adapter, but i do sometimes change what mode its in (bridged or nat)
<clever>
astk: the guest network may need to be bumped (or just fully reboot) when changing the mode
markusl2ll has quit [Quit: leaving]
wavirc22 has quit [Ping timeout: 268 seconds]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<astk>
yeah, tried that, not works
<astk>
gave up
[Leary] has joined #nixos
<clever>
astk: how does it not work?
wavirc22 has joined #nixos
<astk>
now it says; error: anonymous function at ...allowUnfree ...
Lears has quit [Read error: Connection reset by peer]
isHavvyGhosting has joined #nixos
<astk>
if trying to use the addaptor from within a running session after having changed its mode from NAT to Bridged, after disconnecting and reconnecting it, it does not have the right ip addr
<astk>
which should be something like 198... and its 127..
<astk>
if trying to close the session and change to Bridged and then start the machine, it crashes and wont start
<astk>
complaining about having a bad network addapter
<astk>
but what about this "called with unexpected argument 'allowUnfree', at" error?
wild_buffalo has quit [Quit: WeeChat 2.3]
bvdw has quit [Read error: Connection reset by peer]
<clever>
astk: can you paste the full error message?
<clever>
astk: oh, you can also use `nix build -f . rotateUse`
<clever>
astk: that will give nicer progress information
orivej has quit [Ping timeout: 272 seconds]
astk has quit [Ping timeout: 260 seconds]
WinchellsM has joined #nixos
<WinchellsM>
Has anyone here used nix-bundle to convert nix expressions into static binaries (runnable on machines without nix)?
<clever>
WinchellsM: yes
<infinisil>
,ask
<{^_^}>
Just ask your question. It's the best way to know if anybody can help. Or look at other ways of getting in touch with the Nix community here: https://nixos.wiki/wiki/Get_In_Touch
<WinchellsM>
clever: Did you ever run into "execvp" errors on the binaries generated?
<clever>
nix will build all deps automatically for you
<astk>
right, but its trying to use 2 different builds of the same thing?
dashkal has quit [Ping timeout: 260 seconds]
<clever>
yeah, thats weird
<clever>
ive never seen haskell do it in this weird way before
wavirc22 has joined #nixos
<clever>
astk: what is the 2nd string of garbage, after the + char?
<astk>
!? your asking me?
<astk>
its my second day using nix
<clever>
astk: thats a haskell question, ghc-pkg does that on every os
nikola_i has quit [Ping timeout: 245 seconds]
bgamari_ is now known as bgamari
<astk>
well even so, i have no clue
<astk>
aha!!
<astk>
it could be a backpack problem
<astk>
i did;
<astk>
cabal v2-run rotateUse
<astk>
and it says;
cosimone_ has joined #nixos
<astk>
Configuring library for rotate-0..
<astk>
cabal: Your compiler does not support Backpack. To use this feature you must use GHC 8.1 or later
<clever>
astk: nixos wont have a ghc in $PATH by default
<astk>
GHCi, version 8.0.2
<clever>
oh, one sec...
<clever>
for me, i used ghc 8.6.5
<clever>
so thats not it
cosimone has quit [Ping timeout: 248 seconds]
cosimone_ is now known as cosimone
<astk>
hmm
wavirc22 has quit [Ping timeout: 260 seconds]
<astk>
obviously i would hit an unknown incomprehensible error on my second day
<clever>
astk: i think we want to ask #haskell about the error
<{^_^}>
[nixpkgs] @grahamc opened pull request #78781 → gnugp22: try to fix dates (r13y) → https://git.io/JvOfI
<astk>
ok
lord| has quit [Ping timeout: 268 seconds]
wavirc22 has joined #nixos
orivej has joined #nixos
dashkal has joined #nixos
Lears has joined #nixos
[Leary] has quit [Read error: No route to host]
wavirc22 has quit [Ping timeout: 265 seconds]
elibrokeit has quit [Quit: A random quit message]
iqubic has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
elibrokeit has joined #nixos
endformationage has quit [Ping timeout: 240 seconds]
wavirc22 has joined #nixos
nikola_i has joined #nixos
astk_ has joined #nixos
<astk_>
whats the code koz?
<astk_>
i cant find it in the scrollup
astk has quit [Ping timeout: 260 seconds]
acarrico has quit [Ping timeout: 240 seconds]
opthomasprime has left #nixos [#nixos]
<astk_>
oops wrong channel...
<astk_>
clever: could it be something to do with needing to tell nix which dependency to use?
<gchristensen>
dream: in my editor hacking on a Nix expression. I add a fixed-output derivation and don't specify the hash, run :tofu, and have `sha256 = "the-hash";` magically inserted
magnetophon has quit [Remote host closed the connection]
<simpson>
I would like that. I would also like it, though, if there were tooling that interacts with existing signatures from upstream. (And sorry, I know this has been discussed before.)
wavirc22 has quit [Ping timeout: 240 seconds]
<astk_>
also, how do i get nix to use the more up to date ghc?
<simpson>
TOFU is quite good, but it leads to the occasional top-of-Lobsters rant about Nix impurities~
ddellaco1 has joined #nixos
<clever>
astk_: replace `haskellPackages` with `haskell.packages.ghc881`
<gchristensen>
simpson: agreed
<astk_>
in "haskellPackages.override" ?
wavirc22 has joined #nixos
chloekek has joined #nixos
<clever>
astk_: yep
ddellacosta has quit [Ping timeout: 240 seconds]
<charukiewicz>
I'm trying to build the haskell package persistent-mysql from nixos-unstable, but I want to turn off tests. I'm using the following to attempt to override doCheck but it doesn't seem to work:
<infinisil>
astk99: Check the logs at https://logs.nix.samueldr.com/nixos/ when you're having connections problems. Three people now mentioned doJailbreak
<astk99>
no i didnt see that, i got logged out for a while
<infinisil>
(That's why I'm saying to check the logs)
jgeerds has joined #nixos
<astk99>
so i put that after the = sign on each of the class
tertl3 has quit [Quit: Connection closed for inactivity]
dashkal has quit [Changing host]
dashkal has joined #nixos
<dashkal>
Hello. I'm currently trying to get nix working on top of linux mint with cinnimon as the desktop env. Running on a laptop with hybrid intel/nvidia. Nix installed X11 apps fail, but I'm hacing no problem with apt installed ones. Any idea what I configured wrong?
<dashkal>
NixOS itself did NOT like the laptop. Gave up entirely after a day of fighting with that.
o1lo01ol1o has joined #nixos
<dashkal>
glxgears gives me 'Error: couldn't get an RGB, Double-buffered visual'
<dashkal>
Alacritty gave me 'Error creating GL context; Received multiple errors. Errors: `[OsError("Could not create EGL display object"), OsError("`glXQueryExtensionsString` found no glX extensions")]`'
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<{^_^}>
[nix] @edolstra pushed to flakes « Revive the flake cache »: https://git.io/JvOTj
<WinchellsM>
I installed a nix package via `nix-env -i <package_name>` in Arch Linux, but it's not showing up in my PATH. I assume my PATH has to be modified to include some nix directory?
<dashkal>
myme: Danke. Reading now.
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cust0dian has joined #nixos
mexisme has joined #nixos
mexisme has quit [Client Quit]
cosimone has joined #nixos
Neo-- has quit [Ping timeout: 260 seconds]
drakonis has quit [Quit: WeeChat 2.6]
<dashkal>
myme: Much appreciated. nixGL did the job.
<myme>
Pleasure.
wavirc22 has quit [Ping timeout: 272 seconds]
wavirc22 has joined #nixos
hoobershaggus has quit [Remote host closed the connection]
<aiverson>
It's in a default.nix fetched from GitHub.
<__red__>
any npm/node experts here?
<__red__>
I have no experience in it, but supposedly npm install -g ask-cli was supposed to install a thing globally
<__red__>
but since nixos doesn't allow iunstallation into /nix/store... that's obviously broken
<__red__>
so I ran it without the -g to make it local
<__red__>
and it's sinstalled it node_modules directory
<__red__>
but I don't seem to be able to get the executable to execute
fendor__ has quit [Quit: Leaving]
<tilpner>
aiverson: That could cause lots of unnecessary rebuilds, try to filter out quickly-changing paths
<tilpner>
Or ask in #lorri, they know better than me
<aiverson>
There shouldn't be any quickly-changing paths. It's in a source being retrieved from github using fetchFromGithub. It's sha256 hashed and pinned to a revision. Nothing in there should be changing.
<xa0[m]>
Maybe the wrong crowd to talk this over with, but do any of you fear "distro lockin" with nixos? I like that I can always up and move my system to any new distro, which are usually mostly the same, but with nix I have to fundamantally change so much of my stuff that it might make me stay out of pure laziness
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JvOLo
<asymmetric>
i'm on 19.09, and i tried running unstable.calibre
<asymmetric>
it works fine, but if i try to view PDFs, EPUBs etc with its viewer, there's an error in the console: ImportError: No module named QtWebEngineCore
<drakonis>
xa0[m]: i'd describe the move to changing the way you do things
<drakonis>
rather than lock-in
o1lo01ol1o has joined #nixos
<drakonis>
the traditional distributions give you a kind of freedom to shoot your foot that nix does not
<asymmetric>
i don't understand why the calibre package doesn't fully describe its dependencies, making it possible to run it from a different channel than the rest of my system
<drakonis>
as the foot shooting here has to instead be authorized
<manveru>
xa0[m]: i just don't see much appeal in other distros anymore... after hopping a ton around, they are all just different paintjobs for the same fragile house of cards that could be achieved in relatively few lines of nixos config (relatively :)
<{^_^}>
[nixpkgs] @purefn opened pull request #78786 → dockerTools.buildLayeredImage: store all paths passed in final layer → https://git.io/JvOLd
<drakonis>
traditional distros exist to fulfill specific niches
<cransom>
xa0[m]: i'm not sure i ever understood distro hopping. if one didn't work how you wanted it, you could go to another sure, but then you never learned how to fix it to do what you wanted so you likely never learned teh system or the system was too complex to change.
<drakonis>
after moving into nix, the desire to distro hopping will eventually subside as you end jumping back and forth
<drakonis>
into nix
<drakonis>
because it is far more convenient than your average distribution
<manveru>
cransom: i mostly did it because i didn't dare touching much of the defaults to have less painful upgrades... so you start hunting for the perfect preset that fits you
<cransom>
before i had a nixos focused job, i used whatever linux $work had. that was all the commitment i ever had to a particular distro.
Jackneill has quit [Remote host closed the connection]
<cransom>
manveru: yeah, that resonates. i would be prepared to reinstall a distro whenever it got into a weird state that i coudln't recover from. i don't have that problem now.
<drakonis>
with nix, the concern of the user regarding keeping the system working goes away, as long as they don't have to tread new ground, which then, learning the nix language becomes desirable
<drakonis>
because on average, if something breaks, everyone will see it break when they upgrade
v88m has quit [Ping timeout: 272 seconds]
mDuff has joined #nixos
juliancoffee has quit [Remote host closed the connection]
<dashkal>
How sane is it to setup nixos on a usb disk? Context here is I want something not my main hard drive to contain the experiments until I find a configuration that works with this laptop. Something persistant between reboots.
<dashkal>
The only reason I'm using nix on mint is because, well, it works.
waleee-cl has quit [Quit: Connection closed for inactivity]
<manveru>
usb should work just fine, if a bit slow maybe :)
<cransom>
you'll be sad if you use a dollar store thumb drive, i expect.
<dashkal>
Slow I can tolerate. It's mostly so I can mess with configs and see if I can resolve those last issues. Also so I can reproduce them so I can ask for help properly. "X freezes when I try to reboot it" isn't a very good bug report.
<drakonis>
dashkal: exfat is slow
<drakonis>
and it will probably heckin burn up your flash memory
<dashkal>
Hrm, suppose I could rig something so most of everything stays in a copy-on-write to ramdisk except for /etc/nix*
<dashkal>
Meh, project for another time I suppose.
<gchristensen>
dashkal: what hardware are you running on?
lovesegfault has joined #nixos
<dashkal>
Lenovo P52s
<infinisil>
dashkal: I believe linux caches almost everything in memory already, I don't think it would be that slow assuming you have some RAM
<gchristensen>
looking at the specs, I don't really think you're going to have much troulbe with NixOS working smoothly
<dashkal>
The problems I was running into are all basically around X. Trying to kill X hangs the system. So reboots, for example, always lead to having to hard kill the system by holding the power button.
<gchristensen>
ah, so you've already tried but am having trouble?
<dashkal>
Yes. I gave up and installed mint so I could have a working system. I haven't given up (Barely set up on this distro), but frustration got kinda high.
<gchristensen>
ouch
<dashkal>
I realize my contradiction, what I get for enter-before-editing.
<dashkal>
I'm not given up, but I did need a working system so I just put mint on to get that.
<gchristensen>
you could add a partition and install nixos to that so you can reboot to swap between
<gchristensen>
not ideal but an option
<dashkal>
I doubt I can do that. Is it possible to resize crypto partitions?
<gchristensen>
I wouldn't bet on it
<lovesegfault>
gchristensen: Do you use ZFS on your laptop?
<gchristensen>
I do
mexisme has joined #nixos
<dashkal>
The other issue I have is that I have (and sadly need) win10 on this machine. Need to get dual boot working properly. The systemd-boot instructions lead to a bootloader that couldn't see it. I think I can make grub behave, but hadn't reached that point before the X issues defeated me.
<gchristensen>
oof yeah okay you've got some tough things there
<dashkal>
I think I'll table this for the moment. Try again when I can get two laptops next to each other so I have a working rig to use to look up docs / ask for help. My phone was not cutting it :)
lsix has quit [Quit: WeeChat 2.6]
<dashkal>
I never keep anything vital only on the machine anyway, so wiping is always an option.
<gchristensen>
aye, that will help for sure!
* infinisil
was saved many times by a second machine
<infinisil>
I also have an installation stick ready at all times
<dashkal>
I have one, but it's currently mint flavoured :P I'll fix that soon.
<aswanson>
anyone have experience serving more than one service via nginx on nixos? I'm attempting to serve tt-rss and try out roundcube on my vps and I'm having trouble understanding how to have nix configure nginx to serve the apps at different URIs (nginx newbie)
<andi->
aswanson: just configure different services.nginx.virtualHosts.<name> instances
<andi->
e.g. ….virtualHosts."ttrss.mydomain.local".locations.proxyPass = "http://localhost:1234";
<makefu>
hey i am trying to fix my server and i've booted into a live image, mounted root to /mnt and ran nixos-enter. however i am unable to run nixos-rebuild to change the configuration with the error "error: cloning builder process: Operation not permitted" "error: unable to start build process"
<andi->
and some other ….virtualHosts."roundcube.mydomain.local".locations.proxyPass = "http://localhost:4567";
<aswanson>
andi-: oh, is there no option to say serve one at `https://<domain>/rss` and the other at `https://<domain>/mail`? I have to proxy them to different ports?
<andi->
aswanson: you can do not need different ports. I just did that to illustrate how you would serve two services. You can do that with paths but that is most likely not covered by the default modules of those services.
<aswanson>
andi-: I've been attempting to do that by just copying out the nginx config that's being done in the tt-rss default.nix into services.nginx.virtualhosts but not having luck at serving it at /rss
anderslundstedt has quit [Quit: leaving]
<aswanson>
so far I can replicate what is going in the default tt-rss config but I thought I could just change the location with the index from "/" to "/tt-rss" but that doesn't seem to work
srid-irccloud has joined #nixos
werner292 has joined #nixos
<andi->
aswanson: I can't help you with that... I always google for a while with that rewriting and PHP Magic that is going on there :/
anderslundstedt has joined #nixos
fendor has quit [Quit: Leaving]
werner291 has quit [Ping timeout: 265 seconds]
trevthedev has joined #nixos
werner292 is now known as werner291
<trevthedev>
Good timezone, I was wondering about the Dwarf Fortress package
<trevthedev>
it seems to get it's hashes from a json file, but I don't think that these hashes are the game's binary, is there any way of telling what exactly they are? I really want to get the 0.47.01 update, but have no idea how on earth the DF does things, haha
<trevthedev>
ttps://github.com/NixOS/nixpkgs/blob/master/pkgs/games/dwarf-fortress/game.json the json file i'm referring to^
<fre>
anyone solved the riddle of how to migrate a nix store to a new partition through nixops?
ixxie has quit [Ping timeout: 272 seconds]
<dashkal>
Any suggestions on a reasonably minimal terminal emulator (I used to use urxvt) that can still use the system clipboard (as opposed to cutbuffer only)?
anderslundstedt has quit [Quit: leaving]
<gchristensen>
I don't really know what that means, but I like alacritty :P
<trevthedev>
got lazy and just manually prefetched it, found out what the hashes were based on update script, thanks for pointing me in that direction, haha
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JvOqh
<gchristensen>
encryption would be a good upgrade, but it hasn't been top priority yet :/
kenjis1 has quit [Ping timeout: 260 seconds]
trevthedev has quit [Quit: WeeChat 2.6]
chloekek has quit [Ping timeout: 268 seconds]
mexisme has quit [Ping timeout: 268 seconds]
trevthedev has joined #nixos
<trevthedev>
It may be the migraine but I can't for the life of me figure out how to build a package
* lovesegfault
steals the Nix sources from gchristensen's home
<lovesegfault>
Muahahaha
<trevthedev>
trying to build the Dwarf Fortress package to see if it actually worked or not but nix-build '<nixpkgs>' default.nix just says it won't build
<gchristensen>
lovesegfault: oh ... no .... :| :)
<trevthedev>
error: Please be informed that this pseudo-package is not the only part of
<trevthedev>
Nixpkgs that fails to evaluate. You should not evaluate entire Nixpkgs
<trevthedev>
without some special measures to handle failing packages, like those taken
<trevthedev>
by Hydra.
<gchristensen>
trevthedev: you're trying to build all of nixpkgs. try: nix-build . -A dwarf-fortress
jtojnar_ has joined #nixos
<trevthedev>
error: cannot auto-call a function that has an argument without a default value ('pkgs')
bennofs has quit [Remote host closed the connection]
wildtrees has quit [Remote host closed the connection]
<gchristensen>
eh?
wildtrees has joined #nixos
<DigitalKiwi>
fwiw (little) i've been using native encryption on zfs on linux for a year with no (un)known data loss (but i don't do a lot of zfs send/recv either)
wildtrees has quit [Remote host closed the connection]
wildtrees has joined #nixos
<gchristensen>
DigitalKiwi: oh good to know :)
<DigitalKiwi>
on multiple computers too
<DigitalKiwi>
and a lot of drives
<trevthedev>
man is updating Dwarf-Fortress is a huge PITA
<DigitalKiwi>
well "a lot" being like all of my external drives which is like 5
<trevthedev>
need to update dfhack, TWBT, unf*ck, etc
genesis has quit [Ping timeout: 272 seconds]
<trevthedev>
i give up lol, just gonna open an issue and pray XD