<rmcgibbo[m]>
If I got dropped onto a random nix machine (nixos, darwin, or nix on a different linux distro) and I'm a script, how should/can I determine facts like "where is the nix store?" or "is the nix daemon running with a certain setting?"
<CMCDragonkai>
Why do NixOS services use `multi-user.target` and `default.target`? Is it guaranteed that NixOS always has `multi-user.target`? What about other Linux Distros?
<rmcgibbo[m]>
On my own machine, I'd look at /etc/nix/nix.conf, but I assume that you can customize nix to run in a nonstandard location, so that file might not exist.
<{^_^}>
#73800 (by deliciouslytyped, 1 year ago, closed): Migrate to cgroupsv2
<ivan>
someone is probably gonna see that and not believe me until they're on 21.05
ahmedelgabri has quit [Ping timeout: 250 seconds]
palo1 has joined #nixos
simba1 has quit [Ping timeout: 246 seconds]
palo has quit [Ping timeout: 246 seconds]
palo1 is now known as palo
shiver has quit [Read error: Connection reset by peer]
shiver has joined #nixos
thc202 has joined #nixos
Qwerky has joined #nixos
maxdevjs has quit [Ping timeout: 268 seconds]
simba1 has joined #nixos
Qwerky has quit [Ping timeout: 252 seconds]
Qwerky has joined #nixos
Qwerky has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
Qwerky has joined #nixos
endformationage has quit [Quit: WeeChat 2.9]
simba1 has quit [Ping timeout: 245 seconds]
Qwerky has quit [Ping timeout: 246 seconds]
concept2 has quit [Quit: See ya later!]
concept2 has joined #nixos
concept2 has quit [Client Quit]
concept2 has joined #nixos
k1ltzman has quit [Ping timeout: 240 seconds]
shiver has quit [Quit: leaving]
cfricke has joined #nixos
7JTAAABZ8 has quit [Ping timeout: 240 seconds]
Guest44469 has joined #nixos
shiver has joined #nixos
jkachmar has quit [Quit: Connection closed for inactivity]
milahu has joined #nixos
civodul has joined #nixos
rsynnest has quit [Ping timeout: 240 seconds]
stree has quit [Ping timeout: 268 seconds]
graf_blutwurst has joined #nixos
Qwerky has joined #nixos
<milahu>
.... so i had this idea of an "AUR for nixos" (nixos user repository? similar to the arch-linux AUR) .. right now, we can "overlay" packages and modules in our configuration.nix file .. but this process is too "manual" for my taste. what im looking for is a "point and click" solution, where the tooling does the boring job of overlaying my local nixpkgs, and i can focus on the much more important job of auditing the code changes. (
<milahu>
as a side-effect, this could make auditing+testing patches from github much simpler.) what i imagine is a backend using the linux overlayfs, to physically "overlay" the patched files over the locally installed files. this backend runs a local http server, to where a browser extension can send new patches. the browser extension adds a "install patch" button to every PR in the github nixpkgs repo. when i click "install patch", i see
<milahu>
the diff versus my local file, so i can audit the code change, and explicitly "agree to install this patch". (in case someone is super-bored and has some hours of free time, feel free to implement my concept, maybe youre faster than me : D )
saschagrunert has joined #nixos
Qwerky has quit [Ping timeout: 240 seconds]
wadii has joined #nixos
mjrosenb has quit [Ping timeout: 260 seconds]
mjrosenb has joined #nixos
stree has joined #nixos
lsix has joined #nixos
AWizzArd has quit [Changing host]
AWizzArd has joined #nixos
aaabbbbbbbbbb has joined #nixos
Jd007 has quit [Quit: Jd007]
Qwerky has joined #nixos
ahmedelgabri has joined #nixos
jonringer has quit [Ping timeout: 276 seconds]
wadii has quit [Read error: Connection reset by peer]
<milahu>
tomberek: aah, thanks for the hint : ) at first sight, NUR allows only to "override" packages, not modules. also, my approach is more general, allowing to "point and click"-install patches from many sources (including the github nixpkgs repo with its thousands of open PRs)
Qwerky has joined #nixos
CMCDragonkai1 has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 246 seconds]
Qwerky has quit [Ping timeout: 240 seconds]
jarkad has left #nixos ["WeeChat 2.9"]
bob_twinkles has quit [Quit: No Ping reply in 180 seconds.]
bob_twinkles has joined #nixos
zupo has joined #nixos
<milahu>
stupid question: where is the source code for `nix-build`?
drakonis- has joined #nixos
ronthecookie_ has joined #nixos
ronthecookie_ has quit [Remote host closed the connection]
Qwerky has joined #nixos
ronthecookie_ has joined #nixos
jtobin_ has joined #nixos
drakonis has quit [Remote host closed the connection]
ronthecookie has quit [Quit: o~/]
jtobin has quit [Ping timeout: 260 seconds]
cyraxjoe has quit [Quit: No Ping reply in 180 seconds.]
Cale has quit [Ping timeout: 260 seconds]
leothrix has quit [Ping timeout: 260 seconds]
drakonis- is now known as drakonis
MightyJoe has joined #nixos
ronthecookie_ is now known as ronthecookie
Cale has joined #nixos
zupo has quit [Ping timeout: 246 seconds]
leothrix has joined #nixos
Qwerky has quit [Ping timeout: 246 seconds]
<milahu>
> where is the source code for `nix-build`?
<phalrax>
aforemny cool, thanks! how do you handle backups of datasets/snapshots to external systems? sanoid/syncoid seems nice for that
<aforemny>
phalrax: I still do periodic backups manually via rsync. I have not yet looked into improving my workflow with respect to that, unfortunately.
BenjiProd has joined #nixos
<phalrax>
got it, thank you :)
<phalrax>
do you use a separate partition for /boot or is that inside your pool as well?
lord| has quit [Ping timeout: 260 seconds]
lord| has joined #nixos
<aforemny>
phalrax: I am using a separate partition for /boot since I chose to encrypt my whole zfs pool
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stigo has quit [Ping timeout: 260 seconds]
<phalrax>
makes sense, I probably won't encrypt my pool
zupo has joined #nixos
stigo has joined #nixos
<aforemny>
phalrax: I think I would try to have /boot inside the pool then, because I have once run into https://github.com/NixOS/nixpkgs/issues/23926 with my 512MB /boot partition. Don't know whether that works out the box though! But there is `boot.loader.grub.zfsSupport`, so I would be confident.
<{^_^}>
#23926 (by joepie91, 4 years ago, open): When /boot is full, system rebuilds fail
zupo has quit [Client Quit]
<phalrax>
aforemny it works on the VM where I'm testing it at least
Lorenzoas3ii[m] has quit [Quit: Idle for 30+ days]
jasonfraiser[m] has quit [Quit: Idle for 30+ days]
lostnet[m] has quit [Quit: Idle for 30+ days]
Yeet[m] has quit [Quit: Idle for 30+ days]
<phalrax>
I just set boot.supportedFilesystems to zfs and that seems to work
<Mateon1>
Hi, I'm having some really weird issues, a lot of nix commands hang as user, but succeed as root. I can't run nix-env -i, I can't run nix-shell, I can't run nix-info (hangs on the nix-build invocation for multi-user check), and I can't run nix-channel --update
hiro99 is now known as hiro98
<Mateon1>
When I spam -vvvvv on nix-env and nix-build invocations, it always hangs after: evaluating file '/nix/store/x5cswagzi8zsc2778rzljngsg1xlkbpx-nixpkgs-21.05pre278688.c0e88185200/nixpkgs/lib/systems/doubles.nix' {newline} processing attribute 'args'
domogled has quit [Quit: domogled]
<Mateon1>
Although it looks like root doesn't hang because it uses a different nixpkgs
<Mateon1>
How can I fix this?
gulplante has joined #nixos
<Mateon1>
nix-channel -vvvvvvv --update reports "locking path .../.cache/nix/tarballs/...-file" "lock acquired on .../.cache/nix/tarballs/...-file.lock", then repeats "download thread waiting for 10000 ms" forever.
DirkBauer[m] has joined #nixos
DirkBauer[m] has left #nixos [#nixos]
hiro98 has quit [Quit: hiro98]
dfasfdsa has joined #nixos
<dfasfdsa>
Hi, everybody knows of tts cli app that exists on nixos?
<dfasfdsa>
that I can output to mpv
<dfasfdsa>
too bad festival does not exist
<dfasfdsa>
I found speech-tools, but I dont know how do you them
<matthewcroughan>
If something isn't compiling on i686-linux, should it be marked as broken if i686 on the nixpkg?
<Mateon1>
Note: nix-env -i still hangs as user even if I use -f /nix/var/nix/profiles/per-user/root/channels/nixos - so it's not anything to do with the nixpkgs version being broken, must be something to do with locking, I think... Or something else entirely
<dfasfdsa>
ah, it's from unstable. Thank you hexa
<matthewcroughan>
Minijackson: How do you personally setup your shell on NixOS?
<Minijackson>
do you mean my nix-shell for projects, or just my usual shell prompt?
fooker has quit [Ping timeout: 258 seconds]
aveltras has joined #nixos
<Mateon1>
strace shows that nix-env hangs on first read from socket /nix/var/nix/daemon-socket/socket (after first write is successful)
<aveltras>
,locate gsettings
<{^_^}>
Found in packages: gcr, glib, ibus, folks, evince, almanah, brasero, empathy, liferea, glib.bin, tangogps, xfce.gvfs, glib.debug, gnome3.eog, libcryptui, notify-osd, pulseaudio, gnome2.gvfs, gnome3.gvfs, mousetweaks, gnome3.totem, sound-juicer, gnome3.mutter, gnome3.vinagre, pulseaudioFull, brasero-original, gnome3.evolution, gnome3.mutter334, ibus-with-plugins, gnome3.gnome-shell, gnome3.libgnomekbd, gnome3.gnome-keyring, and 10 more
<Mateon1>
Same for nix-channel
<dfasfdsa>
a question, how am I suppose to use speech-tools? I see in the default.nix, it's bascially festival, but there is not cli
evils has joined #nixos
Qwerky has joined #nixos
<Mateon1>
Ah damn, this seems to trace to systemd, which is hung on zfs (thus not executing queued 'start' jobs), which broke entirely when a pool's disks changed letter
<aveltras>
Im currently using nixos+home-manager and im facing some issues where i won't be able to rebuild my configuration (the nix files are located in my home directory) because of some files in my home which aren't related to nix. For example, right now, i can't rebuild because ".steam/steam.pipe' has an unsupported type" which has nothing to do with my configuration. I don't think it use to happen before (i've reinstalled
<aveltras>
nixos yesterday), any idea what could be the culprit here ?
<aveltras>
and the rebuilds, when they work, seem to be a bit longer than usual
<aveltras>
this is using flakes in case it matters
<Ke>
are you referring to your home as a path?
<aveltras>
in my user config as a string
<aveltras>
home = "/home/${userName}";
<aveltras>
and then only to subdirectories of the home
<aveltras>
not the "home root"
wadii2 has joined #nixos
wadii1 has quit [Read error: Connection reset by peer]
dandart has joined #nixos
wallacer has joined #nixos
wallacer has quit [Max SendQ exceeded]
wallacer has joined #nixos
wallacer has quit [Max SendQ exceeded]
orivej has joined #nixos
fooker has joined #nixos
<supersandro2000>
matthewcroughan: or better fixed
<supersandro2000>
or platform changed if upstream does not support i686
milahu has quit [Ping timeout: 252 seconds]
milahu has joined #nixos
jimmiehansson has joined #nixos
<matthewcroughan>
supersandro2000: a lot of things jus t don't seem to compile for i686 on NixOS, probably because the upstream doesn't support it anymore.
<matthewcroughan>
Such as Firefox.
<matthewcroughan>
Looks like the surf browser doesn't either, chromium might be my only option haha
gulplante has quit [Read error: Connection reset by peer]
gulplante has joined #nixos
FRidh has joined #nixos
<supersandro2000>
ploupiboulba[m]: please let me know if something breaks. I can most likely help you to fix it.
<ploupiboulba[m]>
supersandro2000: fantastic thank you very much. Will try after lunch
m3thos has quit [Remote host closed the connection]
<supersandro2000>
Who had the great idea to disable nix search for channels on nixUnstable?
m3thos has joined #nixos
isHavvy has joined #nixos
typetetris has quit [Quit: Connection closed for inactivity]
Havvy has quit [Ping timeout: 276 seconds]
avaq has quit [Ping timeout: 268 seconds]
dfasfdsa has quit [Quit: Leaving]
<hexa->
haha yeah
<supersandro2000>
can be fixed with aliasing nix-search to `nix-shell -p nix --run "nix search $*"`
<supersandro2000>
*function
dandart has quit [Remote host closed the connection]
rodgort has quit [Quit: Leaving]
fl0_id has quit [Quit: ZNC]
asymmetric has quit [Remote host closed the connection]
asymmetric has joined #nixos
fl0_id has joined #nixos
abathur has quit [Ping timeout: 260 seconds]
mg has quit [Ping timeout: 260 seconds]
mg has joined #nixos
gulplante has quit [Ping timeout: 240 seconds]
abathur has joined #nixos
rodgort has joined #nixos
Guest86136 has quit [Quit: Leaving the Cosmos...]
griff__ has joined #nixos
vidbina has quit [Ping timeout: 268 seconds]
cfricke has quit [Ping timeout: 246 seconds]
kinozawa has joined #nixos
kinozawa has quit [Changing host]
kinozawa has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
stree has quit [Ping timeout: 240 seconds]
<aanderse>
apo: not sure, sorry, would have to dig into docs
gulplante has joined #nixos
kaba_ has joined #nixos
<kaba_>
Hi, does anyone has experienced nixos-rebuild failing to build a given derivation, but the exact same one being built with nix-build? I’m trying to build the gnome40 branch and it happened to two packages already, mutter and gtksourceview4.dev
<kaba_>
Is it the parallel builds? I remember there was a flag to force chroot or something like that for builds, perhaps that could help?
respawn_ has joined #nixos
kaba__ has joined #nixos
stree has joined #nixos
gulplante has quit [Ping timeout: 260 seconds]
bew has quit [Quit: Connection closed]
<supersandro2000>
sandbox should be enabled on NixOS by default
dotdotok has joined #nixos
<supersandro2000>
and cmake projects should be thread safe
VideoGameEnjoyer has quit [Quit: Konversation terminated!]
<ploupiboulba[m]>
supersandro2000: in your script is there a way to make sure nix-2.4pre20210317_8a5203d is available ? doesnt exist here.
Qwerky has quit [Remote host closed the connection]
<supersandro2000>
nix search nixUnstable and find the name
<supersandro2000>
i don't think you can just do nixUnstable
<supersandro2000>
maybe you can do nix-2.4pre or so
<milahu>
how can i see where a nixos module is defined? (in what file). to locate packages, there is `nix repl '<nixpkgs>' <<< pkgs.callPackage` .. but this fails: `nix repl '<nixos>' <<< networking.firewall`
<milahu>
maybe im missing a namespace?
vidbina has joined #nixos
<ploupiboulba[m]>
supersandro2000: I've got one channel list in nix-channel --list yet nix search -u nixUnstable wont find anything
Qwerky has joined #nixos
haritz has joined #nixos
haritz has quit [Changing host]
haritz has joined #nixos
<kaba_>
supersandro2000: thanks, than I’m not sure what’s going on. I guess out of memory or the like would be more apparent, it failed on a missing header in both cases
hiro98 has joined #nixos
hiro98 has quit [Client Quit]
jbetz has quit [Quit: Connection closed for inactivity]
n-osborne has joined #nixos
n-osborne has quit [Remote host closed the connection]
wadii3 has joined #nixos
griff__ has quit [Ping timeout: 240 seconds]
wadii2 has quit [Ping timeout: 246 seconds]
avaq has joined #nixos
griff__ has joined #nixos
kaba__ has quit [Quit: Connection closed]
sangoma has quit [Ping timeout: 240 seconds]
simba1 has joined #nixos
Qwerky_ has joined #nixos
Qwerky has quit [Ping timeout: 240 seconds]
dotdotok has quit [Ping timeout: 268 seconds]
<milahu>
to the nix experts: where is this attribute defined? (file path, line number) `nix repl <<< 'with import <nixpkgs/nixos> {}; config.networking.firewall.allowPing'`
<milahu>
like i can do: ` nix repl '<nixpkgs>' <<< pkgs.callPackage ` and see «lambda @ /nix/store/ac27fzq0gdh5is9navia6d9shgv1bd9s-nixpkgs-20.09/nixpkgs/lib/customisation.nix:117:31»
<hexa->
so you are looking for a way to find this out programmatically?
<milahu>
currently i dont know any way at all
<milahu>
it works for the lambda function, but not for set-attrs
<milahu>
set-attrs will print the attr value, obviously
<milahu>
for example ` nix repl <<< 'with import <nixpkgs/nixos> {}; config.networking.firewall.allowPing' ` --> ` true `
bukkitgerman8608 has joined #nixos
domogled has joined #nixos
sangoma has joined #nixos
redkahuna has joined #nixos
ddellacosta has joined #nixos
meh` has joined #nixos
<supersandro2000>
ploupiboulba[m]: did you run nix-channel --update?
pareidolia has joined #nixos
gustavderdrache has joined #nixos
_d0t has joined #nixos
<_d0t>
ohai! What is the best way to install an old version of GHC in NixOS?
rubm has quit [Ping timeout: 252 seconds]
redkahuna has quit [Ping timeout: 260 seconds]
Vadrigar_ has joined #nixos
<Taneb>
_d0t: if the version of GHC has been packaged in nixpkgs previously, you can check out a local copy of nixpkgs at that time and use that
<_d0t>
Taneb: what if I wanna have it system-wide and still use the newer stuff from the latest nixpkgs?
<_d0t>
The only way I see it would be to fork nixpkgs and add back that old ghc, but this kinda sucks.
<gchristensen>
,botsnack
<{^_^}>
Oh thanks, have a cookie yourself
<Taneb>
_d0t: no, that's actually fine
redkahuna has joined #nixos
<rmcgibbo[m]>
Your system configuration can incorporate packages from multiple different versions of nixpkgs -- that's actually one of the easiest/best things about Nix
<_d0t>
Honestly, seems like a total overkill. I managed to bring ghc alone with an overlay, but I struggle with adding `haskell.packages` for it -__-
ddellacosta has quit [Remote host closed the connection]
ddellaco_ has joined #nixos
hiro98 has joined #nixos
hiro98 has quit [Client Quit]
<rmcgibbo[m]>
Your configuration.nix could have `let unstable = import <nixpkgs-unstable> { }; in environment.systemPackages = [... unstable.haskellPackages.ghcWithPackages (pkgs: with pkgs; [lens mtl]) ...]` without an overlay or anything.
<_d0t>
rmcgibbo[m]: the problem is, this isn't gonna work with haskell-language-server. It expects every version of ghc to be a part of nixpkgs.
redkahuna has quit [Ping timeout: 260 seconds]
<_d0t>
The version I need is 8.6.5, it was dropped couple of weeks ago.
VideoGameEnjoyer has quit [Remote host closed the connection]
<rmcgibbo[m]>
Hm. I see. Can you have a dev-shell that contains the right ghc + haskell-language-server for each particular project, rather than having all of them installed globally?
<_d0t>
I'd prefer not.
VideoGameEnjoyer has joined #nixos
wnklmnn has joined #nixos
<rmcgibbo[m]>
Well, it does seem like an overlay should work.
<rmcgibbo[m]>
But the syntax is a bit tricky sometimes.
<_d0t>
is there a way I can reference pkgs modules from an overlay?
srk has quit [Remote host closed the connection]
<_d0t>
haskell-packages.nix has 'ghc8104 = callPackage ../development/haskell-modules {...};' How do I reference this haskell-modules path from an overlay?
srk has joined #nixos
<leo60228>
i'm trying to package the sdk for the raspberry pi pico
<leo60228>
that's designed as a git repo that contains a cmake file that defines a whole bunch of INTERFACE libraries
vidbina has quit [Ping timeout: 240 seconds]
<leo60228>
and projects are expected to find the tree from PICO_SDK_PATH, which can either be an environment variable or a CMake option
<gchristensen>
it looks like our fingerprint sensor pam config is messed up, if I type in my password it wants my fingerprint. if I use my fingerprint it doesn't care about my password
<gchristensen>
I am a little afraid of our pam configs, the way we create them is spooky
<infinisil>
+1
<supersandro2000>
leo60228: no
<supersandro2000>
gchristensen: we are not downloading them at runtime from the internet over ftp, are we?
<exarkun>
supersandro2000: because I started a big build a couple hours ago but now I have to get in a video call and the two things are not super compatible :)
ddellaco_ has quit [Remote host closed the connection]
<exarkun>
gchristensen: "Failed to freeze unit nix-daemon.service: Unit 'nix-daemon.service' does not support freezing." :(
<gchristensen>
sounds like you don't have cgroups v2
<kamotaketsunumin>
checking for references to /build/ in /nix/store/k8haz602sl2ljgkvgwawd056i09p8y7b-PacketTracer...
<kamotaketsunumin>
suspicious ownership or permission on '/nix/store/k8haz602sl2ljgkvgwawd056i09p8y7b-PacketTracer'; rejecting this build output
<kamotaketsunumin>
cannot build derivation '/nix/store/sxgaxqj2k3xfp7hmsk6m3i05pvqihs0s-cisco-pt.desktop.desktop.drv': 1 dependencies couldn't be built
<kamotaketsunumin>
error: build of '/nix/store/sxgaxqj2k3xfp7hmsk6m3i05pvqihs0s-cisco-pt.desktop.desktop.drv', '/nix/store/zjjj1b5j66jai78gfzvsh7ksgmf7bhbd-packettracer.drv' failed
<AmandaC>
it seems that a recent nix commit broke nix flakes in hydra. Hydra is still trying to run "nix flake info" which was removed
lordcirth_ has quit [Quit: Leaving]
avaq has quit [Ping timeout: 246 seconds]
<gchristensen>
AmandaC: is the version of Nix hydra is running 1c0e3e453d41b869e4ac7e25dc1c00c349a7c411?
<gchristensen>
yeah, I'm just not sure if the nixpkgs version of hydra is packaged improperly, or if this bump in th epinned nix in Hydra itself needs reverting
<supersandro2000>
kamotaketsunumin: the package has a symlink usr -> .
<kamotaketsunumin>
what's that supposed mean?
<kamotaketsunumin>
symlink user -> . ?
<AmandaC>
no, I'm on "using nix-2.4pre20210317_8a5203d" which appears to be the latest nixFlakes in nixos-unstable
<gchristensen>
eck
<supersandro2000>
gchristensen: the latest version reintroduced that command
<supersandro2000>
kamotaketsunumin: ln -s out .
<supersandro2000>
nix --experimental-features "nix-command flakes" flake info
<supersandro2000>
warning: 'nix flake info' is a deprecated alias for 'nix flake metadata
<gchristensen>
AmandaC: can you paste the full log from hydra's failure?
<AmandaC>
gchristensen: is that the text in the "Evaluaiton Errors" tab?
<gchristensen>
it might be, but it might be in the journalctl -u hydra-evaluator output
<AmandaC>
in the mean time I'm going to make my hydra machine use the master branch of nixpkgs for the nix package, seems it's not trickled down into unstable yet
<gchristensen>
if you're deploying with flakes, maybe you could use the hydra flake directly? that pins its nix
<{^_^}>
[nixos-homepage] @garbas pushed to summer-of-nix-announcement « rephrase it a bit »: https://git.io/JYRhH
tralliioo has joined #nixos
<tralliioo>
Did any of you folks ever encountered this hair pulling error /nix/store/am04lg84p7p8k708sgsyh7hn8m625h23-ruby2.6.6-nokogiri-1.10.7/lib/ruby/gems/2.6.0/gems/nokogiri-1.10.7/lib/nokogiri/xml/xpath/syntax_error.rb:3:in `<module:XML>': XPath is not a class (TypeError)?
simba1 has quit [Ping timeout: 276 seconds]
<_d0t>
How do I append stuff to NIX_PATH in configuration.nix?
<tralliioo>
I am trying to make rails project, I am using the ruby and rails from the nix packages. What does it want from me more??
<{^_^}>
[nixos-homepage] @garbas pushed to master « fix some wording »: https://git.io/JY0fH
<kamotaketsunumin>
compare with other reproducible derivation, that one is odd.
kamotaketsunumin is now known as fnlaai
lordcirth has joined #nixos
<tobiasBora>
Hello, I've a question: in nixos wrappers, the command "exec -a filetorun filetorun-wrapped" is used, in order to run the executable filetorun-wrapped and faking the name filetorun.
<matthewcroughan>
clever: I'm trying to add another package to the overlay of the shell you helped me with, for mkdocs, a few days ago.
<tobiasBora>
However, I tried to do that between two bach scripts, and it fails miserably (the $0 in the second bash is still filetorun-wrapped instead of filetorun). What's wrong?
graf_blutwurst has quit [Remote host closed the connection]
<tobiasBora>
It is a fundamental limitation of scripts? If yes, does that mean that wrapping in NixOs never give accurate $0 for all scripts? If yes, why is it safe to use these wrappers like that?
<clever>
matthewcroughan: your overlay is adding it to python3Packages
<tobiasBora>
matthewcroughan: random guess, but maybe super.pkgs.python3Packages.mkdocs-macros-plugin ?
<clever>
matthewcroughan: so you want python3Packages.mkdocs-macro-plugin
<matthewcroughan>
Oh, sorry.. I thought it inherited that path
<matthewcroughan>
ah crap
<clever>
matthewcroughan: and you probably want self there, not super
<matthewcroughan>
Maybe I can do something with lib.mapAttrs to apply the buildPythonPackage function to all of the packages? Since all of these are pypi
<matthewcroughan>
clever: Why would I want self, rather than super?
<clever>
matthewcroughan: https://dpaste.com/ARQQ55C79 if you use super on line 40, then you will be refering to the state of nixpkgs BEFORE this overlay was applied
<clever>
matthewcroughan: so line 30 wont be taken into account
<matthewcroughan>
Oh, so am I using it wrong for lunr also?
<matthewcroughan>
because it seems to work
<clever>
matthewcroughan: super.pkgs is also pointless, super and self are both copies of pkgs
<clever>
matthewcroughan: super.pkgs might be confusing things more
<matthewcroughan>
clever: How? The state of nixpkgs before the overlay was applied doesn't have lunr, yet it still gets added
sterni has joined #nixos
<clever>
matthewcroughan: super.pkgs might be doing the same as self
<matthewcroughan>
clever: these shells are super powerful
<matthewcroughan>
overlaying, just packaging stuff ad-hoc
<matthewcroughan>
The problem is that I now have a situation wherein one of the things in my overlay has a dependancy on something that isn't in nixpkgs, how can I deal with that?
<clever>
matthewcroughan: you almost always want to use self, except when your overriding an attr with itself, then you need super to break the recursion
nschoe has joined #nixos
<matthewcroughan>
I got it mixed up. I thought super was the state *after*, but it's actually before
<AmandaC>
I think that's why a lot of people use `final` instead of `super` in their overlays
<matthewcroughan>
yeah, that's sensible
<matthewcroughan>
so { final: super } ?
<AmandaC>
no
<matthewcroughan>
what about { old: new: }
eddie_8989[m] has quit [Quit: Idle for 30+ days]
SplitFire[m] has quit [Quit: Idle for 30+ days]
<matthewcroughan>
so is super actually the final state?
xe4_ is now known as xe4
<AmandaC>
at the top, instead of super: self: do `final: prev:` or similar
ManiacOfMadness` has joined #nixos
xe4 has joined #nixos
xe4 has quit [Changing host]
<tobiasBora>
Ok, so I checked, and "exec -a blabla blabla-wrapper" works correctly if blabla-wrapper is a binary (i.e. blabla-wrapper thinks its name is blabla), but this fails on scripts, including python and bash scripts. For that cases, shouldn't we try to wrap scripts differently in NixOs, to ensure $0 is set accordingly?
<AmandaC>
`final: prev: ` is what I use
<matthewcroughan>
AmandaC: you've just disagreed with clever then?
<tobiasBora>
(I'm wondering because I just got a bug due to that issue)
<matthewcroughan>
Oh, sorry, no. I'm still getting it mixed up.
<matthewcroughan>
This is a mind bend, I love functional programming for what it has allowed me to do so far, but I really need to fix this in my head :)
<matthewcroughan>
Thank you.
dev_mohe has quit [Quit: dev_mohe]
<AmandaC>
functional programming is a bit of a nightmare for me to learn, since I'm entirely self-taught with no formal training/experience
<matthewcroughan>
same!
<AmandaC>
every resource on functional programming I can find mentions deep comsci concepts that, were they written out in a code sample or ismilar, I would probably recognise, but have no idea the name of
jarkad has quit [Ping timeout: 268 seconds]
<matthewcroughan>
clever: so, the pythonOverlay cannot reference itself.
<matthewcroughan>
clever: okay, so now I have a situation where the package in the pythonoverlay relies on the package I'm overriding in the overlay, how can I reconcile this?
ahmedelgabri has quit [Ping timeout: 246 seconds]
<matthewcroughan>
because the pythonoverlay can not refer to the overlay
hyper_ch has quit [Read error: Connection reset by peer]
dbmikus has joined #nixos
hyper_ch has joined #nixos
<matthewcroughan>
clever: If I encounter infinite recursion, does that mean that the packaging of this thing is impossible?
<matthewcroughan>
clever: another common example? I don't know where to look really
hiro98 has joined #nixos
redkahuna has joined #nixos
nbren12 has joined #nixos
gentauro has joined #nixos
<nbren12>
I have an approved PR that has been waiting for a merge for about 10 days: https://github.com/NixOS/nixpkgs/pull/116496. The final comment was a formatting issue, which I addressed.
gentauro has quit [Read error: Connection reset by peer]
respawn_ has quit [Quit: Leaving]
philr has quit [Ping timeout: 240 seconds]
vidbina has quit [Ping timeout: 268 seconds]
simba1 has joined #nixos
jarkad has quit [Ping timeout: 246 seconds]
gentauro has joined #nixos
supercoven has joined #nixos
DzzzzzzD has joined #nixos
gentauro has quit [Read error: Connection reset by peer]
<matthewcroughan>
Packaging python stuff in Nix seems like a losing battle.
jarkad has joined #nixos
gentauro has joined #nixos
DzzzzzzD has left #nixos ["User left"]
ris has joined #nixos
gentauro has quit [Read error: Connection reset by peer]
<cransom>
seems like lots of languages have a new package manager that fix all of hte problems of the old package manager, but then introduce new ones, every couple years.
<hexa->
matthewcroughan: how so?
<hexa->
because you have to package up dependencies as well?
<dgpratt>
So I've been playing around with packaging Apache Pulsar (https://pulsar.apache.org/) and now that I think I more or less have the hang of it, I'm wondering about how I might incorporate these "Pulsar IO connectors" (https://pulsar.apache.org/en/download/) as an optional/configurable part of the package.
<dgpratt>
I've take a look at how some browsers and e.g. Emacs handle extensions/plugins, but it seems involved and I'm not sure I need something that complicated.
gentauro has joined #nixos
<lukegb>
Are you building them from source, or just providing expressions that use the existing... nar files?
gentauro has quit [Read error: Connection reset by peer]
<phalrax>
Hi, can somebody tell me how to get this running correctly? networking.firewall.allowedTCPPorts = [ 3000 ${config.services.prometheus.exporters.node.port} 9100 ]; I keep getting the didn't expect curly brackets error
<veleiro>
does anyone know why I'm getting this error while trying to compile nix from source? on manjaro: /usr/bin/ld: cannot open output file /usr/lib/libnixutil.so: Permission denied
MTRNord has left #nixos ["User left"]
hyiltiz has joined #nixos
hyiltiz has joined #nixos
hyiltiz has quit [Changing host]
rubm has joined #nixos
<Qubasa>
veleiro: What permissions does the file have? And with which user does the build run?
<tpw_rules>
in bash in general, is there a way to override "smart" tab completes? sometimes it won't tabcomplete a file because it thinks it's the wrong type or something and it's extremely aggravating
<hodapp>
hrmph... rebuild is failing at my Emacs configuration because it's 404'ing on some flymake, but I'm not including flymake directly and can't figure out what is
nuncanada has quit [Quit: Leaving]
gustavderdrache has quit [Ping timeout: 268 seconds]
gustavderdrache has joined #nixos
<Yaniel>
can I somehow *force* nixos-rebuild to regenerate the bootloader and poke EFIVARS?
lordcirth_ has joined #nixos
supersandro2000 has quit [Remote host closed the connection]
<Yaniel>
my BIOS isn't very good at keeping track of the linux bootloader (I guess it does scan for the windows one though, since that is visible)
<Yaniel>
it lost the linux bootloader before too (when I updated the BIOS, this time I moved the EFI partition to a different disk and the BIOS lost it again)
lordcirth has quit [Ping timeout: 250 seconds]
<judson>
Is there a current guide on how NixOS manages GTK icons? My meld has been broken since update and I can't figure out why
<xdej>
Yaniel: my computer randomly selects the first nixos derivation I ever made. Because I switched to a second EFI partition.
<Yaniel>
I've nuked the old one
<xdej>
s/randomly/when booting randomly/
<xdej>
Yaniel: does it mean it may then not boot at all?
<Yaniel>
no, it always boots into windows
<Yaniel>
unless I manually tell it to boot from a USB stick that has rEFInd on it
<Yaniel>
and boot my nixos installation from there
<Yaniel>
everything is fine, everything is where it should be
<Yaniel>
the BIOS just isn't aware of the nixos bootloader
Guest41032 has quit [Ping timeout: 268 seconds]
<xdej>
Also there was a bug: moving /boot in configuration.nix was not active inside the derivation created.
<xdej>
nixos-rebuild switch still wrote to the old /boot partition.
FRidh has quit [Quit: Konversation terminated!]
<Yaniel>
it writes the new data first, then remounts disks
<Yaniel>
so yes that is expected
<Yaniel>
not ideal, but tbf it shouldn't be a common thing
<Yaniel>
you can avoid that by copying everything over to the new /boot and mounting the new /boot in place of the old
<Yaniel>
and then rebuilding
<veleiro>
Qubasa: that file doesn't exist it loks like, i'm just building it as a normal user
<Yaniel>
xdej: your BIOS should have two boot order options
<Yaniel>
one for the device type (local hdd, usb hdd, network etc), and one for the items on local hdds
<_virkony_>
Is there a nice way to get ~/.config/nixpkgs/overlays being read from other location like git repo? Symlinking doesn't work since Nyx doesn't resolve to real paths automatically (and I found function to do that or read symlinks)
<_virkony_>
it should fail when builtins.fromTOML is missing :)
<tpw_rules>
that also works for me
<figgyc>
my current flake.lock has nixpkgs set to registry "nixpkgs/nixos-unstable" at d3f7e969 but status.nixos.org has unstable at ad47284f8b01 and `nix flake update` doesn't change anything. is there a good way to figure out why? is the registry cached or something?
<figgyc>
never mind i tried again and it worked
<_virkony_>
tpw_rules: you have to trigger that import. it seems that with is triggered only when there is reference to missing attribute
dbmikus has joined #nixos
<_virkony_>
tpw_rules: i.e. if you try to add something like (self: super: (import ../lib/empty-attrset.nix)) and then do nix eval --raw nixpkgs.hello
<tpw_rules>
_virkony_: what i did is set up the overlay.nix file and all the things it imports elsewhere, then symlink that overlay.nix file to the overlays folder
<{^_^}>
[nixpkgs] @sternenseemann merged pull request #113918 → nixos/etebase-server: replace customIni with more flexible settings → https://github.com/NixOS/nixpkgs/pull/113918