<nix-build>
[nixpkgs] @Mic92 pushed 2 commits to staging-next: https://git.io/Jf5FO
<nix-build>
[nixpkgs] @zowoq merged pull request #89454 → buildGoModule: require vendorSha256 to be set in packages → https://git.io/JfXmf
<nix-build>
[nixpkgs] @zowoq pushed to master « buildGoModule: require vendorSha256 to be set in packages »: https://git.io/Jf5Fs
<gcoakes[m]>
Hey, what is the correct way to declaratively set gnome settings using NixOS? I found this wiki page which provides a way, but it seems a bit wrong to be applying the settings as a systemd service: https://nixos.wiki/wiki/IBus
kreyren has quit [Remote host closed the connection]
kreyren_ has joined #nixos
<cole-h>
eacameron: If neither adding pkg-config nor perl to nativeBuildInputs works, could you share the source, so I can try my hand at helping further?
<eacameron>
cole-h: Sure. What's the difference between buildInputs and nativeBuildInputs
<cole-h>
buildInputs are for libraries, nativeBuildInputs are for things like compilers (stuff that needs to actually run natively during the build process)
<eacameron>
cole-h: Oh I've been using buildInputs.
<cole-h>
e.g. libgcc would go to buildInputs, but gcc itself would go to nativeBuildInputs
<cole-h>
I was afraid of that. Any specific subrepo?
<notgne2>
cole-h: is there any way to get a list of derivations which function as nativeBuildInputs?
<cole-h>
notgne2: No, because you can put anything in either-or. It's just that some things may not function as you expect.
<eacameron>
cole-h: Oh you've heard of this and tried to build it?
<eacameron>
No I'm just naively trying to build the whole thing :P
<cole-h>
eacameron: No, I just looked it up trying to find what you were working on :P
<notgne2>
cole-h: well yeah but I mean, what packages have special functions that take places when put in nativeBuildInputs, sometimes it seems ambiguous to me, like pkgconfig for instance
<cole-h>
If they're linked in, they are not a runtime dependency, but a buildtime one.
<eacameron>
Sorry I meant dynamically linked
<eacameron>
But it sounds like buildInputs represent dynamic link dependencies?
<cole-h>
Depends on what you mean by dynamically linked. If it shows up in `ldd binary`, I wouldn't consider it a runtime dependency. But if it's `dlopen`ed, that would require wrapping the binary to place said library in its LD_LIBRARY_PATH
<infinisil>
Cross compilation is the important part about nativeBuildInputs vs buildInputs
<infinisil>
If you don't cross compile, I'm fairly certain there's no difference between them
<infinisil>
I think this might come from pkg-config being made to only look at buildInputs for finding libraries
<infinisil>
Which wouldn't be necessary in non-cross-comp scenarios, but is probably done because it makes more sense that way
<infinisil>
(and it makes cross comp easier for the future)
<infinisil>
But from a technical perspective, nativeBuildInputs are just packages for the build platform, and buildInputs are packages for the host platform (the one that's gonna run the result)
kreyren_ has quit [Remote host closed the connection]
* muslimm
- If U believe in the only creator of heaven & earth(the one) that moses believed in him and Jesus(monothiesm) u will be safe * islam is your cave of wonders; jewel of THE SEAS. For he is: (Allah) the only God; follow islam The true religion of God it's our way to saftiness, Time and life is in God's Hand, he is our refuge. Be muslims to be fine *****
muslimm has quit [Killed (kline (bye))]
muslimm has joined #nixos
sbetrium has joined #nixos
<gchristensen>
thanks kline
<eacameron>
That's one way to proselytize
<cole-h>
kline++ wherever you are
<nix-build>
kline's karma got increased to 1
terrymunro[m] has joined #nixos
koozz[m] has joined #nixos
<p01ar>
ayyyy lmao
<p01ar>
guess whos back
<cole-h>
Who? ;)
<gchristensen>
welcome back!
sbetrium has quit [Read error: Connection reset by peer]
ogkloo has joined #nixos
sbetrium has joined #nixos
dustinm has quit [Quit: Leaving]
<nix-build>
[nix] @p01arst0rm opened pull request #3707 → replaced uncaught_exception with uncaught_exceptions → https://git.io/Jf5NL
proofofkeags has joined #nixos
muslimm has quit [Remote host closed the connection]
<nix-build>
[nix] @p01arst0rm opened pull request #3708 → appended ' __attribute__((weak)); ' to 'extern char * * environ ' → https://git.io/Jf5NO
sigmundv_ has quit [Ping timeout: 264 seconds]
proofofkeags has quit [Ping timeout: 264 seconds]
sbetrium has quit [Max SendQ exceeded]
<cole-h>
p01ar: To answer your question on your meson PR: We've dropped Rust from Nix for now.
<nix-build>
nix#3702 (by edolstra, 13 hours ago, merged): Rewrite StorePath class in C++
<p01ar>
just for the meson? or just because
<cole-h>
Unrelated, I think
<cole-h>
But it certainly doesn't hurt your endeavor ;^)
<p01ar>
aye big up
<p01ar>
currently working on some PRs to the meson core to fix windows bugs
<p01ar>
but ive been porting tomahawk to meson
<p01ar>
which has taught me a ton more cool stuff i can do
<p01ar>
so gunna go back and fiddle a ton more with the meson
<p01ar>
get it even nice
<p01ar>
r
sbetrium has joined #nixos
<cole-h>
Good luck :D
<p01ar>
how hard can it be
maxter has quit [Read error: Connection reset by peer]
maxter has joined #nixos
dustinm has joined #nixos
kleisli has joined #nixos
<Ericson2314>
p01ar: I'll go get my branch up to date
pamplemousse has quit [Ping timeout: 260 seconds]
<ornxka>
error: The option value `networking.hostName' in `/cfg/sys/system.nix' is not of type `string matching the pattern ^$|^[[:alpha:]]([[:alnum:]_-]{0,61}[[:alnum:]])?$'.
<ornxka>
hostname(5) rejects periods as a "recommendation"
<cole-h>
Read the second link
<cole-h>
We're conforming to RFC 1035
<cole-h>
"They must start with a letter, end with a letter or digit, and have as interior characters *only* letters, digits, and hyphen"
<cole-h>
Emphasis mine
<cole-h>
(Full text here: https://www.ietf.org/rfc/rfc1035.txt; quoted section found on page 8, as part of section 2.3.1 "Preferred name syntax")
aw has quit [Quit: Quitting.]
<cole-h>
ornxka: Is there a reason why this is a problem? Would using `networking.extraHosts = "127.0.0.1 your.hostname.with.periods";` work for your situation?
aw has joined #nixos
<ornxka>
well id like to see it in bash $PS1
spacefrogg has joined #nixos
<cole-h>
You could customize your PS1 and place the literal "your.hostname.with.periods" in there, rather than letting bash expand it for you. That's obviously very brittle, but I don't see another way.
felixfoertsch23 has joined #nixos
lunaa has joined #nixos
felixfoertsch has quit [Ping timeout: 260 seconds]
<ornxka>
Failed assertions: - The option definition `boot.loader.grub.extraInitrd' in `/cfg/opt/crypt.nix' no longer has any effect; please remove it.
<ornxka>
AAAAAAAA
<ornxka>
how long has it been since i last updated
<pjt_014>
quite possibly too long
<ornxka>
boot stuff is always the worst
<pjt_014>
ornxka: I'd generate a new config file in a temporary folder just to see what the new option looks like
<lopsided98>
ornxka: that's a pretty recent change
<lopsided98>
I'm responsible for it, ping me if you have problems
<ornxka>
that will unfortunately not help because i have a very particular setup, i actually do all the decryption/mounting/unmounting stuff at boot with a shell script in boot.initrd.postDeviceCommands
<ornxka>
lopsided98: oh ty!
<ornxka>
if its just as simple as moving stuff out of the initrd and into the secrets variable it shouldnt be a problem
<jluttine[m]>
I tried installing ssb-patchwork but the installation started download hundreds of megabytes of packages that I already have installed (e.g., openssl). Is this because of AppImage? Is it unable to use the other packages from the same nixpkgs snapshot? And so it needs to install versions that only it uses? Sounds really bad if so..
ddellacosta has quit [Ping timeout: 246 seconds]
justanotheruser has quit [Ping timeout: 260 seconds]
<danderson>
anyone else notice that GUI on nixos lags more noticeably under heavy CPU load than other distros?
<danderson>
wondering if there's some soft realtime thing that e.g. ubuntu does and that I'm missing.
kleisli has quit [Remote host closed the connection]
kleisli has joined #nixos
<energizer>
i hadnt noticed that, would be curious to see measurements tho
<cole-h>
Well, I can certainly say that my VM skips every once in a while, event with a PREEMPT zen kernel.
<cole-h>
So, if you find out a way to make that stop, maybe it'll help with my VM :^)
<cole-h>
(AKA: ping me if you ever get to the bottom of it)
gregf has joined #nixos
jb55 has quit [Remote host closed the connection]
proofofkeags has joined #nixos
<nix-build>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/Jf5x2
jb55 has joined #nixos
cript0nauta has joined #nixos
proofofkeags has quit [Remote host closed the connection]
<dsyer>
I'm having some issues with nix-env (on NixOS mainly right now but also on Ubuntu sometimes). How come the version of skaffold in ~/.nix-defexpr/channels is 1.10.1 but when I install it with nix-env I get 1.2.0 (which is ancient)?
Ariakenom has joined #nixos
<dsyer>
Actually I'm even more confused now because nix-env -i skaffold results in a "conflicting priority", and it *is* trying to install 1.10.1. So where did 1.2.0 come from?
mananamenos has joined #nixos
pjt_tmp has quit [Quit: WeeChat 2.8]
noudle has joined #nixos
pjt_tmp has joined #nixos
pjt_tmp has quit [Quit: WeeChat 2.8]
SandwichChef has quit [Ping timeout: 246 seconds]
pjt_tmp has joined #nixos
SandwichChef has joined #nixos
NeoCron has joined #nixos
lsix has joined #nixos
<fps>
dsyer: does nix search skaffold show you different versions from different channels?
is_null has quit [Ping timeout: 264 seconds]
FRidh has joined #nixos
<dsyer>
I only have one channel (as far as I know).
<dsyer>
Trying `nix search skaffold`...
fendor has joined #nixos
<dsyer>
nix search skaffold* nixos.skaffold (skaffold) Easy and Repeatable Kubernetes Development* nixpkgs.skaffold (skaffold) Easy and Repeatable Kubernetes Development* unstable.skaffold (skaffold) Easy and Repeatable Kubernetes Development
<dsyer>
Don't know how to format text here sorry.
<dsyer>
So there are 3 channels. But why would `nix-env` choose one over another when my `~/.nix-defexpr/channels` only knows about "unstable"?
orivej_ has joined #nixos
orivej has quit [Ping timeout: 264 seconds]
<FRidh>
system-wide (root) channels are also picked up
<pjt_014>
does nix-env -iA n[tab] show only the one channel? I'm like 90% sure the autocomplete is determined by defexpr/channels but can't hurt to check
<dsyer>
I 'm notgetting any autocomplete there
<dsyer>
I 'm not getting any autocomplete there
<pjt_014>
hm. does nix-e[tab] do any?
<fps>
nix-env -iA unstable.skaffold
<dsyer>
Yes. I do have automcompletion in general.
<pjt_014>
hmm. try nix-channel --list as both normal user and root
<pjt_014>
if you haven't
<pjt_014>
I can never keep straight which users have what channels >_<
<pjt_014>
don't paste too many lines at once here though
<pjt_014>
like 5 or more in a second gets you a server ban
<dsyer>
Whatever.
<dsyer>
Well, the result from `nix search` is pasted above in one line.
<dsyer>
It has 3 results for "skaffold".
<fps>
yeah, try nix-env -iA unstable.skaffold
<fps>
assuming unstable has 1.10
<pjt_014>
that'd be nixos-unstable.skaffold
<pjt_014>
if that's the channel name
<pjt_014>
wait
cap_sensitive has joined #nixos
<fps>
in his search results above it's unstable.skaffold
<pjt_014>
just noticed it's not nevermind
<dsyer>
"unstable" has skaffold 1.10.1 (which is still a mystery because "master" in github is 1.11, but that's a different issue).
Chiliparrot has joined #nixos
orivej_ has quit [Ping timeout: 246 seconds]
<cap_sensitive>
Hi. How to make 'stdenv' avaliable in an overlay? I'd like to have something like this: pkg_x = if stdenv.isDarwin then callPackage stuff1 {} else callPackage stuff2 {};
orivej has joined #nixos
<dsyer>
So `nix-env -iA unstable.skaffold` tries to install 1.10
<dsyer>
but fails
<fps>
what's the error message?
<dsyer>
"...have the same priority 5; use 'nix-env --set-flag priority..."
<dsyer>
I have 1.2.0 installed so I guess that makes sense (but I didn't ask for it)
nix-build has quit [Remote host closed the connection]
{^_^} has joined #nixos
<jaaptw>
I was wondering if others had problems with the latest MacOS upgrade (catalina 10.15.5)?
<dminuoso>
jaaptw: Instead of asking whether others had problems, why dont you specify what problems *you* have?
orivej_ has quit [Ping timeout: 258 seconds]
<jaaptw>
My problems are that my envirnoment doesn't seem to setup with the correct paths. For instance, I cannot query the nix-env using nix-env -q because nix-env can't be found?
smatting has joined #nixos
orivej has joined #nixos
<dminuoso>
jaaptw: Did you forget to update your bash config
<Ariakenom>
I have made one package that I can build with nix-build. how do I add that as buildInputs to another package?
<DigitalKiwi>
dminuoso: that's a good point i wonder what version of zsh they used lol
<{^_^}>
[nixops] @adisbladis closed pull request #1372 → Use flake-compat without fetchGit → https://git.io/Jf7lG
agsdheidjd has joined #nixos
Wizek has joined #nixos
jaaptw has joined #nixos
dermetfan has joined #nixos
jaaptw48 has joined #nixos
dkjii has joined #nixos
jaaptw has quit [Ping timeout: 245 seconds]
Minijackson[m]1 is now known as Minijackson[m]
Minijackson[m] has quit [Quit: authenticating]
Minijackson[m] has joined #nixos
<cap_sensitive>
In an overlay, I'm trying to use the stdenv.isDarwin attribute. However, neither 'self' nor 'super' contains the 'stdenv' attr. How to make 'stdenv' avaliable in an overlay?
<{^_^}>
[nixpkgs] @teto pushed commit from @ProgVal to master « vlc: 3.0.10 -> 3.0.11 »: https://git.io/Jfdkk
eoli3n has joined #nixos
mounty has joined #nixos
<{^_^}>
[nixpkgs] @iblech opened pull request #90661 → olm: fix homepage link (trivial one-line pull request) → https://git.io/Jfdk3
Chiliparrot has joined #nixos
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #nixos
asymptotically has joined #nixos
eoli3n has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @srhb opened pull request #90662 → prometheus-redis-exporter: init at 1.7.0 → https://git.io/Jfdki
<bigvalen>
nixos-install is hanging on me. Specifically the bit that runs 'nixos-enter --root /mnt -- /run/current-system/bin/switch-to-configuration boot'. I notice there is no directory /mnt/run - should there be, at this stage ?
orivej has quit [Ping timeout: 256 seconds]
orivej_ has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @NinjaTrappeur opened pull request #90663 → test-driver.py: randomize VM tmp state dir name → https://git.io/Jfdkx
fendor has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #nixos
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
fendor has joined #nixos
sbetrium has joined #nixos
knupfer has joined #nixos
ashesham` has quit [Ping timeout: 246 seconds]
<betaboon>
how would i build everything with `nix-build`/`nix build` that is required for a specific configuration.nix ?
<etu>
betaboon: I don't think you can do that (I'm not sure though), but configuration.nix is quite nixos specific, and nixos-specific things tend to have commands that starts with nixos.
<etu>
But I may be wrong.
jakobrs has joined #nixos
<jakobrs>
What license is nixos-rebuild's code licensed under?
<jakobrs>
I'd think it's MIT licensed but I don't know how to give proper attribution.
<jtojnar>
betaboon I think I used `nix build -L -I nixos-config=/path/to/configuration.nix -I nixpkgs=/path/to/nixpkgs -f '<nixpkgs/nixos>' system` before switching to flakes
<betaboon>
jtojnar: thanks thats what i just ended up at as well xD
<{^_^}>
[nixpkgs] @edolstra closed pull request #90663 → test-driver.py: randomize VM tmp state dir name → https://git.io/Jfdkx
<jakobrs>
is it possible to make --print-build-logs the default?
<dminuoso>
jakobrs: Strange, I cant even find the sources..
<jakobrs>
for nixos-rebuild or print-build-logs?
<dminuoso>
jakobrs: Yes.
<etu>
DigitalKiwi: Ah, right. Didn't think of that. jtojnar had a good example there as well.
<dminuoso>
well surely nixos must have a nix derivation
<jakobrs>
dminuoso: If you mean nixos-rebuild it's in nixpkgs/nixos/modules/installer/tools/nixos-rebuild.sh
<dminuoso>
jakobrs: Ah!
<dminuoso>
Thanks
cosimone has quit [Quit: Quit.]
<jakobrs>
I have a script I've written that derives heavily from nixos-rebuild and I thought I should probably license it properly.
<dminuoso>
jakobrs: Then its part of nixpkgs, and should be licensed under MIT.
alp has quit [Remote host closed the connection]
<jakobrs>
Should I just write something like "derives from the file nixpkgs/nixos/modules/installer/tools/nixos-rebuild.sh Copyright (c) 2003-2020 Eelco Dolstra and the Nixpkgs/NixOS contributors, under the terms of the MIT license"
<jakobrs>
I might have to copy over the entire license text
<dminuoso>
jakobrs: The only thing you need to do, is include the copyright notice from COPYING
<dminuoso>
You dont have to relicense under MIT
alp has joined #nixos
<jakobrs>
COPYING *is* an MIT-style license
<dminuoso>
Yes.
<jakobrs>
I guess I'd just mention both the "original" and the "new" licenses in the LICENSE file of my project
<dminuoso>
jakobrs: are you fine with licensing your own modification as MIT?
<jakobrs>
yes, that's what I intend to
<dminuoso>
Then just copy COPYING into your own license, and add yourself to the copyright folks (so that the existing copyright notice is kept)
<jakobrs>
to be clear, it's not a modification of nixos-rebuild, but the source code derives heavily from it (as in, it's almost just copy-pasted in many cases)
<dminuoso>
There's no differentiation.
<dminuoso>
Whether you derive or modify, its the same thing.
<jakobrs>
I've seen people have multiple "Copyright" lines at the top of the file; might do something like that
<jakobrs>
Like "Copyright (c) 2020 <me>\nCopyright (c) 2003-2020 edolstra and ..."
orivej has quit [Ping timeout: 246 seconds]
<dminuoso>
Indeed, that's what you do. :)
<dminuoso>
There's no preset order either, you just must ensure the original copyright notice is included.
<dminuoso>
jakobrs: Literally, the only thing MIT requires you to do, is keep the copyright notice *and* a copy of the original license.
<dminuoso>
You can license it yourself however you want.
<dminuoso>
(But if you relicense under the same MIT license, then that concludes the copying of the original license)
<jakobrs>
I could probably explicitly state that the second line is for the original, and the first is for the modifications
<betaboon>
DigitalKiwi: yeah thanks. i ended up doing something like that :D
<DigitalKiwi>
the years kind of make it clear
<dminuoso>
Like I said. There's only two requirements: The copyright notice is kept, and a copy of the permission notice is kept.
<dminuoso>
Any solution you come up with, that follows these requirements is permissable.
eoli3n has joined #nixos
cfricke has joined #nixos
zupo__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gregf>
new user here, when I run tmux after installing it I get the following error. /bin/sh: warning: shell level (1000) too high, resetting to 1
<gregf>
my deafult shell is zsh
<jakobrs>
How did you install tmux?
<simpson>
gregf: That's amazing, TIL that that is possible. The "shell level" is the env var $SHLVL, probably; it indicates how deep a shell is nested.
<gregf>
jakobrs: all i did was add it to my pkg list in configuration.nix
<simpson>
Guessing that you don't *actually* have 1000 shells nested. I wonder what sets it like that.
<gregf>
and then ran nixos-rebuild switch
<gregf>
i can post my .tmux.conf
orivej has quit [Ping timeout: 246 seconds]
<jakobrs>
You can try setting `programs.tmux.enable = true;` in your configuration.nix file though I don't think it should matter
<gregf>
actually moved my .tmux.conf just now and that doesn't appear to be a issue
<jakobrs>
And remove `tmux` from `systemPackages`
<gregf>
jakobrs: k i'll try that ty
orivej has joined #nixos
<jakobrs>
The main difference is that with programs.tmux you can setup the global /etc/tmux.conf configuration file declaratively from your configuration.nix
<gregf>
same error, do i need to logout or anything?
cjpbirkbeck has joined #nixos
<jakobrs>
no
<jakobrs>
but if it's only an issue when .tmux.conf is present I'd recommend you look in the .tmux.conf for errors
<betaboon>
FRidh: regarding #50925 i just tested with current nixpkgs-unstable. still runs into the LONG_BIT python build-problems. same can be observed with eg `nix-build '<nixpkgs>' -A pkgsCross.armv7l-hf-multiplatform.python3.pkgs.cffi`
<gregf>
jakobrs: i got rid of my .zshrc and .tmux.conf and i still get the error
<jakobrs>
What does echo $SHLVL say?
<gregf>
3
<jakobrs>
okay so it's not like you're already 1000 levels deep
<jakobrs>
the only explanation that I can think of is that you've left some file somewhere that relaunches the shell and it's accidentally getting run forever
<jakobrs>
like if you have a .profile that launches tmux
<jakobrs>
otherwise I have no idea
<gregf>
doh
<gregf>
yeah i had a ~/bin/tmux script i used in debian for some reason
<gregf>
but now i got another problem
<jakobrs>
oh yeah that might do this
cosimone has joined #nixos
<gregf>
ok last question to bug you with
Neo-- has joined #nixos
<gregf>
when i run tmux (i am not using my .tmux.conf or .zshrc) my path isn't right
<gregf>
it's not adding the nixstore path so i don't have mv tty ls nothing in tmux
<Ariakenom>
im getting errors from pkgs in nixpkgs when i try to link another pkg. it fails during linking. libboost_thread.so: undefined reference to `std::[...]@GLIBCXX_3.4.26'
<Ariakenom>
as in im not building boost but that's what is failing
<Habbie>
Ariakenom, the part in [...] might be relevant
<Habbie>
Ariakenom, maybe use a pastebin and provide a bit more context
SandwichChef has joined #nixos
<Ariakenom>
sure
cfricke has quit [Quit: WeeChat 2.8]
<Ariakenom>
wis it because using nixpkgs.gcc8Stdenv and nixpkgs.boost doesnt work?
<z00t>
but libgpg-error-1.38-aarch64-unknown-linux-gnu.drv' failed with exit code 2
<z00t>
how can this be fixed ?
<z00t>
I do cross compile on a x86_64 nixos 20.03
<z00t>
make all-ammake[3]: Entering directory '/build/libgpg-error-1.38/src'aarch64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR=\"/nix/store/h72qyblfh9m9qhabgw4zwzigafbdrcxq-libgpg-error-1.38-aarch64-unknown-linux-gnu/share/libgpg-error\"
<z00t>
-DLOCALEDIR=\"/nix/store/h72qyblfh9m9qhabgw4zwzigafbdrcxq-libgpg-error-1.38-aarch64-unknown-linux-gnu/share/locale\" -g -O2 -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -c -o gpg_error-strsource-sym.o `test -f 'strsource-sym.c' || echo './'`strsource-sym.cIn file included from strsource-sym.c:27:./gpg-error.h:1117:33: error: unknown type
<z00t>
name 'gpgrt_lock_t'; did you mean 'gpgrt_off_t'? 1117 | gpg_err_code_t gpgrt_lock_init (gpgrt_lock_t *lockhd); | ^~~~~~~~~~~~ | gpgrt_off_t./gpg-error.h:1118:33: error: unknown type name 'gpgrt_lock_t'; did you mean 'gpgrt_off_t'? 1118 | gpg_err_code_t gpgrt_lock_lock
<z00t>
(gpgrt_lock_t *lockhd); | ^~~~~~~~~~~~ | gpgrt_off_t./gpg-error.h:1119:36: error: unknown type name 'gpgrt_lock_t'; did you mean 'gpgrt_off_t'? 1119 | gpg_err_code_t gpgrt_lock_trylock (gpgrt_lock_t *lockhd); | ^~~~~~~~~~~~ |
<z00t>
gpgrt_off_t./gpg-error.h:1120:35: error: unknown type name 'gpgrt_lock_t'; did you mean 'gpgrt_off_t'? 1120 | gpg_err_code_t gpgrt_lock_unlock (gpgrt_lock_t *lockhd); | ^~~~~~~~~~~~ | gpgrt_off_t./gpg-error.h:1121:36: error: unknown type name 'gpgrt_lock_t'; did you mean
<LambdaDuck>
How do I resolve this error? error: refusing to create Nix store volume because the boot volume is FileVault encrypted, but encryption-at-rest is not available. Manually create a volume for the store and re-run this script. See https://nixos.org/nix/manual/#sect-macos-installation
<LambdaDuck>
I didn't find anything about that in that section of the documentation.
<gchristensen>
~.
tmaekawa has quit [Quit: tmaekawa]
<{^_^}>
[nixpkgs] @grahamc opened pull request #90672 → xdg_utils: xdg-open: add $out to PATH → https://git.io/Jfd3N
ardumont has joined #nixos
<{^_^}>
[nixpkgs] @grahamc opened pull request #90673 → google-chrome: add coreutils to PATH → https://git.io/JfdsJ
pr06lefs has quit [Remote host closed the connection]
z00t has quit [Remote host closed the connection]
cosimone has joined #nixos
<Ariakenom>
allright I got the Z3 link error to go away but the boost one remains. I made a paste with the error and the .nix
<DigitalKiwi>
i feel like it wasn't like a week ago
lorimer has joined #nixos
gustavderdrache has joined #nixos
<jean-lopes>
Hi! I need to use a proprietary software (NetExtender) and couldn't find a package on nixos repos. SonicWall provides an .rpm of this software, what are my options in this situation?
<{^_^}>
[nixpkgs] @wmertens merged pull request #89365 → nixos/manual: Document `boot.debug1mounts` and clarify what `exit` does with `shell_on_fail` → https://git.io/JfiNp
<{^_^}>
[nixpkgs] @wmertens pushed commit from @jakobrs to master « nixos/manual: Document `boot.debug1mounts` and clarify what `exit` does with `shell_on_fail` (#89365) »: https://git.io/JfdZi
sbetrium has quit [Quit: sbetrium]
vykook has joined #nixos
Joestar79 has joined #nixos
Joestar79 has quit [Client Quit]
stondo has joined #nixos
jean-lopes has quit [Quit: Leaving]
<{^_^}>
[nix] @regnat opened pull request #3710 → Reserve the `__contentAddressed` derivation parameter → https://git.io/JfdnT
vykook has quit [Ping timeout: 260 seconds]
asymmetric has quit [Remote host closed the connection]
<kenran>
how can I find out what the sources are that are pulled in when entering a nix-shell with a certain shell.nix file?
<kenran>
background: I've created a shell.nix for a Haskell project which uses "pkgs.haskellPackages.shellFor", and it seems to me that something like "gitignoreSource" is not working (I see that because lorri rebuilds on changes to files that are git-ignored).
<kenran>
the packages themselves have correct gitignoreSource calls, but then again those packages aren't what should be built within the nix-shell anyway. I don't see where the info which files are being watched by lorri comes from when using "shellFor". any hints how I can figure this out?
orivej has quit [Quit: No Ping reply in 180 seconds.]
<boblehest>
Hey. I have a question. If I do `nix-env -iA nixos.jdk11 nixos.maven` and run mvn, it appears to compile with java 8?? But with `nix-shell -p jdk11 maven` it works fine. Any idea why? (I'm new to NixOS)
<KarlJoad>
Hey guys, I had a quick question about an option, specifically the `boot.enableContainers` boolean. The manual says "Whether to enable support for NixOS containers." What exactly are these "NixOS containers"?
<rsa>
the font that's broken in xfce terminal has the name "Clean", most likely a bitmap font, not sure wich font package it belongs to though (i guess xorg misc)
stondo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kreyren has quit [Remote host closed the connection]
<adamse>
gchristensen, danderson: good to hear there should be no terrible blockers, thanks :)
<gchristensen>
yep!
stondo has joined #nixos
KarlJoad has quit [Quit: Konversation terminated!]
<{^_^}>
#82342 (by Ma27, 13 weeks ago, merged): rustPlatform: increase build-speed of `checkPhase` for rust-packages
<cole-h>
"This means that the artifacts are stored in target/<architecture>/release/, rather than in target/release/."
dfdf has joined #nixos
dfdf has quit [Max SendQ exceeded]
<cole-h>
So you'll need to patch the tests
dfdf has joined #nixos
dfdf has quit [Max SendQ exceeded]
muslimm has quit [K-Lined]
<colemickens>
"This can only be worked around by patching the affected tests accordingly." this really could use an example, even if just a link to a package
<colemickens>
of course, it's probably in hte PR :)
<{^_^}>
[nixpkgs] @teto pushed commit from @delroth to master « wireshark: compile with QT_NO_DEBUG to avoid depending on qt*-dev »: https://git.io/JfdEU
mananamenos has quit [Remote host closed the connection]
fre has joined #nixos
<colemickens>
cole-h: thanks, got it sort of working, the tests are written a bit oddly though, it tests both the release and debug target output in the same test config.
<cole-h>
Yeah. However, since we run tests in release mode, it's unnecessary (though maybe desirable if this changes in the future) to replace the debug target.
<colemickens>
cole-h: hm, I expected that the debug binary wouldn't be there at all?
<cole-h>
colemickens: How do you mean? There should be no debug mode code of any kind being executed.
<colemickens>
The test code expects a debug binary was my point...
<cole-h>
wat
<cole-h>
Oh
<cole-h>
I see
<cole-h>
wtf lol
<colemickens>
I think I understand the nix side of it, I just don't understand why i3status-rust's tests are written like this and think it's a bug on their part. Yeah :)
<cole-h>
I got it. I thought the tests were properly guarded. Guess not.
<DigitalKiwi>
gchristensen: what am i doing wrong
<cole-h>
Probably nothing -- I think your {bash,zsh}rc is not being sourced, so the nix paths aren't being added
<{^_^}>
greshake/i3status-rust#746 (by colemickens, 20 seconds ago, open): Tests expect the release + debug binary which isn't realistic for packagers
<cole-h>
DigitalKiwi: I think I saw an issue for this before, currently looking..
<DigitalKiwi>
ty
<colemickens>
cole-h: anyway, I've been looking at this on and off for a few days. I'm glad I finally asked and did when you were around. Thanks a bunch.
<cole-h>
colemickens: :D
slby[m] has joined #nixos
<cole-h>
colemickens: You can always use ,tell ;)
<srk>
pibouncer is almost there!
<OmnipotentEntity>
hey guys, I have a Makefile that is trying to fetch a URL using curl and copy it into a particular directory, I can just fetch the file using fetchurl and copy it there myself, right? But how do I prevent the Makefile from trying to fetch it as well?
<cole-h>
sed 's/download the file//' or something
<OmnipotentEntity>
cool
<colemickens>
now that I think about it, for channel compatibility I'll probably just doCheck = false; for a few weeks -_-
<{^_^}>
[nixpkgs] @kalbasit opened pull request #90682 → go-swagger: init at 0.24.0 → https://git.io/JfdEw
<simpson>
omnipotententity: In addition to cole-h's suggestion of altering the Makefile, you could consider `touch` if it's in a builder, to *fool* Make into thinking that Make itself retrieved the file.
copy has joined #nixos
<OmnipotentEntity>
that's cleaner, but it's not a target itself, so I don't think that will work.
<cole-h>
DigitalKiwi: Haven't found it yet, but is the machine a NixOS machine, or some other distro?
<DigitalKiwi>
macos catalina
alp has quit [Ping timeout: 246 seconds]
<cole-h>
Sounds like it's not sourcing the generated profile/rc/whatever
<cole-h>
DigitalKiwi: I don't know where the nix.sh script is installed to on MacOS, but try sourcing it in the command line. If that works, we've found the culprit -- ssh isn't sourcing the file non-interactively.
<eacameron>
cole-h: I did get materialize built btw :D I had to disable tests though since it was having trouble setting up tests that could connect to localhost ports or something. But it appears to work.
<cole-h>
eacameron: Yeah, networking tests are always a pain :P Glad you got it working, though!
<DigitalKiwi>
'/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' this one?
<eacameron>
cole-h: Thanks for your help :D
<cole-h>
I think you want the plain `nix.sh` one, if there is one
<cole-h>
It should be right next to it.
rogue_koder has quit [Ping timeout: 246 seconds]
<DigitalKiwi>
how do i make ssh source it
rogue_koder has joined #nixos
<abathur>
DigitalKiwi dunno if zshrc(s) are the same, but the bashrcs typically have an early line to detect and stop execution if non-interactive
<cole-h>
Well, the problem is that the command isn't being executed in a shell, but directly, AFAICT
<abathur>
I can't remember if that matters here, but worth seeing if yours has a source command for nix.sh already, if it's below that line
<cole-h>
DigitalKiwi: If you `ssh host -i nix-store --version`, does that work? If not, what about `--login`? If still no, what about both of them?
aveltras has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nix] @matthewbauer opened pull request #3713 → Cleanup class StorePath warning → https://git.io/Jfdur
<DigitalKiwi>
cole-h: those don't work at all
<cole-h>
Drat. How about `ssh host -i bash -c nix-store --version`? It should work and hold you over for now, while I continue trawling the GH issues for similar problems in hopes of a solution...
<cole-h>
DigitalKiwi: If still nothing, maybe file an issue against Nix. I'm sure I've come across this issue before, but no idea how (or even if) it was solved -- somebody on the tracker might have a better idea.
rogue_koder has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @grahamc pushed 2 commits to release-20.03: https://git.io/Jfdzg
<DigitalKiwi>
might have something that works...
<exarkun>
in a multi-host morph network, during a `morph deploy ...`, does a failing health check stop the deploy from proceeding to update the subsequent hosts?
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « libfprint: 1.90.1 -> 1.90.2 »: https://git.io/JfdzQ
<sephii>
I've downloaded a game that comes as a .sh script. Apparently it copies some files and then executes them. I guess they need to be patched because I'm getting "/tmp/.../mojosetup: no such file or directory". Is there an easy way (ie. without having to patch the 1.8GB .sh file) to run this?
<rsoeldner>
Hi, what package provide the `ltdl` library ?
<cole-h>
,locate ltdl
<{^_^}>
Found in packages: libtool, isabelle, libtool_1_5
<simpson>
Should be in `libtool` although I'm not seeing it in there.
<rsoeldner>
cole-h, thank you, tried this but `pkg-config --list-all` doesnt list it :-/
<Habbie>
maybe it doesn't ship a .pc file
<cole-h>
Because it can only list things you have available -- if you're not in a shell with libtool, it won't be able to find it :)
<Habbie>
the ltdl package on debian does not ship a .pc
<iqubic>
Is there a way that I can install `libhostfxr.so` on nixos?
<rsoeldner>
cole-h, Im inside a shell which has libtool as dep.
<Habbie>
,locate libhostfxr
<cole-h>
Oh, Habbie is correct
<cole-h>
It doesn't appear to ship a .pc
<{^_^}>
Found in packages: jackett, msbuild, dotnet-sdk, dotnet-sdk_3, wasabiwallet, dotnet-netcore, omnisharp-roslyn, dotnet-aspnetcore, dotnetCorePackages.sdk_3_0, dotnetCorePackages.netcore_3_0, dotnetCorePackages.netcore_3_1, dotnetCorePackages.aspnetcore_3_0, dotnetCorePackages.aspnetcore_3_1
<Habbie>
cole-h, thanks - i'm not well versed in nix enough to figure these things out quickly :)
<iqubic>
I have dotnet-sdk, but this still isn't working.
<rsoeldner>
cole-h, is there any workaround, totally unfamiliar with .pc files
<Habbie>
rsoeldner, let's turn this around, why do you expect pkg-config to find it?
user_0x58 has joined #nixos
<Habbie>
iqubic, i see it in dotnet-sdk - on my system, it's at /nix/store/6v08d4bm1ss97nrl96x4wfbdsrkpja61-dotnet-sdk-2.1.804/host/fxr/2.1.16/libhostfxr.so
pamplemousse has joined #nixos
<simpson>
rsoeldner: What are you working on building? Usually both libtool and pkg-config are invoked by autotools and you don't have to do anything directly.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<iqubic>
I installed dotnet-sdk and ran "sudo dotnet tool install ilspycmd --tool-path ~/ilspy" That did install an executable, but running it gives this error: http://dpaste.com/3D4S7TR
<cole-h>
Try running `ldd` on the executable
zupo has joined #nixos
<cole-h>
You'll probably notice it has missing libraries, which means you'll have to find a way to patchelf its rpath so it can find those libraries
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « geekbench: 5.1.1 -> 5.2.0 »: https://git.io/Jfdgy
<simpson>
rsoeldner: I think that you need to put those native-code libraries into librarySystemDepends instead of libraryHaskellDepends. There's not any docs on it that I can find, but read pkgs/development/haskell-modules/hackage-packages.nix for examples.
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « plantuml: 1.2020.10 -> 1.2020.12 »: https://git.io/JfdVf
<cole-h>
Does anybody happen to know where the "working around a Linux kernel bug by creating a hole of 4096 bytes" warnings come from? I'd like to readup on this kernel bug... I've tried grepping through nixpkgs, nix, and patchelf and nothing came up.
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « grml-zsh-config: 0.16.2 -> 0.17.2 »: https://git.io/JfdVo
<simpson>
Trying to remember if the one-sample Poisson trick applies. I *think* it does, in which case it'll probably be around 3 days until the next update.
<simpson>
cole-h: Discord is dependent upon a third-party proprietary API which is versioned. Just like e.g. youtube-dl, sometimes the breakage isn't local, but between multiple machines.
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « avocode: 4.6.4 -> 4.7.0 »: https://git.io/JfdVS
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « guile-cairo: 1.11.0 -> 1.11.1 »: https://git.io/JfdV9
<simpson>
cole-h: Yep, that's how the trick works. A more useful version is that, if the busses are spaced about 15min apart, then the next bus is about 15min away.
<{^_^}>
patchelf#92 (by rkanavath, 4 years ago, open): warning working around a Linux kernel bug by creating a hole
<cole-h>
adamse++ No wonder I couldn't find it by grepping... It had been removed!
<{^_^}>
adamse's karma got increased to 1
<simpson>
adamse++ for archeology.
<{^_^}>
adamse's karma got increased to 2
<cole-h>
We use patchelf 0.9 (AFAICT), which is why it still shows up
<cole-h>
adamse++ Thanks again :D
<{^_^}>
adamse's karma got increased to 3
<jnorkus>
When I do "nix-shell -p some-package" is the installed data removed on next nix garbage collection event? I'm trying to understand how it works.
<simpson>
jnorkus: Yeah, if it's not being actively used or referenced when that GC happens.
<jnorkus>
simpson++ Thanks!
<adamse>
the commit introducing the bug workaround doesn't say much about it sadly :/ a9aa808a5cf3b78dd9371e273c4a924535e9e40f
<{^_^}>
simpson's karma got increased to 24
davidv7 has quit [Ping timeout: 240 seconds]
<cole-h>
niksnut: Since you made the inital commit introducing that warning, do you have more information on what that kernel bug actually was? As adamse++ notes, the details are somewhat sparse in that commit message and accompanying comment.
kleisli has quit [Remote host closed the connection]
kleisli has joined #nixos
<niksnut>
cole-h: well, the bug is what the commit message says
<niksnut>
the kernel makes (made?) an assumption that there is no gap
<niksnut>
wrt the virtual address and the file offset
ramses_ has joined #nixos
<cole-h>
Oh, I see now.
<cole-h>
OK, I somewhat understand now. Thanks for clarifying (and sorry for the ping outta nowhere)! niksnut++
<{^_^}>
niksnut's karma got increased to 20
<ramses_>
It seems like sudo is treated a bit special in nixos, how do I include it in the PATH of a systemd service? It seems like the one in my path is not a reference to the nix-store but rather to /run/wrappers/bin
jnorkus has quit [Remote host closed the connection]
<cole-h>
If it's a NixOS service, you can set `systemd.services.<service>.path = [ pkgs.sudo ];` I think.
<{^_^}>
[mobile-nixos] @samueldr opened pull request #167 → README: Add note about unstable branch → https://git.io/Jfdwz
<ramses_>
cole-h: doing so gives the following error when running sudo from within the service: `<store path>/bin/sudo must be owned by uid 0 and have the setuid bit set`
<ramses_>
So it seems I need to reference the wrapper in `/run/wrappers/`, but I don't know how to do this without hardcoding this path (which doesn't seem like a clean solution)
<bigvalen>
does anyone have an idea how to debug an issue, where nixos-enter hangs when nixos-install calls it (on a clean install) ? https://pastebin.com/KUj3xDfe has configs/hang.
<clever>
ramses_: rely on sudo being in $PATH already?
<{^_^}>
[nix] @edolstra pushed 0 commits to latest-release: https://git.io/Jfdww
<ramses_>
clever: but it isn't... I'm trying to define a service and I get a command not found
<jean-lopes>
Hi, i'm creating my first package, and got the following error on the installPhase: `mkdir: cannot create directory ‘<hidden>’: Read-only file system`, the command would be `mkdir -p $out/sbin`, can some help? :)
ebopp_ has quit [Quit: leaving]
ogkloo has joined #nixos
sgraf has quit [Read error: Connection reset by peer]
<timokau[m]>
cole-h: Much appreciated! You may want to unsubscribe there, I'll probably leave test messages every now and then ;)
<{^_^}>
[mobile-nixos] @samueldr pushed 2 commits to master: https://git.io/JfdoI
Tritlo has joined #nixos
tesdadsa has joined #nixos
sgraf has joined #nixos
nick_h has joined #nixos
chrisaw has joined #nixos
mpickering has quit [Ping timeout: 240 seconds]
<timokau[m]>
cole-h: Almost ;)
<timokau[m]>
Should've at least run the static checks first
<jnorkus>
Where could I read about the buildPythonPackage function? I'd like to read more about the build parameters.
<timokau[m]>
.. I said, while deploying to testing without running the checks again
<infinisil>
jnorkus: Sounds like $out might already be symlinked to some /nix/store location
midchildan has quit [Read error: Connection reset by peer]
nick_h has quit [Ping timeout: 240 seconds]
<timokau[m]>
jnorkus: If the info you're looking for is not in the manual (https://nixos.org/nixpkgs/manual/), you'll probably have to dig into the source
sgraf has quit [Read error: Connection reset by peer]
pittma has joined #nixos
<jnorkus>
infinisil: I don't understand what you mean - sorry I'm new.
<jnorkus>
timokau: thanks, I'll do some digging
<infinisil>
Oh sorry I meant to ping jean-lopes
raboof has quit [Ping timeout: 240 seconds]
vykook has joined #nixos
<infinisil>
jean-lopes: Sounds like $out might already be symlinked to some /nix/store location
<{^_^}>
[nixos-homepage] @garbas pushed to use-versions-from-released-nixpkgs « /nix/install redirect should be using channels.nixos.org »: https://git.io/JfdKk
<Thra11>
So apparently, putting `{ self, super }: {}` in something.nix in your overlays directory destroys the universe. (it should be `self: super: {}`)
<ldlework>
cole-h: those are not the nixpkgs options which tell nixpkgs which cores to compile into retroarch
<infinisil>
jean-lopes: That was just a guess. I suggest running commands to figure out the problem in the derivation
gilligan has joined #nixos
abathur has quit [Read error: Connection reset by peer]
<infinisil>
Like check `ls -laa $out` or `df` to check mountpoints (maybe your store might be readonly for some reason)
abathur has joined #nixos
magnetophon has quit [Read error: Connection reset by peer]
<infinisil>
Well it should be readonly, but not for $out
kloenk has joined #nixos
scoates has quit [Ping timeout: 272 seconds]
vykook has quit [Ping timeout: 258 seconds]
magnetophon has joined #nixos
pittma has joined #nixos
zot_ has joined #nixos
scoates has joined #nixos
Tritlo has joined #nixos
steveeJ has joined #nixos
midchildan has joined #nixos
chrisaw has joined #nixos
terrorjack has joined #nixos
hamishmack has joined #nixos
sgraf has joined #nixos
_deepfire` is now known as cons
alp has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @Derpford opened pull request #90690 → Update to 4.4.2 → https://git.io/Jfd6Y
davidtwco has joined #nixos
cons is now known as Guest76374
<Thra11>
I've written an overlay which applies a patch to a rust package. The patch modifies Cargo.toml and Cargo.lock. The build fails, complaining that "Cargo.lock is not the same in foo-vendor.tar.gz". However, it seems foo-vendor.tar.gz is created *before* the patch phase.
<Thra11>
Is there a way round this?
zimbatm has joined #nixos
mpickering has joined #nixos
<{^_^}>
[nixpkgs] @jonringer opened pull request #90691 → openrgb: init at 0.2 → https://git.io/Jfd6c
nick_h has joined #nixos
sethetter has joined #nixos
<{^_^}>
[nixpkgs] @Ma27 opened pull request #90692 → citrix_workspace: add more features, refactor derivation → https://git.io/Jfd6l
abathur has quit [Ping timeout: 264 seconds]
__monty__ has quit [Quit: leaving]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #90693 → IPFS NixOS module: Socket unit file more precise → https://git.io/Jfd62
<maralorn>
<Thra11 "I've written an overlay which ap"> You could try applying your patch earlier, by hand. e.g. in the postUnpack phase.
jean-lopes has quit [Remote host closed the connection]
sam_w has joined #nixos
raboof has joined #nixos
<MtotheM>
One of the selling points about nix is that it removes all traces off declarative actions when you undeclare them. but how can I make a module that do permanent changes?
<MtotheM>
Like creating folders in my home folder, I wouldn't want those to be retracted, especilly if i put data inside.
never_released has quit [Ping timeout: 246 seconds]
never_released_ has joined #nixos
zot_ has quit [Client Quit]
zot_ has joined #nixos
zot_ has quit [Client Quit]
<Thra11>
MtotheM: some modules have e.g. foo-setup systemd services which are run the first time the service is activated. You could probably write a system service which runs a script which creates folders for you.
zot has joined #nixos
<samueldr>
Nix itself only builds packages, it has no way to do anything and no oversight outside of the /nix/store (default store path)
bendygibbon has joined #nixos
<MtotheM>
So an external script must do it? makes sense
<samueldr>
**NixOS** uses Nix to build system elements that build a system
<samueldr>
but NixOS, by default, has no special handling of the home directory, outside of what the unix tools generally do like creating it for a new user
<samueldr>
so if you end up removing a user, its home dir is not removed
<Thra11>
maralorn: looks like `cargoPatches` might do what I want if I can get it to work...
<samueldr>
at that point it's all a big policy that NixOS doesn't meddle with user's homes
<bendygibbon>
Why would you want to remove a users home? It's created content, so preserving it should be the default IMO.
gustavderdrache has quit [Quit: Leaving.]
<samueldr>
pretty much why NixOS acts that way
<jnorkus>
Are "import <nixpkgs> {};" and "{ pkgs }:" the same?
vykook has joined #nixos
<bendygibbon>
Removing it is a case of rm -fr /home/$USER
<bendygibbon>
State is sacred
<{^_^}>
[nixpkgs] @python-mario-bot opened pull request #90695 → python3Packages.mario: init at version 0.0.155 → https://git.io/Jfd6H
<Thra11>
State is evil. When I want to create a file, I write a nix-expression which builds it for me :p
<bendygibbon>
User data is a PITA - push it to the users' laptops
<bigvalen>
Does anyone have a nixos bootable ISO that uses basic text mode, at the start (so it works on HP iLO) ? I'm getting "Monitor is in graphics mode or an unsupported text mode" on the x86-64 minimal install.
<samueldr>
bigvalen: can you get to the boot menu, either syslinux or grub?
<MtotheM>
nix still does some things in the home folder, like configuration files. but yes, you never want a system to mess with your personal files
<samueldr>
I believe there is a nomodeset option
<samueldr>
MtotheM: what do you mean "nix still does some things in the home folder"?
abathur has joined #nixos
nil_ has joined #nixos
<samueldr>
(and yeah, it does for things like profiles, you're right)
<MtotheM>
if I declare 'neofetch' for example, it puts the config in there, and if I remove it, it gets yanked out with it.
<bendygibbon>
configuration should be code also, but... that's servers
<samueldr>
MtotheM: if you declare "neofetch" how and where?
<bigvalen>
samueldr, No, I'm afraid. I really wish I'd made an ISO before rebooting with the minimal install ISO.
<bigvalen>
lol. When I just hit 'enter', it booted. This will do.
<samueldr>
bigvalen: dang, you do have a machine with nix available, right?
<samueldr>
oh
<samueldr>
no need to then :)
<samueldr>
MtotheM: I just want to be sure we're on the same page and talking about the same thing
nil_ is now known as nil
bendygibbon has quit [Quit: Leaving]
<MtotheM>
It's not that important, I just noticed it would clean some irrelevant files out which belonged to packages I removed.
<MtotheM>
Main configuration.nix
vykook has quit [Ping timeout: 240 seconds]
<samueldr>
are you using home-manager?
<MtotheM>
not yet
<samueldr>
NixOS shouldn't end up removing configuration files for software from your home AFAIK
tno has quit [Ping timeout: 264 seconds]
<dminuoso>
samueldr: Id argue, nixos should be in the business of making files disappear.
<MtotheM>
I can take a real example of when it did happen. I had vim initially with a tiny config. but I wanted to declare it in the configuration file. so I got 'vim_configurable' now the vimrc is not there anymore.
<dminuoso>
It's very easy to generate files with nixos and forget to delete them... sadly.
<samueldr>
dminuoso: is it nixos that generates them, or third-party software?
<samueldr>
if it's third-party software, that's not going to be easy to gauge whether nixos should or should not
<samueldr>
especially when going backwards and forwards through generations
<samueldr>
and as nixos don't generate configuration files in user's homes, there is nothing to clean up
<MtotheM>
it's true that it's possible that the programs themselves are creating the configs though.
<MtotheM>
(in home folder)
<bigvalen>
samueldr, I used to, before I rebooted it and tried to get in over it's serial console.
<samueldr>
it's a line drawn in the sand, to clearly point where NixOS will and will not meddle with files; managing user's configs is a big project in itself!
eddyb[legacy] has joined #nixos
jnorkus has quit [Quit: leaving]
vykook has joined #nixos
_ris is now known as ris
dmj` has joined #nixos
<samueldr>
and some developers and users do agree that the home folder can and should be managed, those end-up using additional solutions that *compose* with NixOS
fendor_ has joined #nixos
<samueldr>
like home-manager, there's also the (newly-minted, older idea) of discarding and opting-in state for every boot
<samueldr>
so, the thing to understand is that it's possible, but it's way hard to do right, so NixOS, the project itself, won't, but the properties of NixOS makes it so it's possible to compose additional software on the stack to help with the issue
tno has joined #nixos
<samueldr>
and those are not the only way to do so! other approaches can be thought of and experimented with!
fendor has quit [Ping timeout: 260 seconds]
<samueldr>
like my approach (not-public still) where I'm not even putting configuration in the user's home, but rather forcing a system-wide configuration for software
lilpea has quit [Ping timeout: 256 seconds]
codygman has joined #nixos
<samueldr>
(it does have the drawback of requiring patches to software :/)
rogue_koder has quit [Remote host closed the connection]
rogue_koder has joined #nixos
tno has quit [Max SendQ exceeded]
thoughtpolice has joined #nixos
<dminuoso>
samueldr: multi-user is a thing.
noudle has quit []
vykook has quit [Ping timeout: 260 seconds]
zenxhd has quit [Quit: Connection closed for inactivity]
<samueldr>
it sure it
gustavderdrache has joined #nixos
<samueldr>
it sure is*
<samueldr>
now why are you stating this?
<samueldr>
I was describing *an* approach
eoli3n has quit [Ping timeout: 265 seconds]
jean-lopes has joined #nixos
tno has joined #nixos
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
<jean-lopes>
How can I set permissions for a binary in nix-store? for instance, the pppd executable from the `ppp` package? In archlinux I would have done `chmod -v u+s /usr/sbin/pppd`. This is necessary to use my vpn client .-.
<andrewrk>
I just edited pkgs/development/libraries/tbb/default.nix in my local nixpkgs checkout and updated the version from 2019_U9 to 2020.2 and then did `nix-shell -I nixpkgs=/home/andy/dev/nixpkgs -p cmake -p ninja -p pkg-config -p glfw -p freetype -p capstone -p tbb -p gtk2-x11` but it didn't complain about the sha256 being wrong
<andrewrk>
in the environment variable it shows the new version being compiled and available
mbrgm has quit [Ping timeout: 260 seconds]
mbrgm_ is now known as mbrgm
<simpson>
Double-check; it might have reused the existing source code from the prior version. (This is the reason why folks habitually change one character of each sha256; it's like a manual cache invalidation.)
<cole-h>
andrewrk: Did you change the sha at all? If not, it'll be using the sha for 2019_U9 (and continue using 2019_U9 because that sha matches the specified sha)
reanimus has quit [Ping timeout: 260 seconds]
reanimus has joined #nixos
<andrewrk>
simpson, that did it, thanks!
o1lo01ol1o has joined #nixos
orivej has quit [Ping timeout: 258 seconds]
o1lo01ol_ has joined #nixos
muslimm has joined #nixos
<patrickod>
hey folks. very new nixos user here (on day 4, so far so good!). I have been trying to replicate the patch fix mentioned in this issue for the current nvidia driver compilation exceptions on 5.7 but without success https://github.com/NixOS/nixpkgs/issues/90459 was wondering if anyone has implemented this fix themselves and/or might have suggestions on next steps?
<{^_^}>
#90459 (by teto, 2 days ago, open): nvidia fails to build on unstable
vykook has joined #nixos
muslimm has quit [Max SendQ exceeded]
muslimm has joined #nixos
<patrickod>
I'm confident the patch _is_ being applied, if I break the filename the nixos-rebuild fails with a not-found error. I can also see build log output showing it's being applied
muslimm has quit [Max SendQ exceeded]
muslimm has joined #nixos
muslimm has quit [Max SendQ exceeded]
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<cole-h>
patrickod: So, what's your actual problem? Is it still failing even with that patch applied?
<mightybyte>
I'm getting an error "hash mismatch in fixed-output derivation". What do I need to do to get around this? I don't see those hashes mentioned anywhere in my nix expression.
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to release-20.03: https://git.io/Jfd12
<fresheyeball[m]>
You could try altering a single char in that Sha, just to force a new download
<cole-h>
^
<mightybyte>
Pretty sure the sha is right. I tried changing it to all zeroes again and when i run nix-build it tells me to change it back to the same thing.