<simpson>
Packaging a Haskell library with a Makefile and no .cabal file. I figure that I can turn http://mbays.freeshell.org/pappy/pappy/Makefile into something for the generic Haskell builder somehow?
philr has joined #nixos
zeta_0 has joined #nixos
<simpson>
(The bigger goal is to package this so that tersmu can be unbroken, but given that *that* library *also* has a Makefile and the same upstream author, I'll need to use the same technique on both.)
<jtojnar>
looking at the generic builder source code it relies on Setup.hs
<zeta_0>
what is the command to show my ssh key, i'm setting up a nixos build for my raspberry pi, but i'm not sure what's the correct command to show the ssh key?
rogue_koder has quit [Ping timeout: 260 seconds]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<zeta_0>
i need to past my ssh key into a nix file.
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<jtojnar>
zeta_0 something like `cat ~/.ssh/id_rsa.pub`
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
rogue_koder has joined #nixos
<zeta_0>
jtojnar: thanks, i also tried `ssh-add -L`, but i wasn't sure which part was the ssh key, the `/` confused me.
o1lo01ol1o has joined #nixos
kleisli has joined #nixos
<Church->
Hmm, infinisil what version of nixOS is your settings PR in? 20.03?
<{^_^}>
[nixpkgs] @jtojnar pushed commit from @dasj19 to master « glom: unstable -> 1.32.0 »: https://git.io/JJdZ5
<simpson>
jtojnar++ I also added sourceRoot support to the Haskell generic builder, and combining that with Distribution.Make works. (Or at least it gets me to the next problem: This package doesn't build with newer GHC!)
<dsal>
What's the easiest way to make sure something is running (i.e., supervised by systemd)?
waleee-cl has quit [Quit: Connection closed for inactivity]
slack1256 has quit [Remote host closed the connection]
piq9117 has joined #nixos
la-jesystani has joined #nixos
knerten1 has joined #nixos
<piq9117>
do yall have the recipe for overriding packages from monorepo like persistent? let's say i'm using persistent and persistent-postgresql and I want to override persistent-postgresql and get it from github
mariatsji has quit [Remote host closed the connection]
domdom has joined #nixos
<domdom>
Howdy! Does anyone know what the blessed way is to install multiple compilers at once? i.e. I want to have both clang and gcc, but both try to produce 'bin/cpp' wrappers, resulting in a collision
domdom has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @vbgl opened pull request #95562 → coq: default to version 8.11 → https://git.io/JJdE8
eoli3n has joined #nixos
orivej has joined #nixos
eoli3n has quit [Remote host closed the connection]
<echelon>
pikajude: after trying your suggestion and building from git source, i get.. error: attribute 'mapAttrs' missing, at /nix/store/wydbs7nwx8bq8ampdxpwbd36raydym54-source/default.nix:99:5
eoli3n has joined #nixos
eoli3n has quit [Remote host closed the connection]
xd1le has quit [Remote host closed the connection]
<aveltras>
is there a recommended setup for CI/CD with nix/nixos, i get that hydra is the "flagship" in nixos land but it doesn't seem to handle CD
justanotheruser has quit [Ping timeout: 260 seconds]
mariatsji has joined #nixos
<srhb>
aveltras: I think CD is not talked about as much in Nix land because the CI bit is the only non-trivial part; once your Hydra (or whatever) has succeeded the build, CD is just a single command (say, nixos-rebuild switch with the new commit that CI verified for you)
mariatsji has quit [Ping timeout: 256 seconds]
<aveltras>
i see, thanks for the answer
domdom has quit [Remote host closed the connection]
<gleber>
Anyone have ideas where to get the code of CBDG tool from "Tracing Software Build Processes to Uncover License Compliance Inconsistencies" by Sander van der Burg, E. Dolstra, Armijn Hemel, and others? :)
Dagger2 has quit [Excess Flood]
Dagger2 has joined #nixos
cr4y1 has joined #nixos
cr4y1 has quit [Remote host closed the connection]
hoppfull has quit [Ping timeout: 245 seconds]
hoppfull has joined #nixos
<werner291>
Question: Why does this not work? nix-repl> builtins.fetchGit https://github.com/poliva/broadcom-statar: This does not look like a tar archivetar: Exiting with failure status due to previous errorserror: interrupted by the user
<werner291>
nix-repl> builtins.fetchGit https://github.com/poliva/broadcom-statar: This does not look like a tar archivetar: Exiting with failure status due to previous errorserror: interrupted by the user
<hoppfull>
hello, i have trouble installing nixos. after some investigation it seems that my linksys wireless usb adapter isn't supported by linux. i'm fine with buying a new wifi adapter if i have to but i don't want to waste more time than necessary.how do you know which wireless adapter is supported by nixos?
<hoppfull>
never mind, looking at specs for my wifi adapter and it says it only supports windows. ok that's good to know, had no idea that was relevant posting my findings in here in case anyone is interested
<hoppfull>
never mind, looking at specs for my wifi adapter and it says it only supports windows. ok that's good to know, had no idea that was relevant. posting my findings in here in case anyone is interested
orivej has joined #nixos
hoppfull has quit [Remote host closed the connection]
<werner291>
How can I override properties in boot.extraModulePackages? I'd like to use an alternative source code for broadcom_sta
<werner291>
`boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta.overrideAttrs {} ];` fails because broadcom_sta is apparently not a package?
<{^_^}>
[nixpkgs] @raboof opened pull request #95574 → qosmic: init at 1.6.0 → https://git.io/JJdaw
<hexa->
MichaelRaskin: pretty sure there is some upstream effort going, but if you are talking usb sticks then there are many out of tree drivers floating around on github :<
<{^_^}>
[nixpkgs] @flokli merged pull request #95565 → nixos/systemd.tmpfiles.packages: fix an edge case → https://git.io/JJdu0
<{^_^}>
[nixpkgs] @alyssais merged pull request #82119 → androidenv: use runtimeShell instead of stdenv.shell → https://git.io/JvomC
<{^_^}>
[nixpkgs] @alyssais pushed commit from @lucafavatella to master « androidenv/emulate-app: use runtimeShell instead of stdenv.shell »: https://git.io/JJda6
bqv has quit [Ping timeout: 260 seconds]
bdju has quit [Read error: Connection reset by peer]
bdju has joined #nixos
sangoma has joined #nixos
<{^_^}>
[nixpkgs] @zowoq opened pull request #95575 → cargo-c: fix darwin build → https://git.io/JJdai
bqv has joined #nixos
sangoma has quit [Client Quit]
sangoma has joined #nixos
<Raito_Bezarius>
,escape \
<{^_^}>
Escape this in '' strings with: \
<{^_^}>
Escape this in " strings with: \\
<{^_^}>
[nixpkgs] @alyssais merged pull request #94486 → environment.noXlibs: disable X11 support in cairo → https://git.io/JJV0G
<werner291>
It would seem both should do exactly the same, but the one with the empty override causes an error.
cosimone has joined #nixos
<dutchie>
werner291: the second defines a two-element list, first element the overrideAttrs function and the second element a function returning an empty attrset
<dutchie>
you need to wrap function calls in brackets inside a list
<werner291>
I have this right now: boot.extraModulePackages = [(config.boot.kernelPackages.broadcom_sta.overrideAttrs (old: rec { src = (fetchGit https://github.com/poliva/broadcom-sta.git).outPath + "/broadcom-sta-5.100.82.112/amd64"; }))];
Dagger2 is now known as Dagger
<werner291>
It seems to be trying to untar that directory somehow.
<werner291>
`tar: /nix/store/p34na8c60gwws5il8sbwgs6j9b7ivcpi-source/broadcom-sta-5.100.82.112/amd64: Cannot read: Is a directory`
<werner291>
It does seem that I can just `ls` it, and the files I expect are in there. Can I just skip the untarring step?
<{^_^}>
[nixpkgs] @Mic92 opened pull request #95586 → bitwarden_rs: make EnvironmentFile mergeable → https://git.io/JJdKD
kaivai_ has joined #nixos
<Raito_Bezarius>
I think fetchGit might be downloading the tarball, so if you skip the untar you get nothing
<Raito_Bezarius>
ah
<Raito_Bezarius>
I understand what you mean
<werner291>
Isn't serving tars a GitHub thing?
<Raito_Bezarius>
unpackPhase = '' should do the job
<Raito_Bezarius>
werner291: I might be wrong so ignore my comment on fetchGit downloading the tarball
<Raito_Bezarius>
unpackPhase='' in the overrideAttrs just after src
<werner291>
Oh
<werner291>
Ooooh.... I suppose it does that because the original archive from Broadcom is a tar
<srxl>
Wrote a derivation that uses `gcc49Stdenv`, and I'd like it to work on macOS. Unfortunately, gcc49 is broken on darwin, and this derivation won't seem to compile with any other compiler. Don't suppose there's anything that can be done about this?
<werner291>
Yep, that's it. Thanks.
bqv has quit [Remote host closed the connection]
bqv has joined #nixos
alp has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @stigtsp opened pull request #95587 → perlPackages.DBDMariaDB: init at 1.21 → https://git.io/JJd6z
<{^_^}>
[nixpkgs] @jtojnar pushed commit from @raboof to master « flam3: fix license (gpl3+, not cc-by-nc-sa-20) »: https://git.io/JJdik
knerten1 has quit [Ping timeout: 256 seconds]
<ilyaigpetrov>
Hi. Chromium 84 was released on the 14th of July but yet on Linux Mint 20 with nix (v2.3.7) I can't find the new version in output of the command `nix-env -qa --description '.*chromium.*'`. Why isn't chromium 84 accessible via nix?
sangoma has quit [Quit: WeeChat 2.9]
malook has joined #nixos
sangoma has joined #nixos
<FRidh>
ilyaigpetrov: update your channel if you use one
<ilyaigpetrov>
FRidh: yes, I tried via `nix-channel --update` -- the problem remains.
malook has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @maralorn merged pull request #94251 → haskell-generic-builder: Use args ? attr for passthru (closes #94246) → https://git.io/JJ2kP
<{^_^}>
[nixpkgs] @maralorn pushed 2 commits to haskell-updates: https://git.io/JJdPq
noudle has quit []
<{^_^}>
[hydra] @ehmry opened pull request #800 → Replace bazaar input with breezy → https://git.io/JJdPO
<Raito_Bezarius>
I have a Python script which is using ctypes to get access to some library (gnutls), what is the way to propagate the dep on gnutls?
<Raito_Bezarius>
I tried buildInputs as it is a runtime dep, the script is patchshebang'd, but it does not find the symbols
<Raito_Bezarius>
ah maybe I fucked up the version
<FRidh>
Raito_Bezarius: you need to actually hardcode the path to the library in the python code using something like substituteInPlace / sed / a patch
<Raito_Bezarius>
Ah
<Raito_Bezarius>
Okay, feasible
bqv has quit [Ping timeout: 260 seconds]
bqv has joined #nixos
<{^_^}>
[nixpkgs] @flokli merged pull request #95507 → mesos: remove package, module and test (and chronos/marathon which depends on it) → https://git.io/JJ5AZ
tokudan has quit [Remote host closed the connection]
Poshe has quit [Remote host closed the connection]
<Raito_Bezarius>
How can I debug why services.dbus.packages = [ my-package ]; does not create any /etc/dbus-1/system.d/my-package.conf when the output of "my-package" contains a etc/dbus-1/system.d/my-package.conf?
<ilyaigpetrov>
I'm using nix package manager on Linux Mint 20. `nix-channel list` returns empty list of channels. Which channel should I add? nixos-20.03? How to say if it's compatible with my OS?
<ryantm>
ilyaigpetrov: Using nixos-20.03 would also be okay. nixpkgs is pretty compatible with all linux distros. There isn't a generic nixpkgs "stable" channel.
<ilyaigpetrov>
thank you
<ryantm>
A perhaps better name for nixpkgs-unstable would be nixpkgs-rolling. It's pretty decently stable, in my experience.
<Church->
infinisil: So question on your settings PR when you have the chance. What channel would I need to be on to use it? On nixos and nixpkgs unstabel right now. Master I would assume at this point?
<infinisil>
Church-: For the pkgs.formats thing unstable is enough, the freeform modules are only on master though
<Church->
Huh, so on unstable I get this: `error: attribute 'formats' missing, at /etc/nixos/teleport.nix:5:12`
<{^_^}>
[nixpkgs] @jtojnar opened pull request #95593 → xxe-pe: init at 9.4.0 → https://git.io/JJdMm
tokudan has joined #nixos
<bennofs[m]>
does the cargo support in nixpkgs respect NIX_BUILD_CORES? I don't see it anywhere in the default builder
tokudan has quit [Remote host closed the connection]
<fnlaai>
ain't tutorial or wiki that taught it...
ManiacOfMadness has quit [Read error: No route to host]
sangoma has joined #nixos
<Church->
infinisil: Okay last(last(last)) question I think. :p So module structure, my module is defined as such with some default values outside the settings block. Just wondering the best way to do this, if I should even allow setting default values like that... given I don't tend to use them at all and go straight to the settings block given everything is a config value... https://paste.rs/8Rf where using
<Church->
"error: The option `services.teleport.auth_token' is used but not defined."
<Church->
Which got me thinking if I shouldn't honestly just hardcode some semi-generated defaults, and just have a example for settings. Just enable and settings, that's it.
<infinisil>
Church-: I'm not entirely sure what the question is
<Church->
Yeah let me get back and formulate that more coherently, apologies.
<fnlaai>
ryantm ty ryan, lemme check it
<fnlaai>
omg freaking hard
user_0x58 has joined #nixos
tokudan has quit [Remote host closed the connection]
<Church->
infinisil: So I guess my suggestion is, what's the idiomatic way to use your module? Should I just set some defaults in a module config itself and only have two options. Enable, and settings, where settings presumably overrides everything? Think that's the way I'm going with Teleport, given it seems janky to have nodename, and auth_token and so on options when they're just going to be over-riden by
<Church->
settings most likely.
<Church->
Err, s/suggestion/question/g
<infinisil>
Church-: Are you talking about using both the pkgs.formats and freeform modules?
<infinisil>
Because with freeform modules, you won't have any jankiness with cfg.settings.auth_token vs cfg.auth_token
<Church->
Hmm, I really need to look at free form and take it in
<Church->
Lemme do that before I bother you again. :P
<Church->
Wait yeah, looking at the PR. I'm an idjit
<Church->
infinisil: Okay, that'll do it :p These are some dang nice PR's
<infinisil>
:D
<Church->
infinisil++
<{^_^}>
infinisil's karma got increased to 333
tokudan has joined #nixos
<Church->
infinisil: Realizing I don't need to set my few default options outside of settings so it looks kinda odd :p
o1lo01ol_ has joined #nixos
tokudan has quit [Remote host closed the connection]
__monty__ has joined #nixos
o1lo01ol1o has quit [Ping timeout: 256 seconds]
lsix has joined #nixos
orivej has joined #nixos
tokudan has joined #nixos
<{^_^}>
[nixpkgs] @doronbehar opened pull request #95599 → nixos/mpd: Allow to configure a credentialsFile → https://git.io/JJdSA
override has quit [Remote host closed the connection]
<Church->
infinisil: So last(last(last(last))) question I think :p Spot any issues in my module? Getting an issue of "services.teleport.settings.auth_servers defined in `/etc/nixos/teleport.nix' does not exist." Coming up blank myself. https://paste.rs/2Iu
r0bby has joined #nixos
fnlaai has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peterhoeg pushed to f/emacs « emacs: use autoreconfHook instead of manually invoking it »: https://git.io/JJd9b
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #95601 → emacs: use autoreconfHook instead of manually invoking it → https://git.io/JJd9N
<infinisil>
Church-: Can't reproduce, I get "The option value `services.teleport.settings.auth_servers' in `/home/infinisil/src/nixpkgs/teleport.nix' is not of type `string'."
<Church->
Huh.
<infinisil>
Church-: With the teleport.nix you gave and https://paste.infinisil.com/rFAWzUNeN4.nix as config.nix (then `nix-instantiate nixos --arg configuration ./config.nix -A system` in a nixpkgs master checkout)
stu_[m] has joined #nixos
waleee-cl has joined #nixos
<Church->
Will give that a look then.
<stu_[m]>
Hey, I would like to use a dualshock 4 controller.
<stu_[m]>
Do I have to enable something first to make it work or is there another way to fix it?
<stu_[m]>
On my old arch system it worked perfectly because of the linux kernel dualshock 4 driver, but on my NixOs system it doesnt work.
<stu_[m]>
* Hey, I would like to use a dualshock 4 controller.
<stu_[m]>
Do I have to enable something first to make it work or is there another way to make it work?
<stu_[m]>
On my old arch system it worked perfectly because of the linux kernel dualshock 4 driver, but on my NixOs system it doesnt work.
<Church->
infinisil: Which is odd. auth_servers has an associated option...
<infinisil>
Church-: Only settings.auth_servers though, not settings.teleport.auth_servers
<infinisil>
Which is being assigned in teleport.nix
<Church->
Crud...
<infinisil>
Church-: Why propagate settings.auth_servers to settings.teleport.auth_servers?
<infinisil>
Could instead just define `settings.teleport.auth_servers as an option in the submodule
<Church->
infinisil: Hmm for the settings, what would you think the type should be? Was thinking the best way to do it cleanly would be to make settings.teleport itself a free form module. https://paste.rs/wvt
<Church->
err, the settings attribute.*
<Church->
brb
<nbathum>
setting up cfp for nixcon... somehow the root page loads fine, but the event url fails (accessed through the ssl proxy)
<infinisil>
Church-: Yeah settings itself should have a freeformType, because that's representative of the whole yaml file
<infinisil>
Church-: But I guess you could also make settings.teleport another freeform module structure, same for the others, if that gives some benefit
<infinisil>
nbathum: Oh, online nixcon this year?
<nbathum>
infinisil: yes
<infinisil>
Neat!
<nbathum>
:)
<nbathum>
yes if I could just get ticketing and call for participation opened up
<infinisil>
One needs a ticket to attend?
<nbathum>
it will be pay what you want, with a minimum = 0
<nbathum>
I guess maybe that won't even be enforced, since we're planning to stream it on the website
<nbathum>
implementing auth against tickets might be "extra work"
<{^_^}>
[nixpkgs] @Ma27 merged pull request #95109 → nixos/nextcloud: add documentation for alternative reverse-proxies → https://git.io/JJD2D
<infinisil>
I see, I feel like a generic donation button might be easier
<nbathum>
it'd just be nice to get a solid idea of attendance, for resource planning
<nbathum>
:+1:
<infinisil>
nbathum: Regarding your nginx problem, try adding a "/" to the end of the proxyPass value
<nbathum>
okay. it appears the same
<infinisil>
nbathum: Checked nginx logs?
<infinisil>
And logs of whatever it gets proxied to
<{^_^}>
[nixpkgs] @jonringer merged pull request #95591 → python3Packages.uvloop: disable test_write_to_closed_transport test on 3.8+ → https://git.io/JJd1l
<{^_^}>
[nixpkgs] @jonringer pushed commit from @mweinelt to master « python3Packages.uvloop: disable test_write_to_closed_transport test on 3.8+ »: https://git.io/JJd7w
<nbathum>
the nginx error log doesn't seem to get messages from this. which makes sense if problem is that I have it misconfigured that some kind of nginx error
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.ase: 3.19.2 -> 3.20.1 »: https://git.io/JJd7Q
jessa^22 has joined #nixos
<nbathum>
I mean, maybe the problem is in the app? (pretalx). I did the init and event setup through an ssh tunnel, so I was accessing the app (running as http) directly. and that worked fine
<infinisil>
nbathum: Oh that looks like an app error
<{^_^}>
[nixpkgs] @vcunat pushed to master « qemu: fix build with environment.noXlibs = true »: https://git.io/JJd53
cosimone has quit [Quit: Quit.]
alp has joined #nixos
lsix has quit [Quit: WeeChat 2.9]
<bqv>
Oh, settings was merged
<bqv>
Neato
philr has quit [Ping timeout: 264 seconds]
<Church->
infinisil: So maybe I'm missing something... https://paste.rs/XZM when using it complains that "error: The option `services.teleport.settings.freeformType' defined in `/etc/nixos/teleport.nix' does not exist." am I still misusing Free Form modules somehow?
<Church->
nbathum: When is the con? Should attend one finally.
<chreekat[m]>
Hm, why is nix-channel --update failing with ~~ AWS error fetching 'wf5lv925ns8pbj9nvl471zmcvmd3m17m.narinfo': Access Denied
<infinisil>
Church-: options.teleport =
<infinisil>
Forgot the options. part
<infinisil>
Same for nodename = -> options.nodename
<chreekat[m]>
oh, perhaps because that's a package from the store that's behind the employer's vpn 😀
<Church->
Grumble. So when I do that, I get "error: Module `:anon-1:anon-1' has an unsupported attribute `freeformType'. This is caused by introducing a top-level `config' or `options' attribute. Add configuration attributes immediately on the top level instead, or move all of them (namely: freeformType) into the explicit `config' attribute."
<Church->
Which is somewhat unclear... kinda grok it?
jessa^22 has quit [Quit: Oh my God, why woman was easily to deceived and successfully tempted, then she became the tunnel of all sorts of sins. Adam was only her implicated. OMG nowadays many men impersonate the wicked deceiver to deceive woman online. Why? Brought to you buy 1]
niso has quit [Remote host closed the connection]
<bqv>
Huh, so the settings rfc is all but done
<bqv>
Awesome
<infinisil>
Church-: Then you're not using a nixpkgs version with freeformType supported
shabius_ has quit [Quit: Leaving]
<infinisil>
bqv: Pretty much yeah, everything necessary is implemented :)
<infinisil>
The RFC will be changed to "everybody, stop using extraConfig when settings can be used instead"
<Church->
infinisil: Huh... would I need to use master? On unstable currently.
<infinisil>
Always using `nix-instantiate --eval` instead
<dsal>
I'm running NixOS in AWS. My instance is too small to build my software, but I want it to run my software. I don't currently use nix-build to build things, but there seems to be a reasonable shortcut for haskell projects. Short of understanding all of nix, is there a reasonable path to getting my software running on a small system that can't build it?
<bqv>
infinisil: that's what i do too (ish), currently, but it'd be nice to be able to explore stuff with a repl
<infinisil>
dsal: Or alternatively you could use a deployment system like nixops to build the machine locally and push the result to the target machine
<infinisil>
dsal: I guess the alternative of using a Nix substituter/cache works kind of like that. E.g. https://cachix.org/ . You'd make sure that whatever /nix/store path the target machine needs is built and pushed to the Nix cache and that it can substitute from it
<infinisil>
dsal: Or actually even simpler for one-time use: Just build the derivation you need locally, then push it to the target machine with `nix-copy-closure`
<dsal>
Oh neat. Sounds like I have a lot of options. "Just build on the little instance" is apparently not one of them as I learned overnight. :)
<lisovinvlad>
nonymous function at /etc/nixos/configuration.nix:1:1 called with unexpected argument 'lib', at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:224:8
<infinisil>
lisovinvlad: It should be `{ pkgs, ... }:` at the beginning. But also, how are you using this file?
<{^_^}>
[nixpkgs] @jonringer merged pull request #95608 → [20.03] python3Packages.uvloop: disable test_write_to_closed_transport test on 3.8+ → https://git.io/JJdFj
<{^_^}>
[nixpkgs] @jonringer pushed commit from @mweinelt to release-20.03 « python3Packages.uvloop: disable test_write_to_closed_transport test on 3.8+ »: https://git.io/JJdby
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<blueberrypie>
Sorry if this is obvious. I'm very new to NixOS. I'm trying to use a custom device tree overlay (using "hardware.deviceTree.overlays"). I specify the full path to the dtbo file but I get a bunch of errors saying that there's no file at that path even though there definitely is.
<blueberrypie>
I think I might need to do something so the Nix build system is aware of the file but I'm not sure what.
<infinisil>
blueberrypie: Use `overlays = [ "${/path/to/file}" ]`
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @voidIess to master « geogebra 6 : init at 6-0-598-0 (#95422) »: https://git.io/JJdN2
mariatsji has quit [Remote host closed the connection]
stephaneyfx has joined #nixos
spudly has quit [Ping timeout: 264 seconds]
spudly- is now known as spudly
proofofkeags has quit [Remote host closed the connection]
zupo has joined #nixos
abathur has quit [Ping timeout: 240 seconds]
<dsal>
I need to figure out what's overwriting my configuration.nix at every reboot.
<hexa->
are you on an rpi?
griff_ has joined #nixos
<dsal>
This is the AWS instance. I just grepped the whole machine and found some kind of weird startup thing that references an old userdata that overwrites and switches if it finds it.
euandreh has quit [Read error: Connection reset by peer]
<clever>
dsal: it should stop if you clear the userdata on the instance
<dsal>
I hoped that would be the case.
<dsal>
It just gets an older version.
mariatsji has joined #nixos
<dsal>
I originally tried updating it to the latest version I want. Then I deleted it. My latest configuration.nix has a vpn server running, so when the box comes up, I see my VPN connect and then disconnect.
orivej has joined #nixos
mariatsji has quit [Ping timeout: 264 seconds]
<nbathum>
infinisil: thanks for reinforcing the idea that it was an app issue!
<nbathum>
indeed I had misconfigured the base site url
<{^_^}>
[nixpkgs] @alyssais pushed commit from @buffet to master « kak-fzf: 2019-07-16 -> 2020-05-24 »: https://git.io/JJdhT
<jared-w>
veleiro: nix-shell can do a lot. It's not super great at "globally" dealing with resources that aren't symlinks, though (since that's more or less all it does). You can abuse shellHook to do things on entering a shell, but I don't know of any sane way to cleanly tear down resources when leaving a shell. Unless I'm missing something?
<stiell>
I'm trying to build an SD image (based on nixpkgs/nixos/modules/installer/cd-dvd/sd-image-raspberrypi4.nix), but without services.mingetty.autologinUser. If I set this to null in the config file, I get "The option `services.mingetty.autologinUser` is defined both null and not null". How do i import the rest of the options while overriding this specific option?
<samueldr>
stiell: the _installer_ profiles are not for general all-purpose uses, at any point in time they could blow up your system :)
<drakonis>
veleiro: you can use systemd-nspawn or podman for containers
Darkmatter66_ has quit [Ping timeout: 240 seconds]
<drakonis>
i'm running my non nix things inside a nspawn container
<stiell>
samueldr: Looks like that begs the question. I know where to download an image for rpi4, but I want to build one with a different config, as it's a pain to have to set up this on the rpi itself, especially when the prebuilt image has the wrong keyboard layout (for me).
griff_ has joined #nixos
<samueldr>
if the intent is to produce an image that's not the nixos installer, then I don't have any ready-to-use solution at hand
<MasseGuillaume>
When I run `sudo nixos-rebuild switch --upgrade` I'm still at the old version
<samueldr>
the raspberry pi 4 is hard to support when comparing to all the other SBCs
<samueldr>
if you want to produce an installer image, then you were likely to be on the right path
<samueldr>
(to force a value of an option, in the modules system, you can use `lib.mkForce`)
<samueldr>
MasseGuillaume: just validating, # is because you ran those commands as root?
<MasseGuillaume>
ha sorry the formatting is messed up
<scoates>
I keep running into a problem where something (not clang; in this case pipenv) is trying to build, within a nix-shell, clang doesn't work how it seems it should. In this case: `fatal error: 'CoreServices/CoreServices.h' file not found` ; is there somewhere specific I should read? Looks like lots of old/broken info in searches.
<scoates>
oops; rephrasing:
<scoates>
I keep running into a problem where something (not nix itself; in this case pipenv) is trying to build, within a nix-shell, clang doesn't work how it seems it should. In this case: `fatal error: 'CoreServices/CoreServices.h' file not found` ; is there somewhere specific I should read? Looks like lots of old/broken info in searches.
<energizer2>
i installed some new ram and now my boot drive isn't detected. idk how to reason about these problems but if anybody has tips i'm all ears
Church- has quit [Ping timeout: 260 seconds]
<pie_>
is it detected if you remove the ram
<pie_>
did you remember to plug the drive back in after disassembling youre laptop entirely
<energizer2>
its a deskto
<energizer2>
p
<{^_^}>
[nixpkgs] @jonringer pushed 5 commits to python-unstable: https://git.io/JJFen
<samueldr>
hmm... never had to deal with a .drv file directly, right now I have an out-of-store .drv file and I wondered how I can go about building it
MasseGuillaume has quit [Remote host closed the connection]
<energizer2>
nix-store --realise my.drv ?
sangoma has joined #nixos
<samueldr>
path '...' is not in the Nix store
<energizer2>
nix add-to-store ?
<samueldr>
error: unexpected end-of-file
<samueldr>
(and I think it would end up making a new store path)
bqv has quit [Ping timeout: 260 seconds]
<samueldr>
(though I'm not sure)
bqv has joined #nixos
<energizer2>
in bios, i can look at the drive and see that it has entries EFI, loader, 3e89... so that's good, but it just doesn't boot
<infinisil>
samueldr: How did you get that file out of the store?
<energizer2>
man i literally always regret changing hardware
<infinisil>
Note that a single .drv isn't enough for doing a build, you need the full closure of it (e.g. what `nix-store --export $(nix-store -qR /nix/store/...-.drv) > export` gives you)
<unclechu>
hey, i’m trying to build a Haskell package using `callCabal2nix`, for one package I get this error: `Setup: Encountered missing dependencies: base >=4.2 && <4.9`
<unclechu>
any ideas how can i find what package makes upper bound be `<4.9`?
<{^_^}>
[nixpkgs] @marsam opened pull request #95622 → buildRustPackage: add support for parallel build → https://git.io/JJFvj
<infinisil>
It doesn't automatically use the latest version
<pbogdan>
unclechu: the <4.9 is on the test suite, not the library
<{^_^}>
[nixpkgs] @lopsided98 opened pull request #95623 → buildPerlPackage: fix patchShebangs when cross-compiling → https://git.io/JJFfT
<pbogdan>
which I guess hackage doesn't show
<unclechu>
infinisil: i passed -K flag to `nix-build` but i don’t see where it should give me a .cabal file
<infinisil>
unclechu: See the last couple lines in the output, it should give you a /tmp directory
Church- has joined #nixos
mariatsji has joined #nixos
<unclechu>
infinisil: okay, now i see it. can i somehow override it on the nix side?
<unclechu>
the bound?
<unclechu>
or can i build a haskell derivation without tests?
<infinisil>
Yes, with haskell.lib.doJailbreak (<package>)
<infinisil>
Or similarly haskell.lib.dontCheck
o1lo01ol_ has quit [Remote host closed the connection]
metreo has quit [Quit: Leaving.]
<unclechu>
infinisil: `dontCheck` i assume doesn’t build tests? what `doJailbreak` does?
Rusty1 has quit [Remote host closed the connection]
<infinisil>
jailbreaking means to disable the bounds
o1lo01ol1o has joined #nixos
<unclechu>
infinisil: can i somehow override just particular dependency bounds?
<infinisil>
Not with doJailbreak
<infinisil>
Could patch the cabal file though with haskell.lib.appendPatch
<unclechu>
infinisil: yeah, i though about something like patching the cabal file
mariatsji has quit [Ping timeout: 264 seconds]
<unclechu>
but by running `runCommand` and copying all the files with modification of the cabal file, didn’t know about `appendPatch`, thanks
drpyser has quit [Ping timeout: 245 seconds]
o1lo01ol1o has quit [Ping timeout: 240 seconds]
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<maralorn>
unclechu: If you want to do that, the correct approach is to make a pull request against upstream, which fixes the bounds and then use that PR to create a patch that you apply in your patchPhase.
<lisovinvlad>
bqv: probably this one is very large
<bqv>
am i having a stroke or something?
<lisovinvlad>
if you type man nixos-rebuild options -p you can see the example I'm talking about
<lisovinvlad>
Sorry, maybe I don't understand English correctly
<simpson>
lisovinvlad: It is *really* uncommon to have to switch between configurations all the time; the only reasonable use case that I wouldn't try to work around would be wanting to switch between drivers, e.g. nvidia vs nouveau. What are you working on?
<simpson>
If you interrupt GRUB, then you can ask it to boot into an older configuration, but this won't solve your entire problem, I think.
<{^_^}>
[nixpkgs] @flokli pushed 2 commits to release-20.03: https://git.io/JJFJV
craftyguy has joined #nixos
<lisovinvlad>
simpson: now I just want to understand the capabilities of the system. and I'm really interested in switching drivers, but that's later, if I decide what to do on
craftyguy has left #nixos [#nixos]
<simpson>
lisovinvlad: Okay. Think of a configuration as like choosing a /usr, and a /lib, and most of /etc; these are for system-wide situations. But also, each user can configure their profile to have *their own* analogue of /usr and /lib. And you can make new ad-hoc environments with nix-shell.
__monty__ has quit [Quit: leaving]
astylian has quit [Ping timeout: 240 seconds]
afreak has joined #nixos
<simpson>
So, when doing typical development, one will use nix-shell in order to set up a development environment just for a single project, and without worrying about having system-wide tools installed.
astylian has joined #nixos
<iwq>
is there a function which makes a derivation which just copies src to $out?
<simpson>
(Kernel development, as usual, bypasses most of this; you'll copy your dev kernels to /boot like normal.)
<simpson>
iwq: Do you definitely need that, or would you be okay with `linkFarm` or similar?
alp has joined #nixos
<iwq>
not sure, can't find much documentation on linkFarm. I need to copy some files i need on my server, like migrations, templates etc.
knupfer has quit [Ping timeout: 244 seconds]
work_ has quit [Quit: Connection closed for inactivity]
<simpson>
But if they're in src, then they're already on there, right? Usually the only reason to make copies like this is if your tools can't follow symlinks.
<Yaniel>
the key thing here being that "src" is stored in the nix store as-is