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
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?
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 :)
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
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.
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.
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
and now you can freely mutate the contents of man1
thanks a lot
lsix has quit [Ping timeout: 260 seconds]
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...
or it may have been lorri that started the build
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
attila_lendvai: restarting lorri may also kill it
kalipso has joined #nixos
lewo has joined #nixos
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
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
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
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...
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?
truby: this function can be ran on any package, to make a debug variant of that
and overriding glibc means rebuilding *everything*
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
i generally use gdb to figure out where the problem is, then an overlay to rebuild just one thing with debug
really wish we'd build everything with a debuginfo output
akaWolf has quit [Ping timeout: 264 seconds]
yeah, that would help
mkaito has joined #nixos
zupo has joined #nixos
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
how would I go achieving this ? Retrieving dependencies via cargo, patching them "manually", or something else?
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
I have a git stash where I'm working on making a system without systemd, but it's taking time to do
looking forward to seeing that
my feeling is that people underestimate the utility it provides
I used linux for years before systemd
It is not necessary.
as did i
and when the Linux world was still sysvinit, i was also running my illumos systems with SMF
malook has quit [Client Quit]
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
bqv: maybe use Guix?
Considered it, for a number of reasons. There's a lot less packages though, so it's a little bit of a downgrade
(it's an upgrade in some other senses, just, having to write package defs for half the stuff you use isn't ideal)
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".
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
Target hired Tweag as a consultancy for a while
moet has joined #nixos
When will a 21.03 branch/channel be forked off unstable?
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
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
guys, is there a tool that takes systemd.service files and outputs nix compatible systemd definition that I can paste back into configuration.xml ?
the branch-off is on the first day of the month, the release is the last day
endformationage has joined #nixos
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....
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: but service files are ini files
So you can read them as such
Can I use them for something like systemd.services.myPodManContainer.fromFile = './podman.gave.me.that.service' ?
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
tobiasBora: packages like ninja can contain a setup hook, which mutates the default phases
clever: ok I see, thanks
nix-build '<nixpkgs>' -A ninja --option min-free 0
tobiasBora: this defines a ninjaBuildPhase, and also does `buildPhase=ninjaBuildPhase`
ahmedelgabri has quit [Ping timeout: 264 seconds]
and meson has the same, mesonConfigurePhase
so just adding them to the inputs for a drv magically changes how the stdenv behaves
How can I override a haskell package for all haskell.packages.ghc* simultaneously?
clever: oh, nice trick to avoid looking at the source. Thanks!
and knowing that steam-run is just steam.run, you can then ask, where was the run=
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
tobiasBora: <nixpkgs/nixos> is the path to nixos, not pkgs