<{^_^}>
[nixpkgs] @veprbl pushed commit from @gnidorah to master « mame: 0.219 -> 0.220 (#84978) »: https://git.io/JfeO4
qrnteen has quit [Quit: Leaving]
<energizer>
is there any effort toward standardizing names like fetchFromGitHub vs fetchPypi and mkFoo vs buildFoo vs createFoo?
MightyJoe has joined #nixos
cyraxjoe has quit [Ping timeout: 256 seconds]
bbarker_away has quit [Quit: Leaving]
<bqv>
lol, there isn't eve na
bbarker has joined #nixos
<bqv>
lol, there isn't even a standard between fetchFromGitHub and fetchFromGithub
<bqv>
of course not
<worldofpeace>
gchristensen: hmm, I think I merged a modemmanager update to release-20.03
jasom has joined #nixos
<gchristensen>
worldofpeace: it looks like an llvm build failed, and then restarted and succeeded -- and the channel advanced despite a bunch of failed builds. no worries, I restarted them
jgeerds_ has quit [Ping timeout: 258 seconds]
<bbarker>
say I have `deps = (import deps.nix);` in a shell.nix file, and in that shell.nix file, I want to somehow inherit deps.env (inherit implying i do want to make some changes or additions at least) - how do I do this?
<aanderse>
are there any lutris users here? i'm wondering what the state of lutris is. today i installed it and tried to get it to install a game and it said something about can't find ssl something or other, so can't download my game
<aanderse>
seemed like a pretty basic thing that should work, so i wonder if lutris isn't in a good state yet. i'm running 20.03 beta btw
reallymemorable has quit [Quit: reallymemorable]
<worldofpeace>
that sounds like the glib-networking error
<worldofpeace>
aaron: maybe try services.gnome3.glib-networking.enable as a workaround (maybe)
cyraxjoe has joined #nixos
<aanderse>
oh also when i start up it says "lutris was unable to detect vulkan support for the i386 and x86_64 archicecture" which seemed bad
<aanderse>
worldofpeace: thanks, will look now
<aanderse>
worldofpeace: exactly right: "TLS/SSL support not available; install glib-networking"
MightyJoe has quit [Ping timeout: 264 seconds]
<aanderse>
trying now
<gchristensen>
twemoji is so big lol
reallymemorable has joined #nixos
<gchristensen>
honestly I've compiled pulseaudio alacritty and emacs in less time
<infinisil>
ottidmes: Didn't even think of doing that, but I guess since the standard setup works (assuming the acme thing can be niceified) I'll stick to that
<aanderse>
worldofpeace: unfortunately that did not solve the problem :(
m0rphism has quit [Ping timeout: 240 seconds]
rogue_koder has quit [Ping timeout: 258 seconds]
<worldofpeace>
aaron: if you rebuild switched you probably should log out and log in
<gchristensen>
though you might try systemctl --user daemon-reload
<{^_^}>
[nixos-homepage] @garbas pushed 0 commits to small-indent-fix: https://git.io/Jfe3z
rogue_koder has joined #nixos
<{^_^}>
[nixos-homepage] @garbas pushed 2 commits to plasma5-rename: https://git.io/Jfe3g
<vika_nezrimaya>
Using Nix to build FHS-compatible Golang binaries: is it possible?
sigmundv_ has quit [Read error: Connection reset by peer]
<aanderse>
worldofpeace (@worldofpeace:matrix.org): thanks, I'll give that a try
sigmundv_ has joined #nixos
<vika_nezrimaya>
Environment: Gitlab CI. Objective: build a combined package of Node.js website embedded in a Go binary that could run on a FHS-compatible Linux OS (i.e. ubuntu docker container). Can use Nix in container, cannot depend on Nix or anything in /nix/store outside of build process - all paths need to emulate a FHS system. Can it be done using virtual FHS environments that Nix provides for wrapping proprietary binaries?
<{^_^}>
[nixos-homepage] @garbas pushed to plasma5-rename « revert formatting changes of news.xml »: https://git.io/Jfe36
CrazyMind102 has joined #nixos
<CrazyMind102>
Hi.
rogue_koder has quit [Remote host closed the connection]
rogue_koder has joined #nixos
<bqv>
vika_nezrimaya: why not build an FHS env and then include go binaries, and build within that
<ottidmes>
infinisil: Looking at the capabilities used on the config I base my weechat config on, is see this used: [ "account-notify" "away-notify" "cap-notify" "multi-prefix" "server-time" "znc.in/server-time-iso" "znc.in/self-message" "znc.in/playback" ] do you have it similarly?
drakonis_ has quit [Read error: Connection reset by peer]
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
MightyJoe has joined #nixos
cyraxjoe has quit [Ping timeout: 258 seconds]
drakonis_ has joined #nixos
drakonis has quit [Ping timeout: 260 seconds]
cyraxjoe has joined #nixos
h0m1 has quit [Ping timeout: 260 seconds]
<infinisil>
ottidmes: Yeah I have account-notify,away-notify,cap-notify,multi-prefix,server-time,znc.in/self-message,znc.in/server-time-iso,znc.in/playback
erictapen has quit [Quit: leaving]
<infinisil>
Under irc.server_default.capabilities
MightyJoe has quit [Ping timeout: 250 seconds]
h0m1 has joined #nixos
bhipple has quit [Ping timeout: 264 seconds]
drakonis has joined #nixos
growpotkin has quit [Ping timeout: 260 seconds]
<ottidmes>
infinisil: Thanks! After I mimick the declerative generation of a script that sets weechat options, I should be ready to test it all out
bhipple has joined #nixos
<colemickens>
Hm, every once in a while it seems like my icons disappear in Fractal (under sway)
<monokrome>
,locate graph2dot
CptCaptain has quit [Ping timeout: 260 seconds]
<{^_^}>
Found in packages: libav.bin, libav_12.bin, libav_0_8.bin
<{^_^}>
edwinb/Idris2#17 (by shmish111, 39 weeks ago, closed): weird error when trying to build
bhipple has quit [Ping timeout: 264 seconds]
<evertedsphere>
basically, the current nixos-unstable idris1 is broken. if one manually fetchFromGithub-s the latest version, it compiles fine.
<evertedsphere>
but this can't build idris2 because of the error in the issue. :(
reallymemorable has joined #nixos
<evertedsphere>
i can only imagine it's because of some weird thing to do with the idris stdlibs being picked up when they shouldn't, conflicting with the identifiers/types in the idris2 source
bhipple has joined #nixos
<est31>
lovesegfault: the DNS root key story is funny... originally they intended it to never change
<est31>
if it's super secure, why change it?
<est31>
so implementations hardcoded it in their source
<est31>
very convenient
<est31>
however, soon they realized that it's basic crypto best practice to have key agility
<est31>
and they announced to rotate the key
<est31>
so now all implementations had to edit their source and add some level of agility
cosimone_ has quit [Quit: Quit.]
xO1 has quit [Ping timeout: 240 seconds]
<evertedsphere>
(cc clever because we spoke about the manual overriding of the idris1 derivation yesterday)
heath has quit [Ping timeout: 268 seconds]
heath has joined #nixos
<dsal>
Can't you just edit the source periodically when new keys come out?
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #85189 → C/C++ compilers: Be sane with standard libraries → https://git.io/JfeZ0
waleee-cl has quit [Quit: Connection closed for inactivity]
ottidmes has joined #nixos
<est31>
is it normal that when I do sudo nixos-rebuild switch --upgrade it tries to compile stuff?
szicari has quit [Ping timeout: 246 seconds]
<est31>
because that's what happens
szicari has joined #nixos
CMCDragonkai1 has joined #nixos
<est31>
it seems that hydra is .... pretty busy now?
ottidmes has quit [Client Quit]
KILL_DOZER has joined #nixos
morgrimm has joined #nixos
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #85190 → fwupdate: Clean up -I flags → https://git.io/JfeZa
aleph- has quit [Ping timeout: 264 seconds]
evertedsphere has quit [Ping timeout: 258 seconds]
<KILL_DOZER>
You are invited to attend a lecture and chat with Dr Gamme Martin @ irc.butt.es #GAMME https://imgur.com/a/RRqPUPf
<danderson>
aww, a spammer! How quaint
<globin>
Ericson2314: making my merging life hard again :>
<Ericson2314>
globin: hey now, I did that `builtins.toString` on the flags list just for you :D
<globin>
<3 Ericson2314
<{^_^}>
Ericson2314's karma got increased to 5
<globin>
Ericson2314: I'm making progress!
<Ericson2314>
nice!
<Ericson2314>
do you have a sense of how much is left vs already done?
<dsal>
What does it mean for a package to be marked as broken?
<globin>
largest issue for me is fixing nix-shell -A, haven't looked at that part of the nix code a lot yet, but looking forward to diving into that
<globin>
the rest is fixing up a number of quoting issues, which is rather trivial
<Ericson2314>
oh yeah ugh nix-shell is so nasty
<globin>
and then everything related to passAsFile
<Ericson2314>
i wish it just would read the bash script out of some magic attribute
<Ericson2314>
rather than make assumptions
<globin>
which is proving to be a bit annoying as I need jq for that really early for runCommand
<Ericson2314>
oh woah
<Ericson2314>
that sounds like jq on bootstrap tools territory, not gonna lile
<globin>
yeah I know..
<Ericson2314>
what exactly needs it?
<Ericson2314>
or how?
<globin>
currently trying to build it without deps
domogled has joined #nixos
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
<lovesegfault>
est31: Hey, still around?
aw has joined #nixos
<est31>
yes
<est31>
hi
<globin>
Ericson2314: source <(jq -r <.attrs.json '.buildCommand') in runCommand'
<globin>
Ericson2314: currently trying to build a minimal jq without deps, that could work
<lovesegfault>
est31: So, why does it expect the root key in /root.key?
spacefrogg has joined #nixos
<Ericson2314>
globin: is the env var run command all messed up?
<Ericson2314>
*env var buildCommand
<est31>
lovesegfault: DNSSEC uses signing keys for DNS entries
<lovesegfault>
Oh, I see it /nix/store/3qbka7pi7ckxghz4dlrjffdx4b1z3dj4-dns-root-data-2019-01-11/root.key
<lovesegfault>
hmm
<est31>
lovesegfault: each top level domain has its own signing key
<est31>
lovesegfault: and signs the domains
<est31>
lovesegfault: and the top level domain keys are signed by the root key
<globin>
Ericson2314: well there is no passAsFile support with __structuredAttrs=true, probably eelco's reasoning was that it is already included in .attrs.json
<est31>
all that DNSSEC resolver is doing is verification of that chain
<globin>
Ericson2314: probably didn't anticipate that we'd need to read it this early
<Ericson2314>
maybe jq in the bootstrap tools isn't so bad
<vika_nezrimaya>
My first pull request to NixOps, yay! And it got a pretty issue number
<globin>
Ericson2314: I think we could manage an early jq, that is non-bootstrap-tools
<Ericson2314>
I suppose I did want lua stdenv
<vika_nezrimaya>
haven't tested this yet but it should work?
<Ericson2314>
globin: well, and this is a separate project so I should just shut up, I wanted to move towards only commands and no libraries in the bootstrap tools (i.e. everything statically linked)
<lovesegfault>
est31: Hmm
<Ericson2314>
and I think runCommand is probably needed before libc or whatever is built
<Ericson2314>
still, this is fine, can always rotate things in and out later
<globin>
Ericson2314: I'll see in a moment :)
<lovesegfault>
I wonder if these cli things just don't work well on NixOS
* Ericson2314
🤞
<est31>
lovesegfault: I guess it needs some patching of some kind, not sure what the best way is
<est31>
maybe if you are lucky the path can be specified in the config file
<lovesegfault>
Oh
<lovesegfault>
With dig apparently it does work
<lovesegfault>
Nice
KILL_DOZER has quit [Read error: Connection reset by peer]
<cole-h>
jtojnar++ Wow, just as I got around to bisecting that exact issue (and why I just pinged infin*sil lol). Confirmed fixes the manual build for me, thanks!
<{^_^}>
jtojnar's karma got increased to 39
<est31>
how can I list os generations?
<est31>
nix-env --list-generations shows me the generations of the user environment
aleph- has quit [Ping timeout: 256 seconds]
KILL_DOZER has quit [Remote host closed the connection]
<lovesegfault>
Wow, unbound is _way_ better than systemd-resolved
<lovesegfault>
resolved is kind of trash compared
aleph- has joined #nixos
mmlb has joined #nixos
WinchellsM has quit [Quit: Lost terminal]
MatrixBridge has joined #nixos
MatrixBridge has left #nixos ["User left"]
aleph- has quit [Ping timeout: 258 seconds]
zaeph1 has joined #nixos
<jtojnar>
cole-h it is pretty ugly, we need escapeNixAttrName instead of escapeNixIdentifier, and the placeholders are just super terrible (no way to distinguish them from real options named like that)
<samueldr>
buildPackages is the package set for the system the build is happening on
<Nazral>
Since I switched to unstable, alacritty is telling me "Error creating GL context; Could not create EGL display object", and Firefox struggles with playing youtube videos, yet glxgears works
<angerman>
My issue is that I can see that my ghc cross compiler depends on the native bash, and subsequently corefoundation, which populates the TARGET_CFLAGS with `-iframework` entries, and thus cause the compiler to trip.
<angerman>
evils: but I can't feed that one with .drv's right? hmm...
<evils>
angerman: yes you can
LysergicDreams has joined #nixos
<angerman>
Ahh, but it needs both derivations to be built.
nino35 has joined #nixos
nino34 has quit [Read error: Connection reset by peer]
nino35 is now known as nino34
endformationage has quit [Quit: WeeChat 2.6]
<angerman>
evils: sorry for bugging you again. How do I find the derivatian for a store path?
bhipple has quit [Remote host closed the connection]
palo1 has joined #nixos
rail_ has quit [Quit: gone...]
morgrimm has quit [Ping timeout: 256 seconds]
alexherbo2 has joined #nixos
rail_ has joined #nixos
palo has quit [Ping timeout: 260 seconds]
palo1 is now known as palo
selfsymmetric-mu has joined #nixos
alexherbo21 has joined #nixos
<selfsymmetric-mu>
How often should I expect to rebuild the linux derivation by default? say, `nix-build-linux-5.4.31.drv`? Seems like it shows up in `nix-top` a lot?
alexherbo2 has quit [Ping timeout: 250 seconds]
alexherbo21 is now known as alexherbo2
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
linarcx has joined #nixos
iqubic` has joined #nixos
<srhb>
selfsymmetric-mu: That's basically impossible to answer without knowing more about your system. If you have custom options set, then almost every time the kernel is bumped, which is.. What, every 14 days? Every week?
<srhb>
selfsymmetric-mu: If you're entirely stock, then never.
iqubic has quit [Ping timeout: 260 seconds]
captjakk has quit [Ping timeout: 265 seconds]
<selfsymmetric-mu>
srhb: Thanks! Yeah, I have `boot.extraModulePackages = [ config.boot.kernelPackages.exfat-nofuse ];`. That might be poking it.
<srhb>
selfsymmetric-mu: You can try nix-diffing the upstream kernel drv with the one you have for a given nixpkgs commit
evertedsphere has quit [Ping timeout: 240 seconds]
<selfsymmetric-mu>
srhb: Good idea, thank you!
<selfsymmetric-mu>
srhb++
<{^_^}>
srhb's karma got increased to 99
zaeph1 is now known as zaeph
henry__ has quit [Quit: henry__]
ararouge has joined #nixos
<DamienCassou>
I'm on nixos. My network-manager keeps forgetting the wifi passwords I set (through nmtui). When I try to pass password through the command line (`nmcli d w connect my-ap password my-password`), I get an error that no password were provided
<sphalerite>
DamienCassou: maybe you want "psk" instead of "password", I think password might be only for WPA-EAP
rnmhdn has quit [Quit: WeeChat 2.8]
<DamienCassou>
sphalerite: I remember I used `password` in the past for this access point with no problem but I will try `psk`. Still, `nmtui` manages to connect me to the access point but won't remember the password
<sphalerite>
DamienCassou: hm ok. I'm not sure, sorry
<srhb>
DamienCassou: I vaguely remember that some setups need to manually ensure there's a libsecret backend in order for that functionality to work. So maybe look into checking whether your keyring works?
<etu>
DamienCassou: Do you have files showing up in /etc/NetworkManager/system-connections/ ?
freeman42xx has quit [Quit: Leaving]
<DamienCassou>
etu: there is my access point in there
<DamienCassou>
srhb: any idea how to do that?
<DamienCassou>
srhb: I'm using lightdm+i3
<etu>
DamienCassou: Does it contain the password?
<DamienCassou>
it doesn't
<DamienCassou>
etu: ^
iqubic` has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
<etu>
Then it use the keyring or something of the user, I usually check a box named "available to all users" or something like that, that makes it store the password in that file.
<srhb>
DamienCassou: Looking into it some more, are you selecting "available to all users" when you edit the connection in nmtui?
<srhb>
DamienCassou: Apparently, that will rely on eg. gnome-keyring being enabled.
<srhb>
Er, if you *don't* set that.
<DamienCassou>
etu: I checked this box in nmtui
<srhb>
Ah, etu was faster than me :)
<DamienCassou>
srhb: I did check that box
<DamienCassou>
I haven't installed anything for gnome-keyring to work
zupo has joined #nixos
<srhb>
OK, that's the extent of my knowledge. I would try with the keyring and saving just for your user, and see if that works.
<srhb>
DamienCassou: With that box checked it should _not_ use the keyring
freeman42x has quit [Ping timeout: 265 seconds]
<DamienCassou>
srhb: where should the password go if this box is checked? To the connection file?
<etu>
yes
<DamienCassou>
I will first try to delete the connection file in /etc. Then set it again from scratch and checking the "all users" checkbox in the hope that the password is stored there
<etu>
It's usually placed in the [wifi-security] section and named "psk"
eoli3n__ has joined #nixos
zaeph has quit [Read error: Connection reset by peer]
zaeph has joined #nixos
mallox has joined #nixos
<DamienCassou>
etu: the password is still not saved. I see instead `psk-flags=1` in the connection file. According to the doc, this means "agent-owned: a user-session secret agent is responsible for providing and storing this secret; when it is required, agents will be asked to provide it."
orivej has joined #nixos
eoli3n__ has quit [Ping timeout: 258 seconds]
joebobjo1 has joined #nixos
asheshambasta has joined #nixos
dansho has quit [Ping timeout: 265 seconds]
<asheshambasta>
how does one go from a list of derivations, such as [ pkgs.zlib pkgs.gnutar ] to an attribute set like { zlib = pkgs.zlib; gnutar = pkgs.gnutar; } ?
<asheshambasta>
there seems to be a builtins.listToAttrs but that doesn't seem like what I'm looking for.
<asheshambasta>
I'm a beginner so I probably prefer the former.
mikethecreator has joined #nixos
<DamienCassou>
etu: srhb I added the gnome-keyring service, deleted the connection and created one from scratch. I'm happy to report that my wifi password is now saved properly. Thank you both
<mikethecreator>
hello
<mikethecreator>
im new to nix
phreedom has quit [Ping timeout: 240 seconds]
<mikethecreator>
just got it in a virtualbox machine
<mikethecreator>
what do you all like the most about it
<DamienCassou>
mikethecreator: nix or nixos?
<mikethecreator>
nixos
<mikethecreator>
and I guess subsequently nix
<srhb>
DamienCassou: nice :)
<etu>
DamienCassou: woo :)
<srhb>
mikethecreator: Reproducibility, purity... Basically the increased expressivity and control that I get over my system.
phreedom has joined #nixos
<DamienCassou>
I like so many things about it :-). Finally a package manager that is not just a patched version of an old broken stuff. You get for free what others struggle to get: rollback, installing multiple versions of something, no root required to install stuff, reproducibility
<srhb>
mikethecreator: The fact that I can create services so trivially... And share configs across machines, or with other people. It's difficult to choose to be honest, there's so much.
<mikethecreator>
this is interesting
<DamienCassou>
and this is only for nix. With nixos, you also get your whole system described in a file so you can replicate it easily
<mikethecreator>
I cant wait to experiment
<mikethecreator>
wow almost sounds like some sort of dockerfile
<DamienCassou>
then don't :-)
<srhb>
mikethecreator: Yeah, definitely, enjoy. And don't be scared, the learning curve is steep. :)
<srhb>
mikethecreator: It's way better than docker files.
<DamienCassou>
except it's better than Docker
<mikethecreator>
Im not scared
cole-h has quit [Quit: Goodbye]
<mikethecreator>
ooo elaborate further please
<mikethecreator>
can you point me to some cool resources?
<mikethecreator>
or like a favorite post about nix
<srhb>
mikethecreator: Docker tends to solve "runs for me" but not "builds for me"
<mikethecreator>
and nixos
<srhb>
mikethecreator: Nix solves both (and can even make docker images for you)
<etu>
mikethecreator: It's kinda fullfilling the idea of what people want the dockerfile to be, but it actually does it properly, for installed operatingsystems as well
<{^_^}>
[nixpkgs] @offlinehacker opened pull request #85198 → pasystray: add patch to fix crash when running under wayland → https://git.io/JfeCQ
<mikethecreator>
do you guys think Nixos and nix will take over in popularity
<mikethecreator>
I know it is not super well known right now
<srhb>
Not really..
dermetfan has joined #nixos
* etu
had a docker incident just the other week, we had a `COPY` in a dockerfile of a removed file, and docker did build it fine because it was cached
<Ashy>
mikethecreator: the other weekend while trying to debug a lenovo thunderbolt dock (unsuccessfully due to lenovo firmware :/), i upgrade and downgraded the kernel between 5.5, 5.4 and 4.19 and also took my whole system from nixos-unstable (20.04-beta) back to nixos-19.09 and back again all in the space of about 30 mins completely without fear
<srhb>
etu: What is reproducibility even :-)
<Ashy>
knowing that even if it didnt boot i could just choose a slightly older config generation in the grub boot screen and boot a working config
<etu>
srhb: I don't know, checking if files are changed or exists maybe?
<mikethecreator>
thats freaking awesome
<energizer>
mikethecreator: i dont think it will because learning it requires a lot of work
Naptra has joined #nixos
<Ashy>
mikethecreator: that's without messing around with btrfs snapshots or anything else
peelz has joined #nixos
peelz_ has joined #nixos
<mikethecreator>
well arch is a little more complex than a standard ubuntu distro and seems to be taking off more and more
<srhb>
etu: Sounds like a lot of effort. ;-)
<etu>
srhb: :D
rauno has joined #nixos
peelz has quit [Client Quit]
<mikethecreator>
This is awesome. Kind of reminds me of freebsd with boot environment manager and zfs
<mikethecreator>
but a lot cleaner actually
peelz_ has quit [Client Quit]
peelz has joined #nixos
<mikethecreator>
you all are really selling me on nix
<mikethecreator>
and the OS
<etu>
Yep, you can do it all on ext4 or xfs if you want
<mikethecreator>
now I gotta figure out how to install it in virtualbox lol
Cale has quit [Ping timeout: 260 seconds]
<etu>
ZFS tend to be fairly popular on NixOS as well though, but not for rollback reasons :)
<mikethecreator>
If I love it I will dedicate one of my thinkpads to it
<etu>
Actually, NixOS is one of few distros where I would use ZFS as rootfs. Because it's one of few distros where I would trust to upgrade kernels and *know* that I get a ZFS kernel module that works. :)
<Ashy>
i like to think: What git did for version control, nix and nixos are doing for package management and a whole distro
<energizer>
Ashy: can you spell out that analogy
<peelz>
how deep do properties (e.g. `mkIf`) get evaluated? could I have an mkIf statement in a list for example?
<mikethecreator>
I must admit I really dont know enough about package management to know what was wrong with it before
<mikethecreator>
but what you all are saying sounds cool
<mikethecreator>
like being able to rollback very eaily
<mikethecreator>
becauase I have broken things before
<etu>
mikethecreator: Have you experienced package version conflicts or circular dependencies at some point? :)
<mikethecreator>
are you saying you avoid all of this with nix?
<Ashy>
energizer: not direct technical mappings but as a vaguely similar analogy
<energizer>
Ashy: i don't see it at all :-)
<etu>
mikethecreator: Those problems don't exist on nixos though :p
statusbot has joined #nixos
selfsymmetric-mu has quit [Ping timeout: 260 seconds]
<mikethecreator>
this intrigues me so much
<mikethecreator>
watch its gonna end up one of my favorites lol
linarcx has quit [Quit: WeeChat 2.8]
<energizer>
haha i have package version conflicts on nix all the time
<mikethecreator>
@energizer now im getting conflicting info
<Ashy>
energizer: i guess it's a poorly thought out analogy
<mikethecreator>
what do you mean
<etu>
energizer: Sure, but it's usually not a problem. And not what I meant probably. Many distros can have issues of different versions of the same library. Nix doesn't :)
<energizer>
Ashy: it happens haha :)
<energizer>
etu: that's one of the worst "features" of nix imo
<energizer>
if i want a version other than the *one* in nixpkgs i have to build it myself :(
<srhb>
energizer: Do you mean because other distros can just provide whatever versions and not care that its dependencies may be incompatible?
selfsymmetric-mu has joined #nixos
<betaboon>
i got a question regarding the nixops-container backend: can we get it to have the same capabilities as the containers in nixos? eg capabilities, alloweddevices etc ?
<srhb>
energizer: (As in, just drop the .so wherever and hope for the best?)
<energizer>
srhb: yes
<srhb>
And I for one think the analogy is very fitting. I see my system as mostly analogous to one commit, which is what /run/current-system points to at any time.
<energizer>
srhb: that's what version control was already, not what git added to it
zupo has quit [Ping timeout: 256 seconds]
<srhb>
energizer: Oh, I didn't understand that that was your complaint about the analogy.
zupo has joined #nixos
<srhb>
Dunno, from my perspective git certainly brought VCS to the masses, but sure. Anyway, this is veering off-topic (there's nixos-chat for that)
<energizer>
srhb: anyway, because two compatible builds of the same package will have different hashes, nix will complain about a conflict
<energizer>
whereas, say, dpkg won't even notice
<srhb>
energizer: How is that preferable?
<srhb>
Like, who wins?
<srhb>
I think you're talking about buildEnv conflicts, is that right? And surely it's sensible to say: "Uh, you asked me to place two files with the exact same names in the exact same path. Which one did you want?"
<energizer>
srhb: well, it depends. if they really are compatible, it's preferrable because i have a working system and dont have to deal with fixing an error. if they're not compatible, i like the warning.
<energizer>
part of this will be solved with the intensional store i guess
<joebobjo1>
how come every time my mac update nix gets hosed bc /etc/zprofile gets replaced
<joebobjo1>
which the nix installer edits to install nix
<energizer>
like, iiuc atm nix will complain about putting two files with the same content (!) in the same place
<srhb>
energizer: Ah, understood. Yes, that is unnecessary and solveable.
dermetfan has quit [Ping timeout: 265 seconds]
<srhb>
(Theoretically, at least. :))
<energizer>
haha :)
mallox has quit [Quit: WeeChat 2.8]
Cale has joined #nixos
<energizer>
mikethecreator: that being said, nixos is really neat
<energizer>
it's my daily driver
<peelz>
how deep do properties (e.g. `mkIf`) get evaluated? could I have an mkIf statement in a list for example?
<mikethecreator>
so if im understanding correctly from context
<mikethecreator>
you have like a main config file that you edit for your build
<energizer>
yes
<mikethecreator>
neat
<energizer>
it can import other nix files, so it's easy to have some parts that you use on different machines, and some parts that are specific to each machine
<mikethecreator>
so dope. can you separate that via like a mac address
<mikethecreator>
so you can like push your build to machines on your network and it just configures itself for your certain machines
<srhb>
mikethecreator: Yes. The "configuration" language is a programming language in its own right, so you can do all sorts of logic in it.
<srhb>
mikethecreator: However, you'd have to probably specify the mac addresses itself. This is all build time, not runtime
<srhb>
mikethecreator: So usually^tm your config cannot refer to eg. machine data.
<srhb>
mikethecreator: Think of it like this: The entire system must essentially buildable on any machine. But this is perhaps a bit too abstract currently. It's easier to talk about once you've encountered it.
<srhb>
must essentially be*
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mikethecreator>
ok I will try tomorrow when after work
<mikethecreator>
thank you guys for hyping me
<mikethecreator>
I know that it must be really exciting and cool for you guys to talk about it this way
<mikethecreator>
and very useful once you get used to it
<energizer>
is it just me, it feels backwards that configuration.nix imports hardware-configuration.nix
<energizer>
normally the more stateful piece of a system does the importing
arjen-jonathan has joined #nixos
<srhb>
energizer: Doesn't feel wrong to me.
<srhb>
energizer: I like the approach of: Generate system specific config (eg. collect hardware info, mac addresses, ...), commit it, import it.
<energizer>
srhb: i'm just saying i want the hardware file to import the config, not the other way around
mikethecreator has quit [Remote host closed the connection]
<srhb>
energizer: Ah. Yes, I suppose that's what most people do with multi system setups
<srhb>
energizer: eg. one top-level per-machine config file that imports whatever else.
<energizer>
srhb: yeah exactly
<srhb>
energizer: I suppose it's just that way because it's convenient for single systems, in order to (re-)generate hw-config
<energizer>
srhb: yeah, tho the generated file could have `imports = [./system-configuration.nix];` or whatever
<energizer>
system-configuration being the shared config stuff
<srhb>
energizer: I suppose yeah. That might make it more obvious what the "right" multi-system approach is. However, the documentation cost of changing all that... :-)
<DamienCassou>
I have 2 couchdb containers described in my configuration.nix. They have 2 different ports configured. Unfortunately, only one works at a time: the first one I start works but the second one doesn't.
<DamienCassou>
if I stop the one that works, this does not make the other one working. I have to restart the one not working for it to start working
rardiol has quit [Ping timeout: 250 seconds]
nschoe has joined #nixos
bastion-tester has quit [Ping timeout: 250 seconds]
<DamienCassou>
it seems some older versions of ocaml have disappeared from nixpkgs. I need a version 3.10. Can I install a version of a package that was present in an old nixpkgs?
sigmundv_ has joined #nixos
<etu>
DamienCassou: I have this in a let-in block in my config: http://ix.io/2hY6/nix then I can reference pkgs1909.attribute-name in that file
<maxpackets>
Ciao, I am using the mozilla overlay (https://github.com/mozilla/nixpkgs-mozilla) in my default.nix, and I’m wondering how I could add more targets for cross compiling. Any rust ppl have pointers on how to do that nicely with nix?
Darkmatter66_ has quit [Ping timeout: 256 seconds]
<thequux[m]>
Is there a way to get a list of files that could be installed through nixpkgs? I've noticed that there are a lot of packages with broken cmake *Config.cmake files (boost, aws-sdk-cpp, etc) and I'd like to see about fixing them en masse
<energizer>
nixos-rebuild is stuck at "setting up tracefiles". i straced it, and it says the process is using "/run/systemd/ask-password"
<lledtok>
hello everybody, I have a very specific use case that is not sure if possible: I import a 3rd party custom nixpkgs kind of repository and I would like to force usage of my own rust channel to compile one of their package
<energizer>
i guess that means it's prompting for my password somewhere that i can't see
<thequux[m]>
<__monty__ "Otoh, if you want to edit the fi"> The problem is that usually the files are generated by cmake, possibly from templates in the source tarball, and so I actually would need to do my find over the *outputs* of the derivations. Inbiously, I don't have the time or space to actually build them all
sogatori has quit [Remote host closed the connection]
<ZoomZoomZoom>
Hi. I'm trying to set memlock limit for the Syncthing (due to that bug https://github.com/golang/go/issues/37436), the service.syncthing.user= my main user, and ulimit -l reports unlimited, but Syncthing still fails with "mlock of signal stack failed: 12"
<{^_^}>
golang/go#37436 (by karalabe, 6 weeks ago, closed): runtime: mlock of signal stack failed: 12
<woffs>
hmm, nixos-rebuild -p does not work as expected anymore?!
<infinisil>
betaboon: I don't think so. A simple reason for this is that aliases are shell-specific (bash/zsh/fish), whereas env vars aren't
<betaboon>
infinisil: thanks
<infinisil>
betaboon: Which is why direnv and lorri too i believe use env vars only
<betaboon>
infinisil: so i guess best course of action would be: define it in script, export that to path ?
ottidmes_ has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
<infinisil>
Yeah that sounds good
<betaboon>
might try that then :)
iyzsong has joined #nixos
luc65r has joined #nixos
jb55 has quit [Ping timeout: 240 seconds]
ottidmes has joined #nixos
CptCaptain has joined #nixos
jb55 has joined #nixos
luc65r has quit [Client Quit]
luc65r has joined #nixos
<{^_^}>
[nixpkgs] @megheaiulian opened pull request #85218 → tig: fix tig-completion's dependency on __git_complete → https://git.io/Jfe24
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
arjen-jonathan has quit [Ping timeout: 246 seconds]
glowpelt has quit [Max SendQ exceeded]
glowpelt has joined #nixos
waleee-cl has joined #nixos
morgrimm has joined #nixos
teto has joined #nixos
ottidmes_ has joined #nixos
chagra_ has joined #nixos
<ottidmes_>
I am trying to setup ZNC, I think I have configured it properly, it runs on my server without reporting anything strange, and I have setup a nginx proxy to the ZNC server. When I connect though, I can see the properties of my SSL certificate, which are all in order, then I get: Connected. Now logging in. Disconnected (Remote host closed socket)
<{^_^}>
[nixpkgs] @emmanuelrosa opened pull request #85219 → electrum-personal-server: init at 0.2.0 → https://git.io/JfeaY
magnetophon has quit [Remote host closed the connection]
<virtusviri7321[m>
Have I done a fault why sddm isn't starting after NixOS install
KeiraT has joined #nixos
ottidmes has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
ottidmes has joined #nixos
ottidmes_ has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @rnhmjoj closed pull request #81013 → nixosTests.networking: disable virtual test with networkd → https://git.io/JvEbO
<virtusviri7321[m>
Sddm is enabled
invra has quit [Quit: WeeChat 2.3]
lord| has quit [Read error: Connection reset by peer]
<gchristensen>
ah thanks energizer
lord| has joined #nixos
leotaku has quit [Ping timeout: 264 seconds]
invra has joined #nixos
<ottidmes>
To answer my own question, which admittedly was hard to answer for others without extra info, if I do not put the proxy in front and let it use a self-signed cert, it works fine. So I think it comes down to not being able to proxy forward a SSL encrypted connection, because the ZNC service sets up SSL with a selfsigned cert by default.
magnetophon has joined #nixos
ornxka_ is now known as ornxka
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #84927 → ethminer: mark as broken → https://git.io/JvhOQ
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JfeVp
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @bhipple to release-20.03 « ethminer: mark as broken »: https://git.io/Jfewf
o1lo01ol1o has quit [Remote host closed the connection]
<immae>
Izorkin: is it a question? you may simplify it a bit, like `[ cfg.stateDir cfg.logDir ] ++ cfg.sandboxWriteDir` and it should have the exact same effect, no?
<infinisil>
To everybody seeking help here: If you want to get responses, formulate a good question, with as much info on the problem as possible. This includes errors, logs, what commands you used, what things you tried, what you expect it to do, etc.
<evertedsphere>
so i've successfully made a share to my lxcontainer but my host (non-root) user, who is in the lxd group, can't write to it
<qyliss>
ottidmes: where did you find that old gist of mine, btw?
<niso>
is it possible to "merge" the deployed configuration (via nixops) with a local /etc/nixos/configuration?
<qyliss>
(the ZNC behind nginx one)
<evertedsphere>
it seems it's owned by 1001:dialout, should i add myself to the dialout group so i can write to it...?
<ottidmes>
qyliss++ Have to thank you to, used quite a bit of your config too
<{^_^}>
qyliss's karma got increased to 49
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #83808 → cairo: pass --disable-xlib to config if no x11 → https://git.io/Jv7x6
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to staging: https://git.io/Jfeog
vidbina_ has quit [Ping timeout: 264 seconds]
<ottidmes>
qyliss: somewhere in 2018 you gave it XD had it stowed away in my TODO somewhere, and when someone said, ow I thought you had ZNC, I thought... right, was supposed to set that up, so I looked up my notes on it again
dermetfan1 has quit [Ping timeout: 265 seconds]
<niso>
also: assuming a nixpkgs package was refactored from nixpkgs.foo to nixpkgs.foo.server and nixpkgs.foo.client, is it prefered to be pushed like that (breaking backwards compatibility) or should it be rewritten to nixpkgs.foo-client and nixpkgs.foo-server?
gustavderdrache has joined #nixos
<qyliss>
oh wow
clever_ has quit [Changing host]
clever_ has joined #nixos
clever_ is now known as clever
<niso>
(note dhat foo-server and foo-client only differ in a couple of build flags)
<niso>
*that
<ottidmes>
qyliss: I tried your setup BTW, but it seems to fail for me, causing immediately disconnect from socket, which I think is caused by it using a self-signed SSL cert by default (guess you can configure it to not do that and it might work), not sure how you make it work, but I might not have all your config
<evertedsphere>
so how do i manage perms on an lxc share between a host non-root user and a user in the container?
<ottidmes>
jeromelanteri: Might I suggest putting it in Markdown/HTML, that will make it more accessible for most. Other than that I would suggest linking to the official docs and manpages where possible, but it is nice to have an index, e.g. some of the programs are hidden away in the docs or only mentioned in release notes, so its nice to have a list of them
arjen-jonathan has quit [Ping timeout: 240 seconds]
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
nschoe has quit [Ping timeout: 256 seconds]
<ZoomZoomZoom>
Ok, I'm not sure how I can reforulate my question to be smart, but I can try. If I've successfully set security.pam.loginLimits for my user, and the limit in qustion (checked by `ulimit -l`) shows "unlimited", why does the service (Syncthing) failing with "mlock of signal stack failed: 12", even though it was set up to be run as the same user?
<ZoomZoomZoom>
Launching Syncthing directly with the same config works, but Systemd service fails
CMCDragonkai1 has quit [Ping timeout: 265 seconds]
<jeromelanteri>
ottidmes, yes, correct. The first iudea is to not write something wrong, and to increase the "first concept to learn and to manage". And then, to next make in form. Content first...
<simpson>
ottidmes: Use your Web browser's network debugger, or curl's -v flags, to get more information and confirm that those are the only ones.
<immae>
ottidmes: do you have a fallback vhost in nginx non-ssl that redirects to https://wordpress.example.com maybe? (the equivalent in apache is "the first vhost matching will be taken", I don’t know how it is in nginx)
reallymemorable has quit [Quit: reallymemorable]
Ariakenom has joined #nixos
<niso>
where can i find the machine declaration of a machine which was set up with nixops?
cvlad- has quit [Ping timeout: 240 seconds]
christiaanb has quit [Ping timeout: 240 seconds]
blackriversoftwa has quit [Ping timeout: 240 seconds]
ocharles has quit [Ping timeout: 240 seconds]
Shados_ has joined #nixos
sorear has quit [Ping timeout: 240 seconds]
etrepum has quit [Ping timeout: 240 seconds]
jeregrine has quit [Ping timeout: 240 seconds]
dermetfan1 has joined #nixos
ocharles has joined #nixos
jeregrine has joined #nixos
blackriversoftwa has joined #nixos
christiaanb has joined #nixos
etrepum has joined #nixos
Shados has quit [Read error: Connection reset by peer]
<ottidmes>
Makes me happy that it is just a Location header, cause I got rather paranoid with using 301 redirects after making a mistake once causing a client not being able to access their website and having tons of trouble getting it to work again
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/JfeiJ
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #85140 → jellyfin: 10.5.3 -> 10.5.4, add link to nixos test → https://git.io/JvjMS
<nobrak>
Hey folks, curious the best way to go about installing this: https://github.com/sbstp/kubie. They have a binary that could be downloaded from their releases, and also is a rust package that can be built with cargo. But unfamiliar there as well. So looking to see what's the best option for getting this in my nixos config via home manager
lordcirth has joined #nixos
johnjay has joined #nixos
turion has joined #nixos
zaeph1 has joined #nixos
<ottidmes>
nobrak: You will still have to patch the binary for it to work, which might be just as much work as getting the from source build to work in this case, and besides, if you want to make it available to nixpkgs, it will have to be from source anyways
jgeerds_ has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixos-homepage] @edolstra pushed to master « linux -> Linux »: https://git.io/Jfe1E
zaeph has quit [Ping timeout: 264 seconds]
aveltras has joined #nixos
shabius has quit [Quit: Leaving]
nschoe has quit [Ping timeout: 240 seconds]
justanotheruser has quit [Ping timeout: 246 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<wip_>
hi, im trying to build syslog-ng with --enable-java-modules. this seems to require gradle and log4j-1.2.16. it seems i got log4j to build but im unable to get gradle to find it. instead it tries to download it from the sandbox, which fails. what am i missing here? http://dpaste.com/03WSYXK
rardiol has joined #nixos
shabius has joined #nixos
o1lo01ol1o has joined #nixos
pamplemousse has joined #nixos
erasmas has joined #nixos
Naptra has quit [Remote host closed the connection]
LysergicDreams has quit [Ping timeout: 256 seconds]
<{^_^}>
[nix] @edolstra pushed to flakes « Make Registry::read() more robust »: https://git.io/JfeMt
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<teto>
so running vim/update.py script now autocommits ?
<teto>
heresy !!
LysergicDreams has joined #nixos
rauno has quit [Remote host closed the connection]
noudle has joined #nixos
chloekek has joined #nixos
zaeph1 is now known as zaeph
justanotheruser has joined #nixos
growpotkin has joined #nixos
cole-h has joined #nixos
zustalo has joined #nixos
Shados_ has quit [Quit: Shados_]
Shados has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zustalo>
how to properly check if attribute is set?
<zustalo>
when I'm doing if myattrive.bla.bla then else;
<zustalo>
I get "error attribute missing" when it is not set
<zustalo>
but works fine when it is set to false/true
<srk>
> builtins.hasAttr
<{^_^}>
<PRIMOP>
<adisbladis>
> builtins.hasAttr "x" {x=1;}
<{^_^}>
true
drakonis_ has joined #nixos
zupo has joined #nixos
<b42>
> { x = 1; } ? x
<{^_^}>
true
<ikwildrpepper>
zustalo: you can also use this, in case you have some idea of default value: myattrive.bla.bla or "default-value"
<zustalo>
but how do I get a query that if HAS attr and is true?
<adisbladis>
b42: That actually has one advantage. It works on deeper structures.
<adisbladis>
> { x = {y=1;}; } ? x.y
<{^_^}>
true
<zustalo>
yes, it's true / false;
drakonis has quit [Ping timeout: 256 seconds]
<zustalo>
I have value config.myapp.use-nginx = true;
drakonis has joined #nixos
<zustalo>
but I don't have to set it
<b42>
adisbladis: TIL
<ikwildrpepper>
zustalo: you could do: config.myapp.use-nginx or false
<zustalo>
but when I do that, I get "use-nginx" attribute is missing
<zustalo>
when doing "if then else"
drakonis1 has joined #nixos
foomanchoo has joined #nixos
chloekek has quit [Quit: WeeChat 2.7]
zupo has quit [Ping timeout: 250 seconds]
<zustalo>
ah wait
<zustalo>
it now says undefined variable
nobrak` has joined #nixos
captjakk has quit [Read error: Connection reset by peer]
captjakk has joined #nixos
<zustalo>
sorry, I think I'm doing something wrong so to summary: I have config.myapp.use-nginx and I somethings set it as true, but often it is not even defined
<zustalo>
and I want to if on it
<zustalo>
myflag = if config.myapp.use-nginx then "bla" else "boo" ;
<jluttine>
I'm running `startx /run/current-system/sw/bin/i3` from a tty while display-manager is stopped. My computer just freezes. Black screen, mouse cursor in the middle but nothing works. Not Ctrl+Alt+F1 nor any number, not mouse, nothing. Just completely black and frozen. Any ideas how I could start i3 from tty?
drakonis2 has joined #nixos
drakonis_ has quit [Ping timeout: 272 seconds]
jgeerds_ has joined #nixos
captjakk has quit [Remote host closed the connection]
nobrak has quit [Ping timeout: 256 seconds]
<foomanchoo>
Im a bit of a nix noob, so please forgive my ignorance. I have a dev environment that is working great using `nix-shell`. Im on OSX, and I want to enable some services via `launchd`. I was hoping to utilize nix-darwin's launchd module. I was trying something like `import <darwin/modules/launchd> { inherit config lib pkgs;};` but it wasn't working
<foomanchoo>
as expected. Am I importing that incorrectly?
<jluttine>
Hmm.. actkbd key bindings still work, so it's not completely dead.
drakonis1 has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
drakonis has quit [Ping timeout: 256 seconds]
nobrak`` has joined #nixos
<niso>
zustalo: maybe you could use mkIf?
<zustalo>
oh I don't know that one
captjakk has joined #nixos
o1lo01ol1o has joined #nixos
drakonis2 has quit [Read error: Connection reset by peer]
drakonis_ has quit [Read error: Connection reset by peer]
nobrak` has quit [Ping timeout: 256 seconds]
<zustalo>
niso: how can I do else with it?
drakonis_ has joined #nixos
cfricke has quit [Ping timeout: 256 seconds]
<niso>
zustalo: oh, you wouldn't use else with it - but use-nginx sounded like you wanted infact a boolean?
<zustalo>
yes
<zustalo>
but I need else too
LysergicDreams has quit [Ping timeout: 258 seconds]
<zustalo>
I need to use something or something else if that is set
<niso>
zustalo: and why not the standard nix if-then-else?
<qy[m]1>
is there a way to get the date of a git commit from a fetched repo
<zustalo>
because that variable is not defined all the time
<zustalo>
and when I try to if it and is not defied it says it is not a variable
<niso>
zustalo: and why not set a default value? e.g. null?
<evanjs>
It looks like it is in tree, but the configuration looks like it could benefit from some configuration abstraction, etc
turion has quit [Quit: Leaving.]
<foomanchoo>
I love rclone, and I agree, would be an awesome module.
<zustalo>
niso: because people are using it as import an I don't have control over it
<zustalo>
so I'm not sure if people are using it or not
<zustalo>
but I want people be able to just set it to true if needed
<zustalo>
or if there a way to set a value to a variable if it is not set?
foomanchoo has quit [Remote host closed the connection]
<zustalo>
like, if this variable doens't exist set it to false?
<niso>
zustalo: like {arg1 ? null}: ?
thibm has joined #nixos
LysergicDreams has joined #nixos
<ottidmes>
zustalo: I see you use config.myapp.use-nginx, so I assume its an option rather than an argument, in that case you just set default = false; in the mkOption, or you could assign it mkDefault false in your config
<zustalo>
ottidmes: it is not a service sadly
o1lo01ol1o has quit [Remote host closed the connection]
<zustalo>
people are settings that int hei own config.nix files
<zustalo>
and that is used as a function, not as a module
<ottidmes>
Well then it is like niso said
<zustalo>
niso: I think that is how I want it, but how do I set it?
<zustalo>
in nixpkgs I see it setting on the first line, but that is not my case
ddellacosta has joined #nixos
<ottidmes>
zustalo: ah, you pass it as a whole and just want this one thing to have a default? If so, you could just do: { arg = false; } // args
knupfer has quit [Quit: knupfer]
knupfer1 has joined #nixos
jakobrs has joined #nixos
<{^_^}>
[nixpkgs] @romildo opened pull request #85233 → humanity-icon-theme: init at 0.6.15 → https://git.io/JfeDF
<jakobrs>
Is there any simple command to list all available vc fonts?
<jakobrs>
The "simplest" I've got is
<jakobrs>
ls $(nix-store -qR /run/current-system | grep console-env)/share/consolefonts
<jakobrs>
but that feels very unidiomatic.
<niso>
zustalo: what ottidmes said - i mostly merge the userinput with a default set
knupfer1 is now known as knupfer
zupo has joined #nixos
bahamas has quit [Quit: leaving]
<jakobrs>
The problem is that `consoleEnv` is only used inside of nixos/modules/config/console.nix and isn't available outside of it.
captjakk has joined #nixos
<{^_^}>
[nixpkgs] @vbgl pushed commit from @sternenseemann to master « mirage-crypto{,-rng,-pk}: init at 0.6.2 »: https://git.io/Jfeyq
jjakob has quit [Quit: No Ping reply in 180 seconds.]
chagra_ has quit [Ping timeout: 256 seconds]
dansho has joined #nixos
<ottidmes>
infinisil: I seem to be marked as unregistered with my ZNC setup, so I am guessing I am not properly authenticating at freenode, do you do this? https://wiki.znc.in/Sasl
jjakob has joined #nixos
<infinisil>
ottidmes: Oh yeah, that's one thing the znc module doesn't do yet
o1lo01ol1o has joined #nixos
<infinisil>
I think I manually configure the sasl module
nobrak`` has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @vbgl pushed commit from @sternenseemann to master « ocamlPackages.mirage-clock-unix: init at 3.0.1 »: https://git.io/Jfeyn
<ottidmes>
infinisil: I don't see anything mentioned about it on the wiki other than that SASL page, guess I will just try that manually as well
arjen-jonathan has quit [Ping timeout: 246 seconds]
<ottidmes>
https://nixos.wiki/wiki/ZNC I see it now at the end under Networks, either nickserv or use *sasl like you mention, thanks :)
KeiraT has quit [Remote host closed the connection]
jakobrs has left #nixos ["WeeChat 2.8"]
<Ericson2314>
globin woo!!
KeiraT has joined #nixos
gulkbag has joined #nixos
<{^_^}>
[nixpkgs] @vbgl pushed commit from @sternenseemann to master « ocamlPackages.mirage-flow-unix/-combinators: init at 2.0.1 »: https://git.io/JfeyV
eoli3n__ has quit [Ping timeout: 256 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jb55 has quit [Remote host closed the connection]
nschoe has joined #nixos
<qy[m]1>
<niso "qy: check the git log?"> the problem is, nix strips that :p
<qy[m]1>
i'm wondering if nix keeps it somewhere, as part of the src derivation
<niso>
qy[m]1: oh, no idea, i lookup stuff like that on a local clone
<qy[m]1>
yeah, i want it as part of a derivation
<qy[m]1>
bleh
rardiol has quit [Ping timeout: 260 seconds]
<cole-h>
`leaveDotGit` maybe?
rardiol has joined #nixos
arjen-jonathan has joined #nixos
<qy[m]1>
well, i was trying to avoid that
<qy[m]1>
if that's the only solution i just won't bother
chloekek has joined #nixos
KeiraT has quit [Remote host closed the connection]
yuuki__ has joined #nixos
KeiraT has joined #nixos
chagra_ has joined #nixos
drakonis has joined #nixos
<{^_^}>
[nixpkgs] @raboof opened pull request #85234 → <!-- Nixpkgs has a lot of new incoming Pull Requests, but not enough people to review this constant stream. Even if you … → https://git.io/Jfeyj
<raboof>
cole-h: not the first time I made that mistake either :D
drakonis_ has quit [Ping timeout: 272 seconds]
<cole-h>
Hehe
jb55 has joined #nixos
zupo has joined #nixos
* infinisil
is thinking to remove that banner again, just because it's kind of annoying when you make a PR
<infinisil>
But then again I guess that's kind of the point :P
<raboof>
saving a commit without entering a commit message title will abort commiting, but saving a PR without entering a PR title (in the 'hub' cli tool) will just take the first non-empty line of the PR...
vidbina_ has joined #nixos
<cole-h>
Would be nice if hub did what the web interface does: take the commit title if only 1, or the branch name if more than 1 commit
<raboof>
infinisil: I think it's kinda nice. An improvement would be to make it more 'actionable', it's not *that* obvious how you can contribute usefully to the reviewing process as an 'outsider', the docs can be a bit overwhelming
<cole-h>
infinisil: Honestly, it wouldn't be that bad if GitHub just expanded the text box to its entire height immediately
<yuuki__>
Quick question about weird behavior with regards to neovim: plugins are installed just fine, except color schemes. None of them work. I've tried stable channel, unstable channel, I've tried everything from neovim 3xx to 4xx to the 0.5.0 which I'm usually on (new NixOS user).
<{^_^}>
[nixpkgs] @teto pushed commit from @marsam to master « gitAndTools.git-trim: 0.2.4 -> 0.3.1 »: https://git.io/JfeSu
rogue_koder has joined #nixos
zeta_0 has joined #nixos
<emilsp>
I presume this whole global pandemic thing will delay the release of 20.04 ? Is there a way to try using the 20.03 channel already in a way that would allow me to seamlessly upgrade to 20.03 when the time comes?
<gchristensen>
20.03 will be out quite soon :)
<emilsp>
yay! then I'll hold off for a bit. Really looking forward to the newer AMD drivers. Seemingly, my 5700xt doesn't work even with the newer kernels on 19.09.
<cole-h>
Might be our first 50th March release, but it'll happen
<zeta_0>
hey everyone, i got these 2 generic shell.nix's to work in a nix-shell, but for some reason ghcide is not recognizing the haskell pkgs/modules? https://dpaste.org/gkiShttps://dpaste.org/Bs9N
<ottidmes>
emilsp: Did you check out the various issues/topics on it, there are a bunch of NixOS'ers with that card, including me, and I have it working without issue
henry_ has joined #nixos
<emilsp>
ottidmes: I did, maybe I should verify that it actually works with a different OS. My screen just freezes after amdgpu is loaded
<zeta_0>
i'm able to go into a nix-shell without any errors, so i'm assuming that those environment variables are correct, so i have no idea what is wrong
<cole-h>
env vars won't cause errors unless the command being substituted errors
henry_ has quit [Ping timeout: 256 seconds]
cmacrae has quit [Quit: ERC (IRC client for Emacs 26.3)]
s1341 has quit [Quit: Connection closed for inactivity]
<ottidmes>
emilsp: I think your motherboard and the PCIE version support for it matter quite a bit. I heard people with recent AMD CPUs having more troubles, ironically enough, since their motherboards support version 4, which is rather recent
<tbenst[m]>
I'm trying to update to release-20.03 and getting a funky error: `Package ‘openssl-1.0.2u’ in /Computer/nixpkgs/pkgs/development/libraries/openssl/default.nix:132 is marked as insecure, refusing to evaluate.` Stacktrace indicates that vscode is at fault, but I can't any use of openssl in any of the vscode/extension derivations. Any idea where this might come from?
<zeta_0>
cole-h: so then, why do you think ghcide is not recognizing my haskell pkgs/modules ?
<ottidmes>
tbenst[m]: All cases I have seen were mongodb using the old version
<cole-h>
¯\_(ツ)_/¯
<zeta_0>
that's a bummer
<tbenst[m]>
ottidmes: hm, thanks, I don't have mongodb explicitly installed but seems like it's used all over my nix store...
drakonis1 has joined #nixos
<ottidmes>
tbenst[m]: easy way to figure it out is: nix-store --query --tree /run/current-system, and then /openssl-1.0.2u (i.e. search for openssl-1.0.2u)
snicket has quit [Remote host closed the connection]
<ottidmes>
or rather than /run/current-system the drv of the build
snicket has joined #nixos
rogue_koder has quit [Ping timeout: 264 seconds]
<ottidmes>
tbenst[m]: nix-store --query --tree $(nix-instantiate '<nixpkgs/nixos>' -A system)
o1lo01ol1o has joined #nixos
oida has quit [Remote host closed the connection]
oida has joined #nixos
zustalo has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
rogue_koder has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
vidbina_ has quit [Ping timeout: 260 seconds]
<sphalerite>
ottidmes: since that error prevents evaluation, there won't be any drv to get info about
knupfer has quit [Ping timeout: 256 seconds]
linarcx has joined #nixos
<tbenst[m]>
ottidmes: know how I do that for a local nixpkgs (`/Computer/nixpkgs`)? Looked at man page & manual but couldn't figure out the equivalent of `-I nixpkgs=.`
kleisli_ has joined #nixos
<linarcx>
Guys, why this package doesn't exists in repo? `gtk3-widget-factory`
<sphalerite>
tbenst[m]: it won't work for the reason above
<sphalerite>
tbenst[m]: but it's odd, if I try to evaluate vscode from the current nixos-20.03 beta it works
<sphalerite>
tbenst[m]: are you sure you're using the right nixpkgs version for whatever is giving youthis error?
drakonis is now known as drakonis_
drakonis1 is now known as drakonis
<tbenst[m]>
sphalerite: I checked out `release-20.03` branch of NixOS/nixpkgs
<sphalerite>
tbenst[m]: have you pulled?
arstneio has joined #nixos
<ottidmes>
sphalerite: you are completely right, but that should be easy enough to fix, I think, let me check, also the fact that the warning is produced seems to indicate that 20.03 is indeed correctly pulled
<ottidmes>
tbenst[m]: how do you install vscode, do you get it from a unstable branch perhaps like I have?
<tbenst[m]>
ottidmes: I have it installed through home-manager
<tbenst[m]>
sphalerite: yes, recent commit. Going to try commenting out extensions...
<sphalerite>
tbenst[m]: then your home-manager probably isn't using the right nixpkgs
<sphalerite>
tbenst[m]: `nix-env -f /Computer/nixpkgs -iA vscode` will probably work
<tbenst[m]>
sphalerite: no, fails with same error
arstneio has quit [Remote host closed the connection]
<sphalerite>
\:| what about `nix eval -f /Computer/nixpkgs lib.version`?
<tbenst[m]>
ottidmes: executes but pattern not found for openssl-1.0.2u
<tbenst[m]>
but I don't think that's executing my release-20.03 branch
<ottidmes>
tbenst[m]: then you have definite answer that its not in your NixOS system, but in HM, assuming you run HM outside of your NixOS system
<sphalerite>
tbenst[m]: I'm very confused, on that exact commit I can evaluate vscode fine. Have you got any overlays or relevant config?
<tbenst[m]>
sphalerite: yes, have overlays, will try clobbering them..
<tbenst[m]>
sphalerite: setting `export NIX_PATH=nixpkgs-overlays=/var/empty:$NIX_PATH` allowed me to build vscode, nice catch! now to find the problem overlay...
<tbenst[m]>
doh!
<ottidmes>
tbenst[m]: to answer your question about a local nixpkgs, I assumed NIX_PATH already had nixpkgs point to that local nixpkgs, if not, -I should indeed work by adding it to the nix-instantiate call, but the most straightforward way would be to just replace <nixpkgs/nixos> for /my/nixpkgs/nixos
<tbenst[m]>
ottidmes: ah, thank you! makes sense. didin't realize <.../something> mapped to path directly
<tbenst[m]>
ottidmes: sphalerite: I'm an idiot. I had an overlay that explicitly added openssl_1_0_2 to vscode and missed it
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tbenst[m]>
:D
Darkmatter66_ has joined #nixos
vidbina_ has joined #nixos
Darkmatter66 has quit [Ping timeout: 250 seconds]
KeiraT has quit [Ping timeout: 240 seconds]
KeiraT has joined #nixos
drakonis has quit [Quit: WeeChat 2.8]
kaliumxyz has quit [Quit: leaving]
asheshambasta has quit [Ping timeout: 246 seconds]
linarcx has quit [Ping timeout: 264 seconds]
<__monty__>
When systemctl asks for authentication it always offers to identify as root or my user, is there a way to have it default to identifying with my user?
drakonis has joined #nixos
cfricke has joined #nixos
<{^_^}>
[nixos-homepage] @edolstra pushed to remove-azure « Also remove GCE images »: https://git.io/JfeH7
cjpbirkbeck has joined #nixos
ottidmes has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
ottidmes has joined #nixos
nixandemacs has quit [Ping timeout: 240 seconds]
<rnhmjoj>
monty: i believe that problem has been fixed starting with nixos 20.03. from now on it should directly ask your password because root is no longer in the admin group (or whatever it's called) of polkit
o1lo01ol1o has joined #nixos
<rnhmjoj>
__monty__: ^
<{^_^}>
[nixpkgs] @ryantm opened pull request #85238 → pythonPackages.linode-cli: init at 2.14.1 → https://git.io/JfeQt
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
rogue_koder_ has joined #nixos
rogue_koder has quit [Remote host closed the connection]
<__monty__>
rnhmjoj: Ah, thanks.
Ariakenom has quit [Quit: WeeChat 2.7]
<{^_^}>
[nixpkgs] @nomeata opened pull request #85239 → wasmtime: Do not prefix version with `v` → https://git.io/JfeQV
knupfer has joined #nixos
ottidmes has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
laval[m] has joined #nixos
ottidmes has joined #nixos
knupfer has quit [Client Quit]
knupfer1 has joined #nixos
<ottidmes>
infinisil: BTW I tried using nickserv, just to see whether it would work, did it exactly like the wiki, but it did not work for me, I was still unregistered. After a nice chat with *sasl its working fine though, which I should be using anyway.
rogue_koder_ has quit [Ping timeout: 250 seconds]
<infinisil>
Not sure how using nickserv would work for that. Some action by the IRC client is required to send the password somehow
knupfer1 is now known as knupfer
rogue_koder_ has joined #nixos
nopsled has joined #nixos
zeenk has quit [Quit: Konversation terminated!]
<nopsled>
hello; im trying to run aqemu, but i keep getting the following error:
<nopsled>
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
<nopsled>
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
<nopsled>
There is no nixos option to enable aqemu
<nopsled>
and I couldn't find any xcb plugin for qt5 in the nixpkgs repository
o1lo01ol1o has quit [Remote host closed the connection]
linarcx has joined #nixos
<dsal>
I don't quite understand the nix config language. I'm cargo-culting pretty heavily. `with pkgs; [ x ]` seems to be the equivalent of `[ pkgs.x ]` is this right?
<infinisil>
dsal: Yup!
<infinisil>
Well
<dsal>
The semicolon is a bit distracting.
<infinisil>
Actually it depends on context
<infinisil>
But yeah for simplicity, those are the same usually
risson has joined #nixos
<nopsled>
"with" just implicity prefixes everything in the [] with the parameter (in this case "pkgs"), right?
<infinisil>
nopsled: Nah
<infinisil>
with adds its argument to the scope of the expression after it
<infinisil>
So `with { x = 10; }; x` works too and evaluates to just `10`
<nopsled>
whats an example of something where "with a; [ b ]" is != to "[ a.b ]"
<thefloweringash>
> let b = “hi”; a = {}; in with a; [ b ]
<{^_^}>
error: syntax error, unexpected $undefined, at (string):296:9
<{^_^}>
[nixpkgs] @Lassulus pushed commit from @danielfullmer to master « hcxdumptool: init at 6.0.5 »: https://git.io/Jfe5v
<nopsled>
b42: i keep getting "error: cannot auto-call a function that has an argument without a default value ('mkDerivation')"
<nopsled>
b42: i just made a default.nix in an empty directory and am running nix-build in there
<clever>
,callPackage nopsled
<{^_^}>
nopsled: If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
shibboleth has joined #nixos
<nopsled>
ok
<b42>
well, nix-build -E '(import <nixpkgs> {}).libsForQt5.callPackage ./default.nix {}' in this case
zupo has joined #nixos
<infinisil>
nopsled: Although you most likely want to use `nix-build -A aqemu` in the nixpkgs root
<infinisil>
Or whatever you're building
<nopsled>
what does -A do? it built successfully with the previous suggestion
marsh has quit [Ping timeout: 265 seconds]
<infinisil>
The nix-build thing there uses <nixpkgs>, which is not deterministic, can vary from user to user
<infinisil>
If you use `nix-build -A <attribute>` in nixpkgs it uses the nixpkgs you're currently in
rogue_koder_ has joined #nixos
<b42>
nopsled: if you want a throwaway shell and don't mind dependencies from unstable then try nix-shell -I nixpkgs=https://github.com/mmilata/nixpkgs/archive/qt5-mkDerivation-stdenv.tar.gz -p aqemu
<lovesegfault>
Still amazed by how bad systemd-resolved is compared to unbound
<lovesegfault>
since switching yesterday my DNS just... works?
orivej has joined #nixos
dkibi has quit [Quit: leaving]
<sshow>
unbound is awesome, indeed
dkibi has joined #nixos
OrangeTetra has joined #nixos
<infinisil>
,callPackage = If you're updating a package file in nixpkgs that starts with something like `{ stdenv, cmake }:`, use `nix-build -A the-package-attribute` in the nixpkgs root with the corresponding package attribute to build it. The mapping from package attributes to package files is in pkgs/top-level/all-packages.nix
<{^_^}>
callpackage redefined, was defined as If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<energizer>
how do i nixos rollback to a specific generation?
<infinisil>
There, fixed ,callPackage to reflect what most people should do instead
marsh has joined #nixos
rogue_koder_ has quit [Ping timeout: 256 seconds]
gentauro has quit [Read error: Connection reset by peer]
<infinisil>
energizer: Is there something specific about rollbacks you want to know more about? Or the general process?
j4m3s2 has quit [Quit: WeeChat 2.5]
gentauro has joined #nixos
<energizer>
infinisil: nixos-rebuild switch --rollback doesnt take an argument, so i have to do it n times to get back to a generation from last week
<clever>
energizer: you can use `nix-env --profile ... --rollback` instead
<clever>
infinisil: and then you can manually run the switch, `/nix/var/nix/profiles/system/bin/switch-to-configuration switch`
<infinisil>
Yup yup
<infinisil>
energizer: ^
romildo has joined #nixos
<clever>
you can also skip the rollback/switch-generation step if you want
<clever>
and just run the switch-to-configuration from the right generation
<thequux[m]>
Can I reasonably assume that, on all platforms that Nix supports, static libraries end with `.a`, or do we think that we might at some point want to support mingw?
<clever>
thequux[m]: i think it always ends in .a, since its just an ar(chive) of .o files
<nopsled>
would a rollback delete the generation you rolled from?
<clever>
nopsled: nope
<cole-h>
clever: Is there a downside if you skip the rollback and just switch-to-configuration?
<thequux[m]>
infinisil: Ah, perfect. Thanks!
<clever>
energizer: the rollback just changes what nixos-rebuild and the bootloader stuff thinks is "current"
<{^_^}>
[nixpkgs] @LnL7 opened pull request #85241 → Show option → https://git.io/Jfe5b
<energizer>
clever: whereas switch
oranginal has joined #nixos
<cole-h>
clever: Ah, so if you just switch-to-configuration, it only takes effect for the current boot, while --rollback + switch-to-configuration would switch current boot and all subsequent boots?
<clever>
cole-h: i think the "switch" arg you pass to it, will also update the bootloader, and make it the default, not entirely sure
OrangeTetra has quit [Ping timeout: 256 seconds]
<pie_[bnc]>
recurring question: anyone know how to get GL/gl.h ?
<clever>
behind the scenes, nixos-rebuild will run switch-to-configuration (switch|test|boot)
<clever>
,locate GL/gl.h
<{^_^}>
Found in packages: ogre, root5, nxproxy, ogre1_9, ogre1_10, emscripten, mesa_noglu.dev, libGLU_combined, driversi686Linux.mesa.dev
<clever>
pie_[bnc]: probably mesa_noglu?
<pie_[bnc]>
i looked at that??? *looks again*
<pie_[bnc]>
oh no i looked at libGLU_combined. man what is my brain doing
<pie_[bnc]>
also that lidint list libglvnd
<pie_[bnc]>
weird
<pie_[bnc]>
is there a limit to the number of results?
<cole-h>
What's the difference between mesa and mesa_noglu?
<pie_[bnc]>
infinisil: might want to indicate that there are additional results for ,locate if they get cut off
<energizer>
my display manager provides a list of sessions (or something) that can be started, and iirc xterm used to be in my list but it is now gone, and now i can't log in graphically. i'm trying to remember what setting caused xterm to appear in that list. any ideas?
<infinisil>
pie_[bnc]: It does
<clever>
cole-h: i think noglu lacks the userland libraries for driving a lot of open-source drivers
<infinisil>
,locate cc
<clever>
cole-h: but it still has enough headers to link to libGL at runtime
<energizer>
on my system atm, sddm's session list is *empty* and lightdm only offers "Other", but neither lets me actually log in. i can't find the logs of either one
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #85246 → python.pkgs.grpcio: use system openssl, zlib, and c-ares → https://git.io/JfeFD
justanotheruser has quit [Ping timeout: 250 seconds]
justanotheruser has joined #nixos
<dsal>
I don't quite understand why including zlib as a package in my stack.yaml is required to build successfully.
<dsal>
Maybe I've not tested this well enough lately. I'm confused by a couple things around my build processes currently. I know how to make them work, but I don't completely understand why.
<DamienCassou>
I've added a few Emacs packages to my Emacs configuration using emacsWithPackages. My `load-path` contains the packages, that's good. But how do I make Emacs to load the autoload file of each package?
ntqz has joined #nixos
<energizer>
DamienCassou: you can do (require 'foo) or use use-package
<virus_dave>
heyas folks! qq: I'd like to chown a mounted filesystem automatically. Tried doing this via activationScripts and userActivationScripts, but both run before the mount step apparentlty. Mount type is nfs4, which doesn't support the uid= and gid= options. What's the canonical way to do this (chown foo /mnt) correctly after it's been mounted?
abathur has joined #nixos
<clever>
virus_dave: when you mount nfs, it will inherit the uid/gid of the dir, on the remote end
<clever>
virus_dave: so if you chown it once, it should persist
<DamienCassou>
energizer: using autoload.el means to defer requiring the packages until first use, so I explicitely don't want to use `require`. `use-package` doesn't do anything with the autoload files provided by the packages
<virus_dave>
@clever ya ok, but what's the correct way to do it that one time? "just SSH into the machine and do it by hand" is what i want to avoid
ntqz has quit [Client Quit]
<dsal>
Is there magic in nix.packages [zlib] in stack.yaml that you don't get from installing zlib? Or is the magic just in enabling nix support in stack?
<dsal>
(otherwise, zlib.h isn't found)
ntqz has joined #nixos
<clever>
virus_dave: a systemd service that depends on the fs being mounted, i guess
<clever>
dsal: installing zlib wont put zlib.h into gcc's search path
<clever>
,libraries dsal
<{^_^}>
dsal: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<clever>
dsal: you must tell stack to add zlib to the requirements in nix-shell
<dsal>
Is there a thing that will? I don't see myself writing anything with zlib in c directly, but I don't quite understand the nodel.
danielrf[m] has quit [Quit: authenticating]
ntqz has quit [Client Quit]
danielrf[m] has joined #nixos
<symphorien>
how can I get a nix repl with the evaluation of configuration.nix ?
<gchristensen>
clever: lgtm, I'm going to leave it up to niksnut, though, to do a final pass :) there are some tricky things in the evaluator around blowing up the stack
<gchristensen>
clever: ping me when the CI has turned all green?
<gchristensen>
oh oops some failures. fix those first =)
<clever>
manual failure
<clever>
gchristensen: a <nixpkgs> caused problems due to a lack of </nixpkgs>
Dagger2 has joined #nixos
<noonien>
i'm trying to run `designer` from qt5.qttools, i'm getting this error: `qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""`
<noonien>
is this a packaging error? or am i doing something wrong?
<noonien>
i got qttools from running nix-shell -p qt5.qttools
<gchristensen>
clever: lol
<clever>
gchristensen: i believe <nixpkgs> will fix it
<gchristensen>
yeah
linarcx has quit [Ping timeout: 256 seconds]
<Neo-->
is it possible to patch LD_LIBRARY_PATH on-the-fly or do I need to recompile the package? One of node modules needs libuuid and if I do overrideAttr and wrap it up it works, but it's kind of messy :/
<{^_^}>
[nixpkgs] @grahamc opened pull request #85247 → Maintainer team → https://git.io/JfeNm
nopsled has left #nixos [#nixos]
OrangeTetra has joined #nixos
<clever>
gchristensen: CI is green!
oranginal has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #83362 → nixos/boinc: simplify setup of boinc service → https://git.io/JvS2h
<{^_^}>
[nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/JfeN6
oranginal has joined #nixos
<energizer>
`nixos-option nix` says " nixos-config was not found in the nix search path, add it using -I or NIX_PATH" and aborts. it works if i pass -I nixos-config=/path/to/my/config but i dont think thats normal. how am i supposed to do this?
<infinisil>
energizer: Normally NIX_PATH should include a value for nixos-config by default already
<infinisil>
Did you perhaps assign nix.nixPath manually in configuration.nix and not add such an entry?
<ornxka>
energizer: oh hey i had that problem
<ornxka>
i ended up just passing -I nixos-config=blahblah in the end but i also have nix.nixPath set somewhere
<energizer>
infinisil: i dont see nix.nixPath anywhere in my config
OrangeTetra has quit [Ping timeout: 250 seconds]
<infinisil>
energizer: What's `nix-instantiate --eval --strict '<nixpkgs/nixos>' -A config.nix.nixPath`?
seku has quit [Quit: Connection closed]
<energizer>
infinisil: file nixos-config was not found in the nix search path ...
<infinisil>
Oh
<infinisil>
Heh
pamplemousse has joined #nixos
<infinisil>
Add -I nixos-config=/path/to/my/config to that command too
<{^_^}>
[nixpkgs] @primeos pushed to master « lf: Install the shell completions »: https://git.io/JfeA0
<thibm>
cole-h: I think to other reviewer on #84853 has not been active on nixpkgs since 2018 (and never responded to several mentions in the last year), but he has been assigned to review it. I'm not sure if we need to bother
<energizer>
infinisil: yes, i had an old NIX_PATH assignment in .zprofile. removing that restored nixos-option functionality
<energizer>
infinisil: thanksk
<energizer>
infinisil: thanks
<infinisil>
Phew
AmandaC has quit [Ping timeout: 240 seconds]
ATuin has quit [Quit: WeeChat 2.7.1]
oranginal has joined #nixos
freeman42x has quit [Quit: Leaving]
<energizer>
is there a way to check configuration values that are set, distinct from the ones that would be set if i rebuilt right now?
<energizer>
(which of those does nixos-option do?)
<infinisil>
Nope
<infinisil>
Once a configuration.nix is turned into a derivation/build, there's no way to get back to the expression
freeman42x has joined #nixos
linarcx has joined #nixos
<infinisil>
Though you can inspect what was generated from the expressions and from that infer things about the expressions
hr[m] has joined #nixos
<infinisil>
Or you could track your configuration.nix in git
<{^_^}>
[nixos-hardware] @DamienCassou opened pull request #153 → Remove problematic options on t460s → https://git.io/Jfex5
<qy[m]1>
i keep the configuration tree as part of the system
<hr[m]>
I just submitted a PR for joplin desktop 1.0.179 -> 1.0.200, if some others on Linux could test building and execution that would be very helpful. https://github.com/NixOS/nixpkgs/pull/85248
luc65r has quit [Read error: Connection reset by peer]
rardiol has quit [Ping timeout: 265 seconds]
rardiol has joined #nixos
morgrimm has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
<energizer>
oh! lib.attrsets.mapAttrs'
<mdash>
yeah it's mapattrs
<mdash>
heh right, haskell style names
maxdeviant has joined #nixos
epl692 has left #nixos ["The bravest thing I have is hope."]
erasmas has quit [Quit: leaving]
gustavderdrache has quit [Quit: Leaving.]
iceypoi has joined #nixos
<{^_^}>
[nixpkgs] @flokli opened pull request #85252 → nixosTests.flannel: port to python, unbreak → https://git.io/JfejI
<vika_nezrimaya>
Reading some of gchristensen's posts, I'm becoming interested in ZFS on NixOS. Currently I'm on LVM using a rotational storage media - unfortunately, I forgot to encrypt it which I would like to rectify in the future. (But I have some experience running NixOS of LUKS+LVM - it's fine) How does LUKS+ZFS compare to LUKS+LVM? Will ZFS work fine on a budget laptop in terms of performance? Is it memory-hungry if you don't use replication? And
<vika_nezrimaya>
most importantly... I see a lot of stuff about subvolumes and their relative independence from each other... Can they grow organically like folders on your hard drive or is their size fixed but expandable like an LVM partition? Can I make sure that, e.g. /home can take some free space from / if it needs to without resizing both ad-hoc?
nschoe has quit [Ping timeout: 256 seconds]
<vika_nezrimaya>
and yes I'm a ZFS noob so forgive me if some of those questions are better answered in some sort of documentation
<gchristensen>
vika_nezrimaya: s/if you don't use replication/if you don't use deduplication/
<iceypoi>
zfs does its own encryption
<gchristensen>
datasets grow independently yeah, but you can set limits or reservations
<vika_nezrimaya>
gchristensen: perfect :3
<vika_nezrimaya>
iceypoi: how does it compare to LUKS? is it more robust? is it somehow more secure or metadata-aware?
<iceypoi>
so i'd expect it to be a nice experience
<iceypoi>
and quite uniform with the rest of zfs tooling
<vika_nezrimaya>
If it doesn't use dm (LUKS does), then it also should be a little bit faster
aveltras has quit [Quit: Connection closed for inactivity]
<gchristensen>
ZFS' encryption leaks some metadata, like dataset names, and ZFS can work fine on top of LUKS (I do it that way, though mostly because I installed before encryption was stable)
<iceypoi>
i'm not 100% certain, but I'd guess they use their own implementation because it's cross-platform
<vika_nezrimaya>
dataset names? it's not like I name my dataset "super-secret-data-i-could-go-in-jail-for"
peelz has quit [Remote host closed the connection]
<vika_nezrimaya>
or "hack-this-first"
<iceypoi>
I love "hack-this-first" :D
peelz has joined #nixos
<vika_nezrimaya>
could be a nice way to end up in trouble on the US border though, I heard that they sometimes demand encryption keys from people when they see laptops encrypted
<vika_nezrimaya>
and that will definitely be a red flag :3
<iceypoi>
ya, technically you're not required to comply
<iceypoi>
but at the same time they can lock you up for 3 days or something without a reason
<vika_nezrimaya>
and I've heard stories of laptops being stolen on borders
<vika_nezrimaya>
presumably for "inspection"
<vika_nezrimaya>
that's off-topic tho
<iceypoi>
in general encryption is a good thing
<iceypoi>
but that doesn't mean you need to carry tons of data on it
<iceypoi>
you might keep data in the cloud, for instance
horek has quit [Quit: Leaving]
orivej has quit [Ping timeout: 256 seconds]
peelz has quit [Remote host closed the connection]
<iceypoi>
test - is this visible?
<vika_nezrimaya>
it is
peelz has joined #nixos
<iceypoi>
thx
<vika_nezrimaya>
iceypoi: about the cloud: I have a RasPi that could be useful as a personal cloud but I've downloaded a lot of videos on it and now its primary data storage is full
<vika_nezrimaya>
so I'll need a new hard drive for making a cloud but I'm broke rn
<qy[m]1>
i heard people do the thing where drives have a proper decryption key, and a duress key
<qy[m]1>
so when governments ask for a key, you can give them the harmless one
reallymemorable has quit [Quit: reallymemorable]
philr has joined #nixos
<{^_^}>
[nixpkgs] @primeos opened pull request #85253 → chromium: Build with VA-API but disable it by default → https://git.io/JfejA
peelz has quit [Remote host closed the connection]
peelz has joined #nixos
<vika_nezrimaya>
qy[m]1: yea but what if they suspect the existence of a second key? They would act the same way people act when confronted about deniability of existence of a god
<vika_nezrimaya>
which means you may still end up behind the bars
<thequux[m]>
\o/ My first nixpkgs PR! This means it's beer time.
<gchristensen>
thequux[m]: congratulations! :D
CptCaptain has quit [Quit: WeeChat 2.7.1]
leotaku has quit [Ping timeout: 250 seconds]
peelz has quit [Remote host closed the connection]
<steevveen>
Hi! I'm trying to mix C++ and Python, and I need access to the header Python.h . with locate I see that it is indeed in /nix/store/hash.....-python3-3.x.x/include/python3.7m/Python.h But even if I put python3Full in propagateBuildINputs and buildInputs, my $PATH only contains the bins in /nix/store/myhash....-python/bin . Any idea how to
<steevveen>
have the /include directory also ?
o1lo01ol1o has quit [Remote host closed the connection]
<symphorien>
include dirs don't go to $PATH but $NIX_CFLAGS_COMPILE
peelz has joined #nixos
henry_ has joined #nixos
<steevveen>
symphorien got it . thanks!
leotaku has joined #nixos
<thequux[m]>
The gcc wrapper should also automatically apply the necessary `-I` and `-L` flags for you, if you're building within nix.
<thequux[m]>
(it gets them from $NIX_CFLAGS_COMPILE etc)
__monty__ has quit [Quit: leaving]
peelz has quit [Remote host closed the connection]
peelz has joined #nixos
xO1 has quit [Ping timeout: 265 seconds]
henry__ has joined #nixos
<thequux[m]>
Is there any reference to what the automaticly-applied labels on github mean?
o1lo01ol1o has joined #nixos
morgrimm has joined #nixos
<gchristensen>
thequux[m]: is there a specific few which you're unclear on?
henry_ has quit [Ping timeout: 258 seconds]
<thequux[m]>
mostly I'm wondering what the numbers on rebuild-linux refer to
<thequux[m]>
My PR got tagged with rebuild-linux and rebuild-darwin, both with 11-100
<gchristensen>
that is the number of things which depend on the packages you changed
<gchristensen>
so if that merges, 11 to 100 packages will have to be rebuilt
<thequux[m]>
<100? I'm surprised; I changed boost, which I'd expect everything and their cow to use.
<MichaelRaskin>
There are many boost versions!
<gchristensen>
if you click the Details link next to ^.^! you'll see a list of things that will rebuild
<thequux[m]>
Fair; I only changed 1.70+
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen>
I should go ahead and change those to use the Checks tab, that'll be a lot more user friendly
<cole-h>
+100
o1lo01ol1o has quit [Ping timeout: 265 seconds]
<energizer>
i want to define a script with some nonalpha characters in the name. "Path names are alphanumeric and can include the symbols +-._?= and must not begin with a period. " what should I do?
<MichaelRaskin>
Could we just have editable comments?
<gchristensen>
MichaelRaskin: no, much harder
<MichaelRaskin>
Pity
<cole-h>
Editable comments, as in editing your comment doesn't make ofborg redo whatever you pinged it with?
<gchristensen>
cole-h: making ofborg edit a comment in place
<infinisil>
> lib.sanitizeDerivationName "this is an invalid name ]+[g{}]+}"
<{^_^}>
attribute 'sanitizeDerivationName' missing, at (string):296:1
<infinisil>
> lib.strings.sanitizeDerivationName "this is an invalid name ]+[g{}]+}"
<gchristensen>
cole-h: would you like to make that change? =)
<{^_^}>
attribute 'getFlake' missing, at (string):296:2
<{^_^}>
"this-is-an-invalid-name-+-g-+-"
<cole-h>
Oh. When does ofborg make comments? @_@
<gchristensen>
it doesn't
<gchristensen>
but it used to
<infinisil>
> lib.strings.sanitizeDerivationName "this is an invalid name ]+[g{}]+}" # <- energizer
<{^_^}>
"this-is-an-invalid-name-+-g-+-"
lsix has quit [Quit: WeeChat 2.7.1]
<gchristensen>
it used to leave hundreds and hundreds of comments
<cole-h>
Heh
<gchristensen>
you'd rebase and get 5 new comments
<gchristensen>
comments everywhere
<vika_nezrimaya>
looks like the cutie bot doesn't support flakes yet
<vika_nezrimaya>
sad
<infinisil>
Hmm I could update it to use a newer nix version
xkapastel has joined #nixos
<infinisil>
But it's running in read only mode + restricted eval anyways
<infinisil>
I don't think flakes could work in there
alexherbo25 has joined #nixos
<energizer>
infinisil: not sure how to use that. i want `pkgs.writeShellScriptBin ",hello" "echo hello world"`
<vika_nezrimaya>
infinisil: what is restricted eval?
<energizer>
infinisil: i want the script to actually be called ,hello not hello
<infinisil>
energizer: Ah, then I don't think you can use writeShellScriptBin directly (as of now anyways, I think that could be fixed)
alexherbo2 has quit [Ping timeout: 256 seconds]
alexherbo25 is now known as alexherbo2
<clever>
energizer: using writeText, you should be able to name the derivation hello, but the file $out/bin/,hello
henry_ has joined #nixos
magnetophon has quit [Ping timeout: 250 seconds]
henry__ has quit [Ping timeout: 256 seconds]
evanjs- has joined #nixos
alexherbo2 has quit [Remote host closed the connection]
evanjs has quit [Ping timeout: 265 seconds]
justanotheruser has quit [Ping timeout: 258 seconds]
<{^_^}>
[nixpkgs] @Infinisil opened pull request #85255 → trivial-builders: Sanitize derivation name → https://git.io/Jfvvq
<infinisil>
energizer: Just opened ^ to support file names that would be invalid as derivation names
<energizer>
pkgs.writeTextFile {name = "hello"; executable= true; text = "echo hello world"; destination = "$out/bin/,hello";}; it builds, but doesn't end up on my path for some reason
henry__ has joined #nixos
peelz_ has joined #nixos
henry_ has quit [Ping timeout: 256 seconds]
peelz has quit [Ping timeout: 264 seconds]
pbb has joined #nixos
domogled has joined #nixos
henry__ has quit [Ping timeout: 258 seconds]
<steevveen>
thequux[m] is there an equivalent of $NIX_CFLAGS_COMPILE that contains include dirs, but for libs *.so ?
<thequux[m]>
$NIX_LDFLAGS
justanotheruser has joined #nixos
<thequux[m]>
TBH, though, this should all be invisible to you. While I understand the pathological need to look behind the curtain and see how the rabbit ended up in the hat, the only reason I needed to find that out was to rule it out in the process of debugging something else.
<thequux[m]>
So what, precisely, are you trying to do?
<steevveen>
trying to compile code that include "Python.h" , I don't know the .so file to include
<steevveen>
not to include, to build with
<thequux[m]>
As a nix derivation, or from outside nix?
<thequux[m]>
This will set up the environment with all of the libraries involved in python3.7 available, along with make and the usual set of compilers
<energizer>
could someone repost {^_^}'s link about invalid derivation names
cosimone has quit [Quit: Quit.]
<energizer>
{^_^}: what did you just say
<thequux[m]>
Alternatively, you could write a simple derivation. Assuming your makefile has an install target, the derivation should be simple. I'll give you a basic one in just a second after I repaste the link for energizer
<thequux[m]>
energizer: Is this the link you're looking for? https://git.io/Jfvvq (that's the one to the pull request)
<{^_^}>
[nixpkgs] @jtojnar merged pull request #85239 → wasmtime: Do not prefix version with `v` → https://git.io/JfeQV
shibboleth has quit [Ping timeout: 240 seconds]
<steevveen>
thequux[m] thx, got to learn the nix way :-)
janneke has quit [Remote host closed the connection]
janneke has joined #nixos
asbachb has joined #nixos
<thequux[m]>
Your first bit of nix is the hardest part; once you understand that, everything else becomes simple.
<asbachb>
Somebody have setup a remote builder? I wonder if how the user setup look like.
pbogdan has quit [Ping timeout: 240 seconds]
<thequux[m]>
I did once, long, long ago, and I no longer have access to the config files on the build client (for exactly the same reason I now have nix on my workstation, in fact). However, I remember that it was reasonably well-documented on the wiki.
<energizer>
asbachb: the surprising thing for me was that you need to put ssh creds and config in /root/.ssh/ , your user's ~/.ssh/ won't work even if your user is trusted
<asbachb>
energizer: Does it mean you ssh with root into your host?
<asbachb>
or builder
matthuszagh has quit [Read error: Connection reset by peer]
<energizer>
asbachb: nix-daemon runs under root and it does ssh
matthuszagh has joined #nixos
<energizer>
i find this unintuitive, but it is how it is
<asbachb>
Yeah. But I wonder which user is used on builder site root too?
matthuszagh has left #nixos [#nixos]
<energizer>
i think that'll depend on your ssh config
<asbachb>
I'd try to prevent opening root access via ssh.
steevveen has quit [Remote host closed the connection]
<energizer>
it's a good question though. do people create a new remote user specifically for running builds?
<bqv>
oh, idiot. if i want to build mobile-nixos i have to have my system able to cross aarch64
<energizer>
you're gonna run nixos on a phone?
<asbachb>
Currently I've setup like asbachbh (host) -> ssh -> asbachbb (builder). The connection seems to be fine. But I'm getting `error: cannot add path '/nix/store/0panr3rq66h32ayxr1k02b6zym8npzkj-fstrcmp-0.7-man' because it lacks a valid signature`.
<asbachb>
My pinephone was rejected by customs -.-
<energizer>
bqv: it doesnt have android apps does it? my phone would be ill suited to running a desktop ui
<gchristensen>
I think samueldr hadtrouble with that too
<bqv>
it doesn't by default, but once it's stable enough, you could use anbox to run android apps
<bqv>
like ubuntu touch does
<bqv>
ubuntu touch worked quite nicely on my test phone
<asbachb>
gchristensen: I guess I ordered in november.
<bqv>
gchristensen: turns out it is enabled as a binfmt... have you seen this error before?:
<bqv>
error: path '/nix/store/g5yqbbd67bjl9rm3vh86i98ccqi516cx-extra-utils-oneplus-oneplus3-extra-utils-aarch64-unknown-linux-gnu/bin/sh' is not in the Nix store
<bqv>
(that path actually is in the nix store, and points to busybox in the same directory
<Zer000>
Does anyone else's firefox v75 randomly freeze at the address bar for a brief period of time? This started to happen after an update (not sure what version I had before)
<Yaniel>
no freezing but it's not respecting my primary selection anymore
<ornxka>
the result being that it will repeatedly ask you for your password and not tell you it is missing a kernel module
<Zer000>
Yaniel, what's a primary selection?
<ornxka>
i guess this is a cryptsetup bug?
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<Yaniel>
of the address bar
<ornxka>
i knew i was entering it in right
<Yaniel>
it "selects" everything on click but when I middleclick it has not actually put anything in the clipboard
<asbachb>
Sometimes firefox cannot use network when my wlan rconnects.
mbrgm has quit [Ping timeout: 246 seconds]
<Zer000>
lol middle click is super inconsistent on my system. Between xterm, firefox and gtk+ programs I never know what's going to work
leotaku has quit [Ping timeout: 256 seconds]
<ornxka>
(i guess also it would be nice if nixos-generate-config could figure out if you need special kernel modules on boot for luks devices but that sounds like a lot of work)
mbrgm has joined #nixos
<Yaniel>
works perfectly in alacritty and qt applications