MatrixBot22 has quit [Quit: Bridge terminating on SIGTERM]
<{^_^}>
[nixpkgs] @dmanam closed pull request #103333 → nixos/modules/services/x11/clight: update configuration format to new version → https://github.com/NixOS/nixpkgs/pull/103333
pushqrdx has quit [Remote host closed the connection]
pushqrdx has joined #nixos
<hpfr>
Did GitHub turn on system color scheme for logged out users now?
bridge[evilred] has quit [Remote host closed the connection]
bridge[evilred] has joined #nixos
bridge[evilred] has quit [Excess Flood]
bridge[evilred] has joined #nixos
ddellacosta has joined #nixos
Dr8128 has quit [Ping timeout: 240 seconds]
friel- has left #nixos [#nixos]
ddellacosta has quit [Ping timeout: 265 seconds]
pushqrdx has quit [Remote host closed the connection]
pushqrdx has joined #nixos
marusich has joined #nixos
<radvendii>
I had a wild idea. I have no idea how this would be implemented, but the idea is to have a special command one can insert into a script in nix (like buildPhase or whatnot), and when it gets there, it drops you into an interactive shell. I would propose that once you exit the interactive shell it necessarily fails the build (since that's not pure at all), but it would be incredibly helpful for
<radvendii>
debugging purposes
<radvendii>
I know I can nix-shell and then manually run the buildPhases, but sometimes there are ${} substitutions in the scripts that I don't have access to, and in general it's just a pain to manually run all of the commands leading up to it
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
spacefrogg has joined #nixos
pushqrdx has quit [Remote host closed the connection]
theDon has quit [Ping timeout: 265 seconds]
pushqrdx has joined #nixos
theDon has joined #nixos
ddellacosta has joined #nixos
pushqrdx has quit [Remote host closed the connection]
pushqrdx has joined #nixos
mla has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
ddellacosta has quit [Ping timeout: 252 seconds]
slack1256 has quit [Remote host closed the connection]
<cgbrewster[m]>
Hello! I'm an engineer at replit.com and I'm doing some exploration with nix on our platform. Out of curiosity, how big is the the public nixos binary cache?
<simpson>
At least several tebibytes, I hear.
<samueldr>
it never really has been garbage collected IIRC
<cgbrewster[m]>
Impressive! I'm trying to think of a way to provide a pre-warmed nix store for repls so you don't have to download much (you're pretty limited on storage in a project)
pushqrdx has quit [Remote host closed the connection]
pushqrdx has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
<aaronjanse>
cgbrewster: I think you can also host your own secondary cache for replit, which would Nix transparently do something like "cache all downloads for 1 day," so frequently requested things (across all users) would persist in your binary cache
<aaronjanse>
*which would let Nix
Supersonic has quit [Ping timeout: 240 seconds]
Supersonic112 is now known as Supersonic
<cgbrewster[m]>
aaronjanse: Yeah I think we might do something like that, we also can bake in a cache in the container and provide an writable overlay. I tried doing this with just /nix/store but found out there is a sqlite db in /nix/var/... somewhere that needs to stay in sync with the store.
JJ has quit [Quit: Connection closed]
<cgbrewster[m]>
The wild idea was to make a nix store that has everything in it on a read-only persistent disk that we mount to each machine and give everyone a writable overlay. In theory you'd have any package you want without needing to download anything right?
ahmed_elgabri has joined #nixos
<simpson>
Packages are only the first step. Nix is a general-purpose build system, and what most folks want to do with it is build their own custom packages, e.g. in CI workflows.
<cgbrewster[m]>
Right, our primary use-case is to let users install whatever they want into their repl's environment. Right now we use a massive dockerfile with a bunch of things preinstalled, but its pretty hard to maintain and we can't update most things without breaking older repls
<cgbrewster[m]>
The underlying containers come and go, so ideally we want to avoid downloading a ton of things into the nix store, since this both takes a while and we quickly run out of space
JJ has joined #nixos
<aaronjanse>
Yep, that makes a lot of sense
ahmed_elgabri has quit [Ping timeout: 260 seconds]
<simpson>
You can share an underlying Nix store with many containers in a read-only fashion, I think. Don't know where the docs are on how to do that. Another option would be to union-mount a tmpfs over the Nix store and let users chew RAM instead of disk; I don't know if we support that technique but it'd be possible to hand-build.
JJ has quit [Client Quit]
<aaronjanse>
I think that replit wants containers to be able to add new packages
<aaronjanse>
While sharing packages that are built across containers
JJ has joined #nixos
<simpson>
Which is a yikes as soon as we're not
apo has quit [Quit: apo]
<simpson>
*as soon as we're not just considering nixpkgs. It's a security problem if one user can see another's Nix builds; it's like a forged capability.
growpotkin has quit [Ping timeout: 268 seconds]
<cgbrewster[m]>
We probably wouldn't cache builds across containers, seems pretty spooky
apache8080 has quit [Ping timeout: 268 seconds]
apo has joined #nixos
ddellacosta has joined #nixos
<cgbrewster[m]>
Ideally we have a base nix store that already has all the derivations built for things like rustc, node, python, etc etc and then people can create active just what they need via something with nix-env
<cgbrewster[m]>
Does the nix store start hitting any perf issues once it gets past a certain size?
<aaronjanse>
I haven't heard of that happening, since I think all (or almost all?) Nix operations are O(1) with respect to the size of the /nix/store
ddellacosta has quit [Ping timeout: 252 seconds]
<cgbrewster[m]>
Sweet! I'll play with this some more, been loving Nix so far!
<samueldr>
main issue you could face is `ls /nix/store` taking a while... but that's not really something you want to do
<aaronjanse>
Good to hear! cgbrewster
<aaronjanse>
Oh samueldr probably can answer questions about nix at repl.it a lot better than I can
<cgbrewster[m]>
Cool! We're still at early stages with nix so far, but I think it will make replit a lot more powerful in the future :)
<samueldr>
I don't know what repl.it is
<aaronjanse>
Oh my. You're missing out
<samueldr>
>> what languages are you primarily interested in?
<samueldr>
pick 3... and there's no Nix
<cgbrewster[m]>
haha! We will still keep our old docker container with a million things installed around for a while. For now nix will let users more easily install extra packages, even if it doesn't have everything, its better than what he have currently.
<cgbrewster[m]>
Long term, it'd be great if nix could replace our mega-docker image (https://github.com/replit/polygott if you're interested)
<samueldr>
oh, I see, I didn't get that "replit.com" in your introduction was replit duh
<aaronjanse>
Ooh, thanks for sharing
<aaronjanse>
cgbrewster: My uninformed guess is that you could use an overlayfs for /nix/store then copy over /nix/var (or some subset of it) to each container. On my build server, /nix/store is 115 GB but /nix/var is only 167 MB
<aaronjanse>
/nix/var should be the one with the sqlite database
<cgbrewster[m]>
aaronjanse: awesome, we just setup overlfayfs infrastructure for caching pypi and npm, so this should be pretty straightforward then
<cgbrewster[m]>
Maybe, this is solving a different problem currently. UPM is pretty good for handling language packages (pypi, npm, etc) whereas we hope nix would manage the development environment (compilers, cli tools, etc)
ericsagnes has quit [Ping timeout: 250 seconds]
<simpson>
Is there a channel for PowerPC work? I'm looking to package stuff using devkitPPC and I am guessing that our `ppc-embedded` target is close enough, with a similar triple and using newlib.
<Ke>
ppc controller?
<simpson>
Wii and Gamecube! I am in a silly mood; I'm trying to automate the archival process for old games, and I wondered how much of the homebrew tooling could be reproducibly built from source.
jesystani has joined #nixos
ddellacosta has joined #nixos
<abathur>
ah, okay; probably for the best; it seemed like Nix also had language support for a fair slice of the languages listed, but I guess each language ecosystem in nixpkgs tends to have its share of quirks
<jesystani>
howdy, im trying to run picom and im getting the error "FATAL: cant open display", im defining the service via home-manager, is there something else i should be doing?
<cgbrewster[m]>
abathur: I think its still an open question, but gotta keep the scope a bit smaller for now
ericsagnes has joined #nixos
<abathur>
sane ambitions are good :)
dsrt^ has quit [Ping timeout: 252 seconds]
ddellacosta has quit [Ping timeout: 246 seconds]
<radvendii>
abathur: damnnn nix is incredible. thanks for the link
<radvendii>
abathur++
<{^_^}>
abathur's karma got increased to 25, it's a crit!
waleee-cl has quit [Quit: Connection closed for inactivity]
nahamu has quit [Ping timeout: 246 seconds]
<apo>
good that floppies are a thing of the past
nahamu has joined #nixos
sangoma has quit [Ping timeout: 240 seconds]
ddellacosta has joined #nixos
ddellacosta has quit [Ping timeout: 252 seconds]
<Nickli>
shame that CS's took over with their exposed strage layer
<Nickli>
CD's
palo1 has joined #nixos
palo has quit [Ping timeout: 240 seconds]
palo1 is now known as palo
jarkad has joined #nixos
sangoma has joined #nixos
xantoz has joined #nixos
domogled has joined #nixos
ahmed_elgabri has joined #nixos
jybs is now known as Guest51332
ddellacosta has joined #nixos
<apo>
good that CDs are a thing of the past :D
ahmed_elgabri has quit [Ping timeout: 258 seconds]
<simpson>
,locate bin2s
<{^_^}>
Couldn't find in any packages
ddellacosta has quit [Ping timeout: 240 seconds]
respawn_ has joined #nixos
<radvendii>
I get the sense that it's a Bad Idea to `export` variables inside `buildPhase` or `preBuild`. Is that correct?
marusich has joined #nixos
spacefrogg has quit [Ping timeout: 252 seconds]
spacefrogg has joined #nixos
<simpson>
Yeah; try to set environment variables on the derivation instead.
cole-h has quit [Ping timeout: 240 seconds]
paarnoutse has joined #nixos
mallox has joined #nixos
orivej has joined #nixos
<radvendii>
simpson: what if i need an absolute path to the build directory? I was using `export blah=$PWD/foo`. I know it's just /build, but it also seems like bad form to hard-code `ENV_VAR = "/build/foo"`
<nixusr>
anybody using home manager or declarding evreythign in configuration.nix ?
<srhb>
nixusr: Yes.
<nixusr>
i'm wondering which path to try going :/
<aaronjanse>
pie_ I think it's TTY 11 or something on the NixOS ISO
<srhb>
nixusr: Try both!
exfalso has joined #nixos
stefan1337 has joined #nixos
<stefan1337>
Hello everyone!
<stefan1337>
Quick question: is anyone aware of packaging up Neovim version 0.5+ for Nixpkgs? I'm wondering why even in unstable we only have such an outdated version. Thanks
<pie_>
aaronjanse: i think thats just the nixos docs, but thanks for the reminder, i need t ofigure out how they get it rendering on the terminal (use a web browser i think?)
wallacer has quit [Ping timeout: 250 seconds]
LilleCarl has joined #nixos
<aaronjanse>
Oh see also the `nixos-options` command
<aaronjanse>
I think the terminal uses w3m
<nixusr>
pie_: they use w3m
ddellacosta has joined #nixos
<srhb>
nixusr: If that wasn't the answer you wanted -- it's pretty trivial to go from out-of-band HM to in-nixos-config HM.
saschagrunert has joined #nixos
<srhb>
nixusr: So you won't have a bunch of lost investment either way
<nixusr>
cool
<nixusr>
i'm currently bothered that I don't know how to upgrade vscodium to latest version :)
<nixusr>
stefan1337: you should use pastebin for multi line pastes
kitty_hut[m] has joined #nixos
jimmiehansson has joined #nixos
endformationage has quit [Quit: WeeChat 2.9]
jarkad has quit [Read error: Connection reset by peer]
jarkad has joined #nixos
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kitty_hut[m]>
Yo, I am new to nixos. I am wanting to try out bspwm, how would that look to set it up? I have used tiling window managers before but I haven't set one up. I already have nixos set up, temporarily with KDE.
<stefan1337>
mjlbach does the nightly overlay also come with overrides? This way I get some errors about `configue` missing: https://pastebin.com/x7i74Ubf
<stefan1337>
nixusr thanks
<mjlbach>
No, it's neovim-unwrapped
<stefan1337>
ah, so I have to wrap it myself. Or what do people usually do?
<mjlbach>
Use the home-manager package level override or wrap it themself
<thibm>
stefan1337: use another overlay? They're composable
<stefan1337>
thibm could you give me a pointer how that overlay would be structured?
<thibm>
kitty_hut[m]: you can follow instructions in nixos manual about window managers. services.xserver.windowManager.bspwm.enable is missing in the list but the option exists
<kitty_hut[m]>
thibm: Oh, thank you! So, I would just paste that into the config? Going to read that page, I honestly don't know why I didn't read the manual first lol
<thibm>
However, some home-manager options/services have a "package" option that allow you to set a specific package (here you can override it) like mjlbach said (IIUC). It can be more convenient
<mjlbach>
Yes, hm has one for neovim
<kitty_hut[m]>
Speaking of the online manual, does anyone know if there is a way to make the page darkmode or am I going to have to do a workaround to make it darkmode (like downloading it or loading it in a terminal)
stefan1337 has quit [Quit: Connection closed]
wallacer has quit [Ping timeout: 258 seconds]
jophish__ has joined #nixos
<thibm>
kitty_hut[m]: you can read the unstable manual which has dark modes
stefan1337 has joined #nixos
<thibm>
But it's about the unstable versions…
cfricke has joined #nixos
<kitty_hut[m]>
Dang. That is dissapointing. In the modern internet dark-themes should be the default with light themes the compatability option for people who prefer it.
<thibm>
In the modern internet one should choose its theme, not the websites :>. The new manual is completly different (different backend) and has several themes
jophish__ has quit [Client Quit]
<thibm>
TIL @ does not capture non-given optional argument :(
<thibm>
> let f = { a, b ? 0 } @ args: args; in f { a = 1; }
<{^_^}>
{ a = 1; }
<kitty_hut[m]>
Yeah, actually, I agree with that. That's why I usually use terminal based applications lol
wallacer has joined #nixos
<thibm>
kitty_hut[m]: you (normally) have the manuals shipped with nixos, you can browser it using w3m
stefan1337 has quit [Quit: Ping timeout (120 seconds)]
vidbina has quit [Ping timeout: 246 seconds]
<kitty_hut[m]>
<thibm "Hm, forgot about the manual in a"> Ah. I was just looking at the nixpaper PDF which I mistook for a PDF copy of the NixOS Manual. NixOS really probably should include a PDF manual imo
<kitty_hut[m]>
It would have made some troubleshooting earlier a bit easier lol
<thibm>
The manual is written in CommonMark* and compiled to a static website. I guess it's possible to generate PDF from that. Feel free to do it
evanjs has quit [Read error: Connection reset by peer]
<thibm>
* currently it's being migrated from docbook to commmonmark
<kitty_hut[m]>
Btw, is there any way to search nix in the command line, or is nixos manual the way to do that?
evanjs has joined #nixos
<thibm>
"search nix in the command line"?
<kitty_hut[m]>
some package managers have the ability to search the repository in the command line for packages. Pamac and (maybe? its been a while) guix have the ability to search for packages in the command line.
<kitty_hut[m]>
Although, most of the nixos packages I have seen have very sensible names and surprisingly full, so, minimal searching will be required
respawn_ has quit [Quit: Leaving]
<etu>
kitty_hut[m]: "nix search firefox"?
fendor has joined #nixos
<kitty_hut[m]>
oh yes, thank you!
<kitty_hut[m]>
I
<kitty_hut[m]>
thought I tried that earlier
<kitty_hut[m]>
I feel very dumb. That works.
<etu>
kitty_hut[m]: And "man configuration.nix" for options that can be used in configuration.nix :)
<supersandro2000>
but in that case you would need to write a script which replaces all hashes
S0rin has joined #nixos
<supersandro2000>
for that I would take a look at some update.sh files in nixpkgs
boredom101 has quit [Quit: Connection closed]
sangoma has quit [Quit: WeeChat 3.1]
amk has quit [Remote host closed the connection]
amk has joined #nixos
<{^_^}>
[nixpkgs] @sternenseemann merged pull request #119605 → nixos/etebase-server: do not prompt for input during automatic migration → https://github.com/NixOS/nixpkgs/pull/119605
sangoma has joined #nixos
dotdotok has quit [Read error: Connection reset by peer]
dotdotok has joined #nixos
<attila_lendvai>
@supersandro2000, thank you, i'll study that. i assume your comment is not relevant anymore if i just collapse that package to follow one branch of c2ffi, right? then i can just mimic what you have linked, right?
<supersandro2000>
attila_lendvai: I think so. If you not strictly require the two branches it would be easier.
<supersandro2000>
I think we could also split the package in multiple files which could maybe use the generic updater
supersandro2000 has quit [Remote host closed the connection]
<attila_lendvai>
supersandro2000, cool, i'll do that. i don't know how to test the updater, though. nor what even it does. (i assume it automatically updates the package as new commits are pushed upstream. i'll see, i guess... :)
<attila_lendvai>
supersandro2000, one last thing: i don't know how to communicate to the update script which upstream branch to use... i'll try passing this url: https://github.com/rpav/c2ffi/tree/llvm-11.0.0
<supersandro2000>
attila_lendvai: I think adding a branch argument which defaults to master should be the easiest
Dominic[m] has joined #nixos
<attila_lendvai>
supersandro2000, what i'm doing is using optionalString, because we don't know what's the default branch, especially with the current wave of master -> main renames.
Dominic[m] has left #nixos [#nixos]
<supersandro2000>
attila_lendvai: oh yeah right. The default branch it uses right now can be different. Good catch.
<exarkun>
Ke: I guess it could be that there is no way. That would be a reassuring reason for me not knowing it ...
ddellacosta has joined #nixos
waleee-cl has joined #nixos
<qbit>
if i am on stable and I do "nixos-rebuild -I nixpkgs=$NIXPKGS switch" where NIXPKGS is nixpkgs @ master, will it update all the things? can I specify just the thing I want to test from nixpkgs?
meh` has quit [Read error: Connection reset by peer]
ddellacosta has quit [Ping timeout: 260 seconds]
adisbladis has joined #nixos
<qbit>
(the thing i want to test is served up by nginx - specifically an update to glowing-bear)
<supersandro2000>
qbit: you can only pull specific packages from a channel
<supersandro2000>
Not fully sure how to do it on nixos but you can probably add a channel named nixpkgs-master with the right URL and then use <nixpkgs-master> for glowing-bear
<qbit>
hmm
djm has left #nixos [#nixos]
<qbit>
surely i can use the local directory without it needing to fetch a new channel? maybe if i use file:// as the url :D
<jtojnar>
qbit: yeah, you can use paths but if you override nixpkgs in NIX_PATH using -I, it will update everything
<qbit>
ok, that's what I thought, ty
<jtojnar>
using -I nixpkgs-master=$NIXPKGS and then doing what supersandro2000 said will work
<attila_lendvai>
supersandro2000, i have implemented it, but it seems hopelessly complicated to test this update mechanism... i've opened this PR: https://github.com/NixOS/nixpkgs/pull/119610
<{^_^}>
#119610 (by attila-lendvai, 1 minute ago, open): unstable-updater.nix now understands a branch argument
<qbit>
mk, i ended up just testing with "python -mSimpleHTTPServer"
<jtojnar>
but if you also want to use modules from there it gets more complicated (blacklisting the original ones and then importing them explicitly from <nixpkgs-master>)
ddellacosta has joined #nixos
juhe has quit [Ping timeout: 252 seconds]
ddellacosta has quit [Ping timeout: 246 seconds]
orivej has quit [Ping timeout: 252 seconds]
juhe has joined #nixos
ahmedelgabri has joined #nixos
philr has quit [Ping timeout: 265 seconds]
Qwerky has quit [Remote host closed the connection]
arcnmx was kicked from #nixos by gchristensen [it would be my honor]
ddellaco_ has joined #nixos
<supersandro2000>
attila_lendvai: commit an updated version and then try updating it. I think `nix-shell maintainers/scripts/update.nix --argstr package gnome3.nautilus` might be the right command.
bn_work has joined #nixos
ddellaco_ has quit [Remote host closed the connection]
xorino has joined #nixos
ddellaco_ has joined #nixos
<Reventlov>
hey
<pie_>
attila_lendvai: szevassszzzzz
hyper_ch has quit [Read error: Connection reset by peer]
<aforemny>
`nix-store -qd` on a store path references a .drv that does not exist in my store path. Why is that and how can I obtain that .drv?
jarkad has quit [Quit: jarkad]
ddellaco_ has quit [Remote host closed the connection]
anderslundstedt has quit [Ping timeout: 252 seconds]
<aforemny>
I was especially puzzled by the fact that I just `nixos-rebuild`d my system configuration and .drv paths were missing from `nix-store -qd $(nix-store -qR /var/run/current-system)`. But I guess if the package is already there, it does not have to reinstantiate the derivation that would realise that package. Right?
ddellaco_ has quit [Remote host closed the connection]
<Orbstheorem>
Hi, I'm looking for a way to install user files (like home-manager), but something that takes less time to generate/activate. Upon activation, it should just write the new file without caring if there was a previous version of them.
<aforemny>
Anyway, how could I obtain a list of package names that comprised my whole system? This is what I wanted to archieve with `nix-store -qd $(nix-store -qR /var/run/current-system)`. But if .drv failes are missing, I am left with guessing the pname from the file path which I would rather not have to do.
<lunik1>
If I have a list [ "foo" "bar" "norf" ], how can I add "qux" immediately after "bar"?
<hrnz>
most™ things neccessary for an installation should also work with older kernels, you can always upgrade the kernel later to get stuff like wifi, powersaving and display backlight working
<jumper149>
hrnz: Im getting stage 1 errors, something like failed to mount /dev/root or something like that
<jumper149>
would have to retry to say exactly
<hrnz>
mhm
<clever>
lunik1: a combination of find, sublist, and concatLists
<jumper149>
hrnz: might also be some other problem, this is just my best guess currently
domogled1 has joined #nixos
<jumper149>
hrnz: I checked again, it says: mount: mounting /dev/root on /mnt-root/iso failed: No such file or directory
<clever>
jumper149: how was the iso file written to a usb stick?
<jumper149>
either with dd or cp, one wasn't working at first not sure which one worked then ^^
gustavderdrache has joined #nixos
<jumper149>
clever: didn't know that could be a problem
VideoGameEnjoyer has quit [Remote host closed the connection]
<clever>
jumper149: ive seen people using tools to convert a bootable cd into a bootable usb before (unetbootin), and it breaks the nixos image
<clever>
its already a hybrid image, that can boot on either cd or usb
domogled has quit [Ping timeout: 246 seconds]
<clever>
and its not compatible with how the nixos bootloader is working
domogled1 has quit [Ping timeout: 260 seconds]
<jumper149>
my self-built iso just throws me into grub cli :(
<jumper149>
I'll try the 21.05 one
<jumper149>
just found an old 20.03 live usb and that boots...
<hrnz>
gotta love regressions
<jumper149>
I'm honestly thinking about installing from that and just updating
<sterni>
jumper149: you should also just be able to switch channel in the image
cub3s_ has joined #nixos
sangoma has quit [Quit: WeeChat 3.1]
MatrixBot22 has quit [Ping timeout: 246 seconds]
<cub3s_>
https://nixos.org/guides/nix-pills/callpackage-design-pattern.html "The next design pattern worth noting is what I'd like to call the callPackage pattern. This technique is extensively used in nixpkgs, it's the current standard for importing packages in a repository."
<cub3s_>
Are the pills still accurate? Is "callPackage" still the standard?
<dutchie>
an override defines a new individual package. overlays are for when you want to change the available packages as a whole
<cub3s_>
dutchie, how are overlays any different from // ?
<cub3s_>
/ { replacement = "xyz"; }
<sterni>
overlays inject themselves into the nixpkgs fix point and have access to the previous fix point (super) and the new one they are creating (self)
<sterni>
the difference is that instead of just replacing a single element in the set an overlay can replace an element in the set while all other members of the set that depend on that one will also pick up on the new one
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
isHavvy has quit [Ping timeout: 258 seconds]
<sterni>
so if you use overlays to introduce a certain version of rustc, all rust packages will be build with that rustc
<cub3s_>
sterni, oh nice
<cub3s_>
how did people do this before overlays.. :)
<{^_^}>
[nixpkgs] @maralorn pushed to haskell-updates « haskellPackages.haskell-language-server: Fix more deps to stay compat with 1.0.0 »: https://git.io/JOl4P
sangoma has joined #nixos
zupo has joined #nixos
<sterni>
well packageOverrides existed before that already
ahmedelgabri has quit [Ping timeout: 260 seconds]
<sterni>
with the limitation that it didn't receive the new fix point and wasn't really composable
<exarkun>
line 7, column 11 is the letter `u` in `builtins`
<exarkun>
What the heck is that supposed to mean?
<niksnut>
columns are 0-based
<radvendii>
has anyone here successfully used ostree? I'm getting errors and I'm not sure if it's a Nix problem or I'm just using it wrong
xAr86 has quit [Quit: Goodbye!]
xelxebar_ has quit [Ping timeout: 240 seconds]
<exarkun>
niksnut: Do you mean 1-based? If they're 0-based then it's what I said. If they're 1-based then I guess it points at the `b` which at least has a chance of making sense - but still doesn't, does it? Why would Nix complaint that `builtins` is a function where a set is expected?
<niksnut>
probably 'import networkExpr' needs some arguments
ahmedelgabri has joined #nixos
ericsagn1 has joined #nixos
<exarkun>
That seems to be true but you didn't get there from the error nix reported
<niksnut>
yeah ignore what I said
xelxebar has joined #nixos
riksu-raksu has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JOlz8
<{^_^}>
[nixpkgs] @peti merged pull request #118923 → Update Haskell package set to Stackage Nightly 2021-04-06 (plus other fixes) → https://github.com/NixOS/nixpkgs/pull/118923
<phnom>
Hey, got a noob-question here. How do I call nix-build and pass an argument to the function? E.g. I want to build a kernel mod and the arguments I need to pass in are kernel and kmod.
<radvendii>
nix-build --arg foo "bar"
ahmedelgabri has quit [Ping timeout: 260 seconds]
respawn_ has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/JOlAx
<phnom>
radvendii: I assume kernel here is the actual kernel-package, how would I pass that via nix-build? using --arg kernel '"pkgs.linuxPackages"' complains that kernel is a string and not a set when trying to access kernel.version
<clever>
phnom: --arg takes a value, and a nix expr, the double quotes mean your expr is a plain string literal
<phnom>
Ok, so it would be more like --arg kernel '(import <nixpkgs> {}).linuxPackages'?
<nixusr>
how many days should I use nix before I figure out how to get latest vscode :)
vidbina_ has joined #nixos
<pie_>
radvendii: phnom: note --arg passes the arguments to _all_ function calls that take that argument
<pie_>
you can also pass -E and a full nix expression
vidbina has quit [Ping timeout: 240 seconds]
<phnom>
pie_: I am trying to build the vmware vmmon module, I have a vmmon.nix that takes pulls the sources and everything, am trying to adapt the example from https://nixos.wiki/wiki/Linux_kernel to be able to build it.
attila_lendvai_ has joined #nixos
<nixusr>
how can i use the latest virtualbox kernel module in 20.09 ?
attila_lendvai has quit [Ping timeout: 240 seconds]
<radvendii>
earch for -I in the nix-shell man page
<evils>
radvendii++
<{^_^}>
radvendii's karma got increased to 0o1
<radvendii>
ah yes, the number 0o1, my favourite number XD
jrm has quit [Quit: ciao]
<benson_bogard>
nix-shell -l works with urls too or just with system path?
Diagon has joined #nixos
<radvendii>
not sure what -l does, it's not listed in the man page
jrm has joined #nixos
<radvendii>
evils: also if you're using flakes it's even easier: `nix shell nixpkgs/<revision>#<package>`
<evils>
not easier if you count setting up and understanding flakes :P
<radvendii>
haha yes, there's some startup cost. though not as much as i would have thought. i made the switch a couple weeks ago and it was pretty smooth
<benson_bogard>
oh sorry my font is equal to uppercase I and lowercase l
<benson_bogard>
I mean -I
<evils>
radvendii: well, i was trying to get a convenient one-liner to pass to another developer that doesn't have nix set up yet xD
<radvendii>
benson_bogard: oh hahaha. yes it works with urls apparently
<radvendii>
evils: ahhh so then never mind about flakes
<hpfr>
I'm trying to package something with `cc.find_library('cap')` in `meson.build` and when building I get `meson.build:44:0: ERROR: C shared or static library 'cap' not found`, what does my nix expression need for this?
attila_lendvai_ has quit [Ping timeout: 252 seconds]
<hpfr>
nvm, `libcap`
griff__ has quit [Quit: griff__]
xorino has joined #nixos
Qwerky has joined #nixos
nrh^ has quit []
chisui has joined #nixos
meh` has joined #nixos
<chisui>
Hey, I have a really old nix installation I tried to run `nix-channel --update` but I got the error `while setting up the build environment: executing '/usr/bin/bash': No such file or directory` The host system is Arch
pushqrdx has joined #nixos
<chisui>
Is there a limit to nix backwards compatabillity?
ddellacosta has quit [Remote host closed the connection]
<radvendii>
how do y'all open more than one PR to nixpkgs at a time? If I commit it on my fork, it adds that to the first PR
v0|d has quit [Remote host closed the connection]
<chisui>
radvendii: github only allows one PR per branch. You have to create another branch.
<radvendii>
ah, i can make a new branch though. that's the trick. thanks
<chisui>
radvendii: just make sure that you don't branch from the one that you created the first PR from
<a12l>
Is there an easy way to find out what derivation build depends on a specific library? When try to run `home-manager switch`, Nix complains that the python 2 library Pillow v. 6.2.2 has several known security issues.
<qyliss>
a12l: nix-store -q --referrers
<radvendii>
chisui: hahahaha i just did that XD. it's fine i'll just rebase and force push
luxemboye has quit [Remote host closed the connection]
<a12l>
qyliss: Thanks!
dsrt^ has joined #nixos
luxemboye has joined #nixos
<a12l>
I've Libreoffice installed and listed in `home.packages` in my `~/.config/nixpkgs/home.nix` file. When I run `home-manager switch`, Nix is starting building Libreoffice from scratch. Is there some way to only download binaries? I'm not able to compil Libreoffice on my old Thinkpad x230 in a reasonable time.
beertoagunfight has quit [Read error: Connection reset by peer]
<a12l>
I'm running Nix on a non-NixOS system.
luxemboye has quit [Remote host closed the connection]
<qyliss>
your best bet is to figure out why it's trying to download libreoffice, rather than to disable building anything
<a12l>
qyliss: I'll just test out some things, when come back to you.
Qwerky has quit [Remote host closed the connection]
eacameron has joined #nixos
<eacameron>
I've built a docker image from Nix but it doesn't seem like name resolution is working. It can't resolve localhost (which is of course just set in /etc/hosts in the docker image)... anyone seen this?
<hpfr>
trying to package software built by meson, how should I handle subprojects in `meson.build`? seems my nix expression is trying to build them from source instead of referencing the appropriate nix package
<hpfr>
I've set up libliftoff which was not in nixpkgs with a nix expression that builds
<tomberek>
anyone from tweag working on the funflow/funflow2 efforts mind a quick chat?
<Yaniel>
hpfr: note how it checks if the subproject exists on line 74
juhe has quit [Remote host closed the connection]
<Yaniel>
so if you delete the subproject dir in postUpack if it exists, then it'll fall back to asking for that lib from the system
<hpfr>
but then I get `wlroots : NO Subproject exists but has no meson.build file` and it proceeds to try building wlroots, same for libliftoff I assume
shibboleth has joined #nixos
<Yaniel>
roots has its own subproject
<Yaniel>
make sure to delete that subdirectory from subprojects/ as well
<hpfr>
so I'd set up postunpack, cd to subprojects and rm -rf?
<Yaniel>
looks like it is a git submodule
<Yaniel>
are you fetching those?
<hpfr>
should I be? I'm just using the nix package
<Yaniel>
I mean when you fetch the sources for gamescope
Qwerky has joined #nixos
<Yaniel>
because the gamescope repo has libliftoff and wlroots as git submodules
<hpfr>
I'm using fetchFromGitHub, I don't know if that fetches submodules
<hpfr>
does it matter anyway if I'm deleting them in postUnpack
<Yaniel>
yeah in this case you can just delete the entire subprojects dir
<Yaniel>
since the root-level meson.build checks for them and falls back to the system if they are missing
sangoma has quit [Ping timeout: 268 seconds]
<hpfr>
Yaniel: makes sense, thanks. how might I figure something like this out on my own? I feel like I start to struggle with nix packages once I get to the interface between nix and a language specific build tool like meson. I try to search nixpkgs for similar examples but that's kind of difficult when you don't exactly know what you're looking for 😅
fendor has quit [Ping timeout: 252 seconds]
Qwerky has quit [Remote host closed the connection]
Qwerky has joined #nixos
<Yaniel>
meson is fairly simple, for better or worse
<Yaniel>
but basically just learn to read the build files :/
<Yaniel>
no two projects are alike so examples are not very easy to find for anything nontrivial
<hpfr>
alright thanks, I made it fairly far along in this case but I'm not familiar with postUnpack
<chisui>
Is there a way to create wine environments with nix?
<Yaniel>
postUnpack is just a shell script that runs in the directory where the source is unpacked
xorino has quit [Quit: Leaving]
xorino has joined #nixos
<hpfr>
yeah I found a few lines on it in the nixpkgs manual at least
xorino has quit [Client Quit]
<Yaniel>
you can check out pipewire for something slightly bigger that tweaks meson stuff
xorino has joined #nixos
xelxebar has quit [Remote host closed the connection]
xelxebar has joined #nixos
<radvendii>
chisui: like package a wine application so you can run it like a normal application? I don't know, but that seems like a good use for nix
MightyJoe has quit [Quit: I'm out!]
turbio has quit [Quit: Connection closed]
<radvendii>
doesn't seem that hard either; just a simple wrapper. the only problem would be where would you put the wine directory? if it's in the nix store the application can't modify anything in it,
ManiacOfMadness has quit [Ping timeout: 248 seconds]
__monty__ has quit [Quit: leaving]
cyraxjoe has joined #nixos
<radvendii>
but the nix derivation doesn't know about anywhere else
<chisui>
radvendii: you could create an overlay FS for the runtime.
sangoma has joined #nixos
lambdaman has quit [Remote host closed the connection]
<chisui>
but then there is still the issue of mountpoints for user data
<hpfr>
Yaniel: do any of the add_project_arguments sections in the meson.build need to be considered or does meson handle those? I've seen other expressions with mesonFlags sections
<radvendii>
yeah, i odn't know much about complicated filesystem stuff, but I would love to be able to just say mkWineDerivation { ... } with the src set to a windows .exe and have it just work
philr has quit [Ping timeout: 240 seconds]
<Yaniel>
I think that just adds compiler flags for the main project?
<Yaniel>
shouldn't be necessary to touch those at all
lambdaman has joined #nixos
tomberek has quit [Quit: Connection closed]
<Yaniel>
so just remove the subprojects dir and nix should handle the rest automagically
<hpfr>
alright. I added postUnpack to remove subprojects/ but now it's complaining about various #include statements which can't find the header files they need, like pixman.h and libudev.h
<Yaniel>
those you need to add as buildInputs in nix
<Yaniel>
as in, their respective packages
<hpfr>
wouldn't they be in the meson.build though?
<Yaniel>
they still need to be pulled in by nix
<hpfr>
well I mean pixman and libudev for example are not in meson.build at all
<Yaniel>
yea that seems like an upstream bug
aaabbbbbbbbbb has quit [Ping timeout: 240 seconds]
<Yaniel>
assuming that they are always present and not checking
<hpfr>
it looks like all the errors are happening in files of the dependencies?
<Yaniel>
yes
<hpfr>
shouldn't it be leaving the dependencies alone?
<eacameron>
For nix's docker images built with dockerTools is there a way to add a package manager so I can install packages on a running container??
<Yaniel>
mm, pkg-config should handle it I think
<Yaniel>
but you might be running into something not having correct propagatedInputs or something?
<Yaniel>
I'm not entirely sure how the different inputs work
<Yaniel>
as a workaround you can just add them as build-time dependencies to your derivation I guess
<eacameron>
Yaniel: My docker image is fine. I just don't like the fact that if some service is running on there no one can install nano to edit files.
<eacameron>
I could install it beforehand with nix...but then it's bigger than it needs to be.
<Yaniel>
btw you can debug the postUnpack with pwd and ls
<Yaniel>
eacameron: I was still replying to hpfr
<hpfr>
oh good point thanks
<eacameron>
Yaniel: oops haha
<hpfr>
ok, I'll make a note of it and try adding the deps' deps for now. thanks
<Yaniel>
hpfr: if you don't mind checking out the wlroots derivation you could do that
<gustavderdrache>
eacameron: so the problem is that yes, you _could_ package something, you're not going to find a repository that'll be compatible with the nixos loader
<Yaniel>
and ask around if someone can tell you how the dependencies of wlroots should be handled in nix
winterqt has joined #nixos
<gustavderdrache>
which means that if you want to go that route, you'd need to either also install more typical glibc and friends in your image
<gustavderdrache>
or plan ahead and include patchelf
<gustavderdrache>
i have done this before and it is not pretty
<eacameron>
gustavderdrache: ew. does install nix itself work?
<gustavderdrache>
on the docker hub there's nixos/nix
<eacameron>
gustavderdrache: How is that related to dockerTools.buildLayeredImage?
<gustavderdrache>
it isn't :\
<eacameron>
gustavderdrache: lol
<gustavderdrache>
buildLayeredImage is pretty much meant to output "final" artifacts
philr has joined #nixos
<gustavderdrache>
nixos/nix is "i want a self-contained nix without having to ship a .ova file"
<gustavderdrache>
or .ovf or whatever the extension is
<eacameron>
gustavderdrache: what do you mean? Can I open bash? yes
<hpfr>
Yaniel: I tried echoing in the postUnpack and nothing came through, so I commented it out and the same issue is happening, so maybe I need to rm in a phase before postUnpack?
<gustavderdrache>
especially if you have bashInteractive then you're already paying for the cost of ncurses
<gustavderdrache>
i highly doubt that nano is going to tip the scales much beyond that
<veleiro>
i can't tell by the issues, do AppImages work on NixOS?
<evils>
veleiro: appimage-run
<eacameron>
gustavderdrache: Yes but there's other things like ss, ping, which, etc... lots of things one could want. I don't like having to think of them all now :D
<gustavderdrache>
that's fair
<radvendii>
evils: yes, but you have to run them through appimage-run
<radvendii>
oh, i definitely got confused about what happened in that exchange XD
<gustavderdrache>
i don't know that i have a good answer here - either way, you're going to carry around quite a bit of weight due to either the additional debugging utilities or the package manager itself + the supporting tools needed to patch packages to run in a nixos-friendly way
<eacameron>
gustavderdrache: Fair enough. If there isn't a good answer then oh well. I'll just put some highly anticipated things on there and pay the price.
D_ has joined #nixos
pushqrdx has quit [Remote host closed the connection]
<gustavderdrache>
depending on the container environment you're thinking about debugging in, you could consider running a debian/alpine/whatever image and just using that as your debugging tool
<gustavderdrache>
if you're running on a machine you have shell access to, it's possible to attach to the other container's namespaces and trace processes, etc
<matthewcroughan>
Hmm.. A lot of stuff just isn't working on nixos-unstable 32 bit
<matthewcroughan>
i686
<matthewcroughan>
like htop and tmux are busted
cyphase has quit [Ping timeout: 240 seconds]
<lukegb>
yikes :(
pushqrdx has quit [Remote host closed the connection]
tmciver has quit [Ping timeout: 268 seconds]
nicoo has quit [Ping timeout: 240 seconds]
nicooo has joined #nixos
tmciver has joined #nixos
<Andoriyu>
what's a good way to turn python pacakge into nix package? pypi2nix says it's abandoned?
<matthewcroughan>
lukegb: oh dear.. lots of things broke on 20.09
mbrgm_ has joined #nixos
jdally987[m] has joined #nixos
<matthewcroughan>
like, the backporting to 20.09 broke 32 bit stuff
supersandro2000 has quit [Killed (rothfuss.freenode.net (Nickname regained by services))]
supersandro2000 has joined #nixos
cyphase has joined #nixos
<jdally987[m]>
matthewcroughan: why you on 32-bit lol
<matthewcroughan>
jdally987[m]: why aren't you?
<jdally987[m]>
wat
<jdally987[m]>
oooh i686 my bad
<matthewcroughan>
You heard.
<matthewcroughan>
:D
<matthewcroughan>
Some of us are poor and don't work for Google.
mbrgm has quit [Ping timeout: 260 seconds]
mbrgm_ is now known as mbrgm
<matthewcroughan>
builder for '/nix/store/08ncy86rbd5bl16rxnwwsl8c5kcymfaf-cups-dymo-1.4.0.5.drv' failed due to signal 6 (Aborted)
<matthewcroughan>
hmm
<jdally987[m]>
what CPU you have anywya lol
<jdally987[m]>
also can anyone tell me what I would have to do to get nixos to work with my eGPU?
<matthewcroughan>
maybe my remote builder has had a complete meltdown
<jdally987[m]>
ubuntu distros work on my external monitor (through an AMD rx570, through the razer core X, through thunderbolt) automatically, out of the box. as soon as I boot up a live distro
<jdally987[m]>
and other distros work as well, like KDE neon, after I authorize the egpu in e.g. KDE's thunderbolt menu
<jdally987[m]>
(which nixos still doesn't have for some reason...?)
<jdally987[m]>
but no matter what, nixos can't do it. I've already authorized everything in `boltctl`; lspci shows the card as a valid graphics processor, neofetch shows it too. but still can't get the external monitor to show up anywhere
ddellaco_ has joined #nixos
ddellaco_ has quit [Remote host closed the connection]
ddellaco_ has joined #nixos
ddellaco_ has quit [Remote host closed the connection]