justanotheruser has quit [Ping timeout: 246 seconds]
buffet_ has joined #nixos
Matthieu` has joined #nixos
buffet has quit [Ping timeout: 258 seconds]
Musk_Satoshi has quit [Read error: Connection reset by peer]
Matthieu_ has quit [Ping timeout: 245 seconds]
Musk_Satoshi has joined #nixos
ItsMarlin has quit [Ping timeout: 258 seconds]
ItsMarlin has joined #nixos
shu9 has quit [Remote host closed the connection]
ItsMarlin has quit [Read error: Connection reset by peer]
ItsMarlin has joined #nixos
<{^_^}>
[nixpkgs] @bignaux opened pull request #61982 → xcpc: move libsdk and lesstiff as optional → https://git.io/fjB0r
<genesis>
^ if someone has aarch64
pjan has quit [Quit: さようなら]
<samueldr>
just a heads up, it's probably a cross-compilation only issue, as on aarch64 it already was building fine with native build; or an armv6 specific issue
_ris has quit [Ping timeout: 260 seconds]
<genesis>
i'd failed build and i thought doing that was not bad idea
<samueldr>
(testing cross-compilation of xcpc on all three main arm targets to see what's going on and have a better overview of the situation)
<genesis>
but yes, perharps a bit tired i don't read why
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjB0y
<genesis>
was just a sha error
<genesis>
hash mismatch in fixed-output derivation '/nix/store/51d4dyh8s80y6ic7cvffdnaylf5pw205-dejavu-fonts-full-2.37-armv6l-unknown-linux-gnueabihf
kvda has joined #nixos
<genesis>
i bit an bad habit from openembedded, i strip down dependancies on failure
<samueldr>
same for armv6, armv7 and aarch64 as cross-compiled; though works fine native... most likely native works fine since it can fetch a cached artifact from cache.nixos.org
<genesis>
perharps a pb with my other binary caches.
<samueldr>
ideally, unless it is impossible, changing the build for cross vs. native is discouraged; the same features should be available
<samueldr>
nah, looks like a real issue
<samueldr>
I can reproduce locally
<genesis>
then :)
* samueldr
checks
<samueldr>
I think I know why
<genesis>
i've not rasberry, just takes this as the smallest dep package to try something
<genesis>
would be interesting to try compiling it with microwindows
<genesis>
btw , samueldr : do you advice to use overlay instead ?
<genesis>
instead of fix the derivation in nixpkgs.
<samueldr>
not sure I follow, but sure an overlay helps in getting things working, and then upstreamed :)
<samueldr>
but here the issue is the dejavu-fonts build being... weird
<samueldr>
looks like it's (ab)using the fixed-output derivation system to cache a build
<genesis>
yes i don't speak about dejavu, i speak about xcpc or other things i try to cross compile.
<genesis>
often it pushes too much (vala etc)
<genesis>
but i'm looking nixwrt to sucess my tomtom port.
<samueldr>
if you have to remove features to cross-compile, probably an overlay is a better solution, unless features are seldom used or really optional
<samueldr>
but otherwise, upstreaming fixes for cross-compilation is always good :)
<samueldr>
though here it looks like there is _at least_ an issue with dejavu's build
<samueldr>
and it's likely not cross-compilation specific
<genesis>
not a lot of patch https://github.com/navit-gps/NavitTom/tree/master/patchs , the things is old kernel without dtb, and we can't really port it since gps chip is a really closed things, they have same pb one open source phone
<genesis>
(so we have to use gltt binary from tomtom, so let binary compatibility)
gxt has joined #nixos
judson has quit [Ping timeout: 268 seconds]
o1lo01ol1o has joined #nixos
selfsymmetric-mu has quit [Ping timeout: 258 seconds]
<DigitalKiwi>
also for the thing ottidmes told me earlier (isoImage.contents/storeContents) it doesn't like the permissions of the ssh key (for obvious reasons) what's a good way to solve that?
toppler`` has joined #nixos
goibhniu1 has quit [Ping timeout: 245 seconds]
tbenst has quit [Remote host closed the connection]
tbenst has joined #nixos
slack1256 has quit [Remote host closed the connection]
<kuznero[m]>
<genesis "i mean qt5.callPackage"> And it seems that it is only Telegram and some Git-Tools that uses this approach (in `/pkgs/applications`). Everything else is not. Does it then really make sense for me to do it? What is the strategy going forward?
hoek has joined #nixos
alp has joined #nixos
<lostman>
Got a question about switching kernels. It's easy enough to do `boot.kernelPackages = pkgs.liuxPackages_5_1` but that only switches the kernel and not headers. So the system ends up with 5.1 kernel but 4.1.19 headers. That can't be good? It's possible to switch linuxHeaders but it's less straightforward. It also requires re-building almost everything
<lostman>
headers -> glibc -> lots of stuff. So what is the best practice here? Don't switch the kernel? Ignore the headers mismatch?
johnny101 has quit [Remote host closed the connection]
sdier has quit [Ping timeout: 252 seconds]
johnny101 has joined #nixos
sppky has quit [Ping timeout: 250 seconds]
p_l has joined #nixos
newhoggy has quit [Ping timeout: 248 seconds]
lockshaw has quit [Ping timeout: 252 seconds]
lockshaw_ has joined #nixos
gausby_ has quit [Ping timeout: 248 seconds]
sdier has joined #nixos
cbarrett has quit [Ping timeout: 250 seconds]
sppky has joined #nixos
rotaerk has quit [Ping timeout: 252 seconds]
newhoggy has joined #nixos
nand0p has joined #nixos
rotaerk has joined #nixos
<rauno>
Heya
duoi has joined #nixos
<rauno>
When defining a service ExecStart, how to avoid quote stripping ?
teehemkay has quit [Ping timeout: 252 seconds]
nix-build has quit [Ping timeout: 252 seconds]
<rauno>
for example ".... --param='${cfg.paramval}'..." then these single quotes get stripped
gausby_ has joined #nixos
cbarrett has joined #nixos
jchw has quit [Ping timeout: 252 seconds]
teehemkay has joined #nixos
<bricewge>
Similar question to rauno , how to escape `${STATE_DIRECTORY:-/var/lib/monitor-crontab}` from the nix interpretor in systemd.services.<name>.script?
<tilpner>
Escaping differs based on whether you're escaping in a "string" or a ''string''
jchw has joined #nixos
<tilpner>
It's "\${foo}" and ''''${foo}''
nh2 has quit [Ping timeout: 250 seconds]
orivej has quit [Ping timeout: 244 seconds]
<bricewge>
Hum that's confusing...
<bricewge>
I tired both they didn't worked.
pie_ has quit [Ping timeout: 252 seconds]
<tilpner>
Then you need to paste your Nix file and error
<rauno>
this cmdLine might have spaces inside so it should stay quoted inside service but it doesnt
<tilpner>
I agree
<tilpner>
What's the ExecStart line from systemctl cat?
<wucke13>
tilpner: that was it. `echo 10000 > /proc/sys/user/max_user_namespaces` fixed it :)
eliasp_ is now known as eliasp
<rauno>
ahaa, its correct..
<rauno>
but in systemctl status its wrong
<li_matrix>
lostman: the kernel expression is used for header files
<li_matrix>
otherwise nobody could override the kernel version
mexisme has joined #nixos
Jetien_ has joined #nixos
<li_matrix>
giving steady headers to glibc, like you said, avoids rebuilding a world for every kernel. I doubt it needs bleeding edge functionality from the kernel
hoijui has joined #nixos
Makaveli7 has joined #nixos
leothrix has quit [Remote host closed the connection]
<DigitalKiwi>
how can i use a znc module that isn't in nixpkgs? (I added it to the znc modules in nixpkgs so can PR it later but I can't get znc to see it to test...)
justanotheruser has quit [Ping timeout: 272 seconds]
<genesis>
kuznero[m] : make as you wish, fix the others things i told you, i'm sure of that.
<kuznero[m]>
genesis: should all be done by now
reinhardt has joined #nixos
<genesis>
kuznero[m] : have you try without your configurePhase
<genesis>
and if it doesn't find VNote.pro, use cmakeflags
<kuznero[m]>
You mean move `qmake` to the `installPhase`?
<kuznero[m]>
Why? Does it add some overhead?
<genesis>
no i mean let nixos do the cmake
<kuznero[m]>
I saw some other packages do `qmake` in `configPhase` also
<kuznero[m]>
Ah
<genesis>
ho i see another missing
<kuznero[m]>
Will need to try that
<genesis>
nativeBuildInputs = [ cmake ];
ottidmes has quit [Quit: WeeChat 2.4]
<kuznero[m]>
Interesting, how did it work without it before?
ottidmes has joined #nixos
<genesis>
because you call it explicitly i guess
<ottidmes>
Is there already existing code in nixpkgs (e.g. lib) where you can supply a list of functions and it each function either returns a value or continues with the next function in the list?
<genesis>
and btw it's not configphase but buildphase
<genesis>
oh i donno know, since it produces the makefile ... btw try like i said.
<genesis>
kuznero[m] : dont forget to "" the homepage uri
<kuznero[m]>
genesis: I thought that urls are coming without quotes...
<genesis>
new requirement sorry
<kuznero[m]>
np
<genesis>
kuznero[m] you can also use mkdir -p $out/{bin,applications,icons/hicolor/scalable/apps}
justanotheruser has joined #nixos
<genesis>
but i let that for the moment, there is more important to have the perfect derivation a first time.
<ottidmes>
genesis: what is this about a new requirement about quoting homepage URIs? I was always told to remove them if possible, or is this not some general rule and I am simply missing the context of your conversation?
<genesis>
strings has to be double quotes now
<ottidmes>
genesis: the documentation still clearly states under strings (i.e. they are valid strings as well) "Finally, as a convenience, URIs as defined in appendix B of RFC 2396 can be written as is, without quotes. For instance, the string "http://example.org/foo.tar.bz2" can also be written as http://example.org/foo.tar.bz2."
hoijui has quit [Ping timeout: 250 seconds]
<genesis>
i don't invent, wait more confident people for you confirms.
<ottidmes>
ok
m0rphism has joined #nixos
<genesis>
infinisil ? RFC or not ?
<DigitalKiwi>
oh hey ottidmes i had a question about your answer earlier (which i was able to make work in a way) how can i give the builder access to a file it doesn't normally have permission to access? right now i copy it to tmp and change the permissions and add the path to the extra-sandbox-paths...all of which seems less than ideal
<genesis>
kuznero[m] ; but you should runHook pre and post
<genesis>
runHook preInstall and runHook postInstall
<genesis>
since you're overriding the installPhase, they are not called, and it's not straighforward, but better to call them if you don't know why you're not.
<kuznero[m]>
genesis: could you please elaborate on hooks - I don't remember using it at all before
tilpner has quit [Quit: WeeChat 2.4]
<kuznero[m]>
What is the default on those hooks?
<genesis>
there is phase , when you write explicit installPhase, the default are discard,
<genesis>
pre and post also, in post there can be automagically things like patchelf etc
<kuznero[m]>
I see, thanks. And to recap: 1) I need to remove `configPhase`, 2) I test if it works without `configPhase` with native dep to cmake, if not - put it back to `configPhase`, right?
tilpner has joined #nixos
<genesis>
kuznero[m] qmakeFlags = "VNote.pro";
<genesis>
s/cmake/qmake sorry
<kuznero[m]>
genesis: ah, that is exactly what was missing in my head
<kuznero[m]>
thanks
<pie_>
lostman, im curious about the answer as well, though my guess is just that youre gonna have to rebuild
<genesis>
kuznero[m] : yes it makes sens since you stil use qtfull in the build, it find it but if you put qmake in native , i'm quite sure you could use just qtbase
<kuznero[m]>
`cmakeFlags = [ "VNote.pr" ];`
<genesis>
qmakeFlags
jmeredith has quit [Quit: Connection closed for inactivity]
<pie_>
yorick, i dont understand how the -i would be able to find the package though, and what if there's multiple versions? ideally id want to "install" the specific closure i just copie
<kuznero[m]>
@genesis: What is it exactly I need to put into pre-post hooks? Parts of what I already have in `installPhase`? Or there is something else too?
<genesis>
not cmake , qmake
<genesis>
replace all , hum look pkgs/applications/science/logic/aspino/default.nix
<kuznero[m]>
Ah, sorry, fixing
<genesis>
i see new things :)
<kuznero[m]>
genesis: if I put dependency to `qmake` I get this: error: anonymous function at /home/ba7196/Projects/kuznero/nixpkgs/pkgs/applications/office/vnote/default.nix:1:1 called without required argument 'qmake', at /home/ba7196/Projects/kuznero/nixpkgs/lib/customisation.nix:69:12
<genesis>
kuznero[m] : fix your rev to "v${version}"
<Zer0xp>
The .deb file is available for download on their website.
<Zer0xp>
That package isn't available in the nixpkgs repo
<ivan>
I've got
<ivan>
alias nix-env='NIXPKGS_ALLOW_UNFREE=1 nix-env'
<ivan>
alias nix-build='NIXPKGS_ALLOW_UNFREE=1 nix-build'
<lassulus>
living in an unfree world /o\ :D
<Zer0xp>
let me try it, i'll get back to you
<Zer0xp>
lol
slyfox has quit [Ping timeout: 272 seconds]
jomik has joined #nixos
<jomik>
Hey. Is there a super simple way of adding programs to the path of a package? I use home-manager to configure Neovim, and I would like Neovim to have some packages in its path. So I am looking for a sort of `wrap package add to path` expression.
<ottidmes>
jomik: wrapProgram should do this for you
<jomik>
Isn't that a script? then I need to add to postFixup? ottidmes
<genesis>
seems to be a good place to look at overlay ?
<ottidmes>
jomik: it results in a script, yes, just search nixpkgs for "--prefix PATH"
slyfox has joined #nixos
<jomik>
Sorry, I mean `wrapProgram` is not a nix expression but a sh script, right?
<Zer0xp>
Hey I suppose it worked, thanks guys.
Zer0xp has quit [Quit: Page closed]
<ottidmes>
Zer0xp: I am on NixOS and am listing Spotify at the moment, I just always use: https://open.spotify.com
<ottidmes>
jomik: yes
<jomik>
So I need to overrideAttrs and then append to postFixup with a `--prefix PATH : ${makeBinPath}`, I suppose.
<jomik>
Thanks. I just wondered if there was a convienience nix expression in `lib` to do that for me :P
zupo has joined #nixos
jomik has quit [Quit: WeeChat 2.4]
ng0 has joined #nixos
<kuznero[m]>
genesis: it seems `qt5.qtbase` as well as `qt5.qtwebengine` was enough ;)
<infinisil>
ivan: Well it would be simpler just to put { allowUnfree = true; } in ~/.config/nixpkgs/config.nix
lostman has quit [Quit: Connection closed for inactivity]
<infinisil>
This effects all commands then
<kuznero[m]>
genesis: I think almost everything is in place now except pre/post-hooks. Do you have an example of what you want me to do there? Or is it just bits from `installPhase` to get there?
pukkamustard_ is now known as pukkamustard
<genesis>
kuznero[m] look here ... pkgs/development/compilers/coreclr/default.nix
<genesis>
since you're the maintainer , you've to understand.
<kuznero[m]>
Agree, and I think I got what you meant. Will fix and push.
<kuznero[m]>
coincidentally, I am marked as maintainer for coreclr too ;)
<kuznero[m]>
genesis: I pushed all the changes to the PR, please review
<pie_>
yorick, forgot to say that i figured out nix-env -i apparently *does* accept store paths
<pie_>
can nix configure systemd services on non-nixos systems?
toppler`` has joined #nixos
<andi->
you can render systemd units with nix.. how they end up in the right location is usually not the concern of Nix.
Glider_IRC_ has joined #nixos
<pie_>
makes sense
<pie_>
how would i do the former?
<andi->
pkgs.writeText :)
<andi->
not sure if you can reuse some of the nixos code
<pie_>
i thought you meant i could get something to generate the the service config and then just copy that somewhere mysel
<pie_>
the question being how to do the former. can probably do the latter with an activation script or something
Glider_IRC__ has quit [Ping timeout: 248 seconds]
<andi->
I am sure it has been done before but I do not recall where I saw it.
<cocreature>
I added "{ allowBroken = true; }" to ~/.config/nixpkgs/config.nix but it doesn’t seem to apply to my nix-shell invocation. any ideas what I might be doing wrong?
esmerelda has quit [Ping timeout: 250 seconds]
romildo has joined #nixos
<cocreature>
oh does it not apply if nixpkgs is pinned because I need to pass the config argument manually in that case?
<infinisil>
Hm i thought that should work too actually
<cocreature>
infinisil: adding it to config seems to have worked, thanks!
<romildo>
How are nix expressions like `gnome3`, `lxqt`, `mate`, `xorg`, `pythonPackages`, `ocamlPackages`, be called? meta packages? They contain attributes for other packages.
<infinisil>
gchristensen: Neat, so combined with automatic key generation on hosts, this solves the key distribution problem?
<ottidmes>
romildo: package sets?
<pie_>
andi-, any idea where the config.systemd processing code might be?
<aanderse>
every time i see that link i get disappointed... because i think infinisil wrote either a rts game with a story line based on nix, or an rts in the nix language
<pie_>
aanderse, aww :
<pie_>
:(
<infinisil>
Hehe
<yorick>
pie_: our secret sauce is nix-store -r to a symlink, then nixos-rebuild switch
ItsMarlin has quit [Quit: Quit]
<pie_>
yorick, i cant rebuild switch because its debian + nix
ItsMarlin has joined #nixos
<yorick>
pie_: well don't do that
<gchristensen>
how about home-manager
<pie_>
yorick, you have me thinking about it but im not sure i could encroach upon the ecosystem that much more
<pie_>
guess ill just use a script or something to add the service
<gchristensen>
does home-manager do what you want?
<pie_>
now if only i could figure out how the module system generates a service
<pie_>
gchristensen, not sure, ive only ever used it through configuration.nxi
justanotheruser has quit [Ping timeout: 258 seconds]
<pie_>
gchristensen, unless im misunderstanding, thats an example of a config, but I mean I want to be able to get a config file in a...like..normal nix expression
<ottidmes>
genesis: thanks for linking to the RFC! (only just now saw your response)
<{^_^}>
"[Unit]\nDescription=Name Service Cache Daemon\nX-Restart-Triggers=/nix/store/qhpc92ip9017c47c6b4hw92svk29s03f-etc-hosts /nix/store/k6g9l73j39pszdwvrnwgw5vyxck9fkii-etc-nsswitch.conf /nix/store/z8p8gd...
<pie_>
hm
justanotheruser has joined #nixos
<pie_>
oh, i failed to parse. ok that looks promising
reinhardt has quit [Quit: Leaving]
<ottidmes>
DigitalKiwi: about giving the builder access to a file, I assume this was about the adding of a SSH key and you do not want it to end up in /nix/store? I generally would then build something that when run does the actual building (e.g. generating a bash script) or would have the file being handles via a systemd service
<{^_^}>
#32422 (by roberth, 1 year ago, merged): Add pkgs.nixos function
<pie_>
this is what i get for not being a guru in how the config stuff works
<infinisil>
pie_: You really just need `(import <nixpkgs/nixos> {}).config.systemd.units
o1lo01ol_ has joined #nixos
<pie_>
infinisil, and i need to pass a configuration to it
<infinisil>
This form implicitly uses /etc/nixos/configuration.nix
<pie_>
man nixos is cool but just...so much confusion ugh
<infinisil>
But you can pass one like `import <nixpkgs/nixos> { configuration = { boot.loader.... }; }`
<pie_>
right, going by the bot output above
init_6 has quit [Ping timeout: 248 seconds]
<roberth>
pie_, infinisil: you can get config, options, whatever out of pkgs.nixos by adding a module that exposes those variables in config.system.build
<pie_>
ok so that works, would be nice to just have access to this functionality from a systemd generator or something
Guest12684 has joined #nixos
bennofs has joined #nixos
<pie_>
infinisil, uhh actually, without any channels configured <nixpkgs/nixos> is going to be a problem. I think maybe i can just do pkgs.path + stuff though
<infinisil>
Every Nix user should have <nixpkgs> available, so that shouldn't be a problem
Guest12684 has quit [Client Quit]
dansho has quit [Quit: Leaving]
<pie_>
err, right thats not a channel
* pie_
ponders
<pie_>
ah, i was just getting a warning about "warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring" but yeah thats fine
<DigitalKiwi>
how do i get znc to see plugin i added to test it?
gchriste1 has joined #nixos
gchriste1 is now known as grahamc
gchristensen has quit []
grahamc is now known as gchristensen
bennofs has quit [Ping timeout: 259 seconds]
eraserhd has quit [Ping timeout: 252 seconds]
eraserhd has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
Ariakenom has joined #nixos
sigmundv has quit [Ping timeout: 248 seconds]
<infinisil>
Is there any up-to-date geoip database in nixpkgs?
<infinisil>
I can only find geolite-legacy
<infinisil>
,locate GeoIP.dat
<{^_^}>
Found in packages: openlierox, geolite-legacy
<infinisil>
> openlierox.meta.description
<{^_^}>
"Real-time game with Worms-like shooting"
<DigitalKiwi>
or should I just do a PR and hope it gets in soon >.> (it builds fine did it like the other plugins)
<zebradil>
Hello here. I'm trying out nix package manager on Mac and I've got a question on how to setup powerline (it's python package). To make it run, I need to invoke powerline.zsh file from my .zshrc. How to get agnostic path to it? Is there a command to get store path of the latest version?
<{^_^}>
[nixpkgs] @peti pushed 4 commits to haskell-updates: https://git.io/fjBXW
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjBX4
ricekrispie has joined #nixos
Copenhagen_Bram has quit [Read error: Connection reset by peer]
ricekrispie2 has quit [Ping timeout: 258 seconds]
apaul1729 has joined #nixos
ItsMarlin has joined #nixos
ItsMarlin has quit [Read error: Connection reset by peer]
ItsMarlin has joined #nixos
ItsMarlin has quit [Read error: Connection reset by peer]
ItsMarlin has joined #nixos
ubert has quit [Quit: Leaving]
mexisme has joined #nixos
Copenhagen_Bram has joined #nixos
ixxie has joined #nixos
erasmas has joined #nixos
<infinisil>
zebradil: That would be "${pkgs.python3Packages.powerline}/share/zsh/site-contrib/powerline.zsh" in a Nix file
linarcx has joined #nixos
Thra11 has joined #nixos
mexisme has quit [Ping timeout: 246 seconds]
<zebradil>
infinisil: is there a way to get it in shell? Something like "$(nix-env --store-path powerline)/.../powerline.zsh".
wfranzini has quit [Remote host closed the connection]
<infinisil>
zebradil: Yup, "$(nix-build --no-out-link '<nixpkgs>' -A python3Packages.powerline)/.../powerline.zsh"
pie_ has quit [Ping timeout: 252 seconds]
<DigitalKiwi>
infinisil: do you know about my znc question (I think I saw you'd done pull requests related to it)?
<zebradil>
infinisil: Thanks a lot! :)
<infinisil>
DigitalKiwi: Ah yeah I missed the question
<infinisil>
DigitalKiwi: Have you added it to services.znc.modulePackages?
<infinisil>
DigitalKiwi: nix-env -i the new module?
LogicAside has joined #nixos
<infinisil>
The NixOS znc module only makes exactly the znc modules available specified in modulePackages
toppler`` has joined #nixos
<DigitalKiwi>
so right now in my configuration.nix I have basically duplicated the code that the zncModule uses to add it, but I also added it to nixpkgs, how do I make it use my version from nixpkgs since it's not upstream yet
<infinisil>
DigitalKiwi: I see, if you just want to use a local nixpkgs for your NixOS, you can use `-I nixpkgs=/path/to/nixpkgs` for a transient change, or set `nix.nixPath = options.nix.nixPath.default ++ [ "nixpkgs=/path/to/nixpkgs" ]; }` and rebuild for a permanent change
<DigitalKiwi>
is doing the checkout a right way to do it
<DigitalKiwi>
(it's on the manual i think recommmendation for adding packages)
<infinisil>
DigitalKiwi: You could do it with an overlay too actually
<DigitalKiwi>
i've never done overlays and they look really confusing to me ;_;
ItsMarlin has quit [Ping timeout: 258 seconds]
ItsMarlin has joined #nixos
<infinisil>
As in something like `self: super: { zncModules = super.zncModules // { inherit ((import (fetchTarball <nixpkgs version where your patch is in>) {}).zncModules) myModule; }; }`
<markasoftware>
my ~/.nix-defexpr has a symlink, `channels`, which ponits to a directorry with `nixos` in it. How come I can do `nix-env -iA nixos.hello` instead of `nix-env -iA channels.nixos.hello` ? Does it strip off the attribute name when there's only one subfolder of .nix-defexprs?
<{^_^}>
[nixpkgs] @JohnAZoidberg opened pull request #62017 → stdmanpages: Use correct fdl12Plus license → https://git.io/fjBMM
ddellacosta has quit [Ping timeout: 272 seconds]
ItsMarlin has quit [Read error: Connection reset by peer]
ItsMarlin has joined #nixos
ItsMarlin has quit [Read error: Connection reset by peer]
ItsMarlin has joined #nixos
<{^_^}>
[nixpkgs] @dhruvio opened pull request #62018 → vim_configurable: build against gtk{2,3}-x11 instead of gtk{2,3} to fix builds on darwin → https://git.io/fjBMd
<{^_^}>
[nixpkgs] @fpletz pushed commit from @r-ryantm to master « syslogng: 3.20.1 -> 3.21.1 »: https://git.io/fjBD8
_ris has joined #nixos
ItsMarlin has joined #nixos
<{^_^}>
[nixpkgs] @fpletz merged pull request #61133 → shairport-sync: set sysconfdir to /etc/ → https://git.io/fjcPb
<{^_^}>
[nixpkgs] @fpletz pushed commit from @flokli to master « shairport-sync: set sysconfdir to /etc/ »: https://git.io/fjBDE
<jasom>
Is there a simple way to locate the file in which a package is defined? I can find it reasonably quickly with some simple find/grep combinations but I want to make sure I'm not missing an easier way of doing it
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #62018 → vim_configurable: build against gtk{2,3}-x11 instead of gtk{2,3} to fix builds on darwin → https://git.io/fjBMd
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjBDD
<infinisil>
(and nix edit just uses meta.position)
<{^_^}>
[nixpkgs] @FRidh merged pull request #61829 → briss: Use makeWrapper so it can take command-line args → https://git.io/fj4g8
<{^_^}>
[nixpkgs] @FRidh pushed commit from @league to master « briss: Use makeWrapper so it can take command-line args »: https://git.io/fjBDQ
<markasoftware>
does nixos-rebuild switch also update packages installed by users through nix-env, or only stuff in systemPackages of configuration.nix
<markasoftware>
?
ItsMarlin has quit [Read error: Connection reset by peer]
ItsMarlin has joined #nixos
<gchristensen>
only systemPackages / configuration.nix stuff
hedning_ has quit [Quit: hedning_]
<markasoftware>
oh, is nix-env --upgrade what I want?
<markasoftware>
crap nix-env --upgrade uses tons of memory
<markasoftware>
I added a user to `users.users`. Their home directory and everything is created, but there isn't any `.nix-defexpr` or `.nix-profile`...how do I create them?
asheshambasta_m has quit [Quit: Leaving.]
<samueldr>
they'll be created by the tools at first use AFAIK
asheshambasta_m has joined #nixos
esmerelda has joined #nixos
<markasoftware>
no, nix-env -iA nixos.hello gives me "error: getting information about '/home/anatoli_bugorski/.nix-defexpr': No such file or directory"
<markasoftware>
(that's not my name btw)
o1lo01ol1o has quit [Remote host closed the connection]
<slabity>
markasoftware: Can you do a `nix-channel --update`?
o1lo01ol1o has joined #nixos
toppler`` has quit [Ping timeout: 252 seconds]
toppler`` has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
ItsMarlin has quit [Ping timeout: 245 seconds]
ItsMarlin has joined #nixos
<markasoftware>
that creates .nix-defexpr, but not the main repo...do I have to run `nix-channel --add whatever` for each user?
kalan[m] has left #nixos ["User left"]
hmpffff has joined #nixos
jtojnar has joined #nixos
<slabity>
Maybe? Honestly, some of my systems my user just uses the system's channel, and other times I need to explicitly add a user channel. Not sure how to control that behavior
<slabity>
I'd like my user accounts to always use the system channel
<rfold>
Ah fun, my executable contains paths to source files so they can end up in exception messages, and now nix-copy-closure also copies the source files. :D
<gchristensen>
classic
<gchristensen>
there is a way to fix that. I thought it was called nukeReferences, but that one is too aggressive
<rfold>
I suppose that's convenient if you want to debug it when you get an exception in production, because you immediately know where to look for that exact version of the source file!
<gchristensen>
true!
<{^_^}>
[nixpkgs] @dhruvio closed pull request #59335 → [WIP] Add Elm 0.18 and update misc Haskell packages. → https://git.io/fjqQL
<slabity>
Just make every source file its own derivation. Problem solved
<gchristensen>
there you go
<rfold>
Or don't pass absolute paths to the compiler.
<slabity>
Actually that would be a pretty neat concept
<rfold>
(My build system is duct taped together with Bash and Perl.)
<gchristensen>
(aren't they all)
is_null has joined #nixos
<rfold>
Some are duct taped together in Java or ECMAScript. ( ͡° ͜ʖ ͡°)
<averell>
maybe just strip would do
<slabity>
Everything is duct taped in C and shell scripts
<rfold>
I love that I can just embed absolute paths to programs I want to invoke as subprocesses in my executable, and I know exactly what executable I will be invoking in production. It's so nice.
<slabity>
Thank god `/usr/bin/env` is POSIX specified
<rfold>
Ew, depending on the environment.
<slabity>
Only absolute path you need
Anton-Latukha has joined #nixos
ItsMarlin has quit [Ping timeout: 258 seconds]
ItsMarlin has joined #nixos
zupo has joined #nixos
camsbury has quit [Ping timeout: 258 seconds]
qyliss^work has quit [Ping timeout: 252 seconds]
kenshinCH has quit [Quit: WeeChat 2.4]
ma27 has joined #nixos
qyliss has quit [Ping timeout: 258 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
is_null has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @bhipple opened pull request #62025 → zlib: enable check and parallel building → https://git.io/fjB9b
esmerelda has quit [Ping timeout: 248 seconds]
wfranzini has quit [Remote host closed the connection]
kenshinCH has quit [Quit: WeeChat 2.4]
wfranzini has joined #nixos
<DigitalKiwi>
pie_: i'll find you some posts
Thra11 has quit [Ping timeout: 252 seconds]
<markasoftware>
I've added and updated the channel for the new user, but when I try to install with nix-env -iA it gives me "error: opening lock file '/nix/var/nix/profiles/default.lock': Permission denied"
<{^_^}>
[nixpkgs] @edef1c opened pull request #62028 → wireshark: include nghttp2 by default → https://git.io/fjBHs
<bobnormal>
A few days ago I started having issues with my NixOS install .. specifically, rubggems won't work (previously installed gems have vanished) and KiCad is now segfaulting. I suspect this was after a system-wide update with unstable selected. How can I unselect unstable for ruby and kicad?
<bobnormal>
versions are 'kicad-5.1.2' and 'ruby-2.6.3'.
fasd` has joined #nixos
Howto has joined #nixos
copumpkin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Howto>
Hello. I wrote a blogsite about how could we easing on our lifes and supporting our well-being, not fluent english but for get the essence with it, it is allright. Available for you on www.howtoprotect.biz, it is completely free. Have a pleasant days to you.
Howto has left #nixos [#nixos]
srid63 has quit [Read error: Connection reset by peer]
<infinisil>
I have to say, in Nix land, googling/ducking something usually doesn't yield much
<pie_>
infinisil, so its not just me
Lears has quit [Ping timeout: 272 seconds]
<infinisil>
Yeah, so usually I don't even try and go to the source directly to figure stuff out
<infinisil>
rg is friend
<pie_>
if its convenient
<pie_>
i dont find it convenient
<pie_>
i need to add some shell commands...
Glider_IRC__ is now known as Glider_IRC
<{^_^}>
[nixpkgs] @freepotion opened pull request #62030 → harmonist: init at 0.1 → https://git.io/fjBHM
<fasd`>
no dice on the GApps thing, unfortunately
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
drakonis has joined #nixos
jlv has joined #nixos
<jlv>
Trying out NixOS for the first time. Where can I find previous configuration files? I know how to roll back, but not how to actually see the configuration.
<drakonis>
the recommendation is to manage it with a vcs i think?
<infinisil>
Indeed, because NixOS doesn't save the config on its own
<jlv>
I see. Guess I'm out of luck then.
<drakonis>
what would be the problem?
o1lo01ol1o has quit [Ping timeout: 248 seconds]
<jlv>
When I booted up this morning I couldn't get sound out of my headphones. Not sure what changed.
<jlv>
Last I remember it worked before I shut the computer down.
<jlv>
I was hoping to see if I changed anything right before shutting down.
<pie_>
wonder if its possible to reasonably diff generations somehow
<pie_>
jlv, i guess..have you tested if rolling back to an older generation actually fixes it?
<infinisil>
jlv: pie_: There is nix-diff you can use to see changes between generations
<pie_>
infinisil, oh neat
<infinisil>
Won't be very useful if you did an --upgrade though, because everything will have changed
<pie_>
ya
<jlv>
I was in the process of rolling back, but most of my configurations didn't have working wifi or any media player, lol
<jlv>
Last night I was having issues with freezing while volume changed. Today I don't have that issue, but no audio from headphones
<infinisil>
I sure wish there was a standard way to have a reproducible config, backed by git
<infinisil>
And maybe even enable it by default
<drakonis>
reproducible configs backed by whatever vcs
<jlv>
I assumed the config itself was version controlled since it was saving each configuration
<drakonis>
doesnt have to be git only, as to not tie it to anyone
<drakonis>
there's a good reason we all keep git repos with our configs ho ho
<infinisil>
That being?
<drakonis>
rather, do not tie it to any specific vcs, ie: not only git
<drakonis>
the reason is that we can roll back and keep a backup
<drakonis>
access it from anywhere too
<jlv>
Changing configuration doesn't seem to help. What could have changed between reboots without the configuration changing?
gagbo has quit [Ping timeout: 245 seconds]
bobnormal has quit [Ping timeout: 256 seconds]
<immae>
Hello there! I have an old system.stateVersion value, and I would like to change its value to the latest one (I know I shouldn’t do that unless told so, but still). Is it safe to assume that if I change the value and no build happens afterwards, then no breaking change happened and I can leave the new value? (I have a postgresql server, which I know is sensitive to that, but I already handle that separately.
<immae>
That’s the only one I’m aware of)
rfold has quit [Quit: WeeChat 2.4]
jlv has quit [Ping timeout: 256 seconds]
jlv_ has joined #nixos
<drakonis>
jlv_, did you check the volume slider?
<jlv_>
Ya, and audio works through the hdmi connection
<infinisil>
,stateVersion immae
<{^_^}>
immae: Setting stateVersion to the latest release doesn't upgrade anything and can only break your setup at best. To actually upgrade NixOS see https://nixos.org/nixos/manual/#sec-upgrading. If you want to update the stateVersion option regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually migrated with the new value.
akapav_ has quit [Ping timeout: 258 seconds]
<jlv_>
Just not the headphones
<jlv_>
I tested the headphones on another device btw, to rule that out
janneke has quit [Ping timeout: 259 seconds]
<jlv_>
I can hear static through the headphones, but no audio
<immae>
Ah thanks infinisil, nothing happened it seems
<jlv_>
Rolling back to previous configurations doesn't seem to change it. What could have changed overnight without changing the configuration?
<infinisil>
immae: But really, there's no reason to change it, especially if the release notes don't mention anything
<infinisil>
Why? You'll get into the habit of changing it
<infinisil>
:P
akapav has joined #nixos
<immae>
infinisil: I know, I’m mostly curious if things can break while nothing got rebuilt when changing the value
<immae>
And I prefer to know "now" what can happen than "later" when it’s urgent :p
<infinisil>
If nothing got rebuilt, then nothing can be broken, because it's exactly the same system
janneke has joined #nixos
<infinisil>
Well, unless in the weird case that you already built that exact thing before
init_6 has joined #nixos
<infinisil>
Let me rephrase: The same /nix/store/<...> path means there are no changes
<immae>
Ok, cool :)
<immae>
Thanks infinisil (and I’ll be careful, I promise, I have a big warning above that value to not change it without thinking, and I know my future self will respect that :p )
<infinisil>
I just recently encountered a user who changed stateVersion because they thought it would upgrade their system..
<immae>
No, I know it doesn’t do that, don’t worry :)
<infinisil>
They set stateVersion to 19.03, but it turned out they were still on 18.03 xD
<immae>
:D
<infinisil>
So, they thought they were running 19.03, but it was really the release a year ago
<jlv_>
Wait, why doesn't changing stateVersion change the version?
<jlv_>
infinisil_: Could the kernel have updated without me changing the configuration?
npmccallum has joined #nixos
ItsMarlin has quit [Read error: Connection reset by peer]
ItsMarlin has joined #nixos
esmerelda has quit [Ping timeout: 248 seconds]
<averell>
if configuration doesn't include channel/nixpkgs, then yes
o1lo01ol1o has joined #nixos
<infinisil>
I don't think it can?
<pie_>
maybe if you have automatic updates (?) enabled
<infinisil>
Ah true
<pie_>
jlv_, but as i asked, did you even try rolling back to see if your sound works again?
<pie_>
seems like the easiest way to confirm or rule out system configuration state changes?
<jlv_>
pie_, I tried rolling back. Didn't change the sound issue.
<pie_>
ok
<pie_>
so its probably not a system config problem
<pie_>
(assuming you rolled back far enough)
<infinisil>
jlv_: Try rebooting into older configs though
work_ has quit [Quit: Connection closed for inactivity]
<infinisil>
rebooting broke it, so you probably need to reboot to fix it again
<jlv_>
I don't see channel/nixpkgs in my configuration. It's mostly a freshly generated config with a few packages added and whatnot. Just installed last night.
esmerelda has joined #nixos
<jlv_>
I rebooted while rolling back.
wfranzini has quit [Remote host closed the connection]
<infinisil>
Oh just yesterday, that's not too long ago
<infinisil>
jlv_: What's the config?
wfranzini has joined #nixos
<jlv_>
Do you have a suggestion for showing the config?
<infinisil>
jlv_: Just /etc/nixos/configuration.nix
<pie_>
are you sure its not that sound worked in the livecd or somethng
<jlv_>
"broken sound" in this case means no sound from my headphones. Sound works through the hdmi device.
<pie_>
jlv_, yeah :/ have you checked the usual generic problems? :/
<pie_>
is hardware mute on? have you looked through your sound settings?
<jlv_>
Sound Devices shows that "Built-in Audio Analog Stereo" has headphone plugged in.
justanotheruser has quit [Ping timeout: 268 seconds]
<infinisil>
Did you mess with pulseaudio's setting?
<jlv_>
Not sure what you mean by "hardware mute"
<infinisil>
In pavucontrol?
<pie_>
the year of the linux desktop needs some trouble shooting wizards and this should be one of them lol...common problems
<jlv_>
Don't remember touching pulseaudio
<pie_>
jlv_, do your headphones have a mute button? does your keyboard have a mute fn key?
<jlv_>
Sound isn't muted
<infinisil>
jlv_: Yeah so open pavucontrol and click through the settings there, it's the thing that controls your sound
<jlv_>
Just basic headphones, not controls
<jlv_>
And headphones work on other devices
<jlv_>
Even work on this computer on Windows
apaul1729 has joined #nixos
<averell>
devices can be muted individually, and also there could be a wrong default output device configured
apaul1729 has quit [Remote host closed the connection]
<jlv_>
It is set as default output. Firefox is using it as output. Not muted in either.
<jlv_>
Is the sound button on task bar pavucontrol? I get "pavucontrol: command not found" in terminal.
<infinisil>
Huh, I'm pretty sure pavucontrol should be installed by default if you have pulseaudio enabled
srid63 has quit [Read error: Connection reset by peer]
srid63 has joined #nixos
<infinisil>
jlv_: Are you booted into the latest generation where you know that `hardware.pulseaudio.enable = true;` is set?
<jlv_>
infinisil, just rebooted
<jlv_>
On latest configuration
<averell>
i'm not so sure it's automatic? anyway, it's easy to install and it will tell you if pulse is not running
<infinisil>
Oh pavucontrol might not be there automatically after all
<jlv_>
Just added pavucontrol
justan0theruser has quit [Quit: WeeChat 2.4]
<infinisil>
averell: Yeah I just realized I have pavucontrol in my config. I really think this should be included by default (at least when you have X enabled)
<jlv_>
Everything looks good in pavucontrol. Shows headphones as plugged in. Shows sound playing to headphones.
ItsMarlin has quit [Read error: Connection reset by peer]
justanotheruser has joined #nixos
<jlv_>
I feel like either something really weird is going on, or I'm doing something really stupid
ItsMarlin has joined #nixos
<infinisil>
That's probably often the case with debugging :)
<infinisil>
I actually remember pulseaudio occasionally not working too, and this fixed it for me
goibhniu2 has quit [Ping timeout: 245 seconds]
<infinisil>
(no idea about a permanent fix though or the reason for it)
<pie_>
nope <infinisil> Huh, I'm pretty sure pavucontrol should be installed by default if you have pulseaudio enabled
<jlv_>
The restart doesn't seem to help
<averell>
it would be a nice default though, i agree
<infinisil>
Hmm darn
<averell>
how are the headphones connected?
<pie_>
infinisil, yeah but they rebooted several times, i wouldnt expect a service restart to do much :c (you never know of course lol)
<jlv_>
I have a feeling that something changed between last night and rebooting this morning. Last night, I had issues with computer stuttering while volume is changing. This morning I don't have that issues, but now headphones don't work.
<infinisil>
jlv_: Check out `journalctl --user -u pulseaudio -e` to see the logs
<averell>
i hope it's not bluetooth :)
<jlv_>
Not bluetooth XD
<averell>
if it's not usb, maybe you have front and back connectors, only one of them live?
<infinisil>
(you can use the arrow keys to scroll horizontally)
<infinisil>
I'd try googling that
<jlv_>
Haven't googled that yet, but there is a definite change between last night and today. That error first showed up while the computer was shutting down last night, and shows up every reboot today.
<jlv_>
Logs are completely different between last night and today.
<jlv_>
First boot of today also has "pulseaudio.service: Current command vanished from the unit file, execution of the command list won't be resumed."
Yakulu has left #nixos ["Error from remote client"]
Yakulu has left #nixos ["Error from remote client"]
Yakulu has joined #nixos
<jlv_>
I'm not an expert on pulseaudio, but it looks to me like pulseaudio got into a bad state and can't recover
<{^_^}>
[nixpkgs] @petabyteboy opened pull request #62031 → libcanberra: fix crashes with wayland → https://git.io/fjBQt
<jlv_>
Ok. I'm going to try disabling all sound and pulseaudio. Restarting. Re-enabling. Restarting. If there is some state that pulseaudio is carrying around, hopefully that will wipe it out?
<jlv_>
Be back soon
<averell>
if there were state, that wouldn't remove it. but if sound works without pulse, that would be good information. still, you didn't show the full error earlier