<stevenroose>
Yaniel: yeah var/log doesn't exist on the system, so I'm quite confident it's a boot issue
<stevenroose>
pff
<stevenroose>
I have to call it a day but that won't be easy to work out tomorrow. I can't see any boot info :/
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<drozdziak1>
I'm running into a nasty "Arg list too long" problem while building haskell-gi. Have there been efforts for writing a shim to shorten all transitive inputs for a build? I have some rough sketches of how to implement something like this
pjan has quit [Quit: さようなら]
ddellacosta has quit [Remote host closed the connection]
m0rphism1 has quit [Ping timeout: 240 seconds]
seanparsons has quit [Ping timeout: 246 seconds]
i1l has quit [Read error: Connection reset by peer]
ris has quit [Ping timeout: 260 seconds]
lunik1 has quit [Ping timeout: 264 seconds]
ris has joined #nixos
AmandaC has quit [Quit: WeeChat 3.0.1]
AmandaC has joined #nixos
Dotz0cat has quit [Ping timeout: 256 seconds]
seanparsons has joined #nixos
lunik1 has joined #nixos
Dotz0cat has joined #nixos
cseder_ has joined #nixos
<tpw_rules>
drozdziak1: i think that's the problem response files are supposed to solve
<tpw_rules>
but i don't think they're implemented everywhere
<bpye>
Anyone got thoughts why I can't import this flake I just created and do 'imputs.launchd_shim.overlay`? Nix claims the attribute `overlay` is missing, but checking the flake-utils code it looks like I should have both overlay and overlays, yet neither seem to exist...
<Reventlov>
This is my shell.nix: https://0x0.st/-8n8.txt It looks like the /var/cache/ccache directory is staying empty, right now, so nothing is cached
<bokononist>
srk: i've been trying to follow this, updating it to use haskell language server and the like
<bokononist>
srk: in the mean time trying to learn nix (kinda new at this obviously)
<sterni>
UnaDuda: still not squashed if you're talking about the trafficserver one
nhs has joined #nixos
<bokononist>
srk: i've made it work, but now i'd like to be able to only have direnv installed globally, and have the setup just build everything from that
Darkmatter66 has quit [Ping timeout: 260 seconds]
poscat1 is now known as poscat
<srk>
bokononist: cool, there are many ways to nix :)
nbathum has joined #nixos
MmeQuignon has quit [Ping timeout: 272 seconds]
<sterni>
bokononist: what do you need cabal init for and when do you want it called?
<bokononist>
srk: as it is, you need cabal to initialize the project before you can actually run the nix-shell. i don't like that, since the cabal that is current is different from the cabal i'd (in theory) like to use in the project
<sterni>
bokononist: note that you can't alter any directory contents outside of a derivation's output store path when building this using the nix-daemon
vldn has joined #nixos
<bokononist>
srk: basically, i'd like to decouple cabal as an "external dependency" in this sense, so that as a consequence my project is built with the same cabal version the shell is being built with
<vldn>
hi, i try to install a python app but it says ta-lib not found
<bokononist>
sterni: ah, that's another useful piece of information :)
<srk>
bokononist: makes sense
<ScottHDev5>
Hello, do you know if I could do any monitoring using the nix-daemon, e.g. seeing which derivation is currently being built
<bokononist>
wait, let me just post the relevant file.. just a sec
nhs has quit [Ping timeout: 256 seconds]
<sterni>
vldn: how did you try to install it exactly?
<vldn>
sterni: https://github.com/freqtrade/freqtrade , i set up a nix-shell with python setuptools and pip and use the setup.sh like in the description
<bokononist>
sterni: i've checked it out but i already had direnv/nix-direnv installed at that point so i decided to pick that particular battle some other time :P
<bokononist>
i need shell.nix to build cabal, then have cabal call init, then have it build everything else
<sterni>
vldn: seems to me that their installation process is pretty magic, you probably want to stay clear of setup.sh in a derivation as well sicne it makes all kinds of assumptions about system layout?!
<vldn>
alright :D not looked so deeply into it, but wanted to have all the magic just happen :P
<vldn>
i will try to set up it manual :)
<sterni>
vldn: it has a setup.py right? so buildPythonApplication should just work™ in theory
<vldn>
thanks for the tip!
<ScottHDev5>
srk Thanks !
NeoCron has quit [Remote host closed the connection]
<sterni>
bokononist: sounds to me that you'd want to have shellHook = "cabal init";
NeoCron has joined #nixos
<sterni>
bokononist: I don't think you can have direnv executing commands and i'd probably would create all kinds of problems
<sterni>
bokononist: probably test -f <packagename>.cabal || cabal init
<bokononist>
sterni: doesn't shellHook execute at the end of the build process?
<bokononist>
sterni: the truth is i haven't tried it yet, having found shellHook literally while joining this channel
<sterni>
bokononist: meaning in this case you'd start nix-shell your dev environment would be set up and then cabal init is executed
<sterni>
bokononist: after that you'd need to build it manually
<sterni>
which is usually desired for a dev environment :p
nschoe has joined #nixos
dev_mohe has joined #nixos
<{^_^}>
[hydra] @grahamc merged pull request #876 → Create an ephemeral PostgreSQL database and Nix store per test, split up tests. → https://github.com/NixOS/hydra/pull/876
<bokononist>
sterni: hahahah :) yes, that's true :P. I've not thought things completely through :)
vldn has quit [Remote host closed the connection]
<bokononist>
sterni: there's still something bothering me, but it would take a bit to explain, and i have the feeling it's going to solve itself by me playing around with my config some more
<ScottHDev5>
Hello, how could I nix-copy-closure threw ssh on a another port than 22 ?
<Reventlov>
it's like ccache is not used at all
nhs has quit [Ping timeout: 240 seconds]
PhantomFutaba has left #nixos ["Leaving"]
<srk>
ScottHDev5: man nix-copy-closure -> NIX_SSHOPTS
<srk>
ScottHDev5: or proper .ssh/config
simonpe^^ has joined #nixos
<ScottHDev5>
Thanks
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<simonpe^^>
I'm cross compiling for several different platforms but when using `buildPackages.<pkg>` the derivation is often different even though it's a tool I only run on my bulid machine. Is there something like buildPackages but just for the host platform disregarding any cross compilation magic?
stree has joined #nixos
daphnis has joined #nixos
<daphnis>
why do i find sagemath on the web page, but not doing nix-env -qa sagemath?
<manveru>
daphnis: give `nix search nixpkgs sagemath` a try?
<cinimod>
I tried to install jupyter with `nix-shell "<nixpkgs>" -p jupyter` on macos (Big Sur)
mkaito has joined #nixos
euandreh has joined #nixos
frostbytten has joined #nixos
<frostbytten>
I have been struggling to figure out how to escape ${x} so it appears in a string as ${x} vs the interpolated value in a multiline string. I have tried \${x} \\\${x} etc. I also need ${x} to be expanded in the string as well.
<chisui>
Hey, I added some groups in the `extraGroups` list of my user but they don't change after rebuilding, even after a reboot. Has anyone an idea why the groups aren't added? https://github.com/chisui/home/blob/master/nixos/users.nix
<ehmry>
I do generate some dhall from nix, but mostly using string interpolation
erasmas has joined #nixos
<Franciman>
i see thanks
Lord_of_Life has joined #nixos
Qwerky has quit [Ping timeout: 272 seconds]
<simpson>
Franciman: Out of curiosity, is there a build system that *does* have the static typing that you desire? I sense two obstacles: Turing-complete languages usually only have one type, but more importantly, Nix handles a lot of strings which are passed to build tools, and ends up being somewhat stringly typed.
<ehmry>
defining packages in something like dhall is hard because what packages are available to select dependencies from must be known in advance as a type, more or less
<Franciman>
simpson, no idea
<siraben>
Franciman: why do you feel that static typing is needed for this domain? I'm curious
<Franciman>
because I, out of newbie-ness, write wrong code as in type errors
<Franciman>
so it would be cool to have static types to have a in-language definition of what is expected
<ehmry>
nickel is something like the successor language on nix, and that is gradually typed
jD91mZM2 has joined #nixos
aleph- has joined #nixos
<simpson>
Franciman: Once you become more familiar with Nix, your errors will mostly happen at build time, during builds, in strings which you provided to build tools.
<ehmry>
I think static typing is nice for configuration validation but not going to work for packaging
<siraben>
especially with the functions on lists, there's many Haskell analogues
<adisbladis>
Since builtins are strict... I wonder how much inference you could do?
<srk>
simpson: trouble is that bugs discovered in builds or production can be costly :)
<siraben>
o.O insane that we have a DFS function
<simpson>
srk: Rice's Theorem insists that we can't avoid bugs in those locations. So, we might as well improve the way that humans respond to those problems, because the problems will be there any time that we use computers.
ddellaco_ has quit [Remote host closed the connection]
cfricke has quit [Quit: WeeChat 3.0.1]
<rdk31>
how long does it approximately take a merged package to be available in the unstable channel?
<siraben>
I wish I were more well-versed in gradually typed systems, I've heard they're like a nice middle ground between static/dynamic
<siraben>
but in particular I'd be interested to know how they handle issues such as soundness...
<srk>
simpson: makes sense. recently I was refactoring a deploy config and noticed that during refactoring my build output changed while it shouldn't - to find out why I've used nix-diff to investigate. now the things is that producing output can take a lot of time so it's not really practical to run this in a loop
<adisbladis>
siraben: You mean -chat ?
<siraben>
adisbladis: yes :P
<adisbladis>
I just joined -offtopic and it was very empty :P
<tomberek>
supersandro2000: i'm trying to go through old PRs and clean things up. Mostly stuff needs rebasing and conflict resolution. My approach has been to just go ahead and do some of them (or close if no longer applicable).
dev_mohe has quit [Remote host closed the connection]
<urkk>
can I access the configuration values of nix (~/.config/nix/config) from nix itself (nix repl) ?
<matthewcroughan>
You commented how this isn't possible here in 2018, has it changed? :D
rickard9 has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @github-actions[bot] closed pull request #114257 → python3Packages.parso: fix flaky test due to slow moving time → https://github.com/NixOS/nixpkgs/pull/114257
<Mic92>
matthewcroughan: if your builder is declared as i686-linux than you don't need to use pkgsCross. Just pass system = i686-linux to nixpkgs or set the right system in your nixos configuration
<matthewcroughan>
my device is armv7, and I want to use nix.distributedBuilds to have my powerful x86 box cross-compile for it.
<matthewcroughan>
funny enough, this works fine for i686, because the compiler just works it out.
<Mic92>
matthewcroughan: I don't know what you build and how
Qwerky_ has joined #nixos
<matthewcroughan>
Mic92: What do you mean? I want every single derivation to be cross-compiled. Have you used this before?
<matthewcroughan>
I have my 32 bit laptop just using nix.distributedBuilds to have my 64 bit 24 core x86 processor do EVERYTHING. This works today.
hoijui has quit [Ping timeout: 258 seconds]
<gchristensen>
thanks, Mic92!
<Mic92>
matthewcroughan: nix-build -A pkgsCross.aarch64-multiplatform.<pkg>
orivej has joined #nixos
<matthewcroughan>
But when the 32 bit laptop becomes a armv7 machine, obviously the remote builder now needs to cross compile, but unsure of how to make this happen.
<matthewcroughan>
Mic92: yes, of course that works, for a single build.
<matthewcroughan>
But that's not what nix.distributedBuilds is doing. How can I make it?
Qwerky has quit [Ping timeout: 240 seconds]
rajivr has quit [Quit: Connection closed for inactivity]
meh` has joined #nixos
<matthewcroughan>
so, on my 32 bit laptop, whenever I do `nixos-rebuild switch` it actually gets my 64 bit 24 core machine to do *everything*. It builds every derivation on my remote machine, then copies the /nix/store to the less powerful machine.
<Mic92>
I usually build the packages outside of nixpkgs in a nix-shell: nix-shell '<nixpkgs>' -A attribute.
amk has quit [Read error: Connection reset by peer]
ahmedelgabri has quit [Ping timeout: 264 seconds]
proofofkeags has joined #nixos
amk has joined #nixos
NeoCron has quit [Ping timeout: 260 seconds]
sangoma has quit [Read error: Connection reset by peer]
<{^_^}>
[nix] @oxalica opened pull request #4573 → Explicitly set default branch name for git to suppress "git hint" → https://github.com/NixOS/nix/pull/4573
<Reventlov>
Hey there. Still searching for a way to cache compilations of some package (ns-3) using ccache with nix-shell. This is what I tried: https://0x0.st/-8Fx.txt
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Reventlov>
still, ccache is still not used when I run "nix-shell"
<Reventlov>
thibm: hmm, i'm trying to use overlays for this, so I put a stdenv = super.ccacheStdenv; for the ns-3 package, it's what I need to do right ?
<stevenroose>
So about ZFS, I understand the network.hostId should be set to make sure that the zpool is not used from another system. But isn't the hostId of the installation system recorded at the first use of the zpool? Is it possible that boot will fail because the hostId of the system is different than that of the system that created the pool (i.e. the installation system)?
<stevenroose>
(I'm debugging a boot issue on a dedicated server of which I can't follow/see the boot process.)
<gchristensen>
I'm pretty sure nixosalways import -f's the pool
<gchristensen>
(probably should not ...)
<cole-h>
*unless you set `boot.zfs.forceImportRoot`
<gchristensen>
ah
<cole-h>
`= false`*
<cole-h>
there's also `boot.zfs.forceImportAll` (which defaults to false already)
<Reventlov>
thibm: looks like it's not working as expected :/
oxalica has joined #nixos
<Reventlov>
(for the records: I want to build ns-3, including my modifications, and being able to use it in the nix-shell :/)
Lord_of_Life has quit [Ping timeout: 240 seconds]
<stevenroose>
cole-h: hmm ok
<stevenroose>
I think I might have found out that Hetzner doesn't support UEFI boot.
<gchristensen>
some of the servers definitely do, but some perhaps don't
<gchristensen>
afaik Ryzen for example mandates UEFI
<stevenroose>
So that might be the issue. But I had the idea that booting from ZFS with BIOS (and thus GRUB) is not possible? Or not trivial?
<stevenroose>
gchristensen: aha, so that's possible!
<superbaloo>
the hostid (read from /etc/hostid, in littleendian IIRC) is stored in there
stree has quit [Ping timeout: 240 seconds]
<stevenroose>
superbaloo: I can
<superbaloo>
when you zpool import, it compares this value to the local hostId
<superbaloo>
on mismatch will give you an error like "imported on another system"
<stevenroose>
superbaloo: yea hI got that when I imported it in the rescue system
<stevenroose>
and used -f
<superbaloo>
which you can override with the import -f (in which case, the local hostid is written in there)
<stevenroose>
eh hex to decimal is annoying
<superbaloo>
xxd /etc/hostid
<superbaloo>
:)
<stevenroose>
superbaloo: will it change after I import it with -f?
<superbaloo>
(to read in reverse by blocks of 2 on an x86)
<stevenroose>
because than it's currently just the current rescue system (it says hostname "rescue" anyway)
<superbaloo>
well, your non-rescue system will need to import -f the pool
<superbaloo>
since you just rewrote it by importing it in the rescue
<superbaloo>
if that makes sense
<superbaloo>
otherwise, just set your rescue hostId to the target's one
<superbaloo>
and re-import -f here
<stevenroose>
ah yeah right now it's the current rescue system because i did import it
<superbaloo>
zdb -C POOL will give you the value currently written
<stevenroose>
well I'll retry my installation with BIOS and a /boot partition
<stevenroose>
thanks
<superbaloo>
uefi install with root on zfs works, did one last weekend
<gchristensen>
stevenroose: pick a basic filesystem for /boot, like ext4 or vfat
<superbaloo>
just need an efi partition
avaq has joined #nixos
<superbaloo>
go vfat
<superbaloo>
and go efi
<stevenroose>
superbaloo: on Hetzner?
<superbaloo>
never used hertzner, but if they use any decent server, that should work
<superbaloo>
except if it's disabled in bios or something
<gchristensen>
or has the really bad supermicro firmware *stare*
<superbaloo>
never happened
<stevenroose>
( I read in some tutorial that "We don't use systemd-boot because Hetzner uses BIOS legacy boot.". And that page I linked above also suggests that UEFI support for Hetzner is in beta. )
<superbaloo>
ha
* superbaloo
stares at the current date
<superbaloo>
2021 right?
<stevenroose>
Yeah the beta page was updated last 2020-06..
<stevenroose>
Dunno. I'll try that tomorrow anyway. I'm quite patient with this, just want to get something to work that I can understand :D But boot stuff has always been magic for me.
<superbaloo>
sgdisk -n3:1M:+512M -t3:EF00 $DISK
<superbaloo>
sgdisk -n1:0:0 -t1:BF01 $DISK
<superbaloo>
I used that
<superbaloo>
first one as the efi partition, the second one as the zpool root
<superbaloo>
worked pretty smoothly from there, but again, not on hertzner
meh` has quit [Read error: Connection reset by peer]
<stevenroose>
Is there a command to validate a configuration.nix file without having any of the other nixos stuff installed (like on a non-nixos machine)?
<stevenroose>
Eh, nvm, got my mistake, just got a weird error. If a list of attrsets is expected but a list of strings is given, the error is quite unintelligible: `error: syntax error, unexpected $end, at /dev/zd0:1:1`.
<sshow>
I've added a vimPlugin using nixpkgs/pkgs/misc/vim-plugins/update.py, but unsure how I can test it? How can I add that package to my live system vim config to test?
<dmvianna>
Hi. I just installed NixOS using the nixos-gnome. I didn't include any systemPackages in the configuration.nix file. Now I'm worried that if I put something there that doesn't include Gnome, I'm going to lose it. Where is the current Gnome defined to be installed? Or is it just default in this installation, regardless of what I do in
<dmvianna>
configuration.nix?
zopieux has quit [Ping timeout: 264 seconds]
<clever>
dmvianna: how did you enable gnome?
zopieux has joined #nixos
<noonien>
hmm, am i doing something wrong here? http://ix.io/2QK4 nix-build is getting a segmentation fault
<dmvianna>
I didn't. I just ran nixos-install from Gnome in the USB stick. And a very bare configuration.nix.
<dmvianna>
Don't misunderstand me, I want to keep it. But I'm baffled that I have it.
<clever>
dmvianna: if youve rebooted, then you should only have what configuration.nix said to give you
<dmvianna>
I did reboot, and I booted from the HD.
jess has joined #nixos
<clever>
dmvianna: can you pastebin the configuration.nix file?
<cole-h>
dmvianna: Can you paste your configuration.nix?
<cole-h>
heh
<cole-h>
I believe if you've booted from the Gnome or Plasma ISO, your configuration.nix will automatically include configuration enabling that DE.
<ambroisie>
Seems like the discussion in the actual PR that was merged (#73574) points to Mic92 whitelisting the entire nix store... So it should be working