<energizer>
it might be an os/fileystem buffering thing rather than an app-level thing tho
<{^_^}>
nix#4395 (by sternenseemann, 5 weeks ago, open): Make nix log show build output of not fully realized derivations
<ashkitten>
i wonder if it would Just Work if the buffer was flushed immediately inside nix
<energizer>
did you try disabling compression?
<ashkitten>
i did not
<DigitalKiwi>
compressed ram, compressed zfs, compressed c++ sink, ... maybe that's why my computer freezes
<ashkitten>
now i did
m0rphism1 has quit [Ping timeout: 240 seconds]
<ashkitten>
it does not flush immediately still
<ashkitten>
i need to dig into nix code and make it do that
gueorgui has quit [Ping timeout: 246 seconds]
cole-h has quit [Ping timeout: 256 seconds]
gueorgui has joined #nixos
m0rphism1 has joined #nixos
sigmundv has quit [Ping timeout: 256 seconds]
thelounge526 has joined #nixos
thelounge52 has quit [Read error: Connection reset by peer]
thelounge526 is now known as thelounge52
thelounge520 has joined #nixos
bgamari has joined #nixos
bgamari_ has quit [Ping timeout: 264 seconds]
thelounge52 has quit [Ping timeout: 240 seconds]
thelounge520 is now known as thelounge52
bitmapper has joined #nixos
<matthewcroughan>
When is nixos gonna have a discourse nixpkg? ;D
<matthewcroughan>
I really want it
ahmedelgabri has joined #nixos
<{^_^}>
[hydra] @grahamc opened pull request #860 → Move evaluation errors from evaluations to EvaluationErrors, a new table → https://github.com/NixOS/hydra/pull/860
ahmed_elgabri has quit [Ping timeout: 264 seconds]
ahmedelgabri has quit [Remote host closed the connection]
uwap has quit [Ping timeout: 256 seconds]
petar has quit [Ping timeout: 246 seconds]
jb55 has quit [Ping timeout: 268 seconds]
Hail_Spacecake has quit [Ping timeout: 268 seconds]
aveltras has quit [Quit: Connection closed for inactivity]
nhs has joined #nixos
sneak has joined #nixos
nhs has quit [Ping timeout: 258 seconds]
Qwerky has joined #nixos
ajs124 has quit [Quit: Bridge terminating on SIGTERM]
Scriptkiddi has quit [Quit: Bridge terminating on SIGTERM]
cheriimoya has quit [Quit: Bridge terminating on SIGTERM]
mrpi has quit [Quit: Bridge terminating on SIGTERM]
das_j has quit [Quit: Bridge terminating on SIGTERM]
Qwerky has quit [Ping timeout: 256 seconds]
mrpi has joined #nixos
cheriimoya has joined #nixos
Scriptkiddi has joined #nixos
ajs124 has joined #nixos
das_j has joined #nixos
moet has joined #nixos
<moet>
if i do `nix-build --dry-run` i get a whole bunch of output about dependencies and then on the last line the store path of the would-be build.. is there some easy way to obtain just that store path, or just the hash-part of it? ... or should i be doing `nix-build --dry-run | tail -1 | sed ...` stuff?
<colemickens>
Has there been previous discussion of having some way of forcing a test evaluation of nixos-unstable + CVE patches, and a way to circumvent the normal cascade of updates?
nhs has joined #nixos
<colemickens>
Maybe that would make things too complicated for (back)porting though, I don't really know?
<moet>
i lost connection for awhile...
<colemickens>
hey moet !
<colemickens>
moet: you can use `nix-instantiate` for what you were asking about.
<colemickens>
moet: or `nix eval --json ...`
<moet>
colemickens: thanks! i was about to ask again
<moet>
i lost my internet connection briefly
zebrag has quit [Quit: Konversation terminated!]
MidAutumnHotaru has quit [Quit: Ping timeout (120 seconds)]
MidAutumnHotaru has joined #nixos
<moet>
colemickens: oh, this works great.. i'm using it for a cache-key on circleci
<moet>
thanks!
lopsided98 has quit [Ping timeout: 240 seconds]
<colemickens>
moet: hm, I'm curious, what are you using it as a cache key for?
simba1 has joined #nixos
lopsided98 has joined #nixos
endformationage has quit [Quit: WeeChat 2.9]
<moet>
the /nix dir
<moet>
i'm still kind of working it out..
<moet>
i want to do `nix-instantiate` to get the key for the data which would be produced by `nix-shell --run true`
<moet>
ie. i'd like to key the set of dependencies for the project which would be built by `nix-build`
<colemickens>
what are you trying to do, though
<colemickens>
I'm just wondering if there's a better strategy overall, for whatever it is you're trying to cache.
akaWolf has joined #nixos
<ashkitten>
hmm i'd really like an actual supported way to inspect nix builders, specifically what phase they're in and their build log
stephank has quit [Quit: Ping timeout (120 seconds)]
* colemickens
dreams of a t(rust)y nix daemon with grpc for such things.
stephank has joined #nixos
<moet>
colemickens: i'd like to cache the dependencies of the build..
<moet>
colemickens: circleCI ignores a "save cache" action if it already has a cashe
<moet>
colemickens: so that means i need to change the cache key with the dependencies to ensure that the cache is updated when dependencies change
euandreh has quit [Ping timeout: 264 seconds]
Quick_Wango has joined #nixos
<lovesegfault>
Is there some way for me to see where a trace is coming from when I evaluate a file?
<lovesegfault>
like, to track down the trace as what happens when you get an error
<moet>
ok, so this `nix-shell --run 'echo $out'` is what i want, and `grep --only '"out","\([^"]\+\)"' $(env IN_NIX_SHELL=1 nix-instantiate) | head -1` gets me pretty much the same string.. so i think i'm good! thanks :)
<moet>
it's tested as far as building dependencies.. i don't know if the cache_restore and cache_save steps will work once there's a cache there, but otherwise i think it's mostly right
d3od has joined #nixos
thelounge52 has quit [Ping timeout: 265 seconds]
moet has quit [Ping timeout: 264 seconds]
ATuin has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
<hugolgst>
do you have any idea on how could i install a custom man page for my derivation?
malook has quit [Quit: malook]
<t3hyoshi>
Is your man page in a documentation format?
Yaourt has joined #nixos
<hugolgst>
in roff yes
<hugolgst>
the default man page syntax
Yaourt has quit [Client Quit]
sangoma has quit [Ping timeout: 264 seconds]
<t3hyoshi>
This probably isn't the Nix way of doing it, but you're probably going to have to manually copy it into /usr/local/man/man7 and gzip it there.
<Compilador>
Hey all, sorry to ask this again but I'm really stuck here. I have a rust project that depends on jemalloc, but it seems the vendored cargo deps is stripping all executable flags from the .sh scripts in the upstream repo
<asheshambasta>
Is there a good resource on how to get nix working well with GH actions? We use S3 based caching for our nix builds, but build times are skyrocketing for us (so are costs). We're in the order of a 40 minute build time for a 170 module Haskell project.
<a12l[m]>
Is the C language server Clangd available in NIxpkgs? I can't find it, but I've seen at least on issue on GH discussing installing Clangd via Nix :/
<avn>
Folks, anyone can hint me, why it happens: lockfile contains mutable lock '{"ref":"master","type":"git","url":"ssh://git@gitlab.com/some/some.hit")'?
<averell>
What is the policy on release backports? Can #110550 be picked to 20.09? Because the non-LTS kernels were removed recently, that means people using virtualbox have to *downgrade* their kernels to 5.4 or lose virtualbox.
<{^_^}>
[nixpkgs] @SuperSandro2000 opened pull request #111646 → treewide: Remove doBuild = false, remove some stale substituteInPlace, fix some hanging tests on darwin → https://github.com/NixOS/nixpkgs/pull/111646
<clever>
hugolgst: if you add pathsToLink = [ "/share/man/man1" ];, then it will be forced to create man1 as a directory, and fill it with symlinks to each input
<clever>
and now you can freely mutate the contents of man1
<hugolgst>
thanks a lot
lsix has quit [Ping timeout: 260 seconds]
<attila_lendvai>
is there a way to abort a build? i have accidentally initiated a build with a nix-shell invocation, then i C-c'd it, but the build is running in the background...
<attila_lendvai>
or it may have been lorri that started the build
<clever>
attila_lendvai: just run the kill command on a random process within the build, and the whole build will implode due to that process failing
<clever>
attila_lendvai: restarting lorri may also kill it
kalipso has joined #nixos
lewo has joined #nixos
<attila_lendvai>
clever, i had to sudo killall cc1, but then also nix-instantiate, but then it stopped. thanks!
thelounge52 has joined #nixos
Lux[m]1 has joined #nixos
<kalipso>
hey, how do people manage their secrets when building nixos configurations with flakes? I have my secrets in files contained in the .gitignore. that means they are not part of the git repository and nixos-rebuild failes because the secrets file cannot be found
<ocharles>
Anyone have any tips on how to populate `/root/.aws/config` from configuration.nix using nixops? I have deployment.keys.aws-config set, and I think just need to create a symlink. Maybe system.activationScripts
<attila_lendvai>
does anyone know about a project/example where a linux executable is compiled that doesn't link to libc; i.e. gcc -nostdlib, but still uses argc and argv? i have a toy language that compiles to asm, and i would like to link it as a static elf executable that doesn't link with neither ld.so nor libc.so. i'm trying to avoid including/writing my own crtx.S files...
<Compilador>
Just going to ask again, still debugging, 2 days in now. rustBuildPackage seems to be stripping the executable flag from files in vendored dependencies. Anyone have any idea why?
<truby>
I'm using nix-shell to manage my development environment for C++, I was wondering if it's possible to specify that I want debug symbols for all the libraries it's pulling in? I can't work out a way to say I want e.g. glibc debug symbols. Any ideas?
<clever>
truby: this function can be ran on any package, to make a debug variant of that
<edef>
and overriding glibc means rebuilding *everything*
<truby>
yeah, I am aware of that one but you can't easily get it on glibc right? and I want debug symbols for all of my dependencies ideally
<clever>
i generally use gdb to figure out where the problem is, then an overlay to rebuild just one thing with debug
<edef>
really wish we'd build everything with a debuginfo output
akaWolf has quit [Ping timeout: 264 seconds]
<clever>
yeah, that would help
<Reventlov>
hey
mkaito has joined #nixos
zupo has joined #nixos
<Reventlov>
so i'm trying to setup a nix-shell to do GUI with rust, but I have a problem. Some dependency that cargo retrieves has a custom build command, which I have to patch because it has some hardcoded path
<Reventlov>
how would I go achieving this ? Retrieving dependencies via cargo, patching them "manually", or something else?
<{^_^}>
[nixpkgs] @SuperSandro2000 merged pull request #111646 → treewide: Remove doBuild = false, remove some stale substituteInPlace, fix some hanging tests on darwin → https://github.com/NixOS/nixpkgs/pull/111646
<{^_^}>
[hydra] @grahamc merged pull request #860 → Move evaluation errors from evaluations to EvaluationErrors, a new table → https://github.com/NixOS/hydra/pull/860
ManiacOfMadness has joined #nixos
malook has joined #nixos
shapr` is now known as shapr
Kozova1 has quit [Quit: Leaving]
<bqv>
Ugh I really want to rip systemd out of my system. It upsets me that a distro entirely about maximum configurability like nixos, forces systemd on you with zero alternative
<bqv>
I have a git stash where I'm working on making a system without systemd, but it's taking time to do
<edef>
looking forward to seeing that
<bqv>
Me too
<edef>
my feeling is that people underestimate the utility it provides
<bqv>
What, systemd?
<edef>
aye
<bqv>
I used linux for years before systemd
<bqv>
It is not necessary.
<edef>
as did i
<edef>
and when the Linux world was still sysvinit, i was also running my illumos systems with SMF
malook has quit [Client Quit]
<edef>
and by *god* was writing the heap of XML preferable over trying to debug large deployments full of custom process monitors because on Linux your dead process wouldn't even get restarted, or get logged centrally
<veleiro>
bqv: maybe use Guix?
<bqv>
Considered it, for a number of reasons. There's a lot less packages though, so it's a little bit of a downgrade
<bqv>
(it's an upgrade in some other senses, just, having to write package defs for half the stuff you use isn't ideal)
<M86ul[m]>
Hum, I am trying to get the downloaded NixOS sha256sum checked, but after "sha256sum --ignore-missing -c sha256sum.txt" I got a reply "no File was verified".
<M86ul[m]>
I was following this guideline https://linuxmint.com/verify.php and trying to apply it on NixOS, but without succes it seem.
<doot99>
is there a way to install the rtl8821ce module before installation of the OS?
<doot99>
I have a Wireless USB adapter that I use for Wifi
<jtojnar>
bqv: do not know anything about grub to merge but that does not look safe to merge either way
mmohammadi9812 has joined #nixos
<bqv>
Fair nuff
<goibhniu>
doot99: I don't know about that, but if you have a phone that allows wifi sharing over usb (e.g. android) that should work without any extra configuration
<abathur>
I don't know anything about the process, but you might also be able to build an installer that includes it?
<M86ul[m]>
Another question about spyware. In case I have spyware installed, I can roll back before it's installation?
<doot99>
thanks, I'll check that out
<M86ul[m]>
*spywares, malware, being hacked, etc.
<gchristensen>
M86ul[m]: it depends on the sophistication of the spyware. you can run nix-store --verify --check-contents to see if it was tricky enough to manipulate the store
<jared-w>
`file 'nixpkgs/nixos' was not found in the Nix search path`. RIP
sangoma has joined #nixos
ahmedelgabri has quit [Ping timeout: 272 seconds]
<jtojnar>
but if it managed to modify the existing store paths, it might also change replace the `nix-store` command
<gchristensen>
jtojnar: good point
ahmedelgabri has joined #nixos
<tpw_rules>
i would say strictly speaking rollback cannot save you because malicious software can, say, rewrite your .bashrc or drop a config file for some package to cause itself to be rexecuted
zebrag has joined #nixos
<jasom>
There's other mutable state too; it could have installed a new user account in the wheel group, for example.
<leo60228>
what's the relationship between Target, Tweag, and Nix? my initial impression was that Tweag is a subsidary of Target who just happens to make a lot of Nix contributions, but i don't think that's the case
<gchristensen>
Target hired Tweag as a consultancy for a while
moet has joined #nixos
<lordcirth>
When will a 21.03 branch/channel be forked off unstable?
<leo60228>
another thing i'm confused about though, fwiw, is whether Tweag employs people to work on Nix, or if they just make heavy usage of Nix internally and contribute a lot upstream
<leo60228>
lordcirth: future releases are yy.05/yy.11
<jared-w>
It's less that they are nix consultants and more that they are applied research and "high quality engineering" consultants (for lack of a better overall phrase) and happen to use nix as a preferred tool for a lot of their work.
microbY has joined #nixos
<leo60228>
the branch-off will be announced a month in advance but i do not believe that there is set schedule for when the branch-off itself is
<microbY>
guys, is there a tool that takes systemd.service files and outputs nix compatible systemd definition that I can paste back into configuration.xml ?
<leo60228>
the branch-off is on the first day of the month, the release is the last day
endformationage has joined #nixos
<microbY>
Guys, is there a tool that takes systemd.service files and outputs nix compatible systemd definition that I can paste back into configuration.xml ? I am using podman to run containers, and podman can only generate sysytemd files if I want to start the containers on startup....
<microbY>
If this is not the proper place to ask, where ?
dnlkrgr has joined #nixos
xps has quit [Ping timeout: 246 seconds]
microby38 has joined #nixos
microbY has quit [Quit: Connection closed]
<microby38>
ping
<bqv>
microby38: no.
<microby38>
deim
<microby38>
thanks:)
<bqv>
microby38: but service files are ini files
<bqv>
So you can read them as such
<microby38>
Can I use them for something like systemd.services.myPodManContainer.fromFile = './podman.gave.me.that.service' ?
<tobiasBora>
Hello, for some reasons I need to install gedit with plugins in order to demonstrate the "block comment" plugin. Usual distro seems to have it available under gedit-plugins, but can't find anything like that with nix. What is the solution? https://stackoverflow.com/questions/7649626/block-commenting-in-gedit
<tobiasBora>
Or maybe it has to do with this comment "Unfortunately, the plugin seems to have been discontinued."?
<jtojnar>
tobiasBora: it just is not packaged
jonatanb has quit [Ping timeout: 258 seconds]
<tobiasBora>
but it's not the only plugin that is not available anymore. There is also the terminal that is not available anymore (I can just see a non working python plugin)
<tobiasBora>
jtojnar: hum, sure, I can try. There is just one thing that seems a bit magic: gedit is supposed to be compiled with "meson && ninja && ninja install", but in the derivation, there is nothing like that. Is nix aware of the commands to run as soon as it sees some meson/ninja in the buildInputs?
kdlv is now known as aa47f8
<clever>
tobiasBora: packages like ninja can contain a setup hook, which mutates the default phases
<tobiasBora>
clever: ok I see, thanks
<clever>
nix-build '<nixpkgs>' -A ninja --option min-free 0
<clever>
cat result/nix-support/setup-hook
<clever>
tobiasBora: this defines a ninjaBuildPhase, and also does `buildPhase=ninjaBuildPhase`
ahmedelgabri has quit [Ping timeout: 264 seconds]
<clever>
and meson has the same, mesonConfigurePhase
<clever>
so just adding them to the inputs for a drv magically changes how the stdenv behaves
<lucus16>
How can I override a haskell package for all haskell.packages.ghc* simultaneously?
<tobiasBora>
clever: oh, nice trick to avoid looking at the source. Thanks!
<clever>
and knowing that steam-run is just steam.run, you can then ask, where was the run=
<tobiasBora>
clever: great! Also, I manage to run this in nix repl '<nixpkgs>', but is it possible to get it non interactively? I tried nix eval --raw -f "<nixpkgs/nixos>" steam-run.meta.position but if fails
<clever>
tobiasBora: <nixpkgs/nixos> is the path to nixos, not pkgs
<red[evilred]>
So, I'm doing my first fresh install of nixos in a while and just noticed that a fresh "minimal" build appears to have grown substantially.
<red[evilred]>
like, it's pulled in half of X11 for no reason I can see
nixbitcoin has quit [Remote host closed the connection]
nixbitcoin has joined #nixos
multun has joined #nixos
jonatanb has quit [Ping timeout: 272 seconds]
thelounge52 has joined #nixos
<{^_^}>
[nix] @sternenseemann opened pull request #4514 → Include note about type of catched errors in tryEval documentation → https://github.com/NixOS/nix/pull/4514
<{^_^}>
[nixpkgs] @dotlambda pushed to release-20.09 « openslp: add patch for CVE-2019-5544 »: https://git.io/JtEVo