<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JeDid
nexgen has quit [Quit: Leaving]
thc202 has quit [Ping timeout: 250 seconds]
lovesegfault has joined #nixos
<aanderse>
anyone done a sftp jail in nixos? i'm not sure if i'm doing something silly or what, but just wondering if there are any "gotchas" i should be aware of?
foldingcookie has quit [Ping timeout: 250 seconds]
_pash has quit [Quit: leaving]
mmlb has joined #nixos
qubasa_ has quit [Ping timeout: 246 seconds]
lovesegfault has quit [Quit: WeeChat 2.6]
qubasa has joined #nixos
<gchristensen>
on my home network, my laptop doesn't manage (19.09, networkmanager, stock firewall) to get an ipv6 address. my phone and other devices do. any tips? P
colmeka has joined #nixos
<clever>
gchristensen: do you know if the router is using radvd or dhcpv6?
<gchristensen>
radvd
<clever>
thats fairly automated and hard to break...
<gchristensen>
I'm assuming it is a laptop problem ...
<clever>
can you confirm its in the same broadcast domain?
<clever>
gchristensen: use tcpdump to listen for the radvd packets
stzsch has quit [Read error: Connection reset by peer]
<delroth>
I'm trying to setup a buildbot worker on one of my nixos hosts. I'd like to have a user (or just a systemd service) whose environment contains usable build deps for a derivation, e.g. the equivalent of what I'd get with nix-shell. Any idea how to get that done?
<clever>
delroth: it would be best to just configure it to run nix-shell or nix-build directly
<delroth>
I could obviously basically have a systemd service that runs nix-shell and then runs my worker in there, but... that's ugly / impure
<delroth>
I'd like to have the niceties like "nixops deploy new version of the libs? service gets restarted" etc.
<clever>
delroth: why not use nix-build?
<delroth>
where? :-)
<clever>
delroth: just write a nix expression to build the thing, configure nix.buildMachines, and run nix-build
<delroth>
yeah, that would be fine if I didn't already have a buildbot system with 6 build hosts, 5 of which don't run nixos, and pre-existing build recipes
<clever>
ah
<gchristensen>
clever: one like this: IP6 :: > ff02::1:ff7c:31c8: ICMP6, neighbor solicitation, who has fe80::a837:8e58:317c:31c8, length 32 several like this 21:32:20.370587 IP6 fe80::a837:8e58:317c:31c8 > ff02::2: ICMP6, router solicitation, length 8
<clever>
part of the issue, is that libraries dont really work as you would expect when installed
<clever>
so you must do the build under nix-shell
<delroth>
I know, e.g. pkg-config path
<clever>
delroth: also, anything nix does build, will fail if you copy it outside of a nix machine
<delroth>
yeah, that's expected, it's not generating usable artifacts
<clever>
gchristensen: any coming from the source ip of the radvd host?
<clever>
delroth: i would just redo everything to use nix
<gchristensen>
fe80::20d:b9ff:fe49:c0d6 and 2604:6000:e6c9:ea03::1/64 are its IPs, so no
<{^_^}>
[nixpkgs] @jabranham opened pull request #75010 → R: Update CRAN and bioconductor packages → https://git.io/JeDPg
<delroth>
clever: why is nix-shell magic and why can't there be a way within nixos to do what it does and generate me a shell binary with the right environment? intuitively I can't figure out what's the issue
<gchristensen>
I'll traceroute from that side
<delroth>
but yeah, redoing everything to use nix is not an option
<clever>
gchristensen: when you run nix-shell, it will source the setup hooks in each buildInput, which can set env vars
<clever>
delroth: oops, ^
<clever>
delroth: and it will also add every buildInput to the CFLAGS automatically, for use with -I
<delroth>
that seems like something you can put in an rc file and be done with?
<clever>
delroth: youll need to re-implement all of the -I, -L pkg-config, qt, cmake, and other things
<delroth>
why can't you just source the hooks?
<clever>
delroth: at that point, your just re-implementing the stdenv, and nix-shell is a tool to run the stdenv for you
<gchristensen>
fe80::a837:8e58:317c:31c8 is the link-local IP of my laptop
<delroth>
unfortunately nix-shell integrates really poorly with nixos, if it integrated properly I'd probably be fine with that. e.g. if I want to have a script that runs nix-shell -p foo, the build dependencies of foo are not going to be part of my system closure
<gchristensen>
wouldy ou want the build dependencies to be part of the closure?
<delroth>
yes!
<gchristensen>
eh? why?
<delroth>
for example so they don't get randomly garbage collected and have to be redownloaded at arbitrary times
<gchristensen>
because you're developing foo?
<delroth>
yep
<samueldr>
are you looking to get some of the dolphin buildbots running on nixos?
<delroth>
well, it's a build infra system for foo
<gchristensen>
delroth: maybe you'd be interested in github.com/target/lorri
<delroth>
samueldr: you guessed right, I have a new NUC with an AMD GPU and I'm looking at running one of our graphics emulation CI bot on there :)
<samueldr>
great, a concrete example is good to explain others what the requirements could be :)
<samueldr>
(been following you for a bit, so I had a hunch it could be that)
<clever>
gchristensen: you want to be seeing packets like this
<clever>
gchristensen: i caught them with `tcpdump -i enp4s2f1 proto 58 -p -n`
<gchristensen>
hmm okay I was using icmp6, which I assume isn't proto 58. will check
<samueldr>
so it's foreign build system, you need the build deps available within a service, don't care about the binary outputs, but care about *other* outputs (pictures for comparison) or thereabout?
<delroth>
correct
<delroth>
it's frustrating because nix-shell doesn't seem like it's doing so much magic that it would be impossible to generate an rc file at system build time and just use that
<clever>
delroth: nix-shell is generation an rc file automatically, based on the nix expression you give it
lunik10 has quit [Ping timeout: 265 seconds]
<delroth>
but there are missing pieces like properly getting the build transitive closure of a derivation which seem harder than they should maybe be
<delroth>
if I could get the build transitive closure for a derivation that would actually get me 95% of the way -- I could then nix-shell and since the system is pinned to the same nixpkgs then nix-shell wouldn't randomly download things, everything should already be present locally
<gchristensen>
clever: yeah I'm not seeing those /
<delroth>
I have. I'd like to avoid having a daemon for something that is literally static and only changes when I nixops deploy
<delroth>
there is a pretty large set of solutions I can pick from if I'm willing to go with something like that
<clever>
gchristensen: what is your config file for radvd?
h0m1 has joined #nixos
<gchristensen>
if they're static, I think there are build closure tricks
<gchristensen>
clever: on my router I see messages like this: 02:53:58.749903 IP6 fe80::ba27:ebff:fe9b:4a23 > ff02::1: ICMP6, neighbor advertisement, tgt is 2604:6000:e6c9:ea03:ba27:ebff:fe9b:4a23, length 32
<clever>
gchristensen: neighbor advertisement is something different, oh, i pasted the wrong thing above
<samueldr>
delroth: is it something like dolphineEmuMaster.nativeBuildInputs ++ dolphinEmuMaster.buildInputs that you want available in the systemd service?
<gchristensen>
clever: but my laptop is sending the packets to ff02::2:
<dtz>
cinimod`: I think llvm's openmp is usable by adding as a buildInput? That's how it seems to be used in-tree and what I recall-- if you have problems or it is difficult to use that way LMK, sometimes things work better when integrated w/the toolchain
boxscape16 has joined #nixos
boxscape has quit [Ping timeout: 265 seconds]
payas has quit [Quit: Konversation terminated!]
meatcar_ is now known as meatcar
meatcar has joined #nixos
meatcar has quit [Changing host]
[Leary] has joined #nixos
Lears has quit [Read error: No route to host]
boxscape16 is now known as boxscape
o1lo01ol1o has quit [Remote host closed the connection]
fusion809 has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<{^_^}>
[nixpkgs] @Infinisil opened pull request #75031 → Module system improvements for NixOS as a submodule → https://git.io/JeD1r
endformationage has quit [Ping timeout: 268 seconds]
gxt has quit [Ping timeout: 260 seconds]
oida has quit [Ping timeout: 260 seconds]
andreas303 has quit [Ping timeout: 260 seconds]
phreedom has quit [Ping timeout: 260 seconds]
<dansho>
also, what's the difference between 'with' and 'let ... in ...' ?
<dansho>
and what is 'pkgs'? it seems to be optional
kolbycrouch has joined #nixos
nisstyre has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
<kolbycrouch>
How do I make stdenvAdapters work? Specifically makeStaticLibraries. Trying to set stdenv to it like I do with clangStdenv in ends with an infinite recursion error.
<{^_^}>
[nixpkgs] @7c6f434c merged pull request #75004 → vifm: refactor to add a vifm-full package → https://git.io/JeDKc
<vandenoever>
ah, there is now a 'essiv' kernel module, perhaps it's required for LUKS
<__monty__>
,tell dansh `map builtins.isFunction [(x: x) mkShell]` and `map lib.isFunction [(x: x) mkShell]` are enlightening.
<{^_^}>
__monty__: I'll pass that on to dansh
skrzyp has quit [Ping timeout: 265 seconds]
<__monty__>
Oops
<__monty__>
,tell dansho `map builtins.isFunction [(x: x) mkShell]` and `map lib.isFunction [(x: x) mkShell]` are enlightening.
<{^_^}>
__monty__: I'll pass that on to dansho
vandenoever has quit [Ping timeout: 240 seconds]
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
<vandenoever>
Yep, there is a new 'essiv' module that needs to be loaded for LUKS when the kernel is 5.4.
<yorick>
> The systemd service for caddy doesn't have a restart delay
<{^_^}>
undefined variable 'The' at (string):271:1
<yorick>
instantly hit the acme ratelimit for this week
skrzyp has joined #nixos
jgeerds has joined #nixos
<dansho>
o_O
<{^_^}>
dansho: 4 minutes, 20 seconds ago <__monty__> `map builtins.isFunction [(x: x) mkShell]` and `map lib.isFunction [(x: x) mkShell]` are enlightening.
zupo has joined #nixos
<__monty__>
dansho: Hmm, {^_^} forgot my first message I guess.
<__monty__>
dansho: Hmm, interesting, `isFunction = f: builtins.isFunction f || (f ? __functor && isFunction (f.__functor f));` I guess you stumbled upon an implementation detail. Afaics this is to make it possible to create functions matching on an attrset dynamically.
<{^_^}>
nix#3256 (by ocharles, 2 minutes ago, open): "numeric field did not have utf-8 text" when using fetchTarball
cinimod` has joined #nixos
m0rphism has joined #nixos
turbo_MaCk has joined #nixos
ng0 has joined #nixos
<{^_^}>
[nixpkgs] @filalex77 opened pull request #75042 → oq: init at 0.2.1 → https://git.io/JeD9i
sudoforge has joined #nixos
cinimod` has quit [Ping timeout: 276 seconds]
<turbo_MaCk>
Hi folks, I'm still looking for commiter feedback on this PR https://github.com/NixOS/nixpkgs/pull/73570 it has 6 upvotes and has reviewed and tested by another person who needs it. It should unblock bucke script development on NiOS. Any chance to find someone in here?
amanjeev has quit [Remote host closed the connection]
<kai_w>
I'm trying to package some proprietary software where the installer bails if it can't set the sticky bit. is there any way to permit this in nix?
<kai_w>
Or at least silently swallow the error and fix it later...
<turbo_MaCk>
mananamenos: what is an error you get?
swapgs has quit [Ping timeout: 250 seconds]
swapgs has joined #nixos
swapgs has joined #nixos
bahamas has joined #nixos
<mananamenos>
turbo_MaCk, the moodle service is not inited.`netstat -nlt` does not show a service on port 5555.
<kai_w>
re bits - the installer tries to set setgid on directories, so I think that can safely be ignored. Is there a convenient way to do this, or do I need to write a little C wrapper?
cosimone has joined #nixos
Makaveli7 has quit [Ping timeout: 265 seconds]
<turbo_MaCk>
mananamenos, that service should start after the MySQL or PostgreSQL service starts, do you have one of these running?
<mananamenos>
turbo_MaCk: I have postgresql services, but i have it explicitly in nixos configuration as postgres services. And there is one more that netstat returns which is `tcp6 0 0 :::3306` (i dont know which service is this one)
<mananamenos>
so 3306 probably is mysql after a quick google search
cinimod` has quit [Ping timeout: 268 seconds]
<mananamenos>
turbo_MaCk: i also tried `apachectl start` which errors with this message `AH00543: httpd: bad user name daemon`
<mananamenos>
turbo_MaCk: you're right, removing protocol string it now starts httpd.service, phpfpm-moodle.service and opens port 80. Entering localhost I see moodle's broken page with no css, click log in, it redirects me to http://localhost:5555/login/index.php but the page is not found
<turbo_MaCk>
I also have a feeling that setting up port this way won't work. that's the apaches business to decide on which port it runs
<mananamenos>
ok will try with port
<mananamenos>
*with no port
<turbo_MaCk>
mananamenos, that makes sense. I think that host config is propagated to some permalink generator. just set the host to localhost
<turbo_MaCk>
and by permalink generator I really mean just a global variable that gets used when generating links
<mananamenos>
turbo_MaCk: great, works. Wow, nixos is really amazing :)
<turbo_MaCk>
mananamenos, tada! I'm glad it works :)
<mananamenos>
few lines in configuration.nix and the service is set up. Increible indeed
jgt has joined #nixos
<mananamenos>
turbo_MaCk thank you!
<turbo_MaCk>
mananamenos, few lines of configuration and you have database, apache, phpform and php application working :)
<jco>
Hey! Anyone writing C/C++ with vscode?
<mananamenos>
yeah, really didn't expect there was that services/web-apps that all these heavy (1 hour manual setup requiring apps like moodle, wordpress etc) xD
veske has quit [Quit: This computer has gone to sleep]
rardiol has joined #nixos
<jco>
I managed to install the c/c++ extension but vscode cannot find the include paths
<turbo_MaCk>
jco, I'm not using vscode myself but I would suggest looking into lori and direnv setup - that way you can export env from shell.nix to your editor (some direnv extension to vscode will be needed probably)
<mananamenos>
turbo_MaCk: one more question. I can services.postgresql.enable = false; in my configuration.nix so that the service is not launched on nixos startup. However, later i can do `sudo systemctl start/stop postgresql.service` to start/stop it. I cannot do the same with moodle service. `sudo systemctl start moodle.service` => Failed to start moodle.service: Unit moodle.service not found.
<turbo_MaCk>
mananamenos, try moodle-init
<turbo_MaCk>
systemctl start moodle-init.service
<eyJhb>
What is the best way to include `/nix/store/2nbwflcvvh3a0wmpl3cms3lhjhmskhkq-fzf-0.18.0/share/fzf/completion.bash` into a .bashrc for a user?
<mananamenos>
turbo_MaCk: :) great, found that line systemd.services.moodle-init = {... in the derivation
<jco>
turbo_MaCk: great, I've tried direnv in my setups, going to look into vscode integration
<turbo_MaCk>
mananamenos, exactly... you will need to look into the code from time to time but luckilly the declarative nature of nix will make it easy to navigate in that
<{^_^}>
[nixpkgs] @teto pushed to master « libtermkey: compile with unibilium »: https://git.io/JeDQR
andersea-work has joined #nixos
<andersea-work>
matrix bridge not working atm :(
<andersea-work>
mananamenos: there is no moodle.service. moodle is a web application that runs under the httpd.service
<andersea-work>
mananamenos: are you actually using the moodle service?
<turbo_MaCk>
andersea-work, there is moodle-init service but of course the server is apache so in order to start server one has to start/restart apache
<mananamenos>
I thought this services.moodle = { enable = false;.. } meant that it starts it on nixos starup, but it is not the case :). Can i indicate somehow not to launch it on starup, so i can launch when i need it with `sudo systemctl start moodle-init.service`?
<andersea-work>
turbo_MaCk: yeah, apache should automatically pull that in though. moodle-init is just to initialize state. i think there is a timer that runs too. but to turn the web app on or off httpd.service is the hard switch
<mananamenos>
andersea-work: no just webapp
<andersea-work>
mananamenos: sorry, i meant "webapp" but as in "services.moodle.*"
reanimus has quit [Quit: Logging off...]
<andersea-work>
and cool! i'm glad to hear someone is using it :D
<turbo_MaCk>
mananamenos, andersea-work, yeah that's right... moodle is not server on it's own it's usuing clasic apache+php stack so the HTTP server itself is apache
selfsymmetric-mu has quit [Remote host closed the connection]
drakonis has joined #nixos
order has joined #nixos
<aanderse>
mananamenos: you should access database via `sudo -u moodle mysql -u moodle`
<aanderse>
iirc
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: update list of broken packages »: https://git.io/JeD5a
zupo has joined #nixos
<order>
Hi there guys. I'm new to nixos (and nix), been trying to get hashlink working for creating games. So far I read the manual and figured out that you need to make a default.nix within your target directory and add buildInputs for all the necessary dependencies. It installed fine using all dependencies however I'm unable to run the program outside of a nix-shell session. How to I probably install with a make file if I plan on using it outside of nix-shell? Sorry
<order>
for long message.
erictapen has quit [Ping timeout: 268 seconds]
boi4 has quit [Ping timeout: 240 seconds]
<rsa>
order: add the packages to your user or system environment (i.e. install them)
<order>
Hi rsa yes done that.. My problem now is the program hl is unable to find its own lib file outside of the nix-shell
<order>
"hl: error while loading shared libraries: libhl.so: cannot open shared object file: No such file or directory"
<mananamenos>
aanderse, yes, that was it, thanks. I can see now that moodle database is there. Do you know then i cannot login with initialPassword = "test";virtualHost.adminAddr="test@test.com" via moodle login page?
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JeD5i
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: keep ghc-lib-parser-8.8.1 around »: https://git.io/JeD5P
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JeD5X
<aanderse>
mananamenos: yes you've discovered a shortcoming in the documentation. try with username "admin"
<Shoubit>
order, libraries aren't global with Nixpkgs. You need to tell the executable where they are upon launching, which is generally taken care of by simply building with Nix fully. So you want to look at the Nixpkgs phases and call whatever is appropriate in unpack/build/install/patch/fixup/etc. See https://nixos.org/nixpkgs/manual/#sec-stdenv-phases
<aanderse>
i think that should work
<mananamenos>
no, i've already tried 'admin'. it doesn't
<mananamenos>
:/
<order>
will read up on that and get back to you. Thanks for the help
<Shoubit>
order, I suggest looking for similar projects (or projects using the same language/build tools) that already exist in Nixpkgs and reading their Nix files to get a better idea of how stuff works.
<aanderse>
mananamenos: what does `select username from mdl_user;` say?
ddellaco1 has joined #nixos
<order>
ok, will try and see if I can find something similar to hashlink in the install side
<mananamenos>
aanderse, i don't understand well what mean. My initialPassword is "test", does not have any weird chars
cinimod` has quit [Ping timeout: 265 seconds]
<aanderse>
oh i thought you were just writing "test" as an example, to hide your actual password
andersea-work has quit []
<mananamenos>
aanderse, so adminAttr (i suppose it's email) does not have anything to do with admin in moodle (it is 'admin' as you said). However, UPDATE mdl_user SET password=MD5('test') WHERE username='admin'; solved my problem and i can login now. Anyway, the initialPassword field seems not work in that derivation. Thanks a lot for your help!
<Jarva[m]>
Hey guys, how do you handle language version control within nixos?
<aanderse>
mananamenos: i'm unsure what to say... it worked for me when i initially tried it. i should try it again and confirm your problem so it can be fixed :\ maybe you can create an issue on github and ping me?
<Taneb>
Are there any profiling tools for nix?
<mananamenos>
aanderse, when i change something related this service.moodle and rebuild my nixos, does it throw away all mysql databases, in this case mdl_user and start fresh?
<Taneb>
I've got some nix that is taking 41s to evaluate and that feels far to slow so I'd like to investigate but don't know where to start
<aanderse>
mananamenos: no, the mysql database is considered stateful and will never be removed by nixos
<mananamenos>
ok, then i could be that this morning i had some other password and it was left with it then.
<aanderse>
mananamenos: ah, ok. if you changed "initialPassword" it will have no impact. maybe the documentation should be updated there too
<mananamenos>
the one i dont remember. If remove moodle database and rebuild my nixos and check again if initialPassword with admin as username works, right?
<aanderse>
initial* options aren't great... but in the moodle case you can't install moodle unless you provide a value so there wasn't an option
<aanderse>
yes if you drop the moodle database it should work again
<aanderse>
though if you remove the moodle database you should probably remove /var/lib/moodle as well
cosimone has joined #nixos
<dansho_>
whats an alternative to xfce4-terminal that supports cursor color inverting?
cinimod` has joined #nixos
sam_d has quit [Quit: Bye]
sb0 has joined #nixos
cinimod` has quit [Ping timeout: 268 seconds]
<mananamenos>
aanderse, i've tried it (droped moodle database, removed moodle from /var/libs), rebuilt and yes admin as user + initialPassword works, this is was my bad then. Thank you again :)
<mananamenos>
Sometimes gnome3 desktopManager freezes and the only way to unfreeze it moving the mouse to up-left corner. Does anyone else have this issue?
zupo has quit [Ping timeout: 276 seconds]
dansho_ has quit [Quit: Leaving]
sam_d has joined #nixos
endformationage has joined #nixos
zupo has joined #nixos
gkmngrgn has joined #nixos
sarahzrf has joined #nixos
<sarahzrf>
yo
Ariakenom has quit [Quit: WeeChat 2.6]
bahamas has joined #nixos
cinimod` has joined #nixos
<sarahzrf>
i put nix on my professor's laptop so that i could reproduce my setup there in order to show him my work, but
<sarahzrf>
i tried to have it set up an environment with ihaskell, but during the jupyter setup process, it hits an error while running one of the tests
<sarahzrf>
he is on macos while i am on arch
<sarahzrf>
i don't suppose this is a known problem?
dansho has joined #nixos
<sarahzrf>
i don't have the error on hand :|
<dansho>
(changing to xfce4-14 seems to have gotten cursor inverting, but now there's no compositing so i lost background transparency)
<kirik>
Error loading QML file:file:///nix/store/9jmb4agsxdklncfc1qw6ba89b8ha8a36-plasma-workspace-5.16.5/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/main.qml:25:1:module "org.kde.kirigami" is not installed
ng0_ has quit [Ping timeout: 260 seconds]
<kirik>
worldofpeace: ^ any idea what is happening here?
<kirik>
looks like kirigami has been removed from NixOS some time ago
<kirik>
but this package requires it all of suddent
cosimone has quit [Quit: Terminated!]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
selfsymmetric-pa has quit [Remote host closed the connection]
cinimod` has joined #nixos
fendor has joined #nixos
cosimone has joined #nixos
sarahzrf has left #nixos ["WeeChat 2.6"]
cosimone has quit [Client Quit]
thelegend has joined #nixos
selfsymmetric-pa has joined #nixos
order has quit [Quit: Leaving]
cinimod` has quit [Ping timeout: 268 seconds]
thelegend has quit [Remote host closed the connection]
order has joined #nixos
waleee-cl has joined #nixos
sam_d has quit [Read error: Connection reset by peer]
veske has quit [Quit: This computer has gone to sleep]
cinimod` has quit [Ping timeout: 276 seconds]
Fare has quit [Ping timeout: 268 seconds]
drakonis has quit [Quit: WeeChat 2.6]
nixtacular has joined #nixos
<nixtacular>
i'm creating a derivation using mkDerivation for a tool that doesn't have a configure script. instead, it sets its install dir prefix in the Makefile using an environment variable called PREFIX. what's the best way to set that environment variable inside my Nix expression so that it gets passed to the Makefile?
mariel__ has quit [Remote host closed the connection]
lukash_ is now known as lukash_|away
<timds>
Hi, I'm trying to build a Haskell package with nix (zxcvbn-c) but get the following error: Preprocessing library for zxcvbn-c-1.0.1..Building library for zxcvbn-c-1.0.1..[1 of 1] Compiling Text.Password.Strength ( dist/build/Text/Password/Strength.hs, dist/build/Text/Password/Strength.o )[1 of 1] Compiling Text.Password.Strength (
<timds>
dist/build/Text/Password/Strength.hs, dist/build/Text/Password/Strength.p_o )ld: warning: /nix/store/2a6nv5dyicw1rwhjjylrzffyfn7xlpmm-libiconv-osx-10.12.6/lib/libiconv.dylib, ignoring unexpected dylib fileWarning: the following files would be used as linker inputs, but linking is not being done: dict-crc.hghc: no input filesUsage: For basic
<timds>
information, try the `--help' option.builder for '/nix/store/pspplby5jkr9b33q0bizs59ylhbkkmy3-zxcvbn-c-1.0.1.drv' failed with exit code 1
cinimod` has quit [Ping timeout: 265 seconds]
mariel__ has joined #nixos
<timds>
The Haskell library builds the C library in its Setup.hs pre-configure hook. The cabal C-Sources field should include all the necessary files and I've added an extra "includes" field not currently in the hackage cabal file (as well a custom-setup stanza). Any ideas?
ThatDocsLady_ has quit [Read error: Connection reset by peer]
oxford has quit [Remote host closed the connection]
oxford has joined #nixos
<timds>
Sorry for the error formatting: The main error in the above seems to be "ghc: no input files", as if nothing is being passed to ghc at some point
<{^_^}>
[nix] @edolstra pushed to master « fmt(): Pass arguments by reference rather than by value »: https://git.io/JeDN9
kirik has quit [Remote host closed the connection]
civodul has joined #nixos
<kai_w>
I'm doing something wrong with patchelf --set-rpath. When I inspect the binary with readelf, I have RUNPATH set on my binary, but ldd still reports that the libraries are not found
<kai_w>
if I set LD_LIBRARY_PATH to the contents of RUNPATH, they are all found
<clever>
kai_w: you need to set the rpath of the libraries also
order has quit [Remote host closed the connection]
mexisme has joined #nixos
<{^_^}>
[nixpkgs] @veprbl pushed to master « rivet: fix bug in make-plots »: https://git.io/JeDxB
cinimod` has joined #nixos
domogled has quit [Ping timeout: 268 seconds]
Dil3mm4 has joined #nixos
<Dil3mm4>
Hello there.
Jackneill has quit [Remote host closed the connection]
<Dil3mm4>
What's the proper sub-chan to report a weird jdk issue while building AOSP on nix-os?
cinimod` has quit [Ping timeout: 276 seconds]
knupfer has quit [Ping timeout: 245 seconds]
judson has joined #nixos
<lassulus>
i guess opening an issue on github
<samueldr>
I don't think there is a specific one, but yeah, open an issue in addition to ask here
akamaus has quit [Ping timeout: 240 seconds]
akamaus has joined #nixos
<Dil3mm4>
E
<Dil3mm4>
Gotcha.
<Dil3mm4>
Current nix script https://pastebin.com/xT7YNUvj Error:https://hastebin.com/pecaporapi.bash NixOS version: 19.09.1487.1be199f0594 Happens with whatever ROM I try to build (LineageOS/PixelExperience), building fine over Debian and friends.
<o1lo01ol1o>
clever: thanks, I should really just start grep'ing that repo for keywords before I ask.
<o1lo01ol1o>
clever++
<{^_^}>
clever's karma got increased to 265
cinimod` has joined #nixos
cosimone has joined #nixos
halfbit has joined #nixos
Fare has joined #nixos
cinimod` has quit [Ping timeout: 245 seconds]
Ariakenom has joined #nixos
run500 has joined #nixos
dbmikus has quit [Ping timeout: 265 seconds]
civodul has quit [Ping timeout: 240 seconds]
cinimod` has joined #nixos
erictapen has joined #nixos
<betawaffle>
srhb: one of my co-workers told me "Nix-packaged Kubernetes is broken half the time, and would potentially require us to write our own nix package just to run k8s." and i was told by someone else you might have an opinion on the matter
cinimod` has quit [Ping timeout: 250 seconds]
<srhb>
betawaffle: I definitely do.
<srhb>
First off, it's not sufficiently broken that it renders me unable to use it, so ymmv.
chloekek has joined #nixos
<srhb>
Second, I currently firmly believe that the in-tree k8s module should be simplified to an extent where it's nothing but a typed wrapper over arguments and configs for kubernetes.
<catern>
what kind of breakage is it? I have thought about promoting Nix as a way to get Kubernetes at $DAYJOB (instead of deploying it through dpkg like we do now)
dbmikus has joined #nixos
<srhb>
Any "smarter" module should either live under some other name or out of tree.
<srhb>
betawaffle: So ideally, each component has something like three options at most. Enable, arguments, kubeconfig. Or at least something to that extent.
<srhb>
catern: I'm not aware of any breakage.
Izorkin has quit [Ping timeout: 268 seconds]
<betawaffle>
catern: that's what i'm trying to do too
<catern>
srhb: I thought betawaffle was asking about, like, the Nixpkgs package for Kubernetes, not NixOS wrappers for config
<srhb>
That's what we do.. :)
<srhb>
Oh
<srhb>
In that case it sounds even more bizarre
<betawaffle>
yep, the package, afaik
<srhb>
I've been aware of very very few breakages in the nixpkgs pkgs for kubernetes over the time of using it in production.
<betawaffle>
let me see if i can get any more info out of my co-worker
<srhb>
catern: But yeah, we made a Nix enclave by promoting it as a way to do sane kubernetes deployment.
<drakonis>
manveru: hey, your nix-intro slide set is missing the markdown file for the third set
<o1lo01ol1o>
Does anyone know where nix puts `nginx` config files?
<tilpner>
o1lo01ol1o: Into the store: systemctl cat nginx
<srhb>
o1lo01ol1o: A newlocation for every version :)
<betawaffle>
hmm, now he says he probably just tried to use it on the wrong month, or something
cinimod` has joined #nixos
<tilpner>
o1lo01ol1o: It may be preferable to build the config file directly from your NixOS config, so you don't have to switch and inspect the running service
MinceR_ has joined #nixos
MinceR has quit [Ping timeout: 268 seconds]
<o1lo01ol1o>
tilpner: thanks, I just need to figure out if what's in my config is actually what I want
<srhb>
betawaffle: That does sound likely. We did have one incompatibility at one point last month on unstable though.
<o1lo01ol1o>
srhb: :p
<betawaffle>
but i wouldn't think that'd be an issue if we use nixos releases, which i can't imagine why we wouldn't
<srhb>
betawaffle: But please let me know if you have any thoughts on the matter. I consider it important to get a simplified module in, but I've not done the work yet..
<srhb>
betawaffle: No, it isn't.
cinimod` has quit [Ping timeout: 265 seconds]
<betawaffle>
srhb: in my fresh and uneducated opinion, modules should either be full-featured, or minimal and give you the tools you need to configure it yourself
lordcirth_ has joined #nixos
<betawaffle>
there's nothing more annoying than a module that *almost* supports everything you need
<kleisli>
how can i set the default $PS1 for nix-shells ?
cosimone has quit [Ping timeout: 250 seconds]
cinimod` has joined #nixos
fendor has quit [Quit: Leaving]
mounty has quit [Quit: Konversation terminated!]
nbp has quit [Quit: Lost terminal]
cinimod` has quit [Ping timeout: 240 seconds]
cosimone_ is now known as cosimone
nbp has joined #nixos
<mananamenos>
hi, i have service.moodle.* set up. All the php files are here /nix/store/qljq1hdanmghy6jqqhz5zv125cxlil9d-moodle-3.7.3/share/moodle. This is root's folder, so am i suppose to poke with moodle source code as a user? Is the only way to edit these file is with root?
syzygyzer has quit [Remote host closed the connection]
<waleee-cl>
mananamenos: the /nix/store-path is likely to change at rebuilds (and any changes is wiped away), so that is not the recommended way to change things
vika_nezrimaya has joined #nixos
lunik10 has quit [Ping timeout: 276 seconds]
lunik100 has joined #nixos
<gchristensen>
and /nix/store directories should be assumed to be immutable, as on NixOS indeed they are not writable even as root
lambda-11235 has joined #nixos
<mananamenos>
this is what i dont understand then. Does it make a sense to have moodle, wordpress services if you cannot change anything?
cinimod` has joined #nixos
<gchristensen>
if they need a mutable place on disk, that should be configured in outside of /nix/store
<infinisil>
kleisli: ~/.bashrc should get sourced
<kleisli>
infinisil: it seems bashrc is getting source but PS1 is overwritten afterwards
turbo_MaCk has joined #nixos
<kleisli>
sourced*
<infinisil>
Ah, then it might only be possible with shellHook
vandenoever has quit [Read error: Connection reset by peer]
cinimod` has joined #nixos
LLED2_3 has joined #nixos
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
<{^_^}>
[nixpkgs] @raboof opened pull request #75057 → <!-- Nixpkgs has a lot of new incoming Pull Requests, but not enough people to review this constant stream. Even if you … → https://git.io/JeyeA
<{^_^}>
[nixpkgs] @raboof closed pull request #75057 → <!-- Nixpkgs has a lot of new incoming Pull Requests, but not enough people to review this constant stream. Even if you … → https://git.io/JeyeA
<sondr3>
that PR title
fusion809 has quit [Remote host closed the connection]
<zeta_0>
is there anyone here that can help me with a problem i am having with the nix pkg ihaskell?
<betawaffle>
gchristensen (or anyone else): how does the ro nix store mount thing work? does it switch to rw every time you install packages or build things?
<clever>
betawaffle: it uses a mount namespace to isolate the rw mount to the builder, so its still ro from outside
<zeta_0>
here is the emacs ein(emacs ipython notebook) error:`
<aanderse>
mananamenos: apache httpd isn't that great in nixos. i have an open PR to fix your problem in a more robust way but in the meantime `services.moodle.virtualHost.extraConfig = '' apache syntax here '';
<mananamenos>
aanderse, great thank you very much
cinimod` has quit [Ping timeout: 276 seconds]
<aanderse>
np. when you get what you want working I'd love to see your config and hear all your pain points with the module
<cmacrae>
Hey peeps o/ I'm running into an issue with a nixops deploy (deploying from a darwin system, set up with remote x86_64-linux builders). It's a weird one, and I don't understand the error. It states 'cannot execute binary file', regarding bash. Would someone mind taking a quick look at the log output here? https://git.io/Jeyfm
run500 has quit [Remote host closed the connection]
<samueldr>
the darwin host is trying to run the target (linux) bash, most likely
<lordcirth_>
Yeah, it's trying to run the ELF bash
<samueldr>
/nix/store/506nnycf7nk22x7n07mjjjl2g8nifpda-bash-4.4-p23/bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /nix/store/pnd2kl27sag76h23wa5kl95a76n3k9i3-glibc-2.27/lib/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, not stripped
<cmacrae>
That's what I figured might be happening - thanks the confirmation, people :)
<cmacrae>
There must be an issue with my remote builder config
<clever>
cmacrae: if you do `import <nixpkgs> {}` anywhere, it will default to the host arch
<clever>
cmacrae: which can leak darwin binaries into a linux build
<clever>
cmacrae: did you use --option system?
cosimone has joined #nixos
<cmacrae>
clever: I do `in with import <nixpkgs> {};` at the top of my deployment's 'main.nix'
<cmacrae>
And yes, I'm passing --option system x86_64-linux
<clever>
cmacrae: --option system is what breaks everything
<cmacrae>
Oh... haha
<clever>
cmacrae: you lied to nix, and claimed the host can run linux binaries, so its running linux binaries
<cmacrae>
Ah okay, I see
<clever>
if you want `with import <nixpkgs> {}` to generate linux binaries, use { system = "x86_64-linux"; }
cinimod` has joined #nixos
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<worldofpeace>
kirik: I believe that is a part of qtquickcontrols2
<cmacrae>
clever: Okay, let me give that a shot! I know I'm using nixpkgs.localSystem.system = "x86_64-linux"; in some places
<clever>
cmacrae: thats only for the nixos parts, and they already default to linux in nixops
cinimod` has quit [Ping timeout: 246 seconds]
<cmacrae>
Hmm okay, I must have gotten confused along the way at some point
<cmacrae>
I've just updated the gist to include the `main.nix` that the nixops deployment is using, and the imported `compute/configuration.nix`: https://git.io/Jeyfm
<cmacrae>
Funnily enough, this used to work deploying from a darwin system, but since I upgraded to Catalina and re-installed nix (rather hackily, sadly at the moment) it doesn
<cmacrae>
* it doesn't seem to be working
<clever>
cmacrae: line 11 of main.nix, you can do just net1 = ./net1/configuration.nix
<clever>
cmacrae: domain can be done via defaults._module.args.domain = domain;
<cmacrae>
<3
<cmacrae>
I'm enjoying this!
<clever>
cmacrae: oh, i think i see the problem
<clever>
cmacrae: line 12 of main.nix, is passing pkgs.config to a nixos module
<clever>
rather then the nixos config
<clever>
that breaks everything
orivej has quit [Ping timeout: 252 seconds]
<clever>
cmacrae: same for hardware-configuration.nix, just put a path in the imports, dont import it yourself
<clever>
cmacrae: and instead of _module.args, you can also just define your own custom options
<clever>
cmacrae: if you define config for a machine called "defaults", nixops will apply it to every machine in the cluster
lovesegfault has joined #nixos
<clever>
and _module.args.domain is a normal nixos option, to let you do { pkgs, lib, domain, ... }: in any module
dbmikus has joined #nixos
<cmacrae>
Oh cool! I think I'm sort of getting it
stagboot has joined #nixos
<cmacrae>
Thanks for sharing this, too
tbenst_ has quit [Ping timeout: 250 seconds]
<stagboot>
how to install python packages, eg python3.7-mutagen-1.42.0? nix-env -iA nixos.python3-mutagen did not work.
<clever>
stagboot: nixos.pythonPackages.mutagen
vandenoever has quit [Read error: Connection reset by peer]
vandenoever has joined #nixos
justanotheruser has joined #nixos
lsix has quit [Quit: Leaving]
justan0theruser has quit [Ping timeout: 268 seconds]
cinimod` has joined #nixos
swapgs has quit [Ping timeout: 276 seconds]
swapgs has joined #nixos
swapgs has joined #nixos
swapgs has quit [Changing host]
incognito9999 has quit [Quit: ZNC 1.7.2+deb3~bpo9+1 - https://znc.in]
<stagboot>
clever: ah, thanks. how do you know to put pythonPackages after nixos? and is there one for python3 versions? pythonPackages gave me the python2 one.
<cmacrae>
clever: Hmm, okay perhaps I'm not grasping this. I updated the gist with a 'new-main.nix' to show you what I tried (please do feel free to tell me to hush, if I'm bothering you. I appreciate the help so far)
<cmacrae>
Thanks eyJhb :) Guessing that was on my behalf
Ariakenom has quit [Quit: Leaving]
<eyJhb>
cmacrae: both yes and no, always appreciate the amount of time people put into helping others with NixOS!
<eyJhb>
Just sad I don't have that much time (or skill atm)
<cmacrae>
For sure! I'm in the same position
<HugoB200>
hey i got a nixos on a raspberry 4, is it normal that updating isnt working very well yet? it seems that i can install new packages, but they aren't "installed" or rather "visible" to the user nixos
cinimod` has joined #nixos
<clever>
HugoB200: how are you updating it?
<HugoB200>
i'm updating as normal, nixos-rebuild boot --upgrade
<clever>
HugoB200: is /boot mounted when you run that?
shreyansh_k has quit [Quit: Konversation terminated!]
<HugoB200>
nope, boot isnt mounted
<HugoB200>
i tried to mount FIRMWARE to /boot, but that didnt work
<clever>
HugoB200: then its failing to update the bootloader config, and just boots whatever it last made default
<HugoB200>
ah ok, so i need to manually mount FIRMWARE to /boot so i can update?
<clever>
HugoB200: youll need to figure out how its booting nixos, and mount the right thing to /boot, and fix the configuration to automount it
<fresheyeball>
yeah I was checking em out on amazon
ericsagnes has joined #nixos
dbmikus has quit [Ping timeout: 276 seconds]
<fresheyeball>
I would consider the blue snowball, which I see around and seems good
<fresheyeball>
but I dont want to give up a chunk of desk space either
<clever>
fresheyeball: i know some people that wear a headset like the G533 around their neck, and use normal desk speakers
<fresheyeball>
clever: that's not a great stadegy because if you use desktop speakers in range of the mic, you are going to get major noise cancelling artifacts on video calls
<clever>
fresheyeball: yeah, that happens any time you dont use headphones
<clever>
fresheyeball: though google hangouts has somewhat decent echo reduction
<clever>
but, its server-side echo reduction, so under high latency, it fails
<fresheyeball>
I might do something like this
<fresheyeball>
and kinda hide it up near my monitor back
brightone has joined #nixos
<fresheyeball>
clever: I agree
<fresheyeball>
but that is the service where I was getting complaints
<fresheyeball>
I work remote, and I want the experience of working with me remotely to be excellent
<clever>
i prefer wireless, so i can be even more remote
<clever>
i can just walk up to the kitchen, in the middle of a meeting :P
<fresheyeball>
yeah that's a big plus for sure
<fresheyeball>
still just personal preference, I don't walk around much durring meetings
nixtacular has joined #nixos
pbb has quit [Ping timeout: 246 seconds]
<nixtacular>
if i'm submitting a new package to nixpkgs, do i automatically become the maintainer? if so, should i submit a PR to add my info to the maintainers expression?