<redmp>
when building with stdenv, what's the right way to specify local sourcecode? i tried `src = ./myfile.c` and the default builder interprets it as an archive and barfs; how can i say `./.` without getting a bunch of irrelevant files such?
<clever>
tobiasBora: the stdenv will add the $out/include of everything from buildInputs to the cflags thing, so it magically works
<clever>
tobiasBora: gtk is using $out/include/gtk, in an attempt to avoid conflicts when you install 2 gtk versions
<supersandro2000>
redmp: dontUnpack is probably what you want
<supersandro2000>
or no stripRoot not sure right now
<clever>
tobiasBora: so, their attempt to fix the same problem nix solves, is making nix's job harder
<sterni>
redmp: dontUnpack
gustavderdrache has joined #nixos
<redmp>
ok, so it looks like dontUnpack skips the unpack phase in pkgs/stdenv/generic/setup.sh .. i guess this is just the expected type of `src` from some archive to something else.. but, what? is a list of files ok? is a single file ok?
<{^_^}>
[nixpkgs] @veprbl pushed to master « recoll: drop assert on hostPlatform.system »: https://git.io/JYSAw
<redmp>
knownunown: i heard about an alternative to gitignoreSource for which you specify the files/directories to include (rather than those to exclude) .. do you know what that was called?
lsix has quit [Ping timeout: 260 seconds]
vuko has joined #nixos
ForgottenPackage has quit [Quit: |]
<knownunown>
hmm, i'm not aware of what that is redmp. you can still use gitignore for an allowlist FWIW -- just exclude everything with `!` on the first line and then list files to include
ForgottenPackage has joined #nixos
suprime[m] has joined #nixos
<{^_^}>
[release-wiki] @dependabot[bot] pushed to dependabot/github_actions/cachix/install-nix-action-v13 « chore(deps): bump cachix/install-nix-action from v12 to v13 »: https://git.io/JYSxY
Spacemacs4ever has quit [Ping timeout: 240 seconds]
<redmp>
ok, the best i've come up with from looking through nix code is that `builtins.filterSource` could be called with a function that compares against a list of filepaths
<m1cr0man>
Heyo if I'm making a PR for a package update, and I find another package needs an update, should I make two PRs or one?
superherointj has quit [Quit: Leaving]
<evils>
m1cr0man: are they related?
<m1cr0man>
evils: Yes, one depends on the other and they are both python packages
ris has quit [Ping timeout: 240 seconds]
<evils>
m1cr0man: both being python isn't a good reason to do them in 1; do both changes work separately? does the order matter?
<m1cr0man>
evils: Well the main package I was aiming to update (mailman) has a version requirement on another package (aiosmtp) and fails to build without it
<m1cr0man>
So yes, the order matters
<evils>
if the second update is a requirement of the first, you should include it in the PR of the first
<m1cr0man>
^ Any mailman users should probably have some interest in this. Without updating the core, you can't manage (sub/unsub) from lists via the UI
<supersandro2000>
evils: yeah but maybe network manager or systemd-networkd or something similar already does it better and we do not need to fetch so many patches from debian
kayg04 has joined #nixos
ddellacosta has quit [Ping timeout: 268 seconds]
<redmp>
tomberek: supersandro2000: here's what i have; albeit slightly simplified https://termbin.com/17e1
<redmp>
just that the library i'm importing, doesn't exist
<redmp>
even though i can see it using the nix store path in NIX_CFLAGS_COMPILE: /nix/store/gwsn311snkj8yan6qd8mhzkx4y3f61wr-stb-20180211/include/stb/stb_image.h
<cinimod>
I am trying to build a package in which I'd like to modify `configureFlagsArray` just to have an extra option - is there a way of saying something like `configureFlagsArray = super.configureFlagsArray ++ [ "--without-x" ]`
ironman3000 has joined #nixos
Tv` has quit [Quit: Connection closed for inactivity]
<stevenroose>
Izorkin: it's finished, I'm using it in production. there were some suggestions as for the nixos service module that I published with it. I didn't check for a while if there was more feedback. but I'm unsure of the process of getting things merged over there. personally I'd prefer to have the package merged and leave the module development for people with more experience
<clever>
cinimod: its also blank to begin with, so there is nothing to append to
<cinimod>
clever: I can see ` preConfigure = '' configureFlagsArray=( --disable-lto --with${lib.optionalString (!withRecommendedPackages) "out"}-recommended-packages ... ` in the derivation so I don't think it is blank?
<cinimod>
<cinimod>
configureFlagsArray: A shell array containing additional arguments passed to the configure script. You must use this instead of configureFlags if the arguments contain spaces.
<clever>
cinimod: preConfigure is a chunk of bash script, that gets ran between the patch phase and configure phase
<clever>
but you can also use configureFlags (the nix var) to have an initial config, that the array will start out with
<cinimod>
clever: I think I understand
<cinimod>
success: `configure flags: --disable-static --prefix=/nix/store/0aj20v34rmbgwn8sbf6kx5i38h6km3ag-R-4.0.4 --without-x` and now I wait until builds (or not)
<cinimod>
So I didn't need the `oldAttrs` aka `old` at all
<clever>
yep, because the package never set configureFlags
<clever>
it was appending to the var at build time
<stevenroose>
Izorkin: someone actually made a PR against my PR, so I will have to look into that. but feel free to leave other review: https://github.com/NixOS/nixpkgs/pull/106492
<{^_^}>
#106492 (by stevenroose, 16 weeks ago, open): Second attempt at adding PeerTube package
<cinimod>
clever: BTW R is broken for macos - I looked at homebrew and they have this option and it seems to work when I do this in nix
FRidh has quit [Quit: Konversation terminated!]
zancas[m] has quit [Quit: Idle for 30+ days]
tilt[m] has quit [Quit: Idle for 30+ days]
apscomp[m] has quit [Quit: Idle for 30+ days]
winsome[m] has quit [Quit: Idle for 30+ days]
ddellacosta has joined #nixos
hiro99 has quit [Remote host closed the connection]
ddellacosta has quit [Ping timeout: 240 seconds]
<bpye>
The wiki page for ZFS mentions that today we can’t use passwords for non root datasets, is this totally true? For example - if I had some secrets on a different dataset that are not boot critical but are required for some services, would there be some way to have the service depend on the mount - and then allow me to SSH in and unlock the
<bpye>
dataset? I ask as I’m now using my Nix machine for routing as well and so I don’t want to be required to enter a password at boot as that takes the whole network down, but if I can protect secrets used for remotes etc and allow minimal ssh on boot that would be nice. Otherwise I guess I’ll have the key on a USB drive and at least if I move
<bpye>
the disks they’ll be protected, but the key would still be available after a power cycle which isn’t ideal.
<cinimod>
I have https://gist.github.com/idontgetoutmuch/c5c5052d0e5a905ace1c77ae8eb5ebe8 and I know the derivation for `inline-r` has `libraryPkgconfigDepends = [ R ];` but when I ask `inline-r` which R it is using it says `/nix/store/0aj20v34rmbgwn8sbf6kx5i38h6km3ag-R-4.0.4/lib/R/bin/R but if query the shell itself it says my R is `/nix/store/hxkavy6gx0vl552c6hf79x83nir7vbr2-R-4.0.4-wrapper/bin/R`
<stevenroose>
Izorkin: can you post that on github? so I don't forget? :)
<cinimod>
So clearly I am not forcing `inline-r` to be built with my custom R
<Izorkin>
stevenroose: later, while further I understand the configuration.
<{^_^}>
[nixpkgs] @fabaff opened pull request #118584 → python3Packages.nats-python: init at 0.8.0, python3Packages.asyncio-nats-client: init at 0.11.4 → https://github.com/NixOS/nixpkgs/pull/118584
<{^_^}>
[nixpkgs] @Lassulus merged pull request #89951 → nixos/users-groups: Use user name not attribute name for /etc/profiles/… → https://github.com/NixOS/nixpkgs/pull/89951
<tobiasBora>
Hum... Is it possible to create custom fetch functions? I'd like to explicitely run "git clone --recursive https://github.com/..." because the default fetcher for github (even with fetchSubmodules = true; and leaveDotGit = true;) does not handle submodules as expected by the package (no idea why...).
ddellacosta has quit [Ping timeout: 268 seconds]
<tobiasBora>
also, I'd like to avoid to check the sha-256 hash of the final source, because git is known to be not really reproductible. What I can accept is if I can define my own sha-256 function that only checks non .git folders.
lb5tr has joined #nixos
<sterni>
it must be reproducible
<sterni>
not checking the .git folder would violate build purity
<lb5tr>
hey, I'm getting some issues when doing nix-channell --update
<sterni>
tobiasBora: you can still run git commands in that case and inject impure stuff into the build
<tobiasBora>
sterni: so should I provide a dummy src?
<sterni>
hm?
<sterni>
have you tried deepClone = true; ?
<sterni>
I wonder what the issue with fetchgit's src is for the build system
<sterni>
it *should* work as expected generally
<sterni>
maybe there is some other issue
<tobiasBora>
sterni: nope, I tought fetchSubmodules = true; Should I use both?
<tobiasBora>
sterni: actually, there may be another issue indeed...
<sterni>
tobiasBora: yep enable deepClone = true; and fetchSubmodules = true; maybe it likes that better
<tobiasBora>
sterni: it's very strange, I tried to replace my src with a local folder. If I build everything via "nix-build", it fails. If I do "nix-shell" and then "setup $stdenv/setup; genericBuild", it works
<aanderse>
Izorkin: i'm trying to remove database ensure* options
<aanderse>
better to use a `systemd` service instead to initialize database, including extensions
ToxicFrog has quit [Quit: WeeChat 2.9]
<tobiasBora>
Whoo, I noticed something very strange: in a nix-shell, if I run "source $stdenv/setup; genericBuild", I get errors at compilation time. If I just run "genericBuild", it works O_o Why?
<tobiasBora>
sterni: it is an error that occurs at compile time "haxe/io/Input.hx:189: characters 37-42 : Uncaught exception Eof". Just running "source $stdenv/setup" right before the compilation command is enough to make it fail...
<sterni>
maybe wrong haxe compiler version? they change a lot between versions
zupo has quit [Ping timeout: 268 seconds]
<sterni>
also using nix-build is more insightful actually as with nix-shell the enviroment is impure, so with weird issues it is often hard to guess if anything is intefering with anything
<tobiasBora>
sterni: yes, the problem is that nix-build does not works, but nix-shell does work if I don't source $stdenv/setup. But I have improvements: I found that the issue is with the PATH. The PATH loaded by stdenv/setup does not work, not sure why...
leo60228 has quit [Ping timeout: 240 seconds]
m0rphism has joined #nixos
ahmedelgabri has joined #nixos
endformationage has joined #nixos
<sterni>
well what is the difference in the environment then?
leo60228 has joined #nixos
<sterni>
probably you have something installed in your normal user environment which is needed in the build
ahmedelgabri has quit [Ping timeout: 258 seconds]
zyklotomic has quit [Remote host closed the connection]
zyklotomic has joined #nixos
Noisytoot has joined #nixos
<tobiasBora>
sterni: Hum... I guess I will gradually remove stuff from PATH until having again the error (the exact PATH are given here http://paste.debian.net/1192396). But I'm thinking since it requires opengl, could it be that opengl is loaded in my environment but not here?
dev_mohe has joined #nixos
dev_mohe has quit [Client Quit]
<sterni>
something like that probably
rubm has joined #nixos
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tobiasBora>
(sorry to spam, just in case it rings a bell for someone)
rj has quit [Ping timeout: 240 seconds]
ahmedelgabri has joined #nixos
vidbina has joined #nixos
<{^_^}>
[nixos-org-configurations] @grahamc pushed to master « eris: monitor HTTPS expirations with blackbox's tls support »: https://git.io/JYQfS
a-h has joined #nixos
stree has quit [Ping timeout: 252 seconds]
rubm has quit [Ping timeout: 246 seconds]
<a-h>
Has anyone here managed to get neovim nightly running on their Mac? I can use the community overlay, but only if I remove all of my custom config (full details here: https://github.com/LnL7/nix-darwin/issues/316).
<a-h>
Right now, I have no idea how flakes, overlays and overrides are related, or if they are, or what one should use.
<supersandro2000>
frostbytten: I have it even on none flakes
kiltzman has joined #nixos
gulplante has joined #nixos
<supersandro2000>
a-h: flakes is new shiny stuff that is not done yet and overlays can modify packages and overrides can change inputs for packages
<supersandro2000>
overlays can do more than overrides but are also a bit more complicated
<a-h>
That actually helps, thanks.
gustavderdrache has joined #nixos
lorcx_ has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @vbgl pushed to master « ocamlPackages.parmap: use Dune 2 »: https://git.io/JYQIq
<frostbytten>
supersandro2000: It isn't just me. It's weird because the package, when used within a flake for a project seemed to install, but when cleaned from the store and trying to get it working through nix-darwin it gives a collision.
<supersandro2000>
frostbytten: idk but it has probably nothing to do with flakes
gulplante has quit [Client Quit]
<supersandro2000>
flakes should change how nix interacts with the store, it just changes how to manage the config
<frostbytten>
supersandro2000: Yeah, I'm good with that. Just tyring to hunt it down now without resorting to some bad practice stuff.
<supersandro2000>
frostbytten: are you using nixStable or nixUnstable?
<tobiasBora>
sterni: ok, the specific problem for that issue was that the "git" program was not in the path. I get another one, but at the next step!
Qwerky has joined #nixos
erasmas has joined #nixos
grimvar_ has left #nixos [#nixos]
Qwerky_ has quit [Ping timeout: 265 seconds]
<simpson>
primeos, vcunat: I hear (via #dri-devel) that Mesa will drop non-Gallium drivers in the next (major?) release. At that point, I think we'll have to keep a legacy Mesa version for any stragglers needing them on x86. Is there a bug tracking this?
<supersandro2000>
yaymukund: no clue but maybe the feature is disabled because it can't find inotify or you need to run watchman
<supersandro2000>
or you run out of file watches
<simpson>
supersandro2000: Yeah. AGP, etc. There *are* drivers that would be affected unless they're rewritten quickly in the next few months, and IME Intel probably will drop that ball, so we should preserve the option. Or be aware that it will be problematic.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<simpson>
Yeah. I've still got a box of AGP cards. I don't think I've got any motherboards which could host them though.
dotlambda has joined #nixos
<Raito_Bezarius>
I'm using poetry on NixOS unstable and all installs are failing with exception PackageNotFound, is this known?
<supersandro2000>
maybe we should just drop support for that
<Raito_Bezarius>
I checked that I have no alternative repositories and it should be using PyPI, plus it seems to be doing proper version resolution using PyPI but failing to get the package at the end using the PyPI repository
sangoma has joined #nixos
waleee-cl has joined #nixos
<supersandro2000>
Raito_Bezarius: are you using poetry2nix?
<Raito_Bezarius>
supersandro2000: I'm using poetry2nix in a shell, but I'm using pkgs.poetry right now
<Raito_Bezarius>
I tested it outside of the shell and inside of the shell
<supersandro2000>
adisbladis: can you help with the question above?
domogled has quit [Remote host closed the connection]
<Raito_Bezarius>
I'm not sure it's related to poetry2nix as just having poetry and doing poetry init adding Django as a dependency fails
<tobiasBora>
Small question: in nix-shell, when a phase fails (say I forgot one argument in the installPhase, or I simply press Ctrl-C), nix-shell exits. This is quite annoying since usually I want to try to fix that phase and going in and out of the shell is annoying. Is it possible to disable this annoying behaviour? It occurs even in direnv if I run "source $stdenv/setup", which means that my terminal is
<yaymukund>
supersandro2000: it turns out it's "System limit for number of file watchers reached". i think i have enough to keep debugging this. thank you
<neonfuz2>
I'm getting an odd error when trying to use podman
orivej has quit [Ping timeout: 268 seconds]
zupo has joined #nixos
<Raito_Bezarius>
ha, looks like PyPI is having issues
growpotkin has joined #nixos
<neonfuz2>
I'm using nixos-20.09, I've enabled podman with docker emulation by wiki instructions. Trying to do a docker-build now I get "Found default OCIruntime /nix/store/...-crun-0.14.1/bin/crun path which is missing from [engine.runtimes] in containers.conf"
<sshow>
I have a custom systemd service where I'm attempting to modify the $PATH in service environment, but encounter an error: "systemd.services.mynotifyd.environment.PATH' has conflicting definition values"
<sshow>
I am attempting to set the path to `PATH = "${pkgs.libnotify.outPath}/bin";`
rj has joined #nixos
<gchristensen>
use systemd.services.mynotifyd.path = [ pkgs.libnotify ]
<tad-lispy[m]>
gchristensen: I tried `sudo iptables --insert nixos-fw --protocol tcp --in-interface wlp1s0 --destination-port 8080 --jump nixos-fw-accept`, but without any luck. I'm not very good with `iptables`. Should I see something with `iptables --list`? Or is there some other way to debug the connection?
Dr8128 has quit [Remote host closed the connection]
stree has joined #nixos
ScottHDev has joined #nixos
ddellacosta has joined #nixos
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #nixos
Qwerky has quit [Remote host closed the connection]
sciamp has joined #nixos
lord| has quit [Read error: Connection reset by peer]
emacsomancer has quit [Ping timeout: 240 seconds]
frostbytten has quit [Quit: leaving]
lord| has joined #nixos
Qwerky has joined #nixos
lsix has quit [Ping timeout: 246 seconds]
rj has quit [Ping timeout: 240 seconds]
ddellacosta has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sshow>
every now and then, I encounter the following error when attempt nixos-rebuild: "mktemp: failed to create directory via template ‘initrd-secrets.XXXXXXXXXX’: Read-only file system"
kaliumxyz has quit [Ping timeout: 240 seconds]
<sshow>
a known issue? (while I'm searching the issue repo)
meh` has quit [Read error: Connection reset by peer]
<mindavi>
hey! anyone any idea how to enable binary substitution for systems / archs other than yourself? I was looking at the binfmt-misc stuff but it doesn't fully work as expected
<mindavi>
Since it still tries to build stuff locally
<exarkun>
Why does vulnix tell me that avahi on one of my nixos systems is affected by https://nvd.nist.gov/vuln/detail/CVE-2021-26720 ? "avahi-daemon-check-dns.sh in the Debian avahi package through ..."
vuko has quit [Ping timeout: 260 seconds]
<ivan>
Izorkin: is there a known issue or is it just me doing something weird e.g. maybe grub installed on two drives
<exarkun>
I suppose it has only the barest matching & filtering capabilities and it just notices the CVE is marked against the same version of avahi as I have (when really the CVE should be targetted at Debian's packaging, not at Avahi itself?)
strobelight has quit [Remote host closed the connection]
<veleiro>
will content addressing the store make 'multi-user nix mode' irrelevant?
strobelight has joined #nixos
sangoma has quit [Quit: WeeChat 3.1]
Qwerky has quit [Remote host closed the connection]
Qwerky has joined #nixos
<ivan>
I went into the hetzner bios and even though I couldn't set the other drive as the default boot, I could manually boot the second drive via the boot menu
strobelight has quit [Excess Flood]
zakame has quit [Ping timeout: 260 seconds]
strobelight has joined #nixos
<ivan>
yeah I do have grub installed on both drives but nixos config had it set to update just one
ddellaco_ has joined #nixos
lsix has quit [Ping timeout: 260 seconds]
rj has quit [Ping timeout: 240 seconds]
coyotechords has joined #nixos
<coyotechords>
hello
<ivan>
hi
<coyotechords>
broke my user nix profile beyond repair, is there a way to reset it?
<exarkun>
is it true that an option set to `mkDefault x` in two different places results in an unresolveable conflict, even the option is set to an override with a different (higher) priority in a third place?
<tpw_rules>
it wouldn't make any sense to make e.g. a deb
justanotheruser has joined #nixos
aesth[m] has joined #nixos
<mindavi>
No, it doesn't really make sense to make debs or rpms
<lunik1>
I believe guix has something like this, but nothing built-in for nix afaik
<matthewcroughan>
tpw_rules: why not?
<matthewcroughan>
You could use Nix as a build tool to support all distributions, if it were possible.
<matthewcroughan>
But would it not make sense to make a deb because of shared library mess?
<tpw_rules>
because you would either make it just a wrapped appimage, which is inefficient, or have to undo all the nix magic, which is both hard and a waste of time
<matthewcroughan>
tpw_rules: this isn't about efficiency, it's about portability and adoption
<matthewcroughan>
if nix can be used as a build tool to solve problems for other distributions, it's clearly going to be beneficial.
<tpw_rules>
i mean appimages are more portable than .deb
<matthewcroughan>
tpw_rules: yeah they are, but it doesn't make sense for a command line tool for example
<matthewcroughan>
we can already ship a golang static binary, it's just about what people are comfortable with, yknow?
malook has quit [Quit: malook]
sss2 has quit [Quit: Leaving]
<matthewcroughan>
when you see on Kubernetes' page "how to install kubernetes on X", X could be 5 packaging formats. Do you see this as an abomination? Is this to be avoided?
Lord_of_Life_ has joined #nixos
<matthewcroughan>
If nix can be used to make Debs/Rpms, we could be making the world a little bit better, by making it possible to maintain more with less human.
<matthewcroughan>
But, I need more opinions on this.
<tpw_rules>
well yes that is a true statement
<tpw_rules>
is it a useful one? i don't think so
<matthewcroughan>
We already have a function that produces an OCI image from Nixpkgs. Why not Debs/Rpms from any nixpkg?
n-osborn_ has quit [Remote host closed the connection]
<matthewcroughan>
That's what I was looking for. So is it in theory impossible because of that?
<tpw_rules>
yeah. you would either have to make a deb that distributes everything, which you can already do with appimage and better, or take all the nix out of nix
<mindavi>
So you'd have to know the paths of the shared libraries (or build everything statically)
<tpw_rules>
i guess yeah you could use nix to build things statically but then you don't even need a package
Lord_of_Life has quit [Ping timeout: 260 seconds]
<matthewcroughan>
yeah that's hard
<matthewcroughan>
old packaging formats really are damned
rj has quit [Ping timeout: 240 seconds]
<mindavi>
And I think that paths of the shared libraries can be different between OSes? Anyhow, you lose everything about what nix does (reproducible builds linking to known versions instead of the random version you have installed)
<matthewcroughan>
How do they figure out the shared library stuff in Debian?
lsix has joined #nixos
Lord_of_Life_ is now known as Lord_of_Life
n-osborne has joined #nixos
<mindavi>
Always put them in the same place and with the same name, unless a major version bump is done
rj has joined #nixos
n-osborne has quit [Remote host closed the connection]
ddellacosta has quit [Remote host closed the connection]
superherointj has joined #nixos
ddellaco_ has joined #nixos
fuzzypixelz has joined #nixos
<fuzzypixelz>
hello. I'm using nix-shell to get an env of ghc with haskell certain packages. the issue is that my editors (borth vscode and emacs) configured to use the LSP can't find the packages
<fuzzypixelz>
even tough everything compiles just fine
<fuzzypixelz>
on vscode I got the nix-environement-selector but it doesn't do it
<fuzzypixelz>
I even tried including the haskell-langauge-server in my shell.nix
n-osborne has joined #nixos
gentauro has quit [Read error: Connection reset by peer]
<sterni>
fuzzypixelz: how does your shell.nix look?
<sterni>
I think with haskellPackages.shellFor it should work
<fuzzypixelz>
sterni: this is turning me crazy. I made sure I didn't have the hls installed, then went into the nix-shell, ran vsocde from inside there so it inherits the path (the nix-env-selector extension is acting funny)
<fuzzypixelz>
but the hls threw errors on the imports _anyway_
ddellaco_ has quit [Remote host closed the connection]
Qwerky has quit [Ping timeout: 265 seconds]
<sterni>
with shellFor?
<sterni>
fuzzypixelz: try adding vscode to the buildInputs and using nix-shell --pure
ddellaco_ has joined #nixos
<sterni>
otherwise I'll have to check how hls does the import resolving
<fuzzypixelz>
yes the exact shell.nix you suggested
<sterni>
also maybe maralorn is around, I know he uses hls
<sterni>
I don't actually
<fuzzypixelz>
well, reverting back the mkShell and running the editor from nix-shell itself solves it ...
<fuzzypixelz>
I think the issue is with the nix-env-selector extension
<ivan>
re: the grub issue I had earlier it would be nice if grub tracked which stage1/2 bootloader was actually used to bring up linux, so that nixos could print loud warning if you're not updating that grub
* ivan
dreams
rj has quit [Ping timeout: 240 seconds]
<ivan>
I guess the real problem is that linux has no way of verifying that it's still bootable by correlating the bios boot settings to block devices
<ivan>
also TIL that the Hetzner BIOSes do seem to have UEFI boot enabled as the first option, even though they install their Linux as MBR
<edrex>
I'm just scaling up my new, flake-based, nixos-config to more hosts, and I'm observing that a lot of the functionality I'm pulling in from external flakes (agenix, nixos-hardware, doom-emacs) is delivered as a module that I need to list per-host.
<edrex>
I'm wondering, is there a way to pull in modules in the host config file, or better mixins, to reduce duplication. Currently I'm using a modified version of colemickens' mkSystem function [1] that takes a modules arg too, but it would be nice to make decisions about per-system modules outside the flake
<tokudan>
i've got a nixos-20.09 system and want to add a package from nixpkgs-unstable channel. how can I do that in configuration.nix? I've got let unstable = import <nixos-unstable> {}; in {environment.systemPackages = [ unstable.pkgs.streamlink ]}, but a rebuild doesn't seem to use the unstable streamlink?
<edrex>
trying to learn the language as quickly as possible, and I'm getting there, but there's enough magic that I still haven't mentally mapped out
zakame has quit [Ping timeout: 260 seconds]
fendor_ has joined #nixos
m3thos has quit [Ping timeout: 252 seconds]
fendor_ has quit [Remote host closed the connection]
<supersandro2000>
if that adds the wrong version your channel is not quit right
<l33[m]>
<supersandro2000 "l33: put next to my other 200 ta"> no worries!!!! :-)
<tokudan>
supersandro2000, "Nix search path entry '<nixos-unstable>' does not exist, ignoring", that's probably the reason. i assumed adding a channel nixos-unstable pointing to the unstable channel would be enough
<supersandro2000>
tokudan: you need to add it via nix-channel first
<supersandro2000>
you probably also want to track nixpkgs-unstable
<Yawn>
hello hello, must things be built from source to be put on nixpkgs? I've got an unfree windows program I'd like to use with wine and create a wrapper for that can be added to the repo
<samueldr>
about right
<samueldr>
l33[m]: the blue dots are nixos-unstable :)
<samueldr>
the alignment's all kind of wonky
<simpson>
yawN: There are such things in nixpkgs, sure. Notably, Steam support requires a couple layers of unfree software.
<samueldr>
l33[m]: "about right" was because I pasted the announcement the bot posts on channel updates, and it's about three hours in the past :)
<samueldr>
and definitely the alignment doesn't help on that timeline
seku has quit [Quit: Connection closed]
<samueldr>
channels.nix.gsc.io is nice to have a machine-parseable history (through the misc. file formats)
<samueldr>
though status.nixos.org is where the "at a glance" dashboard is
vuko_ has quit [Ping timeout: 260 seconds]
<supersandro2000>
yawN: source build is preferred if available
<tokudan>
tejing, supersandro2000, my original version worked already, i just changed the configuration.nix for the wrong system. thanks for your help :)
<sheijk>
what's the easiest way to install a pip packages that has no nixos package? all python guides i found so far don't make much sense to me and seem to be more tailored at python devs. is there anything simpler than learning all about pip for commands like 'pip install icloudpd' or 'pip install git+https://github.com/sezanzeb/key-mapper.git'?
<ihsan>
Why nix {run,build} downloads the nixpkgs tarball so often? Isn't there a function/utility that fetches just the differences like `rsync` does?
<clever>
ihsan: to get differences, you need to instead use git, which then requires cloning the entire history
<ihsan>
I mean I create a simple flake.nix for a simple hello world code in C (github.com/ihsanturk/hello-world-c-nix), why it fetches nixpkgs at all when I `nix run`?
<supersandro2000>
because you reference nixpkgs somewhere and it only can fetch it in its entirety
<supersandro2000>
there is currently no system to just fetch the stuff you need
<ihsan>
I see. That is the answer I was looking for
<ihsan>
Is there a plan to reduce the size or only fetch the required things?
<ihsan>
Or can I build a package without nixpkgs?
<sterni>
I mean you don't have to fetch it every time
<sterni>
only every time you update
<sterni>
in between it's just cached in the nix store
ddellaco_ has joined #nixos
justanotheruser has joined #nixos
meh` has quit [Ping timeout: 240 seconds]
<supersandro2000>
It only fetched what is required right now
<supersandro2000>
Nix does not know which files it needs in the beginning and any missing file would lead to an eval error
<ihsan>
Is it after the version `nix (Nix) 2.4pre20210317_8a5203d`
<supersandro2000>
And the tarball has a TTL of an hour by default IIRC so you should only fetch it every hour if the URL stays the same
<supersandro2000>
The nix version has nothing todo with the version of nixpkgs
ddellaco_ has quit [Ping timeout: 240 seconds]
<supersandro2000>
And you can build a package without nixpkgs but then you are missing lots of things
<ihsan>
Alright, can I increase the cache TTL then?
<supersandro2000>
You potentially need the entire tree right now
<supersandro2000>
If you have setup a channel the repo is only downloaded once until you update the channel
<supersandro2000>
And there is a nix config option to increase the ttl
<supersandro2000>
Which might or might not apply here. I am not sure.
zebrag has quit [Quit: Konversation terminated!]
Vazomi has quit [Quit: Leaving]
zebrag has joined #nixos
gustavderdrache has joined #nixos
Vazomi has joined #nixos
<ihsan>
> [02:22:58] <supersandro2000> You potentially need the entire tree right now
<ihsan>
Yes it happens after I collect the garbages or after some time passes. But my pain point is when I develop a package through days I always wait nix a couple minutes to download the nixpkgs repo if it is not cached. I think it should store the cache indefinitely and update gradually over time by syncing just the differences.
<{^_^}>
error: syntax error, unexpected ':', at (string):493:4
<ihsan>
> there is a nix config option to increase the ttl
<ihsan>
Thanks I will try it.
<{^_^}>
undefined variable 'there' at (string):493:1
Vazomi has quit [Client Quit]
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/JY7nS
Vazomi has joined #nixos
tmciver has joined #nixos
nsnc has quit [Ping timeout: 240 seconds]
<l33[m]>
<ihsan "> [02:22:58] <supersandro2000> Y"> i wish i could give you 10gigabit ethernet.
ahmed_elgabri has joined #nixos
cyphase has quit [Ping timeout: 265 seconds]
<tpw_rules>
there seems to be a bug where flakes don't keep around the required nixpkgs
<tpw_rules>
you can fix it in your specific case by changing your installPhase to "mkdir -p $out/bin; install -t $out/bin hello; echo ${nixpkgs} > $out/bin/.keepmypkgs"
diego231207 has joined #nixos
<sterni>
supersandro2000: this all doesn't necessarily apply to flakes
ahmedelgabri has quit [Ping timeout: 252 seconds]
diego231207 has left #nixos [#nixos]
<ploupiboulba[m]>
ihsan: if you dont want to redownload nixpkgs, you can change tarball-ttl or pass --override-input with a local checkout