Reiko2 has quit [Read error: Connection reset by peer]
ddellacosta has joined #nixos
slac91918 has joined #nixos
jesystanii has quit [Ping timeout: 246 seconds]
slack1256 has quit [Ping timeout: 240 seconds]
ddellacosta has quit [Ping timeout: 260 seconds]
tertl3 has quit [Quit: Connection closed for inactivity]
<kalbasit[m]>
On yesterday's unstable, I noticed (moving from 20.09) that nixos-rebuild --flake '.#name' build is not producing a result symlink. Has anyone else seen that?
ehunter has quit [Read error: Connection reset by peer]
is006__ has joined #nixos
<remexre>
hm, has anyone packaged steam games in nix? Kinda want to try using Nix to put together a fallout new vegas data dir on linux, since most of the mod managers require windows
<hexa->
remexre: there is steam, it has proton support, why would you need to package the game again?
is006_ has quit [Ping timeout: 268 seconds]
<hexa->
or doesn't it allow to use mods via proton?
<remexre>
the game doesn't have modding thru steam workshop
<remexre>
instead you drop files into a data directory
<remexre>
so uninstalling is a pain (same problem as sudo make install)
<MarcWeber>
I tried systemd-nspawn to run older OpenSUSE with DAHDI kernel modules. It actually worked but the container cannot access /dev/dahdi/* (operation not permitted). The cotainer does not use Selinux or apparmor or similar, chmod 777 didn't help. Any other idea what might have been causing that?
<legendofmiracles>
When I review a PR and it uses tab/4 spaces for indenting, is that a issue?
<legendofmiracles>
in nixpkgs*
<evils>
legendofmiracles: in a place where you'd expect the our usual 2 space indentation, i think so
<atralheaven>
Hi, I'm having a problem enabling vscode extentions, all specified extentions are installed, but only some can be enabled. here is the code: http://p.ip.fi/wxzx
<evils>
legendofmiracles: you can suggest `nixpkgs-fmt` to the author
<legendofmiracles>
thanks - will do
^elf^ has joined #nixos
stree has quit [Quit: Caught exception]
ddellacosta has joined #nixos
stree has joined #nixos
<meet>
MarcWeber: so how do I fix it so build will proceed?
<meet>
Home is anyway set without me needing to set it again to tmp or something else
civodul has joined #nixos
ddellacosta has quit [Ping timeout: 265 seconds]
^elf^ has left #nixos ["Leaving"]
bbarker has joined #nixos
vidbina has joined #nixos
<eyJhb>
> pkgs.buildPythonPackage
<{^_^}>
attribute 'buildPythonPackage' missing, at (string):494:1
thc202 has joined #nixos
vidbina has quit [Read error: Connection reset by peer]
Lord_of_Life has quit [Read error: Connection reset by peer]
Lord_of_Life has joined #nixos
vidbina has joined #nixos
<atralheaven>
does anyone have any guesses what might be causing my problem?
ddellacosta has joined #nixos
hiro98 has joined #nixos
<eyJhb>
atralheaven: You went back to using the ones from marketplace?
henrikkarlsson has quit [Ping timeout: 240 seconds]
<ejg>
Hey - kind of new/intermediate to linux. Why is there not more talk about NixOS as a server OS? I almost exclusively see it talked about as a desktop OS, but reading from it, it seems perfect for servers (but clunky for a desktop OS). Am I missing something?
<qyliss>
it's commonly used as a server OS
ddellacosta has joined #nixos
<ejg>
Alright :)
lsix has joined #nixos
bbarker has quit [Ping timeout: 240 seconds]
ddellacosta has quit [Ping timeout: 260 seconds]
jonringer has quit [Ping timeout: 250 seconds]
kraem has quit [Ping timeout: 246 seconds]
orivej has quit [Ping timeout: 260 seconds]
<atralheaven>
eyJhb: I'm tried to use a different directory for extentions (code --extentions-dir ~/.vscode-extentions) and it seems that everything works, like other distros
<atralheaven>
eyJhb: considering that the nix way for installing extentions doesn't always work, is there any downside to use a separate extentions dir with write access?
<eyJhb>
Trying to package this - https://github.com/solero/houdini, but I am unsure how to make it into a application? ie. it imports `houdini`, from the folder, in the main file `bootstrap.py`
<eyJhb>
So there is a requirements.txt file, but there is no setup.py... I have no idea how this would be done in Nix. I assume that I need to install the package, somewhat, using `format = "other"`, and then package the bootstrap.py as a application...
sascha-grunert has quit [Read error: Connection reset by peer]
exondation has quit [Ping timeout: 268 seconds]
meh` has joined #nixos
jesystanii has joined #nixos
exondation has joined #nixos
<__monty__>
thibm: I'm not sure but since there's subsequent cp's to $out/lib that do work now I don't think that was the issue. Must've been the existing files.
<eyJhb>
evils: Would that.. Work? Ie. the library houdini would not be recognized, would it?
<evils>
oh, right...
<eyJhb>
So I guess I need to make it a library, by creating the file structure of site-packages, etc. or am I wrong in that case?
<evils>
i'm not particularly familiar with python though...
hiro98 has quit [Ping timeout: 246 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<evils>
it's unclear to me where it's finding houdini to import from, if that's implicit in it being in the directory, yea sounds like you'll want to look at other libraries that weren't written to be packaged xD
kanwarsingh has quit [Remote host closed the connection]
<eyJhb>
Yuuuup.. And I have no such examples...
kanwarsingh has joined #nixos
kanwarsingh has quit [Remote host closed the connection]
<eyJhb>
If there is anyone that has that. then I am ready on CTRL+{C|V}
kanwarsingh has joined #nixos
zupo has joined #nixos
ahmed_elgabri has joined #nixos
kanwarsingh has quit [Remote host closed the connection]
kanwarsingh has joined #nixos
<evils>
eyJhb: you could open an issue upstream asking for them to package the library and maybe the application too
<eyJhb>
evils: I am considering just making a setup.py file, that contains what is needed
<eyJhb>
Because so many short `Club Penguin` to `cp`, then if you search for `club penguin golang github`, it will also include `cp`, and then I find cp utilities in go, ie. `go-cp`
<mastarija>
I want to have declarative users, so I've set users.mutableUsers = false; but does that mean I also have to declare the root user in my config file besides my main user account?
<mastarija>
I'm currently in the process of installation so I kind of want to get that right from the start :D
<mikroskeem>
i wonder if they set it because of assumption people need to log in into root user or...?
<dotlambda>
For #123496, I'm trying to figure out why gst-plugins-bad depends on ffmpeg_3. But `nix why-depends -f . gst_all_1.gst-plugins-bad ffmpeg_3` yields no result. Does someone have an idea?
<cptMikky>
hey, I'm trying to run openconnect with csd-wrapper but it fails. Specifically, the `$HOME/.cisco/hostscan/bin/cstub` binary fails with `no such file or directory`, probably because it canot find `libz.so.1`. It can find all the others though. See `ldd`: https://gist.github.com/5878726cd4c56fdfc9aeb3846e4f1614
<cptMikky>
not sure what to do here, zlib is, of course, installed
<thibm>
,library cptMikky
<{^_^}>
cptMikky: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<thibm>
"zlib is, of course, installed" will not help
<gkaply532[m]>
i'm really confused by the matrix bridge, it's so seamless
<cptMikky>
thibm: I meant the lib is there, not that I _installed_ it manually. I guess I just don't understand why zlib isn't available but the others are..
<cptMikky>
thibm: `nix-shell -p zlib` doesn't work in this case either. Note that `cstub` is some kind of proprietary blob so who know how it discovers the libs. Is there a reasonably simple way to find out?
<thibm>
cptMikky: is it a nixpkgs package or a binary from somewhere?
<cptMikky>
thibm: it's downloaded by openconnect from the internet
<SomeoneSerge>
can I make an iso installer from a nixosConfiguration in a nix flake?
<thibm>
wow "The 'Cisco Secure Desktop' is a bit of a misnomer — it works by downloading a trojan binary from the server and running it on your client machine"
<thibm>
cptMikky: you can try to patch the binary with patchelf/make a package for it and ensure openconnect use this binary
saschagrunert has quit [Read error: Connection reset by peer]
<pie_>
clever: one of these days, after I learn enough about ELF and binfmt and dynamic linking, that im going to rage and just rewrite the linux loader to autopatchelf everything :P
<pie_>
if only there was a decent way to figure out what things actually need
<thibm>
SomeoneSerge: this is from the libre alternative of anyconnect website, not cisco itself
<thibm>
pie_: the point is to not do it at runtime ;)
<SomeoneSerge>
thibm: iirc anyconnect oficially calls that a trojan
<SomeoneSerge>
btw, am I right thinking that openconnect doesn't allow downloading that thing by-default?
<thibm>
SomeoneSerge: x) it is a trojan indeed
<thibm>
yes the website stated that
<cptMikky>
thibm: package isn't feasible - the binary isn't publicly available afaik, no versioning, etc. Heck, it could even by endpoint-specific for what I know. Patchelf sounds doable but it would still require patching openconnect, or rather the csd-wrapper script packaged with it.
<cptMikky>
SomeoneSerge: no, it doesn't, you have to explicitly allow it. But it can be enforced by the VPN endpoint.
<SomeoneSerge>
pie_: someone should pitch nix to torvalds, there's been a paste from the maillist recently where he ranted on dynamic linking
eoli3n_ has joined #nixos
<thibm>
dotlambda: PR number 123496 is a bit frustrating ;)
grabz0r has joined #nixos
HenrikK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grabz0r has quit [Client Quit]
ddellacosta has joined #nixos
henrikkarlsson has quit [Ping timeout: 252 seconds]
Lord_of_Life_ has joined #nixos
ddellacosta has quit [Ping timeout: 246 seconds]
Lord_of_Life has quit [Ping timeout: 240 seconds]
Lord_of_Life_ is now known as Lord_of_Life
orivej has quit [Ping timeout: 265 seconds]
<SomeoneSerge>
Hmm, ok it seems I can do `nix build .#nixosConfigurations.myHostname.config.system.build.toplevel` but not `...isoImage` - there isn't such attribute (and if there were one, it probably would be doing smth else than what I want)
<SomeoneSerge>
...but how can I check which attributes, except toplevel, do exist?
jimkooch has joined #nixos
grabz0r has joined #nixos
<grabz0r>
i'm confused, how do applications installed via nix-env by a user know where to pick up their configuration from (ie. from ~/.nix-profile/etc/config instead of /etc/config)
zfnmxt has joined #nixos
mastarija_ has joined #nixos
<CodeBitCookie[m]>
Hello again, I am reading the nix pills and am on chapter (or pill) 9.3. I don't understand one part of it.
<thibm>
CodeBitCookie[m]: NAR are like tar: it's a file with the content of the built derivation
<CodeBitCookie[m]>
thibm: I understand that
jimkooch has left #nixos [#nixos]
<thibm>
you just look for dependencies output path (e.g. /nix/store/...-gcc) inside this file to deduce that gcc is needed at runtime
<CodeBitCookie[m]>
Wait so you calculate the hash and if hash matches then it is a runtime dependency?
<Synthetica>
CodeBitCookie[m]: what's that from?
<thibm>
CodeBitCookie[m]: no you don't calculate anythin
<Synthetica>
You just search for the plaintext hash
<thibm>
output path are specified in the .drv files
<Synthetica>
I think
zaki has joined #nixos
<thibm>
yes
<CodeBitCookie[m]>
<thibm "output path are specified in the"> yes I know that
<CodeBitCookie[m]>
<Synthetica "You just search for the plaintex"> thibm said it doesn't
<CodeBitCookie[m]>
<Synthetica "CodeBitCookie: what's that from?"> nix pills
<CodeBitCookie[m]>
> <@freenode_Synthetica:matrix.org> CodeBitCookie: what's that from?
<CodeBitCookie[m]>
* nix pills 9.3
<{^_^}>
error: syntax error, unexpected '<', at (string):494:1
<thibm>
I didn't say that
<CodeBitCookie[m]>
okay sorry I misunderstood
<CodeBitCookie[m]>
but i still don't understand
xelxebar has quit [Remote host closed the connection]
xelxebar has joined #nixos
<thibm>
CodeBitCookie[m]: you can view what's inside a .drv file (run `nix-instantitae '<nixpkgs>' -A hello` and then open the file in your editor (or run `nix show-derivation /nix/store/….drv`)
<CodeBitCookie[m]>
yes I understand that too
<thibm>
you'll see that the derivation's output paths are written here
<CodeBitCookie[m]>
but I guess you don't understand the question
<thibm>
maybe
<CodeBitCookie[m]>
what is being put in the NAR, if its the drv then how can you search the contents of NAR for this path?
<grabz0r>
I'm trying to create a nixpkgs package. The build works. The default config is stored in $out/etc and when I install it, it gets linked correctly into my .nix-profile/etc However when I start the application it still expects it in /etc. What can be done? Any hint or pointer to some docs welcome... I've been browsing other nixpkgs to see how they tick but havent figured out how they manage this..
zebrag has joined #nixos
GytisIvaskeviciu has quit [Ping timeout: 245 seconds]
grabb0id has quit [Ping timeout: 245 seconds]
mjlbach has quit [Ping timeout: 245 seconds]
bitonic has quit [Ping timeout: 245 seconds]
viq[m] has quit [Ping timeout: 245 seconds]
GytisIvaskeviciu has joined #nixos
i401[m] has quit [Ping timeout: 276 seconds]
Kng[m] has quit [Ping timeout: 276 seconds]
onny[m] has quit [Ping timeout: 276 seconds]
afilini[m] has quit [Ping timeout: 276 seconds]
eadwu has quit [Ping timeout: 276 seconds]
satoshi[m]1 has quit [Ping timeout: 276 seconds]
fl0yd[m] has quit [Ping timeout: 276 seconds]
qbit[m] has quit [Ping timeout: 276 seconds]
yurb has quit [Ping timeout: 276 seconds]
lambdaclan has quit [Ping timeout: 276 seconds]
rschulman has quit [Ping timeout: 276 seconds]
Dandellion has quit [Ping timeout: 276 seconds]
codebam_ has quit [Ping timeout: 276 seconds]
kevin_m02[m] has quit [Ping timeout: 276 seconds]
Linus[m] has quit [Ping timeout: 276 seconds]
leonardp has quit [Ping timeout: 276 seconds]
LuxExUmbra has quit [Ping timeout: 245 seconds]
LinuxHackerman has quit [Ping timeout: 245 seconds]
leons has quit [Ping timeout: 245 seconds]
dominicusin[m] has quit [Ping timeout: 245 seconds]
Guest84066 has quit [Ping timeout: 245 seconds]
spinlock[m] has quit [Ping timeout: 245 seconds]
aynish has quit [Ping timeout: 245 seconds]
grabb0id has joined #nixos
JaakkoLuttinen[m has quit [Ping timeout: 245 seconds]
tad-lispy[m]1 has quit [Ping timeout: 245 seconds]
cemguresci[m] has quit [Ping timeout: 245 seconds]
adrysdale[m] has quit [Ping timeout: 245 seconds]
wangoe[m] has quit [Ping timeout: 245 seconds]
srid has quit [Ping timeout: 245 seconds]
yaoifangirl420[m has quit [Ping timeout: 245 seconds]
hplaptop[m] has quit [Ping timeout: 245 seconds]
ma27[m] has quit [Ping timeout: 245 seconds]
spacetato has quit [Ping timeout: 245 seconds]
bew[m] has quit [Ping timeout: 245 seconds]
Vinetos[m] has quit [Ping timeout: 245 seconds]
heyarne[m] has quit [Ping timeout: 245 seconds]
ThomasSanchez[m] has quit [Ping timeout: 245 seconds]
FOSSGuy[m] has quit [Ping timeout: 245 seconds]
CRTified[m] has quit [Ping timeout: 245 seconds]
oh_lawd[m] has quit [Ping timeout: 245 seconds]
t_unix[m] has quit [Ping timeout: 245 seconds]
NobbZ[m] has quit [Ping timeout: 245 seconds]
sorenson[m] has quit [Ping timeout: 245 seconds]
jgart[m] has quit [Ping timeout: 245 seconds]
thefloweringash has quit [Ping timeout: 276 seconds]
AleksandarTopuzo has quit [Ping timeout: 260 seconds]
eb[m] has quit [Ping timeout: 245 seconds]
FreeVariable has quit [Ping timeout: 245 seconds]
dxb[m] has quit [Ping timeout: 245 seconds]
veleiro has quit [Ping timeout: 245 seconds]
sabikin[m] has quit [Ping timeout: 245 seconds]
meet has quit [Ping timeout: 245 seconds]
mica[m] has quit [Ping timeout: 245 seconds]
davegallant[m]1 has quit [Ping timeout: 245 seconds]
eddyb has quit [Ping timeout: 245 seconds]
LennonDay-Reynol has quit [Ping timeout: 245 seconds]
siraben has quit [Ping timeout: 245 seconds]
craggberhatter[m has quit [Ping timeout: 260 seconds]
hiroshi[m] has quit [Ping timeout: 260 seconds]
berbiche has quit [Ping timeout: 260 seconds]
bbarker has quit [Ping timeout: 252 seconds]
Piece_Maker has quit [Ping timeout: 245 seconds]
AxelHanikel[m] has quit [Ping timeout: 260 seconds]
ddellacosta has quit [Ping timeout: 246 seconds]
codebam_ has joined #nixos
Dandellion has joined #nixos
Linus[m] has joined #nixos
onny[m] has joined #nixos
fl0yd[m] has joined #nixos
afilini[m] has joined #nixos
satoshi[m]1 has joined #nixos
i401[m] has joined #nixos
leonardp has joined #nixos
Kng[m] has joined #nixos
qbit[m] has joined #nixos
eadwu has joined #nixos
kevin_m02[m] has joined #nixos
lambdaclan has joined #nixos
rschulman has joined #nixos
wallacer has quit [Ping timeout: 245 seconds]
yurb has joined #nixos
henrik-ch has quit [Read error: Connection reset by peer]
Qwerky has quit [Remote host closed the connection]
<gpanders>
hi all, I am having some difficulty with locales with nixpkgs on Debian. I keep getting messages like /nix/store/68c5b0h2w2ab57sbas1b4m073ik8hlm5-bash-4.4-p23/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
<gpanders>
searching "nixos locale" gets me nothing. I can't find a "locale-gen" package in nixpkgs that might generate the locales for me. So I'm not sure what else to try
sangoma has quit [Ping timeout: 252 seconds]
<gustavderdrache>
i have that problem with some (but not all) packages - an export LC_ALL=C.UTF-8 usually fixes that warning for me
<gpanders>
LC_ALL is set to that already, I think the problem is that it can't find the corresponding locale file
orivej has quit [Ping timeout: 240 seconds]
zaki has quit [Ping timeout: 250 seconds]
<gpanders>
if I install the 'locale' package then run 'strace locale', I can see that it's trying to open /nix/store/v8q6nxyppy1myi3rxni2080bv8s9jxiy-glibc-2.32-40/lib/locale/en_US.UTF-8/LC_CTYPE, which doesn't exist
<gpanders>
I suspect that is likely the problem
<gpanders>
I also installed the glibc-locales package, but no dice :(
<gustavderdrache>
this is what i've usually seen with, e.g., perl
<gustavderdrache>
so i'm confused that the C.UTF-8 thing doesn't work :\
<gpanders>
ah my mistake, I misread your original message. Using C.UTF-8 does work
<gpanders>
I was using en_US.UTF-8
<gustavderdrache>
yeah, i think that's the default locale for me as well
<gustavderdrache>
i'll confess that i have no idea how to add locales to nixpkgs' glibc so i usually just put that export line in my shell.nix's shellHook when something complains :|
<gpanders>
thanks gustavderdrache
<gpanders>
locales are one of the last great mysteries of Linux sysadmin for me
<gpanders>
one of these days I'll sit down and learn about them properly
<gustavderdrache>
allow me to share with you the sum total of my knowledge of locales:
<gustavderdrache>
there might be a wiki or stackoverflow answer about this, but i'm guessing this is one of those issues where non-nixos systems encounter some friction with nixpkgs
<AmandaC>
Can a systemd service be told to always be restarted on an nixos activation? It seems that at the moment hydra-init does some permission chanegs that are required every time a nixos activation happens, but it's not automaticaally restarted
<qyliss>
AmandaC: restartIfChanged
<AmandaC>
it's not getting changed at all though, and that defaults to true. TBH I'm not even sure what the hell is causing the permissions to get changed in the first place.
<AmandaC>
My oriignal thought was hydra was doing something with tmpfiles.d but a quick skim of the module seems to disprove that
ReDox23424 has quit [Quit: Connection closed]
<SomeoneSerge>
Sry for bumping, but I'll rephrase my question: I have an existing nixos system, with its config in a flake, and I dumped its storage. How do I boostrap a system again from that configuration, minimizing the manual work? Or what do I do to minimize the manual work in future
<qyliss>
AmandaC: restartTriggers?
<qyliss>
that's what I was thinking of before, but I named the wrong thing
<AmandaC>
not sure what I'd put in there, I guess I'd put the activation derevation?
<AmandaC>
but I'm worried that'd cause a loop
<AmandaC>
guess I can try
<qyliss>
hmm, yeah I'm nots ure
<qyliss>
*not sure
<qyliss>
I think you probably need to figure out where the permission changes are coming from first
<pie_>
heh, but it breaks all the userspace :P <SomeoneSerge> pie_: someone should pitch nix to torvalds, there's been a paste from the maillist recently where he ranted on dynamic linking
<cgbrewster[m]>
Just deployed our initial version of nix support on replit, comes with a nix store preseeded with everything I could download from a recent verison of nixpkgs unstable. https://replit.com/@ConnorBrewster/nix-playground
<SumnerEvans[m]>
I use direnv in zsh and it works fine...
ddellaco_ has joined #nixos
alien-k[m] has joined #nixos
<cole-h>
bash and zsh are mostly compatible, so it should
furrymcgee has joined #nixos
<meet>
> If the file exists (and is authorized), it is loaded into a bash sub-shell and all exported variables are then captured by direnv and then made available to the current shell.
<{^_^}>
error: syntax error, unexpected ',', expecting ')', at (string):494:39
<meet>
i think the cross shell functionality is only really for env vars, not functions
<meet>
okay, i think i get it a bit, the way nvm or use_nvm, use_anything exactly works is those functions are expected to only alter variables, and direnv only provides a way for setting out the env vars, not actually execute custom functions that would do some magic, those would just end up executing in the subshell that direnv creates, but no effect for your shell other than environment vars
pushqrdx has joined #nixos
ddellaco_ has quit [Ping timeout: 252 seconds]
proofofkeags has joined #nixos
<meet>
how do .profile usually work in conjunction with shells other than bash
<cole-h>
(not gonna evaluate that here out of courtesy)
zaki has quit [Ping timeout: 250 seconds]
<meet>
yeah i think i had a misexpectation from direnv, it's not literally a source for your shell, but a source into bash shell and export out the environment variables from that bash shell to your current shell
eoli3n has quit [Ping timeout: 260 seconds]
<meet>
you shouldn't be spinning off some background jobs or setup aliases, etc. for instance
eoli3n has joined #nixos
pushqrdx has quit [Remote host closed the connection]
vidbina has joined #nixos
fendor_ has joined #nixos
aocusr has joined #nixos
aocusr has quit [Changing host]
aocusr has joined #nixos
fendor has quit [Ping timeout: 260 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
ddellacosta has quit [Remote host closed the connection]
<CodeBitCookie[m]>
FWIW i drew this using a mouse in mypaint lol
judson_ has quit [Remote host closed the connection]
judson_ has joined #nixos
ddellaco_ has quit [Ping timeout: 240 seconds]
<CodeBitCookie[m]>
plz help :(
<jasom>
CodeBitCookie[m]: I don't know how it actually works, but if the string "/nix/store/abcde12345-foo-1.2.3" does not appear in any of the files that are output from the build, then it seems obvious that it's not a runtime dependency, right?
<CodeBitCookie[m]>
hello jasom can you elaborate a little more please
<jasom>
CodeBitCookie[m]: I suppose if the paths were only in compressed (or encrypted) files, that could fool you, but absent such things it should work.
<CodeBitCookie[m]>
So What is confusing me is that the NAR only contains the output and the main derivation
<CodeBitCookie[m]>
only build dependencies will be appropriate here no?
<CodeBitCookie[m]>
I don't get how it works on runtime dependencies
<jasom>
CodeBitCookie[m]: lets say a program opens /nix/store/abcde12345-foo-1.2.3/lib/foo.so as some part of its startup. It can only do so if there is the string "abcde12345-foo-1.2.3" somewhere in its data or executable files, right?
<CodeBitCookie[m]>
yeah yeah
<jasom>
CodeBitCookie[m]: the NAR file contains all of the data and executable files
bbarker has joined #nixos
<CodeBitCookie[m]>
* yeah yeah :)
<CodeBitCookie[m]>
<jasom "CodeBitCookie: the NAR file cont"> ohhh okay and
<jasom>
I think this is what the nix pills is saying; I have zero clue how all of this actually works. It seems like compression could fool it (as I said encryption will as well, but that seems like a hostile program rather than something that could happen by accident)
NImNtNineVlt has quit [Ping timeout: 265 seconds]
<CodeBitCookie[m]>
so jasom what do you mean by hostile program
<jasom>
CodeBitCookie[m]: right. It is found automagically
<CodeBitCookie[m]>
but no where here it says that it check the executable
<jasom>
CodeBitCookie[m]: I think it's assumed that all runtime dependencies will also be build-time dependencies, so nix need only search the runtime dependencies
<jasom>
CodeBitCookie[m]: that's why I said "think"
<CodeBitCookie[m]>
why is this so complicated
<CodeBitCookie[m]>
yes jasom i am not saying you are wrong
<CodeBitCookie[m]>
I am just trying to figure this out with you
<jasom>
CodeBitCookie[m]: look at step 2 just abit below: "For each build dependency .drv and its relative out path, search the contents of the NAR for this out path"
<CodeBitCookie[m]>
yes I am looking
<CodeBitCookie[m]>
🤔
<jasom>
If this is actually how it works, IMO It's actually rather simple. I could probably write a shell-script to do it in a few minutes.
<CodeBitCookie[m]>
👀
<CodeBitCookie[m]>
<jasom "If this is actually how it works"> really so that means you know whats going on
superherointj has joined #nixos
<CodeBitCookie[m]>
im still confused
<CodeBitCookie[m]>
damn seriously
<CodeBitCookie[m]>
😕
<CodeBitCookie[m]>
😭
<jasom>
for a in "$build_dependencies[@]"; do grep -F a $out_nar
<{^_^}>
jasom's karma got increased to 7, it's a crit!
<gchristensen>
now now
<CodeBitCookie[m]>
thanks jasom
<CodeBitCookie[m]>
wopppsie
<CodeBitCookie[m]>
you didn't see anything
<CodeBitCookie[m]>
it was only 3 times
<CodeBitCookie[m]>
almost
<jasom>
CodeBitCookie[m]: good discussion; I learned something too
<CodeBitCookie[m]>
yeah was trying to figure out this for so long now
bn_work has joined #nixos
<{^_^}>
[nixpkgs] @thefloweringash opened pull request #123557 → Add bootstrap tools for aarch64-darwin and add to supportedSystems → https://github.com/NixOS/nixpkgs/pull/123557
<Henson>
is there some way I can get builtins.fetchGit to use the revision hash alone to fetch something from a repository, and not have to specify the ref?
turlando has quit [Ping timeout: 240 seconds]
<Henson>
or alternatively is there a way I can use pkgs.fetchgit and omit the SHA256?
<Henson>
hmm, found this little nugget in the source for pkgs.fetchgit: fetchgit has one problem: git fetch only works for refs. This is because fetching arbitrary (maybe dangling) commits may be a security risk and checking whether a commit belongs to a ref is expensive.
<legendofmiracles>
I'm building my system configuration on my rpi, and it's been stuck on building system configuration for hours, no further output. And the pi remains in a state where i can still use it, e.g. press enter - what could be the cause for this?
hiro98 has quit [Remote host closed the connection]
zebrag has joined #nixos
<evils>
i currently poll that repo's data, would love an MQTT output
kraem has joined #nixos
superherointj has quit [Quit: Leaving]
<Henson>
legendofmiracles: yeah, trying to run nix-build on that may be problematic. You might want to look into using nixops to build it locally on your computer and then upload it to your rpi, although I don't know how that works for cross-platform development
<clever>
Henson: you can either cross-compile nixos, or you can natively build it, but do the evals outside
<Henson>
clever: so would legendofmiracles be able to use nixops to build an ARM system on (presumably) an Intel system?
CybwrMonkwy has quit [Remote host closed the connection]
mikroskeem has quit [Quit: WeeChat 3.1]
<legendofmiracles>
Henson: clever it seems to be working with a large enough swapfile, i don't want to *yet* delve into nixops
<legendofmiracles>
but i appreciate the help
neiluj has joined #nixos
neiluj has joined #nixos
neiluj has quit [Changing host]
dbehmer has joined #nixos
<neiluj>
Hello! Anyone managed to get screen sharing working in sway?
<Henson>
legendofmiracles: ok, nixops takes a little bit of extra work, but not much, and is really helpful for deploying to small systems where it's not really practical to run nix-build locally.
<Henson>
legendofmiracles: I'm glad you got it working with a simple change like a larger swap file.
<SumnerEvans[m]>
neiluj: yes, what issues are you running into?
<legendofmiracles>
neiluj: pipewire should be needed for that
<legendofmiracles>
Henson++
<{^_^}>
Henson's karma got increased to 14
<legendofmiracles>
how does this work?
<legendofmiracles>
* how does this work again?
<legendofmiracles>
oh the bot didn't get shown, until a few seconds after
<neiluj>
So I'm on nixos unstable with pipewire enabled and xdg portal seems to crash when starting either firefox-wayland or chromium
<pennae>
nixops for small devices is great. we're provisioning our home router/switches with it
<neiluj>
I can share the bit of code that I use if it helps.
chivay|m has joined #nixos
<pennae>
(only have to find a way to tell it to not keep the system closures around)
<SumnerEvans[m]>
neiluj: that would be helpful if you could share that.
<neiluj>
all right, thanks!
melg8 has quit [Quit: Connection closed]
<remexre>
MichaelRaskin: would I be correct in assuming you know how quicklisp-to-nix works? the command from the readme is failing on the caveman system (before it got to the ones I added)
<MichaelRaskin>
remexre: let's see if it breaks for me…
<CodeBitCookie[m]>
what is the difference between the two
grabz0y has joined #nixos
<dminuoso>
CodeBitCookie[m]: Think of nix-build as nix-instantiate + nix-store --realise
<remexre>
MichaelRaskin: ooh, I just tried adding --pure to the nix-shell and it's getting further
<CodeBitCookie[m]>
<dminuoso "CodeBitCookie: Think of nix-buil"> so same thing
<CodeBitCookie[m]>
as the path from nix-instantiate is passed to nix-store --realise
<MichaelRaskin>
Makes some sense
<dminuoso>
CodeBitCookie[m]: well, `nix build` first builds a derivation, and then realises it into the store.
<dminuoso>
CodeBitCookie[m]: right.
<CodeBitCookie[m]>
so what is "realising"
<dminuoso>
check `man nix-store`
<dminuoso>
OPERATION --REALISE
meh` has quit [Quit: I think it's time we blow this scene.]
<dminuoso>
Broadly, think of "realisation" as materializing the output paths of a derivation into the store.
<remexre>
MichaelRaskin: okay, still fails with a similar error at cl-l10n
<grabz0y>
Hi. I'm trying to package an application into nixpkgs. The build works. However the application hardcodes the location of the config file to /etc. When I install the package as a user using nix-env, and try to run it, the application complains as expected that it can't find the etc file. Because actually it (the symlink) was installed in ~c/.nix-profile/etc .. how should one deal with this? I'm probably
<grabz0y>
Anyone? Anybody maybe know of a similar package which I can study? Banging (admittedly empty) head against the wall here
ahmedelgabri has joined #nixos
<MichaelRaskin>
grabz0y: usually by patching…
ahmed_elgabri has quit [Ping timeout: 245 seconds]
<grabz0y>
MichaelRaskin: patch the binary you mean?
<MichaelRaskin>
Normally the source
mastarija has joined #nixos
<grabz0y>
MichaelRaskin, but the source takes a CONFIGFILE parameter and bakes the location into the binary..
<mastarija>
Is it possible to create something like a global / default sway wm configuration from configuration.nix?
walkah has joined #nixos
<mastarija>
Basically, I would like to avoid home manager
<CodeBitCookie[m]>
<dminuoso "CodeBitCookie: An analogy here, "> dminuoso: yes I also read the man for `nix-build` and everything. It said the nix-build is a wrapper around nix-instantiate and `nix-store --realise`. Also realise just puts out path into out and puts the derivation into its right place in the nix-store
<MichaelRaskin>
grabz0y: so pass it $out/etc in the build
<MichaelRaskin>
Well, now please check that lispPackages can be built with nix-build (just ask for the lispPackages attribute, the whole set should be buildable)
ddellac__ has quit [Ping timeout: 252 seconds]
Cyrinux330138630 has quit [Read error: Connection reset by peer]
<MichaelRaskin>
It is the normal horror of Quicklisp work with the goal of read-only compiled FASLs working
dbehmer has quit [Ping timeout: 265 seconds]
abstrn has quit [Quit: later]
<MichaelRaskin>
If you open the overrides file, you will see quite a few cases of dropped tests.
<MichaelRaskin>
Not sure what exactly happens here without context
stree has quit [Ping timeout: 246 seconds]
<colemickens>
Is this a 32bit kernel? /nix/store/sch175ar56n02qlwyzvb51vg67sl8rzd-linux-5.11.21/bzImage: Linux kernel x86 boot executable bzImage, version 5.11.21 (nixbld@localhost) #1-NixOS SMP Fri May 14 08:50:20 UTC 2021, RO-rootFS, swap_dev 0x6, Normal VGA
<remexre>
dunno the asdf internals well enough to grok the stack trace
<MichaelRaskin>
Approximately two persons understand ASDF internals…
<remexre>
heh, I work with the maintainer
<remexre>
so I could probably poke him if it's a *complete* mystery
<MichaelRaskin>
And the other one stepped away from ASDF after rewriting it from scratch!
<MichaelRaskin>
But no, here it seems not that mysterious
<colemickens>
clever: sorry to bother directly but I'm stuck -> when you worked on stage-1 for not-os, did you run into "error -8" ever, with the kernel unable to start /init?
<clever>
colemickens: is that for the stage2 init or the stage1 init?
<colemickens>
for stage-1, at least that's what I've been trying
<clever>
colemickens: does ash still exist in extraUtils (line 87) ?
<clever>
you can pull the stage1 out of /nix/store and find the path there
<colemickens>
oh wait, I didn't try with your exact extraUtils setup, let me do that first
<colemickens>
I tried dash. maybe that's my issue
<colemickens>
versus this looks like busybox ash maybe. yeah.
_d0t has joined #nixos
<_d0t>
hello! How do I disable dns challenge in acme settings in nixos?
<dminuoso>
_d0t: Judging from the code, leave .dnsProvider empty
<dminuoso>
i.e. null
Thra11 has quit [Quit: WeeChat 2.9]
<_d0t>
dminuoso: I don't even have it set in my configuration.nix.
<_d0t>
what I have is nginx configured with several subdomains.
<cransom>
Ankhers: did you run it as root, or enable programs.wireshark.enable? (i haven't done the later, but wireshark/tcpdump/tshark have worked fine)
<Ankhers>
cransom: I did not run it as root. I don't think I have needed ot on other OSes. But maybe I have.
<dminuoso>
_d0t: can you share the respective nix config for the *.my.domain certificate?
svrana has quit [Ping timeout: 250 seconds]
Kr4kke has joined #nixos
<cransom>
dumping packets is a privileged operation. you would have either run them as root or they did something pretty irresponsible and let random users spy on traffic.
<cransom>
Ankhers: if you use the nixos option, read the output and get your user into the appropriate group and not need to use root perms.
<_d0t>
dminuoso: which one? There is basically none. I have 'security.acme' with acceptTerms and email set. And then 'forceSSL' and 'enableACME' in services.nginx.virtualHosts."domain"
<Ankhers>
cransom: Thanks!
<_d0t>
dminuoso: oh wow! Lego version here is 3.8.0. If that's somehow relevant.
erasmas has quit [Quit: leaving]
ddellac__ has joined #nixos
<dminuoso>
_d0t: I figured it out.
<dminuoso>
It's, as usual, a user error!
<_d0t>
figures :D how do I fix this?
<dminuoso>
You have a wildcard configured, have you not?
<colemickens>
clever: well anyway, it turns out "$!" doesn't work as a shebang, but I probably also needed some more of those bits from your stage-1 anyway, so the talk helped :P thanks
<sterni>
with runtimeShell especially you are just waiting for yourself to be shot in the foot because you can't really know at build time if it's gonna work
<sterni>
clever: was a reply to 00:14 <pennae> haven't tried what happens when it's overriden to dash or similar, is that a viable thing to do at all?
bbarker has quit [Ping timeout: 268 seconds]
<pennae>
yeah, not very inclined to do that anyway
<clever>
ah, yeah, i dont know about that
<pennae>
never change a running system & all that
<clever>
nixos at least makes it easy to undo such tests
<clever>
so you can experiment more freely
<pennae>
true, but we've got other experiments that are more interesting :>
<pennae>
and should probably rewrite the mosquitto module at some point since our comment that it could do with a rewrite seems to have come across as an offer
jiribenes has quit [Remote host closed the connection]
NinjaTrappeur has joined #nixos
<{^_^}>
[nixpkgs] @pschyska opened pull request #123598 → nixos/nsd: make nsd-checkconf work when configuration contains keys (#118140) → https://github.com/NixOS/nixpkgs/pull/123598
dev_mohe has quit [Quit: dev_mohe]
supersandro2000 is now known as Guest2135
Guest2135 has quit [Killed (orwell.freenode.net (Nickname regained by services))]
cgbrewster[m] has quit [Ping timeout: 258 seconds]
a[m]1 has quit [Ping timeout: 258 seconds]
ma27[m] has quit [Ping timeout: 245 seconds]
rnhmjoj-M has quit [Ping timeout: 245 seconds]
notusknot[m] has quit [Ping timeout: 245 seconds]
mjlbach has quit [Ping timeout: 258 seconds]
yaoifangirl420[m has quit [Ping timeout: 258 seconds]
Bugworm[m] has quit [Ping timeout: 258 seconds]
kunrooted[m] has quit [Ping timeout: 258 seconds]
QueenUhohsheherv has quit [Ping timeout: 258 seconds]
melchizedek6809[ has quit [Ping timeout: 258 seconds]
rmcgibbo[m] has quit [Ping timeout: 258 seconds]
johnjay has quit [Ping timeout: 252 seconds]
CRTified[m] has quit [Ping timeout: 245 seconds]
spacetato has quit [Ping timeout: 245 seconds]
hpfr has quit [Ping timeout: 245 seconds]
stites[m] has quit [Ping timeout: 245 seconds]
Goldstein[m] has quit [Ping timeout: 245 seconds]
codebam_ has quit [Ping timeout: 250 seconds]
inkbottle[m] has quit [Ping timeout: 250 seconds]
hplaptop[m] has quit [Ping timeout: 258 seconds]
dominicusin[m] has quit [Ping timeout: 258 seconds]
grm[m] has quit [Ping timeout: 258 seconds]
infinisil-m has quit [Ping timeout: 258 seconds]
anonyme_404[m] has quit [Ping timeout: 258 seconds]
judeka[m] has quit [Ping timeout: 258 seconds]
sugimoto[m] has quit [Ping timeout: 258 seconds]
fendingshadows[m has quit [Ping timeout: 258 seconds]
nikola[m]1 has quit [Ping timeout: 258 seconds]
mhj[m] has quit [Ping timeout: 258 seconds]
petrichor has quit [Ping timeout: 258 seconds]
sibi has quit [Ping timeout: 258 seconds]
puzzlewolf has quit [Ping timeout: 258 seconds]
Antoine01[m] has quit [Ping timeout: 258 seconds]
CodeBitCookie[m] has quit [Ping timeout: 258 seconds]
arcnmx has quit [Ping timeout: 258 seconds]
AleksandarTopuzo has quit [Ping timeout: 245 seconds]
veleiro has quit [Ping timeout: 245 seconds]
Guest84066 has quit [Ping timeout: 245 seconds]
i401[m] has quit [Ping timeout: 245 seconds]
afilini[m] has quit [Ping timeout: 245 seconds]
berbiche has quit [Ping timeout: 245 seconds]
JaakkoLuttinen[m has quit [Ping timeout: 245 seconds]
NobbZ[m] has quit [Ping timeout: 245 seconds]
marcdraco[m] has quit [Ping timeout: 245 seconds]
gwubbels[m] has quit [Ping timeout: 245 seconds]
tad-lispy[m]1 has quit [Ping timeout: 245 seconds]
liff has quit [Ping timeout: 245 seconds]
ejpcmac has quit [Ping timeout: 245 seconds]
jojosch[m] has quit [Ping timeout: 245 seconds]
fanyx_[m] has quit [Ping timeout: 250 seconds]
l-as has quit [Ping timeout: 250 seconds]
oh_lawd[m] has quit [Ping timeout: 258 seconds]
FreeVariable has quit [Ping timeout: 258 seconds]
mslav[m] has quit [Ping timeout: 258 seconds]
aaronchall[m] has quit [Ping timeout: 258 seconds]
butt_hugger[m] has quit [Ping timeout: 258 seconds]
matrisemann[m] has quit [Ping timeout: 258 seconds]
qbit[m] has quit [Ping timeout: 258 seconds]
anton[m] has quit [Ping timeout: 258 seconds]
tmerse has quit [Ping timeout: 258 seconds]
berberman__ has quit [Ping timeout: 258 seconds]
DavHau[m] has quit [Ping timeout: 258 seconds]
matani[m] has quit [Ping timeout: 258 seconds]
shu9 has quit [Ping timeout: 258 seconds]
niklas[m]3 has quit [Ping timeout: 258 seconds]
flip[m] has quit [Ping timeout: 258 seconds]
bbigras has quit [Ping timeout: 258 seconds]
ploupiboulba[m] has quit [Ping timeout: 258 seconds]
chpatrick has quit [Ping timeout: 258 seconds]
ipv6[m] has quit [Ping timeout: 258 seconds]
blast_hardcheese has quit [Ping timeout: 258 seconds]
OJ[m] has quit [Ping timeout: 258 seconds]
a_______a[m] has quit [Ping timeout: 258 seconds]
kgjfeduwieigt83e has quit [Ping timeout: 258 seconds]
fortuneteller2k[ has quit [Ping timeout: 258 seconds]
musicmatze has quit [Ping timeout: 258 seconds]
olto[m] has quit [Ping timeout: 258 seconds]
notgne2[m] has quit [Ping timeout: 258 seconds]
mindtree[m] has quit [Ping timeout: 258 seconds]
syntaxoid[m] has quit [Ping timeout: 258 seconds]
beardhatcode has quit [Ping timeout: 258 seconds]
kcombinator[m] has quit [Ping timeout: 258 seconds]
Karthik[m]1 has quit [Ping timeout: 258 seconds]
aanderse has quit [Ping timeout: 258 seconds]
juanfra__ has quit [Ping timeout: 258 seconds]
regnat[m] has quit [Ping timeout: 258 seconds]
rednaZ[m] has quit [Ping timeout: 258 seconds]
eliasp[m] has quit [Ping timeout: 258 seconds]
sabry97[m] has quit [Ping timeout: 258 seconds]
smitop2[m] has quit [Ping timeout: 258 seconds]
test53453535[m] has quit [Ping timeout: 258 seconds]
ighuth933w[m] has quit [Ping timeout: 258 seconds]
hiroshi[m] has quit [Ping timeout: 245 seconds]
thefloweringash has quit [Ping timeout: 245 seconds]
<winterqt>
anyone manage to get node2nix working with flakes?
<winterqt>
this is how i'm trying to do it, and it successfully builds except for failing with `error: getting status of /nix/store/.../default.nix` at the end
<winterqt>
and that store path points to the successfully built drv