<infinisil>
tilcreator: sourceRoot = "source/libclc" I think
kiboneu has quit [Quit: bye.]
<esotericnonsense>
does anyone know how to get a boot entry added to EFI if I'm using grub with efiSupport = true;? whether I have efiInstallAsRemovable or not it doesn't seem to work
kiboneu has joined #nixos
<esotericnonsense>
I can boot from the nixos usb, use refind, and manually load the efi file in /boot/EFI/grub; also /boot/EFI/boot/BOOTX64.EFI is the 'correct' grub one
<tilcreator>
infinisil: Seams to work, thx
<esotericnonsense>
but using `efibootmgr` I can see that there's no entry for nixos, I can manually add it but this seems janky
<tpw_rules>
so for some reason "sudo /nix/store/blah/bin/switch-configuration switch" only half works. the new configuration gets switched to, but i reboot and my old configuration is still there. is this expected behavior?
{^_^} has quit [Remote host closed the connection]
tetdim_ has joined #nixos
nhs has quit [Ping timeout: 256 seconds]
lordcirth has joined #nixos
evanjs has joined #nixos
{^_^} has joined #nixos
kiboneu has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JtW4j
<infinisil>
tpw_rules: Yeah, you need to switch the /nix/var/nix/profiles/system symlink to the one you want to be the boot default, using nix-env -p /nix/var/nix/profiles/system --set ... or so
<infinisil>
See also vim $(which nixos-rebuild), which does so too
<tilcreator>
How can I escape `${bla}` in a nix String?
<infinisil>
,escape ${bla}
<{^_^}>
Escape this in '' strings with: ''${bla}
<{^_^}>
Escape this in " strings with: \${bla}
<infinisil>
tilcreator: ^ :)
justanotheruser has quit [Ping timeout: 240 seconds]
<tilcreator>
thx ^^
<colemickens>
Is there literature to backup the giving ZFS the whole disk thing? What I have found is not very substantiated or even claims it doesn't matter.
<tpw_rules>
i'm having trouble figuring out how to make nixos shut down my x session nicely. it seems to just close down X which SIGKILLs everything immediately. i'm using lxqt and sddm
attila_lendvai has quit [Ping timeout: 240 seconds]
<danderson>
bbigras: you were quick on the trigger with that tailscale update, clearly I can't take my time after pushing the "release to pkgs.tailscale.com" button :P
<bbigras>
danderson: hehe yeah I was lucky to see the email from github.
<bbigras>
and I was looking forward for the new systemd service file.
<{^_^}>
[nixpkgs] @jonringer pushed commit from @marsam to master « pythonPackages.internetarchive: 1.9.6 -> 1.9.9 »: https://git.io/JtWgM
<rbrewer>
I'm having trouble getting an overlay for linuxPackages.zfsUnstable to work. I get "error: attribute 'rtl8723bs' missing, at..." which seems completely unrelated to what I'm trying to do. Can anyone help?
tgamblin-llnl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<danderson>
hm, I remember there's some kind of tool to run existing dynamically-linked binaries on NixOS by adjusting LD_LIBRARY_PATH appropriately... Anyone have a clue what I'm on about?
<danderson>
Trying to run a proprietary Seagate binary to reconfigure my hard drives.
<contrun>
How do I change the ld of std derivation environment? I was trying to enableCrashDump for linux kernel. I got this error, which is probably caused by this bug https://sourceware.org/bugzilla/show_bug.cgi?id=23919. And it is fixed in binutils 2.32. My ld is from binutils 2.31.1.
<contrun>
I need to override the stdenv used by nixos-rebuild.
graf_blutwurst has joined #nixos
tgamblin-llnl has joined #nixos
<CodeBitCookie[m]>
Hello everyone i have an i686 and having problems with a lot of stuff as most packages are compiling from source
<CodeBitCookie[m]>
Firefox is marked broken for i686
<CodeBitCookie[m]>
And palemoon and other browsers start compiling from source
<contrun>
I am able to override stdenv by specify nixpkgs.overlays, but this will override stdenv for all packages. How do I only override stdenv for linuxPackages_latest?
<siraben>
contrun: how are you overriding stdenv?
<contrun>
I add nixpkgs.overlays = [(self: super: { stdenv = super.stdenvAdapters.useGoldLinker super.stdenv; })]; to my /etc/nixos/configuration.nix
mallox has joined #nixos
<siraben>
yeah that's going to override stdenv for everything in your system
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JtWM6
fuiltilt has quit [Ping timeout: 260 seconds]
civodul has joined #nixos
hiro98 has quit [Ping timeout: 272 seconds]
ericsagn1 has quit [Ping timeout: 260 seconds]
fuiltilt has joined #nixos
<skrzyp>
What was that Nix project which allowed you to "render" a NixOS configuration into an FHS-capable bootable rootfs without Nix on it, for embedded purposes?
saschagrunert has joined #nixos
vidbina has joined #nixos
<siraben>
skrzyp: not-os?
<skrzyp>
siraben: yes, but it's a "complete" solution, I was thinking about that one which allowed you to put your existing configurations
<Rovanion>
I'm trying to add a package to nixpkgs. Have cloned a local repo, has added all the parts I think need to be added. But now when I run `nix-env --file $NIXPKGS --install --attr prometheus-slurm-exporter` nix tries to rebuild all dependencies from source instead of using the binary cache for everything except my new package. Any ideas as to why?
<immae>
Rovanion: Did you modify some critical part maybe?
<immae>
(for instance if you modify the openssl version in your local repo you’ll end up with a cache mismatch and thus rebuilding tons of things)
<Rovanion>
immae: The files I've modified are all-packages.nix and maintainer-list.nix beond adding a slurm-exporter.nix. I could share the diff.
<immae>
if you only added lines in those two files then it’s not the reason
<immae>
The other reason could be that hydra didn’t finish to build everything yet
<immae>
are you on the tip of master branch, or nixos-unstable branch?
teto has quit [Ping timeout: 264 seconds]
<{^_^}>
[nix] @regnat closed pull request #4112 → Don't explicitely pattern-match on the various outputs → https://git.io/JUA8G
<{^_^}>
[nix] @regnat closed pull request #4174 → Allow the copy of ca derivation outputs → https://git.io/JTE4e
<{^_^}>
[nix] @regnat closed pull request #4225 → Minimal implementation of a drv outputs copy → https://git.io/JThVS
<Rovanion>
Here's the diff: http://paste.ubuntu.com/p/MhMV55rzmw/ . I'm on a branch tracking origin/master (github) with the last commit from 27 hours ago, 13a6565c4c5.
respawn_ has joined #nixos
<Rovanion>
So rebasing on nixpkgs-unstable would do it?
<Dadou>
Hello everyone, I am playing with flake right now, and I have a few questions: Should I commit my flake.lock ? and what is the attribute `legacyPackages` for ? Thank you very much for your answers \0/
<immae>
you should commit the lockfile yes (this is the file that permits to ensure reproductibility)
<immae>
legacyPackage I have no idea :)
<Dadou>
thank you immae !
<niksnut>
legacyPackages is for the nixpkgs flake
<niksnut>
it differs from 'packages' in that it's traversed recursively (e.g. you can have legacyPackages.x86_64-linux.pythonPackages.bla)
<immae>
niksnut: so it should not be used in regular flakes?
<Rovanion>
immae: The issue turned out to be that my user didn't have write permissions to the ~/.cache directory.
<niksnut>
immae: it's best avoided since 'nix flake show' doesn't show legacyPackages by default
<niksnut>
and it's less efficient
<immae>
Rovanion: oh that’s a sneaky issue indeed
<immae>
niksnut: noted thanks for the information!
<Dadou>
Thanks niksnut, but I am not sure I get it. It is traversed when the flake is invoked ?
<niksnut>
no, when you query available packages using `nix flake show --legacy`
<niksnut>
with recursive package sets like legacyPackages or hydraJobs, nix has to evaluate every attribute to see whether it contains more packages
<immae>
dadou: when you use "packages" you have packages.yoursystem.your_package that must be a derivation. Here in legacyPackages you’re free, you can have legacyPackages.yoursystem.subname.subsubname.your_package
<niksnut>
so there is no efficient way to get the names of available packages
<niksnut>
this is why it takes hydra-eval-jobs gigabytes of RAM just to get the names of the jobs in a jobset
<Dadou>
ok; now I got it. Thank you. So where does the "legacy" come from ?
<Dadou>
legacy because it is a set, as with a default.nix ?
atkh has quit [Ping timeout: 260 seconds]
kini has quit [Ping timeout: 264 seconds]
Hail_Spacecake has quit [Ping timeout: 268 seconds]
atkh has joined #nixos
kini has joined #nixos
Hail_Spacecake has joined #nixos
Dadou has quit [Quit: Ping timeout (120 seconds)]
Darkmatter66 has quit [Quit: ZNC 1.7.5 - https://znc.in]
Darkmatter66 has joined #nixos
Dadou has joined #nixos
vandenoever has joined #nixos
<niksnut>
legacy because it's a hack needed to support the nixpkgs structure
<niksnut>
but new package sets should have a flat structure
bukkitgerman8608 has joined #nixos
<Rovanion>
Is it possible to list all gc-roots that reference a package?
<Dadou>
thank you very much for your clear answers niksnut
<chpatrick>
if I look at the derivation file it doesn't seem to be in there and if I change one of the dependencies that goes into passthru I get the same .drv
LeshaInc has joined #nixos
<chpatrick>
what I would like is to have stuff in the passthru in sync when a dependency changes but without rebuilding the package
<__monty__>
Sounds pretty cumbersome but also scriptable.
<__monty__>
I do agree this is unnecessarily convoluted UX tbh. Not sure it's worth fixing since the new UI is imminent. I hope `nix build` has a nice way to test pure builds.
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JtWpS
m0rphism1 has quit [Ping timeout: 264 seconds]
<Ke>
balsoft: btw. there is minimized config to reproduce the issue
<Ke>
zfs getting evaluated
<Ke>
or fairly minimized
<Ke>
I am not sure anyone uses nixos with linux-5.10 though
<{^_^}>
[nixpkgs] @waldheinz opened pull request #111011 → nixos/nginx: fix MemoryDenyWriteExecute not being disabled when needed → https://git.io/JtWh8
<rnhmjoj-M>
i have already ruled out strange characters in the $PWD, permissions and ACLs
ahmedelgabri has quit [Ping timeout: 240 seconds]
<levels>
Hi all, since a few days, each time I start nix-build, coreutils, bash & chromium are compiled from source and I have no clue why
<levels>
This takes at least 7 hours to complete..
<levels>
I'm using nixos to provision a VM and this seriously slows down the provisioning. I can't seem to find any answers, I've been searching for days now as to why this happens
m0rphism1 has joined #nixos
<levels>
I don't understand why all of the sudden these packages are being built from source, where previously they were just downloaded
<levels>
Anyone has a clue?
<levels>
I'm still on the 20.03 branch..
kayg04 has joined #nixos
ece3 has quit [Ping timeout: 240 seconds]
waleee-cl has joined #nixos
<{^_^}>
[nixpkgs] @primeos closed pull request #110953 → [20.03] chromium,google-chrome: Mark as insecure → https://git.io/JtWIU
vidbina has quit [Ping timeout: 240 seconds]
<levels>
omg, the above PR will cause even more havoc :-(
Sergeeeek has joined #nixos
sangoma has quit [Ping timeout: 240 seconds]
<Sergeeeek>
Hello everyone. How do you guys manage python virtual environments with nix? I tried mach-nix, but that didn't work too well. Are there any other good ways?
<levels>
I've literally lost weeks by these insecure marks, preventing my VM to build using older versions of nixos. It's really hard to allow insecure packages when using a complex build environment, with overlays, vagrant, etc etc
<dutchie>
levels: 20.03 is end-of-life, presumably the caches have been deleted now
cfricke has quit [Quit: WeeChat 3.0]
<levels>
But then how am I supposed to run legacy code on nixos? This is one of the major features for me. Currently I'm still needing eg php5 or elasticsearch 1
<levels>
Upgrading to 20.09 is way to complex, since all libraries have moved on and nothing compiles without extensive patching
<levels>
I've spent even more time looking at older derivations (going back to 16.03 and older) just to be able to still use these old packages
<levels>
But why is it still compiling coreutils-8.31, which is the most recent version, right?
Wharncliffe has quit [Quit: Lost terminal]
<henri>
dutchie: cache.nixos.org has not been garbage-collected at all yet
Thaodan has left #nixos ["Using Circe, the loveliest of all IRC clients"]
<bqv>
Why was my kernel built in 1980?
<henri>
bqv: Because everything on NixOS was built in 1980. Nix resets the timestamp.
<bqv>
The unix epoch is 1970
<bqv>
That isn't reset
<levels>
Does anyone know what can cause a build from source if I never changed any inputs?
<levels>
binary caches unreachable?
alexherbo2 has joined #nixos
<henri>
bqv: Obviously it's not reset to unix epoch but evidently it's reset to someting.
<bqv>
henri: ok, so I'll ask again, why is everything else reset to the epoch but the kernel 1980
<ronthecookie>
i messed up with nix-channel a while ago and now i get results for both nixos.* and nixpkgs.* when i use `nix search`, how can i get rid of the nixpkgs entries?
<ronthecookie>
just to be clear, my channels are good now
<{^_^}>
[nixpkgs] @NickHu pushed commit from @r-ryantm to staging « mopidy-somafm: 2.0.0 -> 2.0.0 (#110075) »: https://git.io/JtlJr
<henri>
ronthecookie: nix search --update-cache ?
<ronthecookie>
henri: didnt work last time i tried but ill try again
<ronthecookie>
doesnt work
<Sergeeeek>
henri: thanks, I'll look into it :)
justanotheruser has quit [Ping timeout: 264 seconds]
<henri>
ronthecookie: Hm, the old nix search is not great. Maybe try deleting ~/.cache/nix/ but be aware that this also nukes all cached tarballs.
<ronthecookie>
henri: its worth noting im on nixos, not singleuser nix
<ronthecookie>
still no difference and it took very little time to delete oddly enough
buggymcbugfix_ has joined #nixos
tetdim has quit [Ping timeout: 256 seconds]
bukkitgerman8608 has quit [Read error: Connection reset by peer]
englishm has quit [Ping timeout: 256 seconds]
buggymcbugfix has quit [Ping timeout: 256 seconds]
buggymcbugfix_ is now known as buggymcbugfix
zakame has quit [Ping timeout: 256 seconds]
englishm_ has joined #nixos
englishm_ has joined #nixos
<henri>
ronthecookie: That's actually not important. The cache is kept in ~/.cache/nix/ regardless.
<ronthecookie>
how odd
zakame has joined #nixos
tetdim has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
respawn_ has quit [Quit: Leaving]
<stoile>
levels: I'd also bet on some overlay. I had similar issues (but fewer packages) with setting "noXLibs = true", which changes some stuff internally with overlays.
euandreh has quit [Ping timeout: 264 seconds]
euandreh has joined #nixos
<levels>
I just disabled all overlays, removed any reference to chromium, as soon as I re-add chromium to systemPackages, it starts compiling again from source
<levels>
Also, I never changed anything in the overlays to cause this
<bqv>
Anyone know why just the kernel specifically says it was built in 1980? Exactly one year (to the second) after the unix epoch? When everything else is either reset to epoch or left?
berberman_ has joined #nixos
berberman has quit [Ping timeout: 272 seconds]
berberman_ has quit [Max SendQ exceeded]
berberman has joined #nixos
<{^_^}>
[nixpkgs] @pingiun opened pull request #111016 → Make nq available on macOS → https://git.io/JtlkS
<clever>
bqv: time is an impurity, nix eliminates all traces of it from a build
zebrag has joined #nixos
<bqv>
I know, but I'm curious what the significance of `Tue Jan 1 00:00:00 UTC 1980" I,
<clever>
bqv: it should be 1970, not 1980
<bqv>
Exactly
<bqv>
It's not
<clever>
unix timestamp 0 cant be used, because some programs treat 0 as an error
<bqv>
So why?
<Taneb>
I think the zip format needs to be 1980
<bqv>
Ah!
<bqv>
Thank you, finally an answer
<bqv>
clever++ Taneb++
<{^_^}>
Taneb's karma got increased to 19
<{^_^}>
clever's karma got increased to -2147483648
<clever>
lol
<bqv>
Good lord
<Taneb>
clever: you're going to have on hell of a reincarnation
<levels>
Just did a vagrant destroy, watching it compile bash again, WTF
berberman has joined #nixos
<levels>
This really doesn't make sense, I have been using nixos for well over 5 years, with complex deployments using nixops, and this never happened to me
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/JtlLv
<levels>
Still no one here seems to know what causes bash and coreutils to compile from source in the 20.03 branch
<siraben>
Anyone familiar with poetry2nix? What if the project doesn't have a poetry.lock file?
<levels>
are the caches down?
<bqv>
siraben: then I think you need to either create one or go another route
* adisbladis
has "some" experience with poetry2nix
<ocharles>
What are my options to share the /nix/store of a machine? It currently runs Hydra and we're using Hydra's cache serving ability, but it peridiocally spews out a load of 502s
<ocharles>
Should I use nix-serve?
<gchristensen>
imho the best option is to use s3 or s3-compatible object store as a binary cache that hydra pushes to, perhaps cachix supports this use case as well
<gchristensen>
nix-serve has the down side that it will offer the entire local nix store over the cache, including paths that hydra didn't build
karantan has joined #nixos
<ocharles>
Ok, and is there anything I can run that'll do that?
<gchristensen>
can you clarify your question? :x
<ocharles>
Well, is there anything that will do what you just said? Push build results to S3 (and perhaps I need to run a HTTP daemon too?)
<gchristensen>
are the artifacts considered private / secret ?
<ocharles>
Can I say yes and no to hear both answers? (:
<gchristensen>
hah
<ocharles>
But more "yes", as there is proprietary source code (for one)
<ptrcmd>
adding an overlay to replace the alsa-ucm-conf from nixpkgs and running `nixos-rebuild switch` afterwards triggers a massive rebuild
teto has quit [Ping timeout: 260 seconds]
<leo60228>
i use pkgs.nixUnstable for my system nix, is there a way to prevent things that explicitly use pkgs.nix from warning about experimental-features and warn-dirty in my nix config?
<leo60228>
it doesn't cause any problems, it's just kind of annoying
<ptrcmd>
and I want to avoid massive rebuilds when possible
<ocharles>
Hmm, I might look into these new post-build hooks, as it's not just Hydra that does builds. We use Buildkite, and just run `nix-store -r` in jobs
<ocharles>
gchristensen: thanks, there's plenty for me to play with here. I'm OK doing some opsy configuration work, but would really like to avoid actual code
<ocharles>
seems like all the pieces are there though
<levels>
nix-instantiate channel:nixos-20.03 -A coreutils
<levels>
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/Jtlq6
<henri>
levels: Looks like it substituted for you as well, so all is fine.
<levels>
yet it still compiles coreutils from source every time I try again
saschagrunert has quit [Quit: Leaving]
teto has joined #nixos
<henri>
levels: Can you post something that I can easily reproduce?
justanotheruser has joined #nixos
<henri>
levels: If I run nix-build channel:nixos-20.03 -A coreutils multiple times it never starts building it.
<levels>
not sure, quite some company stuff in there.. I'll just wait it out for now, replace chromium with firefox and leave this for a later time, when I do manage to upgrade to 20.09
<levels>
Thanks again for your help guys, I was really losing my cool over this :Facepalm:
<henri>
levels: If there are no overlays, you should triple check your channels.
<henri>
levels: There is some impurity sneaking in somewhere.
<levels>
That would be a first for me ;-) in more than 5 years :shrug: thx again henri
<leo60228>
is there a way to figure out what part of my configuration is depending on mono5? grepping for `mono`, `dotnet`, and `netcore` isn't helping
<gulplante>
How would one go about using OpenCL with an NVIDIA gpu on nixos? Googling did not prove fruitful.
nhs has joined #nixos
<theuni>
gulplante: interesting question. i'll be digging into that in the next months. not yet, though ...
<leo60228>
henri: forgot to mention i'm using flakes, i *think* `nix why-depends --inputs-from . .#nixosConfigurations.nixpi.config.system.build.toplevel nixpkgs#mono5` will work but this system is v slow
<theuni>
at the same time im wondering why i'm stuck on trying to find a library function that merges a list of attrsets into a single attrset.
<leo60228>
what why is that command building mono5
<leo60228>
nix pls
<leo60228>
oh i wanted to add --derivation
ahmedelgabri has joined #nixos
<leo60228>
it worked, nice
<theuni>
so if I have [ {a=1;} {b=2;} ] I want this to merge to {a=1; b=2;} and for some reason i'm completely stuck and looking at foldAttrs seems like an overkill function to write it down in a readable manner ...
<theuni>
i actually don't even want duplicates to be appended, ideally i'd have duplicates explode
<theuni>
sometimes ... my head gets stuck in functional land ...
<theuni>
i guess foldl' would be a start
<henri>
theuni: builtins.foldl' (x: y: x // y) {} [ { a = 1{ a = 1; b = 2; }
<theuni>
henri: yeah. im a bit surprised this doesn't have a shortcut yet. but well.
<henri>
theuni: oops formatting woes
<henri>
theuni: builtins.foldl' (x: y: x // y) {} [ { a = 1; } { b = 2; } ]
<theuni>
yeah i got it
<theuni>
i was mainly stuck with the expectation of 'must ... be ... there already'
<andi->
or compine fold with recursiveUpdate if you have multiple levels in the attrset
<gulplante>
theuni: what are you saying? That the work is for this is not done yet?
ahmedelgabri has quit [Ping timeout: 265 seconds]
<theuni>
andi-: yeah, no thanks, i want exactly just a top-level merge
<theuni>
gulplante: ?
<theuni>
ah, opencl. no, i haven't looked at it at all, so no idea
<theuni>
gulplante: i was just expressing that this is likely on my plate too at some point and i'd be happy to compare notes
<theuni>
but nothing yet from my side
<gulplante>
theuni: Ah, ok.
<theuni>
henri: so my follow-up question is: shouldn't this be somewhere in a lib already and am i just too blind or am i holding this wrong that i want this?
bn_work has quit [Read error: Connection reset by peer]
hiro98 has quit [Ping timeout: 256 seconds]
bn_work has joined #nixos
<ptrcmd>
dutchie: I would guess that's probably not too important?
evax_ has quit [Ping timeout: 264 seconds]
virus_dave has joined #nixos
evax_ has joined #nixos
erasmas has joined #nixos
<theuni>
henri: yeah no, i have a list with n elements. wasn't looking for a binary option. could have used // in that case ;)
<{^_^}>
[nixpkgs] @NeQuissimus opened pull request #111023 → scala: Replace VM test with installCheckPhase → https://git.io/JtlZe
<theuni>
and i'm mostly surprised that (And trying to understand why) i got so confused between all the merge/concat/update/recursive*/fold/xxAttrs functions
illustris has quit [Read error: Connection reset by peer]
<theuni>
jumping between looking at the builtins docs and browsing the nixpkgs/lib files
jbetz has quit [Read error: Connection reset by peer]
<theuni>
i feel like i'm missing some basic point
<dutchie>
ptrcmd: indeed not, but i wonder if there is a right answer. my gut says final/self, but e.g. https://nixos.wiki/wiki/Overlays uses super.fetchFromGitHub
jbetz has joined #nixos
illustris has joined #nixos
pingveno has quit [Read error: Connection reset by peer]
omnigoat has quit [Read error: Connection reset by peer]
jlpeters has quit [Read error: Connection reset by peer]
emilazy has quit [Read error: Connection reset by peer]
pingveno has joined #nixos
jlpeters has joined #nixos
emilazy has joined #nixos
<dutchie>
oh, the manual says "The second argument (super) corresponds to the result of the evaluation of the previous stages of Nixpkgs. It does not contain any of the packages added by the current overlay, nor any of the following overlays. This set should be used either to refer to packages you wish to override, or to access functions defined in Nixpkgs"
<{^_^}>
[nix] @regnat pushed 0 commits to ca/copy-drv-outputs: https://git.io/JtlZ0
philr_ has quit [Ping timeout: 240 seconds]
<{^_^}>
[nix] @regnat pushed 9 commits to ca/copy-drv-outputs: https://git.io/JtlZ6
<Siyo>
Is there any way to debug what causes NixOS to restart a service? I swear every time packages in the nix store are updated, it causes ALL my oci-containers to restart. Even if nothing seemingly related was changed
<lordcirth>
Siyo, if the derivation the executable comes from changed, it will restart. And that derivation changes any time any dependency changes.
kalbasit has joined #nixos
<Siyo>
I guess podman must rely on some core thing that updates very often
<humancalico[m]>
I'm getting this error (https://pastebin.com/z4i8VFnB) while installing the `nvim-treesitter` plugin using home-manager. What might be the issue here?
<Siyo>
lordcirth, ok to reproduce it I just enabled some completely random nixos service and it restarted all of my podman containers
<lordcirth>
Siyo, ok, that is strange. I'm not familiar with podman, though
<Siyo>
yeah I'm just wondering how I would go about debugging this issue
<Siyo>
adisbladis actually, looking at that oci-containers bug. Wouldn't a simpler fix be to just change `"${config.system.path}/bin/${cfg.backend} run"` to `"${cfg.backend} run"`? If you look at ExecStop it doesn't need the `config.system.path` anyway since the backend is loaded into the systemd service `path`
sangoma has quit [Ping timeout: 246 seconds]
bqv has quit [Ping timeout: 272 seconds]
euandreh has quit [Ping timeout: 272 seconds]
bqv has joined #nixos
<Siyo>
though that would beed to be done through the shell, nevermind
euandreh has joined #nixos
<mpickering>
Is there an idiomatic way to control the order systemd services are started?
<mpickering>
One service creates an interface which the other uses, but I have to keep manually starting it
tenarchits has joined #nixos
kraem has quit [Quit: outta here]
<henri`>
mpickering: Requires= and After=?
kraem has joined #nixos
euandreh has quit [Ping timeout: 272 seconds]
<henri`>
mpickering: Or if you can use socket activation.
euandreh has joined #nixos
<teto>
henry thanks, is it possible to do that from within the nix-shell ?
rajivr has quit [Quit: Connection closed for inactivity]
<noonien>
is it possible to cross-compile flake nixosConfigurations?
<ehmry>
noonien: yes, set `nixpkgs.crossSystem`or `nixpkgs.pkgs`
justanotheruser has quit [Ping timeout: 272 seconds]
<noonien>
ehmry, how does that work?
<noonien>
i'm talking about cross-compiling flaked nixos configurations
mallox has quit [Quit: WeeChat 3.0]
<ehmry>
noonien: I don't know how you would do that with an existing confguration, that is I don't know if you can override a configuration after it goes thru `lib.nixosSystem`
mallox has joined #nixos
mallox has quit [Client Quit]
<noonien>
is it possible to specify to lib.nixosSystem that i want to cross-compile?
<{^_^}>
[nixpkgs] @cript0nauta opened pull request #111030 → nixos/miniflux: don't depend on sudo → https://git.io/Jtl8g
<clever>
noonien: one sec
rbrewer has quit [Quit: Ping timeout (120 seconds)]
<{^_^}>
[nixpkgs] @tmountain opened pull request #111034 → uboot: add ubootNanoPCT4 for NanoPC-T4 → https://git.io/JtlRr
<qyliss>
(I figured that out by seeing what Wikipedia history URLs look like and applying the same pattern, since the NixOS Wiki also runs MediaWiki)
<buddy2003>
Can someone direct me to documentation explaining the conceptual difference between a nixos package and a nixos program? It seems like a program is a higher level abstraction that encompasses both a package and its configuration but I'm not confident enough my understanding to reason about when I should use a program or a package.
<shapr>
qyliss: ah, thanks!
berberman_ has joined #nixos
berberman has quit [Ping timeout: 264 seconds]
<qyliss>
buddy2003: do you mean programs.*.enable vs environment.systemPackages?
<buddy2003>
@qliss I mean in my configuration.nix I can install the nixos.bash packge and/or I can set programs.bash.enable = true What is the difference?
<bsd4me>
hello! I'm about to burn nixos iso to dvd and give it a try.
<bsd4me>
Read about it on distrowatch, figured I'd give it a try.
<{^_^}>
[nixos-homepage] @garbas pushed to blog « make check, passes now »: https://git.io/Jtluv
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JtlgU
c4rc4s has joined #nixos
<lovesegfault>
What's the simplest way to write a derivation for an inline script but have it have the right stuff in path and properly declared buildInputs, etc
<lovesegfault>
writeScriptBin encourages popping ${pkgs.myDep} in your script which I hate
<gchristensen>
a writer which used resholved would be nice
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000), then replace it with the correct hash Nix expected. For inserting 52 0's in vim: <esc>52i0<esc>
<lovesegfault>
Duponin: nix-prefetch-url. Or just shove 0's in, let the build fail, and then use that. Or use your curl incantation. All work
<abathur>
gchristensen: not sure what the collateral damage of having resholve as a dep everywhere might be, but I guess we won't know until someone YOLOs it :)
<gchristensen>
:P
<Duponin>
lovesegfault: if the curl voodoo works I prefer to use it, it's a commit less in my deployement process ^^
cole-h has joined #nixos
<abathur>
it wouldn't shock me if it hits syntax errors in a few places
<leo60228>
i have a workflow that i'm not really sure how to handle
<leo60228>
i have a shell.nix that i use to build a program depending on a library in nixpkgs
<leo60228>
i'd like to modify that library
<leo60228>
does nix have a clean way to handle this?
<leo60228>
just overriding the src works but is difficult since it means i have to rebuild the whole library for every change
<leo60228>
alternatively: do nix-shell/nix develop have a way to do the equivalent of `nix-shell -p package` for your working copy
<Duponin>
I'm deploying a virtualhost with ACME, when I do a regular switch/test it works but when I'm using `morph` it keeps telling me that my account is not registered
<{^_^}>
[nixpkgs] @vbgl pushed commit from @sternenseemann to master « ocamlPackages.opam-file-format: build using dune »: https://git.io/Jtlay
<leo60228>
(ignore the above question, it was an XY problem)
SrPx has quit [Ping timeout: 265 seconds]
ryjm has quit [Ping timeout: 264 seconds]
r0bby has quit [Ping timeout: 264 seconds]
<Duponin>
eyJhb: gonna join this channel, thanks. It says `<service> <date> account <my email> is not registered. Use 'run' to register a new account`
mitsuhiko has quit [Ping timeout: 265 seconds]
joshmeredith has quit [Ping timeout: 260 seconds]
vdemeester has quit [Ping timeout: 260 seconds]
joshmeredith has joined #nixos
<Duponin>
leo60228: not a shell.nix expert but I guess it's like in a regular NixOS env, there are no proper way to modify a library without fully overriding it
mitsuhiko has joined #nixos
SrPx has joined #nixos
vdemeester has joined #nixos
ryjm has joined #nixos
r0bby has joined #nixos
<{^_^}>
[nixpkgs] @primeos pushed to master « chromium{Beta,Dev}: Disable PGO to "fix" a build error »: https://git.io/JtlVe
<axx>
hi everyone, i experience this weird freeze on my Raspberry Pi 4 running NixOS (21.03 pre): things on the CLI start freezing, like i type in "ls" and nothing happens. I can ctrl+C but some commands can stay stuck
<axx>
i'm in Tmux and i can still change buffers, my buffer with Htop shows me the rpi4 is really not under any specific load
<{^_^}>
[nixpkgs] @cole-h pushed commit from @Scriptkiddi to master « nixos/fprot: add type »: https://git.io/JtlrI
<cole-h>
infinisil: What do I need to add to a `types.attrsOf` to allow something like `asdf = 1;` and `fdsa = "lol";`? `types.attrsOf (types.either types.str types.int)` doesn't appear to do what I want.
<{^_^}>
[nixpkgs] @cole-h pushed commit from @Scriptkiddi to master « nixos/deluge: add type »: https://git.io/Jtlrj
<Duponin>
axx: it reminds me my camera SD card, when a software (ls or Dolphin) interact with a specific directory in SD card it get instantly frozen and kernel can't kill this process, only a hard power reset can
ahmed_elgabri has quit [Ping timeout: 260 seconds]
peskygee has joined #nixos
<peskygee>
Hi all, anyone using herbstluftwm here? I cannot get it to see my autostart file. I tried several locations and also placed the path in my conf.nix but still reverts back to the xdg ver.
<peskygee>
I can load it just fine from within the wm itself so I know it works
<axx>
<Duponin "axx: it reminds me my camera SD "> I can try to reinstall on a different SD, see if it makes a difference
<Duponin>
peskygee: an herbstluftwm user! on NixOS!
<Duponin>
yet tried herbs on NixOS, sadly can't help you
<Duponin>
axx: I suspect a faulty card (I hope mine is not) or a faulty driver/whatever. Maybe the second solution because camera deals really well with the card
<peskygee>
Duponin: I used it a while ago and wanted to try it again. But no go on NixOS. I cannot find the autostart :-(
gustavderdrache has joined #nixos
<peskygee>
Even declairing the option in my config still will not load it. Strange
<Duponin>
it should target /home/USER/.config I guess
MidAutumnHotaru has quit [Quit: Ping timeout (120 seconds)]
MidAutumnHotaru has joined #nixos
<peskygee>
Duponin: Yes I tried it without the configFile and the default directory and also tried to specify it to my home dir at both dirs and it will not see the autostart
simba1 has quit [Ping timeout: 260 seconds]
<peskygee>
always reverts to the xdg config
<Duponin>
does your autostart have execution bit?
<Duponin>
I think herbs needs it
<Duponin>
since it basically bash scripting
<peskygee>
yep it does
<Duponin>
ah
lsix1 has quit [Ping timeout: 260 seconds]
bsd4me has left #nixos [#nixos]
<peskygee>
I even copied over the xdg file and chmod but still the same
<peskygee>
very strange
<peskygee>
First time I experienced this on NixOS
<Duponin>
what does `echo $XDG_CONFIG_HOME` give you?
simba1 has joined #nixos
<peskygee>
oooh nothing?
<peskygee>
humm why would that not return my home dir?
<axx>
<Duponin "axx: I suspect a faulty card (I "> I'm a bit doubtful, the card was new and has only been used for nixos, and it's a good Saddisk
<Duponin>
axx: same, that's why I'm more suspecting NixOS to have issues with SD cards (faulty driver)
<axx>
Of course it's possible.. But if even when taking all precaution like that SDs are so brittle, we need to stop using them at all ;)
<Duponin>
axx: I agree but for cameras, Compact Flash is awfully expensive and SSDs are too big (unless cinema camera)
<Duponin>
peskygee: hehe. I don't know where you can change it, it's nothing for me too. May try to hardcode the full path from root to your autostart file
fionera has quit [Quit: No Ping reply in 180 seconds.]
Mateon1 has quit [Remote host closed the connection]
tv has quit [Ping timeout: 240 seconds]
<peskygee>
gonna give it a try. Thanks for the tips!!