nix_installer has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @omasanori opened pull request #101046 → gfan: fix build failures with cddlib v0.94l → https://git.io/JT8Gh
h0m1 has quit [Ping timeout: 272 seconds]
h0m1 has joined #nixos
<bqv>
julm: would you mind updating the apparmor PR? can drop the first commit, but have to modify the second because services.samba.syncPasswordsByPam is deprecated
<bqv>
hopefully one day won't have to maintain it as a separate patchset...
acarrico has quit [Ping timeout: 240 seconds]
growpotkin has quit [Ping timeout: 260 seconds]
sarcasticadmin has joined #nixos
sarcasticadmin has quit [Ping timeout: 260 seconds]
<excelsiora>
hi, I installed nixos on my dad's laptop. when it sleeps (fold it closed) and wakes up (reopen the laptop) the wifi doesn't work, and I've tried various ways of restarting the network manager gui or even using nmtui, but it won't work again until I restart the laptop. Please help! :)
<{^_^}>
ugubok: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<srhb>
ugubok: In general. ^ :)
amfl_ has joined #nixos
amfl has quit [Ping timeout: 260 seconds]
amfl_ is now known as amfl
<pinpox>
Hey, has someone configured sourcehut via nix? Not sure how to start it or set config values in my configuration.nix
<pinpox>
there are packages available, but not much of any documentation on how to use them
<eyJhb>
What it the feeling about having a package that is just a .jar file? e.g. not building the .jar from source?
Steelwire1 has joined #nixos
mac10688 has joined #nixos
<srhb>
eyJhb: It's not preferred, but it does happen a lot due to how hard java stuff is to build in nixpkgs.
Steelwire has quit [Ping timeout: 260 seconds]
<eyJhb>
srhb: Just trying out Dirbuster, and it sucks quite hard to build... But I am guessing it is because the dependencies are hard to fetch offline...
<srhb>
That is usually the case, yes.
ManiacOfMadness has joined #nixos
<eyJhb>
Do we have any tool for it? (trying to fetch deps)
<srhb>
eyJhb: Depends on the build system. I think most of the maven stuff is semi-broken, but may work for every simple cases.
<eyJhb>
Well, there isn't even any Maven stuff in this, as far as I know... So I guess it just hopes that you open it in Eclipse and compile it
<{^_^}>
[nixpkgs] @basvandijk pushed 2 commits to release-20.09: https://git.io/JT8Fo
simonpe^^ has joined #nixos
<{^_^}>
[nixpkgs] @cdepillabout merged pull request #101052 → haskellPackages.stan: Mark as not broken and enable tests → https://git.io/JT8Xn
<{^_^}>
[nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/JT8FS
ilmu has joined #nixos
marsh has quit [Read error: Connection reset by peer]
<simonpe^^>
hiya, is there some way that i can `import ../../.. {}` but if that fails fallback to `builtins.fetchGit { ... }`?
jabster28 has joined #nixos
marsh has joined #nixos
<simonpe^^>
or otherwise place some file in the root of the project that`s .gitignored, that if it exists will override the `builtins.fetchGit { ... }` in the default.nix?
mac10688 has joined #nixos
jabster28 has quit [Ping timeout: 260 seconds]
<eyJhb>
srhb: do we have a consencus on where to put "v" in a version number? I have version = "1.2.3", and then in the Github fetchFromGithub I have version = "v${version}";, Is that how it should be?
cfinch has quit [Read error: Connection reset by peer]
abcdw has joined #nixos
<{^_^}>
[nixpkgs] @basvandijk opened pull request #101055 → rocksdb: support disabling building shared lib → https://git.io/JT8At
sgrunert has joined #nixos
lux1 has joined #nixos
<lux1>
Hi, can anyone assist me with security.acme.certs? I get errors like > acme: error: 400 :: POST :: https://acme-v02.api.letsencrypt.org/acme/new-order :: urn:ietf:params:acme:error:malformed :: JWS verification error, url:
<lux1>
I needed to remove the `user`, and no I'm having problems
saschagrunert has quit [Ping timeout: 265 seconds]
<lux1>
maybe has anyone a simple example how to use `security.acme.certs` and nginx together?
<dminuoso>
lux1: can you perhaps share the full output you're seeing?
<dminuoso>
The manual contains examples
xd1le has joined #nixos
phr0m3indh0v3n has quit [Ping timeout: 240 seconds]
sss2 has quit [Quit: Leaving]
<lux1>
the following new units were started: acme-airsonic.lux.name.timer, acme-debug.lux.name.timer, acme-fixperms.service
<lux1>
warning: the following units failed: acme-airsonic.lux.name.service, acme-debug.lux.name.service
<lux1>
● acme-debug.lux.name.service - Renew ACME certificate for debug.lux.name
<{^_^}>
[nixpkgs] @teto pushed commit from @dasJ to master « iperf3: 3.8.1 -> 3.9 (#100744) »: https://git.io/JT4J2
<teto>
hum hardlinking sounds interesting "note: currently hard linking saves 17592186044416.00 MiB"
spudly has joined #nixos
abcdw_ has joined #nixos
<niksnut>
teto: I think that's fixed on master
__monty__ has joined #nixos
<tobiasBora>
Hello, the fixup phase tries to apply patchelf on some files libcudnn_cnn_infer.so.8, and it fails with an error "maximum file size exceeded on a library". Any idea how to solve that?
<typetetris>
In which order are substituters tried? Ascending (entry most to the left first) or Descending order of `substituters` in `/etc/nix/nix.conf`?
spudly has quit [Ping timeout: 240 seconds]
Neo-- has joined #nixos
sss2 has quit [Ping timeout: 258 seconds]
spudly has joined #nixos
alp has joined #nixos
rprije has quit [Ping timeout: 246 seconds]
fendor has joined #nixos
m3thos has joined #nixos
jabster28 has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @IvarWithoutBones opened pull request #101063 → pythonPackages.pysychonaut: init at 0.6.0 → https://git.io/JT4Is
zarel has joined #nixos
mthst has quit [Remote host closed the connection]
<majkir>
what is the best way to manage a postgres read-only replication with nixos please?
<vikanezrimaya>
I wonder, what's wrong with this build? https://hydra.nixos.org/build/128686785 - "unsupported system type" sounds like a misconfiguration error on Hydra
<{^_^}>
[nixpkgs] @zanculmarktum opened pull request #101064 → xorg.libX11: use the absolute path of libXcursor.so.1 → https://git.io/JT4YG
kaliumxyz has quit [Ping timeout: 240 seconds]
lsix has quit [Quit: WeeChat 2.9]
lsix has joined #nixos
__Sander__ has joined #nixos
spudly has joined #nixos
zangi has quit [Quit: WeeChat 2.9]
<niksnut>
vikanezrimaya: this should be fixed now
jabster28 has joined #nixos
<vikanezrimaya>
niksnut: will the affected jobs be restarted or should they run again on the next evaluation tomorrow?
majkir has quit [Remote host closed the connection]
Maxdamantus has quit [Ping timeout: 272 seconds]
Maxdamantus has joined #nixos
codygman has quit [Read error: Connection reset by peer]
<{^_^}>
Special commands: find tell locate expand inclusive-language random-pr - Commands sorted by use count, page 0 (use ,<n> to view page <n>): help libraries channels paste ping escape'' escape" -a library overlay ifd pinning profiling unfree botsnack ask which-channel xml xy fancy-uninstall imperative wololo nixlang++ cache pills pointers home-manager invite runtimedeps stateversion thesis tofu commands matrixbridge exec smart-questions configsearch
<zangi>
,help
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<aanderse>
ping ma27
<aanderse>
ma27: having the same issue you had with acme, but your solution isn't working
<aanderse>
:(
aanderse_ has joined #nixos
<aanderse>
upgrade to 20.09 and i get the error you had
<ma27[m]>
pong
<ma27[m]>
can you please link the issue so I can re-read the conversation? :)
<siraben>
Does anyone know how to fix `src/blob.c:12:10: fatal error: malloc.h: No such file or directory` type errors when building C programs on darwin?
<aanderse_>
ma27[m]++
<{^_^}>
ma27[m]'s karma got increased to 20
<ma27[m]>
great, good to know :)
<aanderse_>
seems like this bug in lego is pretty bad though
camsbury has joined #nixos
<ma27[m]>
I agree
<aanderse_>
have to nuke your /var/lib/acme folder and rerun all certs if you hit it :(
<ma27[m]>
unfortunately I'm not a go person so I'm not really motivated to investigate the actual cause
<aanderse_>
i know lego is the new hotness in the LE world, but sometimes there is something to say for good old reliable certbot i guess :\
<ma27[m]>
but, did it occur while switching from 20.03 to 20.09 or unstable?
<aanderse_>
i'm switching from 20.03 to 20.09
<dminuoso>
aanderse_: certbot is *not* good or reliable.
<dminuoso>
It's a horrible blob of very horrible python code.
<ma27[m]>
if that's the case I'm not really sure anymore if it's just a conincidence that this occurs after switching to a nixos version with a heavily changed acme module tbh.
<aanderse_>
dminuoso: sure, i agree... but it does work
hmpffff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hmpffff has joined #nixos
<siraben>
infinisil: wow, was trying the same thing just now in nix repl but couldn't get it to fully display the object
<siraben>
`:p` is great
aanderse_ has quit []
anderslu1dstedt has quit [Ping timeout: 260 seconds]
<laerling>
Thanks. I'll try that :)
<laerling>
Hmm, I think I'm still doing something wrong. In nix repl I do `np = import <nixpkgs>` and `:p np.open-vm-tools.meta.maintainers`, but it complains, that it's a function instead of a set.
zupo has joined #nixos
fendor has joined #nixos
<lassulus>
import <nixpkgs> {}
hmpffff has quit [Ping timeout: 260 seconds]
<laerling>
Right... m) Totally forgot that. Thanks.
<{^_^}>
[nixpkgs] @ju1m opened pull request #101071 → apparmor: try again to fix and improve → https://git.io/JT4lF
<avn>
LnL: it works (worked) with normal repo, but I can't divert it to local clone (I need some hacks on project). Path just passed as src attribute to mkDerivation
<{^_^}>
[nixpkgs] @mweinelt pushed 2 commits to release-20.09: https://git.io/JT48U
<__red__>
,locate niv
<{^_^}>
Found in packages: haskellPackages.niv.bin
<julm>
bqv: right, I've seen that syncPasswordsByPam problem, and good news, it is automatically fixed by the merging happening when reverting vcunat's revert, I had only updated my apparmor branch, but indeed I need to open a new PR, this is done here: https://github.com/NixOS/nixpkgs/pull/101071 Thanks again for caring about all this :)
<{^_^}>
#101071 (by ju1m, 3 minutes ago, open): apparmor: try again to fix and improve
<m3thos>
How can I try openzfs 2.0rc on NixOS ? I'm using stable (20.03) and would like to continue on stable, just use a specific version of zfs (2.0 instead of 0.8.4)
<pickfire>
How do we know which package build is being cached by cache.nixos.org? Is it those that is only on the top-level, how about those that user could configure with `gtk = gtk3`?
gustavderdrache has joined #nixos
Rusty1 has joined #nixos
<evanjs>
eacameron: now that the WAL stuff has been patched, you should be fine installing with curl like normal
<eacameron>
evanjs: single-user I assume? systemd isn't installed in my ubuntu distro on wsl
<{^_^}>
[nixpkgs] @petabyteboy pushed commit from @Kloenk to master « onefetch: 2.4.0 -> 2.5.0 (#101074) »: https://git.io/JT4uv
ericsagnes has quit [Ping timeout: 260 seconds]
mthst has quit [Quit: Leaving]
<tobiasBora>
So nobody knows why I cannot use opencl inside a steam-run? For reference, I enabled hardware.opengl.extraPackages = with pkgs; [ intel-ocl ]; so that "clinfo" detects 1 hardware. But if I run "clinfo" inside steam-run (created using nix-build -E "with import <nixpkgs> {}; (steam.override {extraPkgs = pkgs: [ocl-icd gnome3.librsvg clinfo]; }).run") it detects no hardware.
abcdw has quit [Remote host closed the connection]
<avn>
LnL: manual forging of flake.lock works of course ;)
mschwaig has left #nixos ["WeeChat 2.7.1"]
mschwaig has joined #nixos
ericsagnes has joined #nixos
puffnfresh has quit [Ping timeout: 258 seconds]
<evanjs>
eacameron: ah good to know. Might investigate (at least open issue wise :p) at dome point. Currently making my config more WSL/home-manager only friendly. Definitely plenty of gotchas there 😝
<evanjs>
Some point* 😪
<clefru_mm>
tobiasBora: Try pkgsi686Linux.ocl-icd pksi686Linux.gnome3.librsvg pkgsi688Linux.clinfo. Steam is a 32-bit system
<evanjs>
So nodejs peoples: I was packaging something from source and it failed (presumably due to `npm i` -- I can run with 1 thread to verify) -- and the module that runs `npm i` does not have a version in the `package.json` -- a requirement for `node2nix`. Any suggestions?
<tobiasBora>
clefru_mm: but I'm not running steam (the game) directly, just steam-run to fake a FHS system.
<tobiasBora>
clefru_mm: I tried, same problem
<clefru_mm>
Call "uname -m" inside steam-run and verify that you are not in i686 emulation mode
<jd823592>
Hello, I am currently on 20.03 and have boot.binfmt.emulatedSystems = [ "aarch64-linux" ] but that pulls in qemu-4.2.0/bin/qemu-aarch64 internally, I need qemu-5.1 (for example from nixos-unsable), how should I go about forcing qemu-5.1 to be used in the binfmt trickery :)?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<typetetris>
I noticed that while being inside a `nix-shell` I can only use one core of my computer. But I couldn't figure out, how the restriction is done. Is it some cgroup or taskset magic? How can I get around this, if I want?
fendor has quit [Remote host closed the connection]
<bqv>
Wait, really?
<typetetris>
I use a `shell.nix` using `mkShell` from nixpkgs. But I guess, it is some configuration in `/etc/nix/nix.conf`?
<{^_^}>
[nixpkgs] @jonringer merged pull request #101036 → [20.09] python3Package.pytest-flask: remove support for python 2.7 → https://git.io/JTlj4
<{^_^}>
[nixpkgs] @jonringer pushed commit from @jfroche to release-20.09 « python3Package.pytest-flask: remove support for python 2.7 »: https://git.io/JT4KW
meh` has joined #nixos
hmpffff has joined #nixos
<{^_^}>
[nixpkgs] @jonringer merged pull request #101037 → python3Packages.python-markdown-math: remove support for python 2.7 → https://git.io/JT8v7
<{^_^}>
[nixpkgs] @jonringer pushed commit from @jfroche to master « python3Package.python-markdown-math: remove support for python 2.7 »: https://git.io/JT4KX
<evanjs>
*without looking at the example or etc lol
vikanezrimaya has quit [Remote host closed the connection]
montmorency has quit [Remote host closed the connection]
cfricke has quit [Ping timeout: 260 seconds]
ilmu has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<whald>
hmm, does anyone know what's up with hydra? i see tons of failed jobs with status "unsupported system type", e.g. https://hydra.nixos.org/build/128674421
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @marsam to release-20.09 « terraform_0_13: 0.13.2 -> 0.13.4 »: https://git.io/JT4iz
justanotheruser has joined #nixos
ddellacosta has joined #nixos
zupo has joined #nixos
<siraben>
evanjs: usually, yes. For instance I could pass the CC=cc flag to make
<evanjs>
siraben: not too familiar with nix/darwin stuffs, but do you ever need to use a different stdenv than clangStdenv, etc?
<evanjs>
or different cc, etc, idk
night has quit [Quit: night]
<siraben>
Changing glib to glibc seem to make it progress future
<siraben>
evanjs: No, I've only ever used the regular stdenv
<jd823592>
suppose I have a package and I want to refer to a binary provided by that package, how would I get the absolute path to the binary from the package expression and the name of the binary?
<evanjs>
these error: attempt to call something which is not a function but a set, at ... fixed-points ... errors are my favorite :P
alp has joined #nixos
NightA has joined #nixos
Steelwire has joined #nixos
Steelwire1 has quit [Ping timeout: 260 seconds]
NightA has quit [Client Quit]
NightA has joined #nixos
codygman has quit [Read error: Connection reset by peer]
ManiacOfMadness has quit [Ping timeout: 272 seconds]
NightA is now known as night
deltab has joined #nixos
codygman has joined #nixos
<evanjs>
jd823592: something like "${pkg}/bin/binary-name"
ManiacOfMadness has joined #nixos
<evanjs>
"${pkg}" will resolve to the package's outPath
<jd823592>
evanjs: thanks, i missed the quotes
<edcragg>
anyone know how i can fix fontconfig issues in gnome3 on unstable? characters are being rendered as boxes in some specific apps, something about a recent fontconfig update
shibboleth has joined #nixos
eoli3n_ has joined #nixos
ManiacOfMadness has quit [Ping timeout: 272 seconds]
<evanjs>
flokli: think I got it. Moved the nixpkgs-mozilla pin to the top-level of the overlay (where it should have been anyway...) and switched `import <nixpkgs>` out with `sources.nixpkgs`, etc. All the pins :D
<{^_^}>
[nixpkgs] @jonringer pushed commit from @uvNikita to master « pythonPackages.pyatv: move pytestCheckHook to checkInputs »: https://git.io/JT4D7
sarcasticadmin has quit [Quit: WeeChat 2.8]
cr4y1 has quit [Ping timeout: 256 seconds]
<pumpy>
how can i check if "nix-shell '<home-manager>' -A install" has already been run pls? hopefully by checking if a dir exists?
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
<edcragg>
evanjs: you don't happen to know why the non-working things are still looking in /etc/fonts/2.11/fonts.conf, do you? i'm at a loss in understanding why the packages i'm looking at simply have `fontconfig` as build input but just fail to work at runtime now
<pickfire>
How does one know which revision in git is being cached by cache.nixos.org? I want to keep up to date but I don't want to use nixpkgs HEAD which I need to build a lot of stuff, I just want to package the stuff I want to package.
vldn has quit [Read error: Connection reset by peer]
vldn has joined #nixos
<simpson>
Honestly, if you don't have to build your gcc or glibc, then you're probably already doing the best you can. But https://status.nixos.org/ lists the precise git commits.
anunnaki is now known as surfaceflinger
zupo has joined #nixos
waleee-cl has joined #nixos
<pickfire>
simpson: I don't really want to build like gtk since it take a long time and I might run out of space again.
<pickfire>
Ah, no wonder there is -small.
<simpson>
Ah, understandable.
surfaceflinger is now known as fling
meh` has quit [Ping timeout: 265 seconds]
<pickfire>
Right now I am pinning to like 12 days ago, I wonder if I need to pin that for quite some time then later it may be outdated compared to nixpkgs git head.
<__red__>
I thought -small just referred to the size of the group of packages that had to pass before promotion to nix-channels?
<cole-h>
Correct.
<__red__>
So, quick hypthesis
<__red__>
ohwait
<pickfire>
But how come hydra seemed to fail quite often for me, I thought it is something like nightly?
<__red__>
nevermind
<{^_^}>
[nixpkgs] @Patryk27 opened pull request #101080 → unifiBeta: init at 6.0.23 → https://git.io/JT4QF
<__red__>
I just disproved my own hypothesis in my next question
<__red__>
which is good!
<__red__>
means I'm finally gr0king things correctly
<cole-h>
Just because the package set that has to pass is reduced, doesn't mean it's nonexistent -- some things still have to pass, and if they don't, Hydra won't bump.
ris has joined #nixos
<__red__>
"If you break glibc, you're gonna have a bad time"[tm]
<pickfire>
Well, at least it's glibc.
<pickfire>
Better than using musl which breaks tons of stuff.
<aanderse>
cfinch_: the problem is that you would have to configure the applications yourself from scratch in a nix shell. it can be scripted, yes, but that is a duplication of effort in what the nixos module system does for you.
<aanderse>
nixos containers are another great option, btw
<Mic92>
There was a similar project which used docker-compose for project supervision
<{^_^}>
#99541 (by aborsu, 2 weeks ago, open): nixos/jenkins: switch to openjdk11 as openjdk14 is not supported
jnetod has joined #nixos
<Mic92>
Mrmaxmeier: does it need a backport?
<cfinch_>
aanderse : so the module system has done the configuration of the web server already ? so if was to do in nix-shell would have to repeat that ?
<fzakaria>
It would be great to get some more commit access to revive the project and release a newer udpate.
<Mrmaxmeier>
Mic92 not sure, failing since the switch to jdk14 as default
eoli3n_ has joined #nixos
<Mic92>
Mrmaxmeier: seems to be only a problem in master not 20.09
kenran has joined #nixos
<aanderse>
cfinch_: in theory you "just" need to produce a minimal working web server configuration, configure/initialize your database, configure/initialize a php engine... this is almost no work as a nixos container but could be a significant amount of work from nix-shell
<aanderse>
are you familiar with configuring/initalizing web server, database, php, etc...?
ManiacOfMadness has joined #nixos
jnetod has quit [Ping timeout: 265 seconds]
vldn has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @Mic92 merged pull request #99541 → nixos/jenkins: switch to openjdk11 as openjdk14 is not supported → https://git.io/JU5Su
<{^_^}>
[nixpkgs] @markus1189 opened pull request #101082 → haskellPackages.hindent: unbreak by fetching more recent source → https://git.io/JT4xn
vldn has joined #nixos
endformationage has joined #nixos
<faidon>
I have been trying to get cc mode in doom-emacs to work with rtags and irony-server when installed in nix with https://github.com/vlaci/nix-doom-emacs but I can't seem to get emacs to see my system installed rtags and irony-server. tried using extraPackages as in https://github.com/vlaci/nix-doom-emacs/issues/66 but that didn't help. anyone using
<faidon>
doom-emacs with cc mode?
<{^_^}>
vlaci/nix-doom-emacs#66 (by JonathanReeve, 1 week ago, closed): Cannot open load file: No such file or directory, mu4e
alp has joined #nixos
ManiacOfMadness has quit [Ping timeout: 272 seconds]
justanotheruser has quit [Ping timeout: 244 seconds]
jabster28_ has joined #nixos
jabster28 has quit [Ping timeout: 272 seconds]
ilmu has quit [Ping timeout: 240 seconds]
jnetod has joined #nixos
zupo has joined #nixos
<{^_^}>
[nixpkgs] @fgaz opened pull request #101083 → Add --rev to update-source-version, add a generic unstable updater → https://git.io/JT4pO
<fgaz>
↑ I ended up modifying the updater :)
codygman has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @risicle merged pull request #101031 → spooles: fix build on darwin → https://git.io/JTldo
<Orbstheorem>
Hi o/, how can I temporarily replace a flake input with an impure (non-flake) path? I have a flake that build a kernel and I cloned said kernel to do some patches. When I replace the source with `./cloned`, I get a no such file or directory, even if I pass the `--impure` flag. nix 3.0pre20200829.
srhm has quit [Read error: Connection reset by peer]
hmpffff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
civodul has joined #nixos
ericsagnes has joined #nixos
<bqv>
Orbstheorem: if temporary, the easiest way will just be to update the spec in your flake.nix
<hyper_ch_>
still error: Package ‘qtwebkit-5.212.0-alpha4’ in /nix/store/f13n8zpgbscx72i4z3lqvsq5dpvzyvby-nixos-21.03pre246543.24c9b05ac53/nixos/pkgs/development/libraries/qt-5/qtModule.nix:54 is marked as broken, refusing to evaluate.
<bqv>
i don't think you can specify ?flake=false at cmdline
<bqv>
cole-h: that nix PR is still idle, I've started patching my nix manually instead cause i don't care enough to be making a fuss
ManiacOfMadness has joined #nixos
<Orbstheorem>
bqv: I can't find what argument to give to the input spec in the flake.nix to give it a path.
<{^_^}>
[nixos-homepage] @garbas pushed to release-20.09 « adding button to GNOME iso »: https://git.io/JTBv0
<Orbstheorem>
`flake input attribute 'src' is a path while a string is expected`
<{^_^}>
[nixpkgs] @jaredramirez opened pull request #101085 → Run elm update script → https://git.io/JTBvX
<ekleog>
anyone knows of a tool that'd add a package to environment.systemPackages in configuration.nix, disregarding the fact it could be better-placed in an imports = [] block?
<Orbstheorem>
I've been reading kernel code for the past two days.
<Orbstheorem>
I guess some more c++ won't hurt.
cr4y1_ has joined #nixos
<bew>
Hello! Does "Nix" mean something?
<bqv>
I have a PR to add a new type, but something about me and github and nix is cursed so god knows if it'll ever be seen
cr4y1 has quit [Ping timeout: 260 seconds]
<jD91mZM2>
Can nix flakes handle secrets? Because to me it feels like the purity would make it unable to read files outside of the nix-store, and even since I'm happy with holding secrets there because I'm not paranoid enough, I still don't want to check the secrets into my git repo and since it's not there, the flake cleans all untracked files in its copy of the repo and then goes "where's that file,
<jD91mZM2>
secret.nix? lol there's no such file"
<jD91mZM2>
Or wait, I guess "passwordFile" options still work, right?
<LnL>
if you put secrets in your configuration it ends up world readable anyway
ManiacOfMadness has quit [Ping timeout: 272 seconds]
<jD91mZM2>
LnL: Yeah, I expected as much, but at least it's sorta local to my machine and not in my git repo
<jD91mZM2>
but I guess I'm kind of forced to do it with passwordFile, and I guess it's a good incentive to get me started
<typetetris>
I have a nix-shell running, which is somehow limited to use one cpu (together with all its children). I tried to check cgroups and cpuset, but couldn't find anything suspicious. What else could I check, how this restriction is done?
<{^_^}>
[nixpkgs] @vcunat pushed to master « pkgs-lib/tests/formats: fix whitespace after PR #100372 »: https://git.io/JTBUA
<tobiasBora>
Hello, stupid question, but it there any reason 'writeShellScriptBin "name" ./myscript.sh' does not add the /nix/store/*bash line, while if I use a string instead of a file it works?
gustavderdrache has quit [Quit: Leaving.]
<tobiasBora>
and also, what's the proper way to add the shebang if I want my script to be outside?
<clever>
tobiasBora: i believe nix pinns itself to a random core during the eval phase
<clever>
tobiasBora: and nix-shell doesnt undo that (a bug in nix-shell)
<clever>
tobiasBora: you can probably use taskset to revert it, once in the shell
<tobiasBora>
clever: hum, not sure to see what you mean, I'm not in a nix-shell here
<tobiasBora>
Basically I'd like to create a script and put it in home manager
<tobiasBora>
so I wrote in home.packages: (pkgs.writeShellScriptBin "myscriptname" ./myfile.sh)
cfinch_ has joined #nixos
<tobiasBora>
so what happens is that a file /nix/store/AAA/bin/myscriptname is created, with a shebang, and then it just write the name of the file that contains myfile.sh instead of sourcing it. So it fails with an error like "permission denied"
ManiacOfMadness has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @symphorien opened pull request #101087 → nixos/sslh: fix usage of the now removed ssl probe → https://git.io/JTBTB
<tobiasBora>
so I guess there is a better solution to my need. I could do myself source ${myfile} I guess, but sounds strange no?
domogled has quit [Quit: domogled]
<tobiasBora>
ok, so writing the following works: (pkgs.writeShellScriptBin "myscriptname" "source ${./myfile.sh}")
<clever>
tobiasBora: what is the exact expression and exact error?
<{^_^}>
[nixos-homepage] @garbas pushed 2 commits to release-20.09: https://git.io/JTBTN
<jD91mZM2>
Is there something like "passwordFile" for ZNC? All I'm seeing are options for putting the password block in text form, and that'll be world-readable?
<jtojnar>
edcragg: evanjs: I can only suggest to update everything, nothing should be still looking into versioned config, and the versioned config should just symlink to unversioned one for compat
<typetetris>
clever: I think it is the same nix-shell I call, but the `shell.nix`-files are very different.
<tobiasBora>
clever: I know it was strange you send me this ^^ And thanks for the runcommand version!
kenran has quit [Ping timeout: 260 seconds]
<tobiasBora>
clever: just a question, with runCommand, which shebang should I use? And how can I specify dependencies in runCommand or writeShellScriptBin?
<clever>
tobiasBora: nix auto-detects dependencies based on what strings you use
<clever>
tobiasBora: and this shell will be correct even when cross-compiling
fre has quit [Quit: fre: znc bye]
fre has joined #nixos
<tobiasBora>
clever: ok cool, thanks! Last question concerning bash, it's not possible to have a "universal shebang", that works for nix but also for other systems? For example runCommand can fix the shebangs like in stdenv.mkDerivation?
<{^_^}>
[nixpkgs] @jonringer pushed commit from @hloeffler to master « aide: update metadata »: https://git.io/JTBL5
<clever>
tobiasBora: if you use something like `#!/usr/bin/env bash`, then the patchShebangs function will replace it with $(which bash) during the fixupPhase
<clever>
you can also run `patchShebangs $out/bin/` to force it into patching
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JTBLN
<tobiasBora>
clever: ok thanks. But if I want the dependencies to be automatically catched, I guess I need to use "${pkgs.mypackage}", so my script won't be compatible with usual systems :'(
<clever>
tobiasBora: yeah, at that point you would want to source the original script, or use wrapProgram
<clever>
source will ignore the #!
rprije has joined #nixos
<__red__>
anyone know if Daniel Fullmer (of robotnix fame) is on irc?
<clever>
then you can fixup $PATH, and source the original
<__red__>
I'll poke him in nixcon - less busy channel.
Jackneill has quit [Ping timeout: 256 seconds]
<cole-h>
bqv: Yeah, I apply the log-format patch "manually" as well :P
<tobiasBora>
clever: hum, I'm lost. I tried to put in my .sh file @k2pdfopt@ or ${pkgs.k2pdfopt}, and none of them are replaced, neither using the "writeShellScriptBin+source" version, nor the pkgs.runCommand version
<edcragg>
jtojnar: thanks, but update what? the two packages for me which don't work (vlc and solvespace) are just from installed from nixpkgs/cache, and only have fontconfig as build input. i've nixos-rebuild --update'd many times and nothing changes. i did originally switch from stable to unstable when it broke, however
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jD91mZM2>
cole-h: Oh, right.
<jD91mZM2>
My bad, didn't know you actually published your repo for it (you madman :))
<tobiasBora>
clever: Ok, so I came up with a working script with substituteAll http://paste.debian.net/1167894 , but the bash is not yet patched, I guess I need to add something else
<tobiasBora>
will try with patchShebangs
<cole-h>
jD91mZM2: My secrets are a secret subrepo, but it wouldn't matter if they weren't (git-crypt). The only metadata would be commit dates and file names (granted, they are somewhat descriptive)
<cole-h>
Hehe
medvid_ has quit [Ping timeout: 260 seconds]
<tobiasBora>
grr, patchShebangs does nothing.
<{^_^}>
[nixos-homepage] @samueldr merged pull request #617 → manual: do not use normal whitespace in code → https://git.io/JTCzV
<{^_^}>
[nixos-homepage] @samueldr pushed 2 commits to master: https://git.io/JTBq2
medvid_ has joined #nixos
<clever>
tobiasBora: and what are the contents of k2pdfopt_cut_and_crop.sh ?
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @AluisioASG to release-20.09 « nixos/doc: fix itemization in the 20.09 release notes »: https://git.io/JTBmt
<{^_^}>
[nixpkgs] @jonringer pushed commit from @petabyteboy to release-20.09 « percona-server: 5.6.43-84.3 -> 5.6.49-89.0 (#97923) »: https://git.io/JTBmY
<tobiasBora>
clever: ouala, it gives pages of logs ^^ http://paste.debian.net/1167898 here is the end (don't see any obvious error)
<Aleksejs>
hello, the brochure printing in libreoffice is totally broken in 6.3.5.2 (the one I got after switching to 20.09). Is it possible to get the older libreoffice without rolling everything back?
<clever>
tobiasBora: patchShebangs only acts on files that are +x'd, line 76 shows it doing that search
<clever>
tobiasBora: you +x it after you tried to patch, so it never patches
<cole-h>
Aleksejs: You could use `nix-shell -p libreoffice -I nixpkgs=<older nixpkgs, either a path to a local checkout, or a github revision tarball>`
ilmu has quit [Ping timeout: 260 seconds]
<tobiasBora>
clever: ouu clever clever
<tobiasBora>
better now
<tobiasBora>
thanks a lot. It's just a bit heavy just to copy a simple script ^^
<tobiasBora>
I'll try to see if wrapProgram helps to avoid @@ and substitutions
<clever>
but you can also combine several scripts into one runCommand
<clever>
also, your patching a directory into the path for the binaries
<jtojnar>
edcragg: if you have up to date unstable, the packages will not read from /etc/fonts/2.11. Are you sure you have not installed them using nix-env or something?
<clever>
so it will fail to actually run anything
andymandias has quit [Ping timeout: 240 seconds]
andymandias has joined #nixos
justanotheruser has joined #nixos
zupo has joined #nixos
<tobiasBora>
clever: I'm not sure to understand your last remark about patching a directory
<edcragg>
jtojnar: no, it's all in configuration.nix
<clever>
tobiasBora: you replaced foo with /nix/store/hash-foo, instead of /nix/store/hash-foo/bin/foo
<jtojnar>
edcragg: what commit of nixpkgs do you use?
vldn has quit [Read error: Connection reset by peer]
vldn has joined #nixos
nonfinito has quit [Quit: WeeChat 2.7.1]
<tokudan>
hmm... ok, apparently security.acme.certs."a_cert".user = config.security.acme.certs."anothercert".user breaks the acme module or lego in strange ways.
<tokudan>
removing the line worked
<Aleksejs>
cole-h: I did as you told me to do but I still cannot launch the older version. Even if I launch /nix/store/qnyq8yfwvkga4jsap3isrq5phmlr8z5g-libreoffice-6.2.6.2/bin/swriter it still launches 6.3.5.2
<Aleksejs>
should I uninstall the current version first?
tokudan has quit [Remote host closed the connection]
stree has quit [Quit: Caught exception]
tokudan has joined #nixos
stree has joined #nixos
noudle has quit []
beww has joined #nixos
eoli3n_ has quit [Remote host closed the connection]
<edcragg>
jtojnar: well, it turns out although i did have both packages in configuration.nix, i must have initially installed them with nix-env and they were lingering around. so after uninstalling solvespace with nix-env it works again. thanks, it's been driving me crazy
acowley has joined #nixos
<edcragg>
and vlc too
camsbury has quit [Ping timeout: 246 seconds]
faidon has quit [Remote host closed the connection]
wnklmnn has joined #nixos
<jasom>
just want to make sure that I'm not mssing any magic, if I want to run multiple copies of a particular service, and the configuration module for that service doesn't anticipate that, I need to manually generate the systemd service configurations, right?
<{^_^}>
[nixpkgs] @thoughtpolice pushed 2 commits to master: https://git.io/JTBGm
zecnate has joined #nixos
ilmu has quit [Ping timeout: 272 seconds]
<zecnate>
While using pandoc in a build step, it appears it's trying to fetch a font which fails (I assume due to a sandbox). I've looked for tickets about this and don't see any.
<zecnate>
I also see links suggesting pandoc is used in build stages. Is anyone familiar with this issue?
<{^_^}>
[nixpkgs] @fzakaria opened pull request #101096 → lib: Add readTree function to filesystem → https://git.io/JTBZI
<fzakaria>
samueldr: ah sorry ok :)
<doomer[m]>
:D
<zecnate>
How can I concisely write a derivation which fetches a tarball, checks the source, and unpacks the result into $out? I know how to write a manual unpack derivation wrapping `fetchurl`, but is there something simpler?
<samueldr>
no worries, getting up to speed with IRC sometimes can get messy :)
<fzakaria>
roberth: I published the fuction; kinda useful for Java's CLASSPATH since i want to talk a pretty deep folder hierarchy and turn it into a list for concapSep
<infinisil>
zecnate: What does "check the source" mean?
<roberth>
fzakaria: doesn't the dir come from a derivation? It's more efficient to avoid reading build outputs in evaluation
<zecnate>
Ah, looks like `fetchzip` is what I want.
<zecnate>
Sorry, I meant "unpacks" the source.
<fzakaria>
roberth: not sure what part you are referring to
<infinisil>
I see, yeah fetchzip does it :)
<fzakaria>
roberth: i have to build up the dir since it's "walking" the folder tree
<fzakaria>
so its always dir + "/${name}"
<roberth>
fzakaria: now I'm not sure either :) what's your use case for readTree?
<fzakaria>
I am writing an example of taking Java's Maven repository layout where the folder structure is the Maven group coordinates.
<infinisil>
fzakaria: Use `dir + "/${name}"` instead of `"${dir}/${name}"`
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fzakaria>
roberth: also added example in description for motivation
<infinisil>
The former doesn't import the directory into the store unless you later do so
<infinisil>
The latter always imports into the store
<infinisil>
Ah you did that already
<fzakaria>
yea :) i keep forgetting ${dir} goes into store thanks to both
<zecnate>
Is there a clean way to turn on bash xtrace for a builder which uses stdenv? If I just do "set -x" I see all of the exit hook stuff from stdenv, which is very noisy.
<zecnate>
I figured out a snippet to turn that off by monkey patching the exit hook, but I'm wondering if there's a "stdenv way" to do it cleanly.
<{^_^}>
[nixpkgs] @9999years opened pull request #101098 → ytop: Add "ytop" to ytop's error message → https://git.io/JTBWB
vldn has quit [Ping timeout: 272 seconds]
jabster28_ has quit [Remote host closed the connection]
gustavderdrache has joined #nixos
fendor has quit [Remote host closed the connection]
thelounge81 has joined #nixos
vldn has joined #nixos
Rusty1 has joined #nixos
hmpffff has quit [Ping timeout: 260 seconds]
zupo has joined #nixos
hmpffff has joined #nixos
vldn has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @rissson opened pull request #101099 → nixos/initrd-network: fix /etc/resolv.conf when multiple dns servers from DHCP → https://git.io/JTBlC
vldn has joined #nixos
zupo has quit [Ping timeout: 258 seconds]
cfinch has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @teto opened pull request #101100 → neovim: add config to passthru → https://git.io/JTBlR
<{^_^}>
[nixpkgs] @penguwin opened pull request #101102 → nextinspace: init at 1.0.2 → https://git.io/JTB8E
<{^_^}>
[nixpkgs] @rissson opened pull request #101103 → [20.09] nixos/initrd-network: fix /etc/resolv.conf when multiple dns servers from DHCP → https://git.io/JTB8w
vldn has quit [Ping timeout: 272 seconds]
<risson>
no true, my PRs have nothing to do with the weird stuff I do in my initrd
eckesicle has joined #nixos
<eckesicle>
hi, im new to NixOS. Loving it so far. I've finally set up my configuration.nix on one of my computers, and now i'd like to install NixOS on one of my laptops. What's the best path forward to getting the config over? Can I generate an iso with my configuration or some such and just boot and install from that?
<risson>
If you're new, I'd say the best way would be to re-install and then copy the parts of the configuration you want on the other machine
<risson>
For example, you don't want to copy anything in hardware-configuration.nix, as that's machine-dependent
<hexa->
eckesicle: if you're familiar with git, that is a sound way to sync config changes between machines
<eckesicle>
hi, i am familiar with git and I did think of this approach, but it seemed labour intensive. Would I do it right if I: added /etc/nixos to a .git repository. Pushed that. Then instelled nixos from scratch on a new box, added git as a package, added the appropriate ssh keys, then checkout out the repo in hostB://etc/nixos and then ran nixos-build switch ?
shibboleth has quit [Quit: shibboleth]
addcninb- has joined #nixos
<jasom>
eckesicle: yeah that would work; if you're not trying to keep them in sync, just start an ssh server on the system you are installing to and scp the file(s) over
cfinch has joined #nixos
<eckesicle>
im going to have to do this 5-6 times, so i was hoping for a way to generate a premade iso or netboot that just cloned the config
<jasom>
eckesicle: also, the installer usb is a full nix system, so you can install git and do the checkout before finishing the install.
<eckesicle>
okay, jasom i'll do that, thank you.
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
lunik1 has quit [Ping timeout: 258 seconds]
<jasom>
eckesicle: you can also probably add a partition to the bootable USB with your files on it, though I haven't tried doing that myself.
<jasom>
or just use a second usb drive
lunik1 has joined #nixos
dsx has quit [Quit: dsx]
<eckesicle>
jasom: hah, that's even better sounds much easier
<colemickens>
does anyone have timestamps for nixcon 2020 talks?
<{^_^}>
[nixpkgs] @zowoq opened pull request #101104 → buildGoModule: use optionalString → https://git.io/JTBBV