<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « kmymoney: 5.0.7 -> 5.0.8 »: https://git.io/JvLWI
mbrgm has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
wavirc22 has quit [Ping timeout: 260 seconds]
drakonis has quit [Quit: WeeChat 2.6]
<nekroze>
I am having trouble trying to convert a string in an attrset to json while maintaining an escaped $ character in the output. For example `builtins.toJSON { foo = "^bar\$"; }` produces an unescaped $ while `builtins.toJSON { foo = "^bar\\$"; }` produces \\\\$ (4 backslashes and a $). I have tried a few permutations of this with the multi line strings wrapped in two single qoutes and similarly cannot find a
<nekroze>
way to get toJSON to output a single backslash followed by a $, what am I missing here?
dansho has quit [Remote host closed the connection]
dansho has joined #nixos
<infinisil>
nekroze: When nix outputs a string on the command line it also escapes it
<infinisil>
nekroze: You can use nix eval's --raw flag to avoid this: nix eval --raw '(builtins.toJSON { foo = "^bar\\$"; })'
ee194350 has quit [Remote host closed the connection]
c382feb9 has quit [Ping timeout: 258 seconds]
<iqubic>
So, I'm trying to update the package `cockatrice` in my own local checkout of nixpkgs. I've already updated the default.nix, except for the hash. I'm now wondering how install this from my local nixpkgs.
iyzsong has quit [Remote host closed the connection]
iyzsong has joined #nixos
<iqubic>
Anyone here at all?
<simpson>
To use your local nixpkgs, either change $NIX_PATH to point to it, or use the -I flag to nix-build. Check man pages for details. What have you tried so far?
dozn has quit [Quit: I'm probably just changing some settings or have had an outage, I'll be back soon.]
<iqubic>
So, I'm getting this error when running the binary I just installed.
<iqubic>
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
<iqubic>
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
<iqubic>
So, I guess something isn't working properly.
dozn has joined #nixos
xelxebar has joined #nixos
<iqubic>
So, I have no idea why that is failing.
<simpson>
iqubic: AIUI (and I may get it wrong) this is Qt5 specifically. Qt5 needs to have a library ahead of time for drawing to Xorg, using XCB, but for reasons it doesn't know that automatically. The solution, for now, is to put the package into your system environment and restart Xorg.
lurkless has joined #nixos
unacceptable has joined #nixos
lurkless has joined #nixos
lurkless has quit [Changing host]
<evanjs>
iqubic: does whatever derivation you’re using use wrapQtAppsHook?
<iqubic>
evanjs: I'm trying to update this package so that it is the latest version. I'm not able to get it to work.
phreedom has joined #nixos
jb55 has joined #nixos
ayerhart has joined #nixos
andreas303 has joined #nixos
SOO7 has joined #nixos
<iqubic>
simpson: I have no idea how to put this into my system environment, because this isn't in Nixpkgs. I'm trying to update this package myself.
<simpson>
iqubic: If this were, say, Picard, and I were doing this, I'd be brave and see whether it works to put the older version into the system environment, the newer version into the user environment, and see if Qt is appeased in that manner.
<simpson>
And if not, then just -I or export $NIX_PATH and then nixos-rebuild. That's how I got Picard set up, if my notes are to be believed.
<iqubic>
I see.
<iqubic>
Why is this such a pain to deal with?
<simpson>
Qt comes from an era of strong opinions about GUI toolkit ergonomics. It loads a lot of functionality via shared libraries that are not predictably located.
<iqubic>
I recall I had this working a few months ago.
<iqubic>
But I was silly and deleted my local checkout of nixpkgs.
<iqubic>
So, I don't know what I did to make it work.
<clever>
dansho: this magic path will always have the right name, even on other arches (arm, 32bit x86)
WilliButz has joined #nixos
dellie__ has quit [Ping timeout: 245 seconds]
<iqubic>
evanjs: how would using wrapQtAppsHook help me here?
bvdw has joined #nixos
risson has joined #nixos
<dansho>
clever: i'm trying to get a binary to run on nixos that wasn't compiled for nixos, i don't know how to do it besides to set LD_LIBRARY_PATH with the correct store paths manually
<clever>
dansho: patchelf?
makefu has joined #nixos
TwoNicToupper has joined #nixos
<clever>
dansho: how does it fail when compiling?
<dansho>
clever: it's a binary that wasn't compiled for nixos (its already compiled)
<clever>
dansho: ah, then just patchelf as normal
globin has joined #nixos
ok2` has joined #nixos
emily has joined #nixos
mexisme has quit [Ping timeout: 272 seconds]
fl0_id has joined #nixos
romanofski has joined #nixos
<iqubic>
So, I have no idea how to make this work.
<iqubic>
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
<iqubic>
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
<iqubic>
So, I have no idea why my qt5 app is failing. And no idea how fix it.
<simpson>
iqubic: $NIX_PATH and -I should both be supported by nixos-rebuild. Putting the Qt5 application into the system environment, then restarting Xorg and the X session, has worked for me in the past. I don't know whether it still works or will work for your package.
phreedom has quit [Quit: No Ping reply in 180 seconds.]
spacefrogg has joined #nixos
<clever>
infinisil: ah, ive not played with the auto stuff yet
phreedom has joined #nixos
<iqubic>
simpson: I know that it should be put into my system environment, but IDK how to do that, because this isn't in nixpkgs proper, but only in my local checkout.
<iqubic>
I wish there was a simpler way to do this.
<simpson>
iqubic: Use $NIX_PATH or -I to give your local nixpkgs to nixos-rebuild.
cartwright has quit [Remote host closed the connection]
cartwright has joined #nixos
mexisme has quit [Ping timeout: 268 seconds]
<iqubic>
How would that work?
<simpson>
nixos-rebuild uses the same path lookup mechanism as the rest of Nix.
tomberek has quit [Ping timeout: 268 seconds]
xkapastel has joined #nixos
mexisme has joined #nixos
<iqubic>
Now we just have to see if the latest version is installed, or if the version from 2017 (the nixpkgs version) is pulled in.
cartwright has quit [Read error: Connection reset by peer]
phreedom has quit [Read error: Connection reset by peer]
phreedom has joined #nixos
cartwright has joined #nixos
<iqubic>
There's got to be a way to tell nixos to pull in this one package from my local checkout, and everything else from my main nixos channel.
<iqubic>
because having to specify -I at every rebuild could get annoying.
<clever>
iqubic: use `import /home/clever/foo` instead of `import <foo>`
<clever>
<foo> is just a shortcut to generate a path by looking it up in NIX_PATH/-I
<clever>
but you can skip that, and just hard-code paths
<iqubic>
clever: I'm not sure what you mean there.
<clever>
iqubic: let foo = (import /home/clever/apps/nixpkgs {}).hello; in ...
<clever>
that will always grab hello from a specific git checkout
<iqubic>
Ah. I see.
felixfoertsch23 has joined #nixos
<iqubic>
So I can say: "let cockatrice = (import /path/to/nixpkg).cockatrice" and then just put cockatrice in my "environment.systemPackages = with pkgs; [ ... ]" list?
<iqubic>
Or would I have to do something else, because I have that with pkgs part?
<clever>
your missing a {}
<iqubic>
Where?
<clever>
look at my example, it has a {}
<clever>
simplest way to avoid confusion from `with pkgs;` is to just name your thing something else
<iqubic>
Ah good. Cachix saw that there was a change in the build and called for a recompile.
<iqubic>
Now to let the program build.
<infinisil>
iqubic: Why did you not read the section in the manual I linked you to earlier, which clearly shows how you could use wrapQtAppsHook?
kvda has joined #nixos
endformationage has quit [Quit: WeeChat 2.6]
<infinisil>
iqubic: In any case: Don't ignore advice, even if you think it won't work. Ignoring advice is a great way to make people not help you anymore
<iqubic>
I'm sorry infinisil. I'll do better next time.
<infinisil>
Great :)
<evanjs>
iqubic: btw, here are some suggestions based on the advice given in the manual. try to be generic with qt stuff and not eg pass in specific version
<iqubic>
evanjs: The issue is that all I did was change which version the derivation was downloading from github. I didn't even have to change the hash at all. That seems weird and supicious.
eoli3n_ has joined #nixos
<fuzen>
I still need to write a PR for thelounge, I partially don't want to touch it because it means changing service configurations (One of the options is has is invalid).
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<evanjs>
iqubic: well that brought me to another thing to fix -- it's using fetchurl lol. Using fetchFromGitHub and I was told I needed a new sha256 :D
<evanjs>
thanks for bringing that up, I totally skimmed over the "on github but not using the github helpers" bit haha
<iqubic>
Nice. Sounds good.
<iqubic>
As you can see from looking at the derivation on nixpkgs, it's downloading a 2017 version.
<evanjs>
right right
<evanjs>
side note guys, is it overboard to e.g. ${owner} ${repo} for meta.homepage?
<evanjs>
Because I'm seeing that in some derivations
<iqubic>
Once you make the PR, I'll be updating my local nixpkgs checkout to use the new derivation you're writting.
<{^_^}>
[nixpkgs] @andrew-d opened pull request #78239 → nixosTest.networking-proxy: port to Python → https://git.io/JvLRk
<iqubic>
evanjs: I have no idea who spencerjanssen is, but I doubt they are actually the current maintainer.
<evanjs>
iqubic: yeah I'll be happy to remove them if they say so but won't worry about it atm
<iqubic>
evanjs: It seems that the URL that the cockatrice derivation is trying to download from is the wrong URL. I could get it to work, and grahamcofborg also failed. Both for the same reason.
TwoNicToupper has quit [Remote host closed the connection]
<evanjs>
oh I got it, made me realize why it was using fetchurl in the first place lol
<iqubic>
Why?
<iqubic>
Also, sorry for dragging you out of bed.
<evanjs>
because the version name is funky, like 2019-08-31-Release-2.7.2
<iqubic>
Yeah. That makes sense.
<evanjs>
nah I have a bad habit of not stopping lol
<evanjs>
I do wonder if other packages work around this somehow though
<iqubic>
So, are you going to fix this now, or go to sleep now?
fresheyeball has quit [Quit: WeeChat 2.6]
<{^_^}>
[nixpkgs] @srhb opened pull request #78243 → ceph: Bring back ceph-volume → https://git.io/JvLRH
<evanjs>
yeah I was about to push my best guess right now. the version irks me but I'll leave it unless somebody else says it's bad haha
<iqubic>
Yeah. I have no idea why it's such a bad version name.
<infinisil>
Yeah, though you can't override version like that in an .overrideAttrs
<infinisil>
(well you can, but it won't be propagated to the source url)
<hpfr[m]>
infinisil: so I’d just hard code the url too then I suppose
<infinisil>
(oh but it doesn't matter because you need to define the source url yourself anyways)
<hpfr[m]>
In the override
<hpfr[m]>
You couldn’t do something like src.sha256?
<infinisil>
If you use `rec` like the code there does, and you set `version = `, then you don't need to hardcode the url
<infinisil>
hpfr[m]: It might work, but it's more code than just writing the fetchurl yourself, especially since you need to write both url and hash
<hpfr[m]>
infinisil: how do I determine what I am overriding with these more disparate derivations? linux_4_19? linuxPackages_4_19? It’s not right there in the file
globin has joined #nixos
globin has quit [Changing host]
Cale has joined #nixos
obadz has quit [Ping timeout: 268 seconds]
domogled has quit [Quit: domogled]
<infinisil>
hpfr[m]: Not sure what your question is
domogled has joined #nixos
<hpfr[m]>
infinisil: you have to name something to .overrideAttrs, and I’m curious how I figure out what I’m naming when it’s not obvious by the metadata in the derivation or something
<infinisil>
Hm, that does seem rather complicated in this case..
<infinisil>
hpfr[m]: Do you have an all-packages.nix file ready?
<infinisil>
I'll show you how to figure this out
<hpfr[m]>
Furthermore, I am already using override on linux_4_19 for extraConfig, how would I structure calling both override and overrideAttrs?
<hpfr[m]>
infinisil: no, to my chagrin I just search GitHub for everything, I’m pretty sure there’s commands for this kind of thing, I just never learned :/
<infinisil>
Oh, well github doesn't even render all-packages.nix
<infinisil>
But well, yes you need to override linux_4_19
<infinisil>
And that propagates to linuxPackages_4_9
<hpfr[m]>
infinisil: it’ll show context from it in search
<hpfr[m]>
Oh ok, I’m guessing linuxPackages includes headers and docs or something
<infinisil>
I'd suggest you to just use your local nixpkgs and search in the file directly, much faster that way
<hpfr[m]>
What’s the command for that?
<infinisil>
hpfr[m]: If you don't have a nixpkgs clone you can do `nix-instantiate --find-file nixpkgs` to find the nixpkgs of your system
<infinisil>
And then open the pkgs/top-level/all-packages.nix file
<hpfr[m]>
How much space does a nixpkgs clone take
<hpfr[m]>
For future reference
<hpfr[m]>
I’m kind of strapped for space on this machine
<infinisil>
A full one over 500MB, but if you do a shallow clone it's only like 20MB
<hpfr[m]>
infinisil: oh sounds good
<infinisil>
But no need to if you just need to check some stuff
<infinisil>
You already have a nixpkgs
<infinisil>
(just not mutable or tracked with git)
<hpfr[m]>
Got all-packages open
<hpfr[m]>
I suppose all of this is gonna change when flakes come around haha
<infinisil>
hpfr[m]: Okay now search for "linuxPackages_4_9 ='
palo1 has joined #nixos
<hpfr[m]>
4_19?
<infinisil>
Oh yeah
<infinisil>
> showSrc pkgs "linuxPackages_4_9"
<hpfr[m]>
Oh ok so this linuxPackagesFor function takes linux and builds a linuxPackage
<infinisil>
Navigating around in all-packages.nix like this is very useful to figure out this kind of stuff
<hpfr[m]>
What do you mean by the showSrc line?
palo has quit [Ping timeout: 258 seconds]
palo1 is now known as palo
<hpfr[m]>
I’m just viewing the file in vim
<infinisil>
Ah that's just a small function {^_^} has for showing a source line :)
<infinisil>
(see how the bot posted the line of the definition)
<hpfr[m]>
I blocked the bot /)_- haha, that’s what I get I guess
<infinisil>
Ahh
<infinisil>
hpfr[m]: Anyways, from the linuxPackages_4_19 you can see that it uses the pkgs.linux_4_19 attribute. This is why you can do overrides to linux_4_19 which then linuxPackages_4_19 uses
chagra has joined #nixos
<hpfr[m]>
I suppose this: filter (hasPrefix "linuxPackages") (attrNames pkgs) was also for the bot?
<infinisil>
Indeed
<infinisil>
I suggest you to only block NOTICE's of the bot
<hpfr[m]>
Isn’t that based on nix or something? I can’t use similar logic with the nix CLI?
<infinisil>
Oh yeah that's totally nix, you can evaluate that in `nix repl '<nixpkgs>'`
<infinisil>
But the bot is nice to demonstrate things here
<hpfr[m]>
Ok sweet
<hpfr[m]>
Of course
domogled has quit [Read error: Connection reset by peer]
<hpfr[m]>
Ok, great. Hopefully my last question, how would I structure override and overrideAttrs on the same package?
domogled has joined #nixos
<infinisil>
hpfr[m]: What's your definition of .override look like?
<hpfr[m]>
infinisil: looks like that ones ok because it’s just major.minor :D
<hpfr[m]>
At least for me
<infinisil>
Yea
dansho has quit [Quit: Leaving]
<zeta_0>
infinisil: I am using fetchFromGithub for ihaskell but i am tired of constantly replacing rev and sha, will using fetchTarball instead automate this process for me?
<zeta_0>
infinisil: that link there doesn't seem to show the fetchTarball function, so i don't know where to find instructions on how to use it
<{^_^}>
[nixpkgs] @jonringer pushed commit from @evanjs to master « postman: 7.14.0 -> 7.16.0 »: https://git.io/JvLEV
lsix has joined #nixos
gagbo has joined #nixos
<lux1>
hi
chagra has quit [Ping timeout: 268 seconds]
mexisme has quit [Ping timeout: 272 seconds]
gagbo has quit [Client Quit]
<lux1>
I want to install teamviewer, but I need the newest version. This is on unstable, but not on stable, and I'm generally from stable. I've set up unstable so I import it:
<lux1>
```
<lux1>
let
<lux1>
unstable = import <nixpkgs-unstable> {
rauno has quit [Ping timeout: 245 seconds]
<lux1>
config.allowUnfree = true;
<lux1>
};
<lux1>
in
gagbo has joined #nixos
mexisme has joined #nixos
<lux1>
but how can I make it so that `services.teamviewer.enable = true;` works on unstable?
<lux1>
I can install the app with `unstable.teamviewer` but this wont work without the service
<infinisil>
lux1: You need to use an overlay to redefine pkgs.teamviewer itself
<infinisil>
,overlays lux1
<{^_^}>
infinisil: Did you mean overlay?
<{^_^}>
lux1: Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
<infinisil>
In your case it would be `self: super: { teamviewer = unstable.teamviewer; }`
<infinisil>
I'm just realizing that there aren't any good docs on overlays..
kleisli has quit [Ping timeout: 265 seconds]
<infinisil>
Neither the official docs in the above link nor the wiki (https://nixos.wiki/wiki/Overlays) has a single example of an overlay in a NixOS configuration
<infinisil>
As the error indicates, pkgs.pxlib is not available. While there are ways to make that available, in your case I think it's easier to just define pxlib locally
<infinisil>
cyris21260: Something like `let pxlib = import ./pxlib; in` in the pxwrite file
<cyris21260>
Ah I see
<infinisil>
And then use that variable instead of pkgs.pxlib
chloekek has joined #nixos
domogled has quit [Remote host closed the connection]
<cyris21260>
@infinisil is there anything I need to do so the package finds the library?
domogled has joined #nixos
<cyris21260>
`configure: error: libpx not found. You will need at least libpx 0.2.9`
<infinisil>
cyris21260: Perhaps you need to add pkgconfig to nativeBuildInputs
<chloekek>
For pkg-config to find libraries you may need to use the .dev version e.g. pkgs.boost.dev.
marijan[m] has joined #nixos
<marijan[m]>
<cyris21260 "Can someone tell me what I am do"> you assume that by installing the package "pxlib" using nix-env, it will somehow become available in nixpkgs, since you try to use it in the build inputs of "pxwrite" by writing "pkgs.pxlib". But that assumption is wrong. you'll have to import the package definition of "pxlib" in "pxwrite". e.g.
<infinisil>
I really hope the separation of user vs system gets more clear over time for NixOS. Because currently there's a lot of services in NixOS that configure user-level things, and that's not very good, because non-privileged users can't change those settings
<{^_^}>
[nixpkgs] @marsam merged pull request #78002 → podman: enable on darwin → https://git.io/Jvk2T
<chagra>
I'm setting up home-manager to fetch the latest versions of some greasemonkey userscripts. Can I somehow use nix to fetch a plaintext file and also have it not verify the hash?
<dminuoso>
By the way, where can I reach the nixos folks responsible for packaging the kernel?
<dminuoso>
We've been trying to get nixos to run on a particular brand of switches for a while now, but everything has been in vain completely.
<infinisil>
chagra: The builtin fetchers builtins.fetchurl and fetchTarball allow you to not pass a sha256, at the expense of having to redownload the things after 1 hour (by default)
<chagra>
oh yeah I know, that's why I have it for this specific little thing. I'd never not pin the version of the tarball I'm downloading for something I consider critical
Synthetica has joined #nixos
<chagra>
I can't be bothered to write a bot to update these nix expressions for me
<Synthetica>
Do we prefer source downloads over http or https?
<chagra>
maybe another time
<rauno>
infinisil, when doing a --import on a edited --export i get non-zero padding for this nix.conf
<chagra>
for troubleshooting' sake, is there a cli utility that would allow me to run a command like `${pkgs.program}/bin/program --config ${pkgs.program}/share/exampleconfig`?
<chagra>
the way I do it now is just to write a package that is a package
<chagra>
I wonder if there is any quick way to do it
<chagra>
that is a wrapper *
<infinisil>
$(nix-build --no-out-link '<nixpkgs>' -A program)/bin/program --config $(nix-build ...)/share/exampleconfig
<xa0[m]>
really starting to think i might switch my home system from gentoo to nixos
<Synthetica>
xa0[m]: _one of us_
<adisbladis>
\o/
<adisbladis>
Also a lot of us are ex gentoo users :)
<xa0[m]>
oh no, i already am. my server and raspis all run it
<xa0[m]>
i just held off on my home system, cause i really do love gentoo
nschoe has joined #nixos
<nbp>
infinisil: It did not go anywhere because we absolutely need a syntax change to unify both. However changing Nix syntax require such dedication that I have not enough time to commit. :/ (about rfcs#3)
<{^_^}>
[nixpkgs] @AndersonTorres pushed 3 commits to master: https://git.io/JvL21
<infinisil>
nbp: I just thought about this earlier, and I think using something like the NixOS module system for all packages would solve this in a nice way
chagra has quit [Quit: WeeChat 2.6]
<infinisil>
Though I haven't looked at the rfc closely
<nbp>
if anybody is willing to take over the efforts toward doing this, I would be happy to help, but I think other nix flakes are taking over (even if I do not consider this as a solution, in the way it got presented)
<nbp>
infinisil: NixOS module are too heavy weight for Nixpkgs.
<infinisil>
nbp: What do you mean by "other nix flakes"?
<nbp>
s/other//
<infinisil>
nbp: Yeah unfortunately, but in spirit I think they're a good solution
<infinisil>
nbp: I believe nix flakes are orthogonal to this
<infinisil>
Also edolstra drafted some ideas for a module system integrated into nix itself:
<xa0[m]>
adisbladis: out of curiosity, is there anything you miss from gentoo?
<nbp>
The problem I have with Nix flakes, is that they are meant as a way to have Nix expressions in a standalone manner, in each project. (therefore, yes, orthogonal) However, they do not offer a low transition cost between project's nix flake and Nixpkgs integration.
kfound has joined #nixos
<infinisil>
nbp: What do you mean by nixpkgs integration?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vk3wtf has quit [Remote host closed the connection]
xa0[m] is now known as bqv[m]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<bqv[m]>
wait, what
<bqv[m]>
is thatm e
<kfound>
hi all: i have a question about binutils-wrapper, nix-build and nix repl's ":b"; when i instantiate pkgs.binutils.info at the repl with :b, the outPath for binutils.info is not added to the store
<bqv[m]>
bqv[m]: test
<kfound>
but if i build it with nix-build -A binutils.info '<nixpkgs>' it does get added
<kfound>
i thought all the outputs for a drv should get realised when i run ":b", no?
vk3wtf has joined #nixos
kfound has quit [Remote host closed the connection]
<bennofs>
i think before changing nix syntax, it would be good to unify the different override mechanisms in nixpkgs first
<bennofs>
this could give us an easy way to test if the syntax has everything we need first
<bennofs>
for example, the nixlang proposal says "experience with the module system suggests super is not required", so we should be able to rewrite nixpkgs to not require super
inferencerules has quit [Ping timeout: 260 seconds]
chagra has joined #nixos
inferencerules has joined #nixos
dahirsch has joined #nixos
orivej has joined #nixos
<dahirsch>
hello there, i have several luks.devices. for some of them i want to set the same option (keyfile). is it possible to map over a list of device.names i want to have edited and set their keyfile property? a normal map does not suffice because then i get a list submodules but these are not inserted into luks.devices with the right name e.g. boot = {modified submodule}
CMCDragonkai1 has quit [Ping timeout: 265 seconds]
chagra has quit [Client Quit]
domogled has quit [Quit: domogled]
<evanjs>
sort of annoying have to select gentoo from my BIOS menu every time I reboot. Any ideas as to why GRUB isn't adding it to my menu? It picks up Windows just fine
chagra_ has joined #nixos
patriksletmo has joined #nixos
<dminuoso>
evanjs: Is your Gentoo perhaps not UEFI bootable?
zupo has joined #nixos
<dminuoso>
I think the windows selection is based on os-prober?
<{^_^}>
[nixpkgs] @mmahut opened pull request #78294 → unar: mark as broken → https://git.io/JvL6t
vidbina_ has joined #nixos
tomberek has joined #nixos
alexherbo23 has joined #nixos
<bqv[m]>
so, those of you that are ex-gentoo
<bqv[m]>
have you noticed there are less packages available, or more? or both?
Guest94972 has quit [Ping timeout: 240 seconds]
alexherbo2 has quit [Ping timeout: 268 seconds]
alexherbo23 is now known as alexherbo2
<simpson>
About the same, TBH
<simpson>
There's a lot less fussing with irrelevant stuff.
<simpson>
But the actual package availability is about the same. I had to roll up my sleeves and write ebuilds for Gentoo, and I have to write Nix expressions too. That's life.
<bqv[m]>
i do prefer writing nix expressions to ebuilds in fairness
<bqv[m]>
fair enough, i'll probably switch when it's convenient
<timokau[m]>
xa0: If you look at the raw stats, we have way more packages. Not sure how much that translates to practice though, that depends more on whether or not the packages you actually want are among those packaged
<{^_^}>
[nixpkgs] @flokli pushed 2 commits to release-19.09: https://git.io/JvL1F
kvda has joined #nixos
kvda has quit [Client Quit]
vidbina_ has quit [Ping timeout: 260 seconds]
<JWK>
a quick question: is there a specific reason for NIX_PATH is different if I log in as normal user to a console shell or if I run a login shell through a Gnome3 terminal?
vidbina_ has joined #nixos
<{^_^}>
[nixpkgs] @blanky0230 closed pull request #73885 → Add support for tuxedo-keyboard LED backlighting. → https://git.io/Je6dc
cust0dian has joined #nixos
<alienpirate5>
I'm trying to package a game VVVVVV, which recently got its source released
<alienpirate5>
The game has a data file `data.zip` which is only distributed commercially with the game, and also a version of that `data.zip` that can be downloaded freely but does not have any of the levels
<alienpirate5>
How would I add an option to the package to choose which to use?
<alienpirate5>
Right now I have a `requireFile` that looks for the commercial version of the file in the Nix store
iqubic has left #nixos ["ERC (IRC client for Emacs 28.0.50)"]
patrl has joined #nixos
opthomasprime has joined #nixos
opthomasprime has left #nixos [#nixos]
<patrl>
hi all - anyone use upower? I'm a little bit confused about the default behaviour of the nixos service
<patrl>
I have `services.upower.enable = true`, in my config but the upower service is inactive (dead) until I manually run something like `upower --monitor`
<patrl>
is this expected behaviour?
fendor has quit [Ping timeout: 265 seconds]
opthomasprime has joined #nixos
<{^_^}>
[nixpkgs] @jonringer opened pull request #78310 → steam: use 64-bit libva → https://git.io/JvLDQ
eri has joined #nixos
wiml has joined #nixos
wildtrees has joined #nixos
Chiliparrot has joined #nixos
<{^_^}>
[nixpkgs] @fishi0x01 opened pull request #78311 → enum4linux: init at 0.8.9 → https://git.io/JvLyU
chagra has quit [Ping timeout: 258 seconds]
judson_ has joined #nixos
chagra has joined #nixos
lsix has quit [Quit: WeeChat 2.6]
opthomasprime has left #nixos [#nixos]
<lordcirth_>
patrl, probably not? check what the .service file is actually doing, and it's logs
chagra has quit [Ping timeout: 268 seconds]
chagra has joined #nixos
mexisme has joined #nixos
Simerax has joined #nixos
lovesegfault has joined #nixos
kleisli has quit [Ping timeout: 268 seconds]
<Simerax>
im relatively new to nix. is there a way to disable default applications? for example xfce automatically starts x11-ssh-askpass when doing a git pull. I dont want to use askpass. can i disable this in my confing? if yes whats the syntax for that?
orivej has quit [Ping timeout: 268 seconds]
<Raito_Bezarius>
Is there any reason why a build would fail at the unpacking sources step?
<lovesegfault>
Simerax: You can set your askpass for git
<tilpner>
Simerax: There is an option programs.ssh.askPassword
<Raito_Bezarius>
it says: builder failed with exit code 1 just after "unpacking sources" so I have no idea what's going wrong
<Simerax>
tilpner: ah so i could just do programs.ssh.askPassword.enable = false;
<tilpner>
Raito_Bezarius: exit 1 in patchPhase would do it
<Raito_Bezarius>
I'm not sure how I could add more information to the output
<tilpner>
Raito_Bezarius: Oh no, that could be anything
<tilpner>
Raito_Bezarius: Try more tracing, e.g. set -x
<Raito_Bezarius>
Alright
<Raito_Bezarius>
At the unpackPhase and patchPhase I guess
lovesegfault has quit [Quit: WeeChat 2.7]
<Raito_Bezarius>
also, is there a way to produce some side effects from Hydra, like I want to push some artifacts to some remote server
<Raito_Bezarius>
or should I look into another service than Hydra?
<Simerax>
patrl: thanks that did the trick! How did you know that it's called "ssh.askPassword" how do i know about such commands? i mean the package itself is just called "nixos.x11_ssh_askpass" so there is no real way to know what the config has to look like
<clever>
Raito_Bezarius: <runcommand> in the hydra.conf file i think
kleisli has joined #nixos
<Raito_Bezarius>
clever: can it have some buildInputs or should the stuff be installed globally, I tried to look the source code but my Perl fu is not that great
<clever>
Raito_Bezarius: i would just point it towards a pkgs.writeShellScript, and export PATH within that
<Raito_Bezarius>
Good idea, indeed
<patrl>
Simerax: hah, I have no idea how I figured that out
<patrl>
Simerax: I typically just browse through the nixos options until I find something that looks relevant
lovesegfault has joined #nixos
<Simerax>
patrl: i didnt even know about the "search NixOS options" thing - better than just browsing stack overflow etc
<fuzen>
Some options are wrong, have no descriptions so stack overflow can still be more useful
<fuzen>
services.thelounge.private for example, is wrong
patrl has quit [Ping timeout: 240 seconds]
<infinisil>
fuzen: Define "wrong"
<infinisil>
If there's a bug with an option this can be fixed
<fuzen>
private isn't a valid configuration option. It wont error nixos, but will write an invalid option to the configuraiton
<fuzen>
It's on my todolist to fix when I update the version & add some of the other options this wekend for thelounge, but I have no idea how to mark an option as deprecated, and make it a no-op
<Raito_Bezarius>
also, it seems like that Hydra is setting some GC roots, can I clean older builds? I clicked on "clear failed builds cache" but it didn't remove everything I see
<{^_^}>
[nixpkgs] @DavHau opened pull request #78313 → add missing kubelet dependency for docker container systemd services → https://git.io/JvLSQ
<Raito_Bezarius>
hydra-update-gc-roots wants to keep all roots
chagra has quit [Ping timeout: 260 seconds]
chagra has joined #nixos
<infinisil>
fuzen: Look into mkRemovedOptionModule for deprecating options
o1lo01ol1o has joined #nixos
<fuzen>
infinisil: Thanks, I'll grep through nixpkgs to find an example for it later when im working on it
o1lo01ol1o has quit [Remote host closed the connection]
some_random_dude has joined #nixos
<some_random_dude>
Question. I added a bunch of hosts to block through the extraHosts option. I verified that they populate /etc/hosts. However, when I do something like `ping facebook.com`, it doesn't block them. What gives? :(
lovesegfault has quit [Ping timeout: 268 seconds]
ixxie has quit [Ping timeout: 240 seconds]
<some_random_dude>
And I'm not using something like dnsmasq either
takeda has quit [Quit: leaving]
lovesegfault has joined #nixos
kenjis1 has joined #nixos
<some_random_dude>
And I'm using the base example config that they give you when you first install.
fendor has joined #nixos
<heath>
might as well ask here too (beside functional programming nix channel): has anyone found that running nix in production without application level containers is cheaper and/or easier to maintain than relying on docker and kubernetes?
kleisli has joined #nixos
<gchristensen>
heath: I think it depends on the scale at which you operate, and that small-to-medium scale deployments, right now, are a great fit for a Nix-based, no-container deployments
drakonis1 has joined #nixos
<gchristensen>
if you're massive, the abstraction layer provided by k8s is useful and good. but at a small scale, Nix's integrated deployments are a much better, cheaper fit, IMO
drager has joined #nixos
<some_random_dude>
Oh I answered my own question... I dont know why but ping isnt respecting the hosts file (maybe it never does, I have no idea). Using curl and an internet browser showed that the hosts file was working. *shrugs*
<drager>
Hi, I recently updated to 19.09 and now I get SSL cert errors for multiple programs. Ideas?
domogled has quit [Ping timeout: 268 seconds]
<drager>
"Problem with the SSL CA cert (path? access rights?) (77); using cached result"
<cransom>
heath: i run a small to medium shop that's entirely nix based. we spent a bit more effort to use auto scaling groups as hard as we could, so for most of our deployments, we push a brand new os image every time. i don't feel like i'm missing anything from docker/k8s (maybe a little bit of deploy speed? but i'd rather stability over that)
psyanticy has quit [Quit: Connection closed for inactivity]
<gchristensen>
cransom: <3 immutable infra, image-based deployments is 100% the reason I found and fell in love with NixOS :D
shibboleth has joined #nixos
ixxie has joined #nixos
<cransom>
in a previous engagemetn that was a bit bigger, we used nixops as that fit the company slightly better, but after having an ami for every code push, it's been smoooooth.
cust0dian has quit [Ping timeout: 268 seconds]
<cransom>
we replaced chef with it. the asg reactions got so much better. with chef, it was 10 minutes and a reboot for a machine to come up (assuming we didn't have a deploy failure), with nix, it's ready to go in ~1 and we've never had an event where machine scaling was a problem.
<heath>
when we say massive, what exactly is that? :)
<cransom>
but besides that, if you go a container route, you have a similar vibe but having the full instances being completely torn down on every deploy adds confidence.
<gchristensen>
enough to have a team to dedicated to maintaining k8s
<gchristensen>
s/dedicated to maintaining/maintain/
<heath>
perfect, thanks the responses. have there been discussions around making nix suitable for larger orgs?
gxt has joined #nixos
<heath>
thanks +for the responses, rather
lovesegfault has quit [Ping timeout: 258 seconds]
<cransom>
i'm not sure how it's unsuitable currently for larger orgs.
<gchristensen>
heath: I think Nix is already suitable for it, though the way Nix is used may be different. for example, using Nix to build docker images, or other strategies
lovesegfault has joined #nixos
<heath>
oh right, I guess that was a silly question
<gchristensen>
cransom's method of immutable server images scales up amazingly well, too, as long as you need to deploy a given server type no more than once every 15 minutes or so
<gchristensen>
heath: also if you'd like to PM about specifically what you're doing, I'd be interested in hearing! :)
fendor has quit [Ping timeout: 268 seconds]
<cransom>
yeah. if you need to push code more frequently than 15 minutes, my environment won't keep up with that. there could be tweaks, but i can't have a fully baked ami come up. its usually 8-10 minutes at least for the disk image to upload and register.
<ambro718>
After su the PATH doesn't contain what it contained as the user, this is a problem for me, I need to run a program installed in the user's env as root. This used to work.
UndefinedIsNotAF has joined #nixos
<kalbasit>
How is the `programs.sqlite` that's included in `nixexprs.tar.xz` is generated?
<Raito_Bezarius>
heath: FWIW, I have been running very small deployments on AWS using nixops and it has been a breeze, minimal involvement, everything just works ™
<Raito_Bezarius>
the only learning curve is getting into the Nix ecosystem, understanding some strategies to do Nix stuff
<Raito_Bezarius>
and most of the time it's not due to Nix but you have to wrap annoying impure annoying package managers like NPM
<Raito_Bezarius>
(but node2nix & yarn2nix are there to save us)
<infinisil>
Raito_Bezarius: Regarding that, I think only yarn2nix can be used reasonably for development?
<infinisil>
Because it's usable from within a nix-build
<infinisil>
Though maybe node2nix can too, I'm not sure
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
zeta_0 has joined #nixos
<Raito_Bezarius>
infinisil: You mean like w/o having to call yarn2nix manually?
<Raito_Bezarius>
I actually used node2nix in my projects and set up some hooks to regenerate node2nix files automatically and commit back the changes if that's required
<Raito_Bezarius>
It generates some noise but it's acceptable
o1lo01ol1o has quit [Remote host closed the connection]
<zeta_0>
what is the progress of nixos compatibility on raspberry pi 4? i want to put nixos stable on my pi but i don't want to run into any issues?
<Raito_Bezarius>
The other way around I know is to wrap node2nix and do IFD
<Raito_Bezarius>
IMHO, if you have a package lock, it could run without __noChroot = false ; otherwise, fixed output derivation and ultimately no sandboxing works more or less fine
<Raito_Bezarius>
But yes yarn2nix seems cooler
<gchristensen>
kalbasit: it uses the flakes branch :)
<kalbasit>
gchristensen: is there a guide/doc I can follow?
o1lo01ol1o has joined #nixos
Synthetica has joined #nixos
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<sondr3>
I asked on the forums, but wanted to check here too; anyone know if/how it's possible to use a NUR repo without adding it to nix-community/NUR? I have my own repo I want to play around with but couldn't figure out how to include it in my own config outside of the main NUR repo
shafo has joined #nixos
<shafo>
Hi, I was wondering if there is any way in the text mode installer to copy text from the manual which is available on virtual console 8 to virtual console 1?
Shell has quit [Remote host closed the connection]
M-Gregoire49 has joined #nixos
cust0dian has quit [Ping timeout: 268 seconds]
Shell has joined #nixos
<LouisDK>
error: anonymous function at /nix/store/v48f3llcmb33xrb0ssmf0889imbqwjsq-nixos-20.03pre210078.90441b4b47f/nixos/pkgs/applications/office/libreoffice/wrapper.nix:1:1 called with unexpected argument 'langs', at /nix/store/v48f3llcmb33xrb0ssmf0889imbqwjsq-nixos-20.03pre210078.90441b4b47f/nixos/lib/customisation.nix:69:16(use '--show-trace' to show
<LouisDK>
detailed location information)
Shell has quit [Remote host closed the connection]
<LouisDK>
environment.systemPackages = with pkgs; [ git screen mythtv ephemeral firefox strace (libreoffice.override { langs = [ da ]; }) ];
Shell has joined #nixos
<{^_^}>
[nixpkgs] @yurrriq opened pull request #78326 → renderizer: init at 2.0.5 → https://git.io/JvL51
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.python-dotenv: 0.10.3 -> 0.10.4 »: https://git.io/JvLdB
srid-irccloud has joined #nixos
<srid-irccloud>
"builder for '/nix/store/...' failed with exit code 1; last 10 log lines:"
<srid-irccloud>
Why does nix show only the last 10 log lines? How do I increase this limit? This limit is useless for non-trivial Haskell compiler errors.
<{^_^}>
[nixpkgs] @mkg20001 opened pull request #78328 → cinnamon.cinnamon-control-center: init at 4.4.0 → https://git.io/JvLda
<jackdk>
I'm interested in an answer but I usually run nix-build instead
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.jupyterlab: 1.2.4 -> 1.2.5 »: https://git.io/JvLFC
jonten has quit [Ping timeout: 268 seconds]
leotaku has quit [Ping timeout: 265 seconds]
<mkg20001>
Is there a way to copy a derivation from a cache without it's closure?
<gchristensen>
mkg20001: you can get the NAR for a derivation's output, but you can't put it in the Nix store without its closure. why do you want to do that?
chagra has quit [Ping timeout: 265 seconds]
mDuff has joined #nixos
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<mkg20001>
<gchristensen "mkg20001: you can get the NAR fo"> to fetch just an ISO file
turona has quit [Quit: ...]
<gchristensen>
what exactly are you trying to do? maybe this is doable
chagra has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
turona has joined #nixos
UndefinedIsNotAF has quit [Ping timeout: 252 seconds]
<buckley310>
how do i get ".nix" file syntax highlighting in vim? the `vim_configurable` package used to have it on by default but it seems like that's changed.
o1lo01ol1o has quit [Remote host closed the connection]
bvdw has joined #nixos
alexherbo2 has joined #nixos
<pitch>
Hey there, if been interested in the idea behind nix a while now. now i just read that its possible to use nix for packages in any system. is it advisable for testing or should i just run nixOS in a vm? i see the upside of nix but my systems are not that complex tbh, except for my homeserver. i just have 5/6 static binaries and 4 relevant configs...
<rizary_>
i have this `NOPASSWD: /nix/store/xchw8danyqxlcj6ma1wrjpcv19z8slgz-util-linux-2.33.2-bin/bin/mount /secure` in my `/etc/sudoers` but I can't run command `mount /secure`. It says `only root can do that`. I have check mount location ad it is same. Is there any additional config that I am still missing?
<hexa->
can I have a nixos container that has a veth into a netns inside the host?
<lopsided98>
rizary_: Did you run the command with sudo?
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<buckley310>
pitch, depends what you want nix for the most. with nixos you can configure the entire system (server software, desktop environment, bootloader, etc) using nix, but if you install it on another distro, you can only use it to install programs.
alex`` has joined #nixos
<buckley310>
nix is very useful on centos for that reason, because you can install the latest version of things like firefox or nmap and it doesnt break anything :)
<rizary_>
lopsided98: err I forgot to run it with sudo, silly me. Thanks!
Mateon1 has quit [Ping timeout: 268 seconds]
gustavderdrache has joined #nixos
bvdw has quit [Quit: bvdw]
thc202 has quit [Ping timeout: 260 seconds]
bvdw has joined #nixos
sondr3 has quit [Quit: WeeChat 2.7]
<pitch>
buckley310: in the long run i would love to have a server nixOS "script" so i can migrate this machine quickly. at least thats what i want out of it. since my server is quite complex and kinda shapeshifting all the time, i see big potential there. my daily driver is a ~80 MB Linux excluding that yucky browser and xserver that is needed for tehe broken web these days.
Mateon2 has joined #nixos
<buckley310>
pitch, then yeah, i would give it a shot in a vm to get used to the OS config stuff