andi- changed the topic of #nixos to: NixOS stable: 19.09 \o/ https://discourse.nixos.org/t/nixos-19-09-release/4306/2 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || use ,channels for a list of Nix* related channels || nixcon videos: https://tinyurl.com/nixcon2019 || Link to the output of nix-info
bennofs is now known as ALLES|bennofs
rail has joined #nixos
cjpbirkbeck has quit [Quit: cjpbirkbeck]
kleisli has joined #nixos
mbrgm_ has joined #nixos
captjakk has quit [Remote host closed the connection]
mbrgm has quit [Ping timeout: 246 seconds]
mbrgm_ is now known as mbrgm
captjakk has joined #nixos
captjakk has quit [Ping timeout: 240 seconds]
rogue_koder has quit [Ping timeout: 264 seconds]
rogue_koder has joined #nixos
jgeerds has quit [Ping timeout: 264 seconds]
jmeredith has joined #nixos
aveltras has quit [Quit: Connection closed for inactivity]
LysergicDreams has quit [Ping timeout: 240 seconds]
LysergicDreams has joined #nixos
wildtrees has quit [Quit: Leaving]
<energizer> "What font names can be used in fonts.fontconfig.defaultFonts.monospace" https://nixos.wiki/wiki/Fonts#What_font_names_can_be_used_in_fonts.fontconfig.defaultFonts.monospace.3F
<energizer> says to look in /nix/var/nix/profiles/system/sw/share/X11-fonts but i dont have that directory
cge has quit [Ping timeout: 250 seconds]
kolbycrouch has quit [Remote host closed the connection]
kolbycrouch has joined #nixos
<energizer> answer: .nix-profile/share/fonts/
reallymemorable has quit [Quit: reallymemorable]
acarrico has joined #nixos
thc202 has quit [Ping timeout: 246 seconds]
ambro718 has quit [Ping timeout: 250 seconds]
rogue_koder has quit [Remote host closed the connection]
rogue_koder has joined #nixos
<makefu> energizer: it would be great if you could add this hint to the wiki page :)
<energizer> makefu, good idea
cge has joined #nixos
ddellacosta has joined #nixos
jb55 has quit [Ping timeout: 240 seconds]
captjakk has joined #nixos
reallymemorable has joined #nixos
reallymemorable has quit [Client Quit]
ArchFeh has joined #nixos
ALLES|bennofs is now known as bennofs
iqubic has joined #nixos
<iqubic> So, I just installed Chromium, and now Netflix isn't working for me. It's giving me an error about the Widevine Content Decryption Module not being updated. How can I fix this?
<iqubic> I'm running NixOS here.
<danderson> Pretty sure Chromium can't use netflix. Netflix uses a proprietary DRM module that's only bundled in the proprietary google-chrome, not chromium
<iqubic> Ah. I see.
<danderson> https://www.andreafortuna.org/2019/09/24/how-to-install-latest-widevine-plugin-on-chromium/ might be a workaround, but I have no idea how to bundle that into NixOS
<danderson> but the simplest possible option is to replace chromium with google-chrome. Then you get the closed source build with widevine bundled in.
<ottidmes> iqubic: maybe it is hidden behind an option in Chromium? I was always told that NixOS's chromium build should work for it, but the reason I packaged Google Chrome and still am using it is Netflix, can't be bothered to get it working under Chromium
<hpfr[m]> nixpkgs aliases exfat-utils to exfat since 2015, but the kernel has support for exfat post-5.4. maybe this alias needs to be rethought, since the FUSE module isn't necessary but the utils are still of use?
jb55 has joined #nixos
ArchFeh has quit [Quit: archfeh]
aleph- has quit [Ping timeout: 256 seconds]
<bqv[m]> i just tried build-vm to test a new config
<bqv[m]> such a good idea
aleph- has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
<Cadey> how do i use an RSA private key to ssh into NixOS?
bvdw has joined #nixos
drakonis1 has joined #nixos
jb55 has quit [Ping timeout: 240 seconds]
drakonis_ has quit [Ping timeout: 250 seconds]
<NobbZ[m]> As you'd do it with any other distribution as well, assuming you have enabled the sshd service
<ottidmes> Cadey: have the public key in users.users.cadey.openssh.authorizedKeys.keyFiles
aljce has joined #nixos
<aljce> I'm trying to run the nixos AMI but after I launch the 18.01 instance from the aws console I can't seem to ssh into the box. The box is open on port 22.
<aljce> Has anyone successfully ran a nixos aws instance?
jb55 has joined #nixos
Makaveli7 has quit [Quit: WeeChat 2.7.1]
mexisme_ has joined #nixos
<energizer> emacs is to spacemacs as nixos is to ____
<chocopuff> energizer: huh no idea actually....
<chocopuff> is there an equivalent "batteries included" nixos distro
<gchristensen> nixos
mexisme_ has quit [Ping timeout: 246 seconds]
iqubic` has joined #nixos
drakonis_ has joined #nixos
kolbycrouch has quit [Remote host closed the connection]
kolbycrouch has joined #nixos
iqubic has quit [Ping timeout: 260 seconds]
drakonis1 has quit [Ping timeout: 246 seconds]
<bqv[m]> is this in a usable state?
<{^_^}> #80865 (by gnidorah, 3 weeks ago, open): nixos/gtk: init
<bqv[m]> i don't care too much about whether its bulletproof, i just want to be able to manage gtk
schneid3306 has joined #nixos
aljce has quit [Remote host closed the connection]
tertl3 has joined #nixos
reallymemorable has joined #nixos
<infinisil> Didn't look closely at it
<bqv[m]> building it now...
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
Nafai has joined #nixos
<Nafai> ,channels
<{^_^}> Largest Nix-related channels: #nixos, #nixos-dev, #nix-darwin, #nixos-chat, #nixos-aarch64, #nixos-wiki, #nixos-borg, #nixos-security, #nix-core
iqubic` has quit [Ping timeout: 250 seconds]
nerdmaxx has quit [Quit: WeeChat 2.7.1]
iqubic` has joined #nixos
captjakk has quit [Ping timeout: 246 seconds]
<jtojnar> hedning what is the status of the capabilities patch?
iqubic` has quit [Remote host closed the connection]
gustavderdrache has quit [Quit: Leaving.]
kleisli has quit [Ping timeout: 250 seconds]
<colemickens> lovesegfault: ping
<colemickens> lovesegfault: can you remind me how to get around modulesPath when pinning? I am running into inf recursion again and can't remember the right workaroudn.
* colemickens is not going down the flakes rabbit hole tonight, hopefully
<cole-h> (He doesn't appear to be in IRC right now)
<infinisil> colemickens: What's the problem with it?
Guest29 has joined #nixos
slack1256 has joined #nixos
Guest29 has left #nixos [#nixos]
<colemickens> cole-h: I see a nick, I mention the nick.
<colemickens> cole-h: that was meant to be tongue in cheek, not snooty :S
<cole-h> :P
<colemickens> infinisil: idk, I think even the flakes works calls out that modulesPath doesn't work in a flakes world. What does modulesPath mean when NIX_PATH is unset?
<cole-h> Only reason I knew he wasn't here was because his name didn't color :P https://paste.rs/kip.jpg
<hpfr[m]> so I checked status.nixos.org for the commit nixos-unstable is on, then browsed github at that commit to see that `libseccomp` is at version `2.4.3`. My nix channels are up to date, but when I run `nix repl '<nixpkgs>'` and check `pkgs.libseccomp.version`, it returns `2.4.2`? why would this happen?
<colemickens> If I try to do "${pkgs.path}" or just "${pkgs}" or "${nixpkgs}" anywhere, it triggers infinite recursion. Maybe due to how I import the pinned nixpkgs.
<ottidmes> colemickens: remember to set overlays = []; when pinning, or else it will import impure.nix which will imports the overlays, which will define you pinned thing, which will import impure.nix, etc.
<infinisil> colemickens: That only happens if you use it in `imports`, because pkgs depends on imports (and with this imports depends on pkgs too)
<infinisil> Although, where does your pkgs come from?
<colemickens> ottidmes: I actually hadn't thought of that. But... (1) I manually ensure that overlays are loaded from my config the same as they do during nixos-rebuild switch, (2) my overlays in nixpkgs matches what I have in my sys config.
<colemickens> ugh, flakes, come sooooooner
<infinisil> colemickens: If it's just the normal one, you can use `{ modulesPath, ... }: { imports = [ (modulesPath + "/services/...") ]; }`
<colemickens> infinisil: yeah, let me actually see what it does when I use modulesPath instead of handwavey my memory
<colemickens> idk if its the best way, but this imports my pinned nixpkgs and overlays: https://github.com/colemickens/nixcfg/blob/master/lib.nix#L20
<colemickens> and then the other function will cause either a pinned version of my overlays (or a local copy if I have one checked out at a special location).
rardiol has quit [Quit: No Ping reply in 180 seconds.]
<ottidmes> colemickens: ${nixpkgs} used to define machine, depends on machine
<ottidmes> nope, its not, sorry
<colemickens> I guess modulesPath works?
<colemickens> And then I guess I can cheat with it and relative paths to get to other stuff like in lib/make-squashfs.nix ,etc
rardiol has joined #nixos
captjakk has joined #nixos
johnw has quit [Quit: ZNC - http://znc.in]
<colemickens> infinisil: thanks for prompting me to retry that!
<energizer> i'm having trouble configuring fonts. fontconfig = {penultimate.enable = true; defaultFonts = {sansSerif = [ "Noto Sans" ];}; but $ fc-match sans -> DejaVuSans.ttf: "DejaVu Sans" "Book"
<energizer> this issue looks similar but supposedly fixed https://github.com/NixOS/nixpkgs/issues/16026
<{^_^}> #16026 (by romildo, 3 years ago, closed): Default fonts configuration not working
cge has quit [Quit: Leaving]
sigmundv__ has joined #nixos
aij has joined #nixos
iyzsong has joined #nixos
ottidmes has quit [Ping timeout: 250 seconds]
<hpfr[m]> anyone know why my nix repl reports an older version of libseccomp than my channel should have?
h0m1 has quit [Ping timeout: 246 seconds]
captjakk has quit [Remote host closed the connection]
h0m1 has joined #nixos
sigmundv__ has quit [Ping timeout: 264 seconds]
captjakk has joined #nixos
srl295 has quit [Quit: Connection closed for inactivity]
teto has quit [Ping timeout: 260 seconds]
captjakk has quit [Read error: Connection reset by peer]
iqubic has joined #nixos
captjakk has joined #nixos
_d0t has joined #nixos
<_d0t> hey! What's the currently best way to add an electron app to nixpkgs?
jumper149 has quit [Quit: WeeChat 2.7.1]
m0rphism has quit [Ping timeout: 240 seconds]
<bqv[m]> in my experience, the best way is to not
<bqv[m]> i don't think there's many electron apps in nixpkgs, most i've seen are in the nur, and the one that i know if in nixpkgs (riot) seems to be mispackaged in at least one way for me
<_d0t> bqv[m]: i've seen a few, including slack, wire, discord, gitter, etc.
<_d0t> Oh, and atom, of course.
<_d0t> But all of these derivations are a bit different from one another.
<bqv[m]> just copy from them then. if there's no obvious gold standard, the best you can do is create one
<_d0t> well, they all just wrap the official binaries.
<_d0t> Is this the way?
chocopuff has quit [Quit: WeeChat 2.7.1]
<bqv[m]> i have no idea, never (successfully) packaged an electron app, never want to
<mdash> _d0t: well, at least it won't be _worse_ than the others...
<_d0t> snap :(
<mdash> which electron app btw?
<_d0t> this one
<bqv[m]> oh, that looks awesome
<bqv[m]> please package that, i'd use it
<bqv[m]> even though it's electron
<_d0t> If nixos supported Snap, I'd use a snap package instead. I don't really trust electron apps with all that npm nightmare.
<_d0t> Perhaps bringing Snap would be easier? (:
xkapastel has quit [Quit: Connection closed for inactivity]
szicari_ has quit [Read error: Connection reset by peer]
<bqv[m]> there's a mkSnapPackage somewhere
<bqv[m]> apparently it works-ish
<_d0t> what does it do?
<bqv[m]> better off with this
<_d0t> It's not in nixpkgs apparently.
<bqv[m]> there's much better support for appimages
szicari has joined #nixos
<bqv[m]> i might be thinking of a PR, nevermind then
<_d0t> do you have any example or a link in mind?
<{^_^}> #82352 (by Infinisil, 1 week ago, merged): ripcord: init at 0.4.23
<_d0t> well, this probably could work.
<bqv[m]> it's something. it would be better to package from source, but if you manage to get this in then at least it works
<_d0t> thanks, i'll try the appimage approach
<bqv[m]> in the meantime, i'm gonna alias whalebird to `appimage-run whalebird.appimage`
_d0t has quit [Ping timeout: 256 seconds]
aleph- has quit [Ping timeout: 264 seconds]
_d0t has joined #nixos
acarrico has quit [Ping timeout: 240 seconds]
aleph- has joined #nixos
<_d0t> on a related note, is there a reason why ripcord derivation uses appimage and doesn't build ripcord from source?
<_d0t> I'm still not sure on the official policy here.
niso has quit [Ping timeout: 250 seconds]
<_d0t> is it preferrable to use official binaries when the source code is also available?
<bqv[m]> because ripcord has no open source
<bqv[m]> it's preferable to use source wherever it's available and usable
<_d0t> wait, srsly? I thought it was open source.
mounty has quit [Ping timeout: 264 seconds]
<_d0t> My mistake.
mounty has joined #nixos
<cole-h> How do you build a package that is normally `callPackage`d from the command line?
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
<bqv[m]> nix-build -E "with import <nixpkgs> {}; callPackage /home/bao/src/nixpkgs/pkgs/applications/networking/instant-messengers/ripcord
<bqv[m]> /default.nix {}"
<bqv[m]> that's the last thing in my shell history, anyway
<cole-h> Ah, I was `nix-instantiate`ing oops
<cole-h> Thanks. bqv[m]++
<{^_^}> bqv[m]'s karma got increased to 2
<bqv[m]> np
captjakk has quit [Ping timeout: 246 seconds]
<samueldr> ,callPackage for whenever it happens next
<{^_^}> for whenever it happens next: 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 {}'`
drakonis_ has quit [Ping timeout: 240 seconds]
mexisme_ has joined #nixos
<cole-h> samueldr++ You overestimate my recall abilities
<{^_^}> samueldr's karma got increased to 188
<samueldr> you already knew it involved callPackage :)
<danderson> hmm, does pcilib have a nix derivation...
chocopuff has joined #nixos
<nh2> _d0t bqv[m]: from its homepage, ripcord is proprietary but you can get access to the source (presumably for reading it) when getting an enterprise license. I was actually wondering whether to ask how much one costs, so that we could perhaps have a few people to verify its contents. I'm intritued by a fast/non-resource-wasting Slack client
mexisme_ has quit [Ping timeout: 260 seconds]
drakonis_ has joined #nixos
<cole-h> samueldr: Only because that's what I do for my redefined overlays (too much of a hassle to override a few things; might as well create a new drv)
<cole-h> :P
<bqv[m]> there's a ripcord discord server if you want to ask cancel himself
<bqv[m]> danderson: no
<danderson> darn, no ryzenadj for me then. Ah well, it was a distraction anyway :)
<danderson> Added to the laundry list of nixpkgs contribs
<energizer> i dont understand font configuration well enough to diagnose this. my fonts.defaultFonts aren't being used
abathur has quit [Ping timeout: 250 seconds]
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
aw has joined #nixos
spacefrogg has joined #nixos
delli3 has joined #nixos
_d0t has quit [Ping timeout: 264 seconds]
kleisli has joined #nixos
<tnks> If I'm trusted user, and I use `nix-build --option trusted-public-keys ...` does that append public keys? Or override what's set?
tertl3 has quit [Quit: Connection closed for inactivity]
waleee-cl has quit [Quit: Connection closed for inactivity]
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
<colemickens> hm, are early mounts handled by systemd mounts still? I should be able to order a service before one of the mounts?
* colemickens it probably is, I just am not unit configing correctly
chagra_ has joined #nixos
chagra has quit [Ping timeout: 264 seconds]
<GrimSleepless> Hey guys!
<GrimSleepless> Could anyone help me translate this https://github.com/montagdude/awesome-appmenu/blob/master/Makefile into an install phase in Nix, please?
<mlatus_> Could anyone review and merge this pr? It's a really small fix, actually just delete one line: https://github.com/NixOS/nixpkgs/pull/83117
<{^_^}> #83117 (by Ninlives, 32 minutes ago, open): netease-cloud-music: do not set QT_AUTO_SCREEN_SCALE_FACTOR
<GrimSleepless> I can go and see and approve. It might help you get merged faster
<GrimSleepless> it may ***
<mlatus_> GrimSleepless: thanks! :)
schneid3306 has quit [Quit: Quit.]
abathur has joined #nixos
blaggacao has quit [Read error: Connection reset by peer]
drozdziak1 has quit [Ping timeout: 268 seconds]
<mlatus_> P
blaggacao has joined #nixos
ddellacosta has quit [Ping timeout: 246 seconds]
drozdziak1 has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
endformationage has quit [Quit: WeeChat 2.6]
mexisme_ has joined #nixos
leonardp has joined #nixos
drozdziak1 has quit [Remote host closed the connection]
ardumont has quit [Ping timeout: 246 seconds]
ardumont has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
slack1256 has quit [Remote host closed the connection]
ardumont has quit [Ping timeout: 260 seconds]
<GrimSleepless> Hey guys, I am trying to create a package awesome-appmenu, I've made this so far: https://pastebin.com/CP0T2YPt , I am getting this error http://imgur.com/ovtzie2l.png I try to install it
gentauro has quit [Ping timeout: 256 seconds]
<energizer> is it just me or is https://nixos.org/nixos/packages.html?channel=nixos-19.09&query=fira slow to return results
hio has joined #nixos
<energizer> what's going on back there?
<hio> I'm sorry guys but you cant seriously expect me to use NixOS when I cant even use prepackaged, guaranteed to be working IDEs like Jetbrains because you cant provide a compatability layer
<energizer> hio: way to make an entrance haha :-)
leotaku has quit [Ping timeout: 256 seconds]
<hio> well I really try to like NixOS but I cant just hope that I'll never run into software that I cant do a workaround for. Things like static binaries suddenly dont work on NixOS that were built to work anywhere, literally anywhere
<energizer> it looks like there are some jetbrains in nixpkgs? https://nixos.org/nixos/packages.html?channel=nixos-19.09&query=jetbrains
<hio> it doesnt matter, it's about the principle. Eventually I'll run into something that wont work and doesnt exist as a package already. I have no idea what version those packages are, I always use the latest EAP
leotaku has joined #nixos
<energizer> if you can find examples like that in the issue tracker i'd be curious to see how they turn out
<hio> energizer: the rider version on there is ~5-6 months old
<hio> most are very old
<energizer> i wonder if someone could start a little business just taking requests for packaging
<hio> I tried to make it work with patchelf but it wouldnt work, some kind of error with zlib.so ELF header being wrong
<GrimSleepless> hio: Are you talking about the version in the master branch?
<hio> the version that comes up in the search
<GrimSleepless> as unstable?
* colemickens shakes his head
<energizer> 19.09 means september 2019
<hio> no, I mean if I download rider EAP myself and try to run it, it wont work
<hio> it just errors out with some ELF header error
<colemickens> it shouldn't be this hard to figure out how to get a remote build working
<GrimSleepless> hio: you may want to have a look here: https://nixos.org/nixos/packages.html?channel=nixpkgs-unstable&query=rider
<hio> why cant nixos simply provide a legacy linux filetree so regular stuff can still work?
<hio> actually let me think about it for a second, there is an even better solution
<hio> automatically offer to patch binaries when a user tries to run something
<hio> put a ld.so somewhere that is the default and it will open create a prompt saying that this is a legacy way
abathur has quit [Ping timeout: 250 seconds]
<energizer> if you install nix on ubuntu that's what you get, it works just fine
<leonardp> hio : check out the FAQ in the wiki: https://nixos.org/nixpkgs/manual/#sec-fhs-environments maybe this could help you
<leonardp> i use it to run 3rd party toolchains and it works like a chram for me
<ivan> hio: I used the jetbrains IDEs in a nix-shell
<ivan> then I stopped using the jetbrains IDEs
<colemickens> how do people handle remote nix builds with an ssh key that is in gpg-agent?
<colemickens> this UX is not good
<colemickens> I guess you only have to accept ssh host key with sudo, and then somehow gpg-agent is used, even with the nix daemon? neat trick.
<colemickens> we should warn the user, especially if the nix cli can see that the host is already accepted by the user - hint them to accept the host key as root, even spit out the command for them
<colemickens> oh no, still permission denied.
rogue_koder has quit [Ping timeout: 264 seconds]
mexisme_ has quit [Ping timeout: 246 seconds]
<hpfr[m]> ^ I don't have an answer for this but agent support would be much nicer than having to create a one-off private key in /root/.ssh sitting around for nix builds
<emily> I'm getting "error: attribute '_module' missing, at /nix/store/xqqa60qd7ipwxxfvj90pdh9l7g6zh30n-source/nixos/lib/eval-config.nix:72:12" after upgrading to the latest nixos-unstable (103315f830fc2c9f880c4b74d478eb4ff3366715 -> 8c65d2aa92a12f52f6e0b216a0333d79d5952eb7). I'm not sure what could have caused this; does anyone understand eval-config.nix better than me? I use a custom system.nix rather than nixos-rebuild so that I can inject niv dependencies:
<emily> (the backtrace offers no light, it's just that eval-config line and 1:1 in system.nix)
rogue_koder has joined #nixos
mexisme_ has joined #nixos
<samueldr> emily: most likely related to https://github.com/NixOS/nixpkgs/pull/82751
<{^_^}> #82751 (by Infinisil, 5 days ago, merged): Minor module improvements
<samueldr> can't say how, but that's a recent change
<emily> samueldr: aha, thanks. let's see if I can state at it long enough to figure out why
<samueldr> see if https://github.com/NixOS/nixpkgs/pull/82960 helps, not in unstable AFAICT
<emily> props to {^_^} for pinging the person who broke my config so I don't have to <.<
<{^_^}> #82960 (by Infinisil, 2 days ago, merged): nixos: Fix pkgs exporting
<emily> aha, thanks
<emily> looks like it
<samueldr> same thing as one of the two breakage in Mobile NixOS :)
<samueldr> (anyway I'm off, didn't intend to participate this late)
<emily> thanks, that fixed it ^^
rogue_koder has quit [Quit: Konversation terminated!]
palo1 has joined #nixos
palo has quit [Ping timeout: 264 seconds]
palo1 is now known as palo
doyougnu has joined #nixos
doyougnu has quit [Client Quit]
gentauro has joined #nixos
rardiol has quit [Ping timeout: 250 seconds]
<bqv[m]> ,locate libclang.so
linarcx has joined #nixos
<{^_^}> Found in packages: emscriptenfastcomp, llvmPackages.libclang.lib, llvmPackages.clang-polly-unwrapped.lib
xelxebar has joined #nixos
drakonis has quit [Quit: WeeChat 2.7.1]
Cale has quit [Ping timeout: 246 seconds]
<linarcx> Guys, why i get this errro: `can't set the locale; make sure $LC_* and $LANG are correct`
<linarcx> I've installed man-db via shell.nix on void-linux.
jakobrs has joined #nixos
<cole-h> I believe you need to set `LOCALE_ARCHIVE=${pkgs.glibcLocales}/lib/locale/locale-archive`
<jakobrs> If I'm packaging multiple packages outside of nixpkgs, how do I get them to ... see each other?
<jakobrs> I mean, wrt callPackage
Cale has joined #nixos
mexisme_ has quit [Ping timeout: 260 seconds]
<cole-h> You mean like passing one package as an argument?
<linarcx> cole-h: Set it inside shell.nix?
Heirlung has quit [Read error: Connection reset by peer]
<cole-h> That's what I would do, yes.
<danderson> `nix-env -iA redo-apenwarr` -> `error: Django-2.2.10 not supported for interpreter python2.7`
<danderson> ????
<danderson> redo doesn't use django...
<cole-h> Time to look at the recipe and find out why it wants it
<linarcx> cole-h: `"error: syntax error, unexpected DOLLAR_CURLY,`
<cole-h> It needs to be quoted...
<cole-h> `LOCALE_ARCHIVE="${pkgs.glibcLocales}/lib/locale/locale-archive";`
Heirlung has joined #nixos
<jakobrs> I mean, how do I pass the first package as an argument to the second one, yeah
<cole-h> Easiest way would be to `callPackage` them in the same file. I believe this should Just Work™.
<cole-h> If it doesn't, then you can just add that argument to the attrs of the callPackage
<jakobrs> How would I 'callPackage' them in the same file?
<cole-h> e.g. something like `somepackage2 = callPackage ../somepackage2 { inherit somepackage1; };`
<cole-h> Well, just make a single Nix file where you `callPackage` them both separately? :P
<cole-h> Like how nixpkgs does in `top-level/all-packages.nix`
<jakobrs> But then each package would only see the packages defined in Nixpkgs I think
<jakobrs> Because nixpkgs.callPackage "draws" packages from nixpkgs
<cole-h> That's where my other suggestion comes in -- adding the not-in-nixpkgs package to the attrs of the callPackage
<jakobrs> Yeah, I think I'm just going to do that.
<tilpner> jakobrs: callPackageWith could be used too
<jakobrs> yeah
<jakobrs> btw, what is the smallest possible derivation? I mean for testing purposes
<cole-h> I only used backticks to delineate them as code. Don't put them in the source file.
<mkg20001> This pr has been waiting for merge for a month https://github.com/NixOS/nixpkgs/pull/79661
<mkg20001> Could someone take a look?
<{^_^}> #79661 (by luc65r, 5 weeks ago, open): cemu: init at 1.3
<danderson> aha, redo-apenwarr needs a bit of derivation love. Thankfully I poked upstream into releasing a version with python3 support :)
<danderson> updating derivation...
<linarcx> cole-h: Put them where?
<linarcx> Ok fixed.
<linarcx> LOCALE_ARCHIVE="${glibcLocales}/lib/locale/locale-archive";
abathur has joined #nixos
abathur has quit [Ping timeout: 264 seconds]
<linarcx> Guys, i want to use x11 header files to develope an application. So i put `xorg.libX11` inside my shell.nix. But still get error about missing header files.
maddo has joined #nixos
<tilpner> The header files are in .dev, but I feel like it should have used that automatically?
<tilpner> (Am I mixing that up?)
<cole-h> > xorg.libX11.outputs
<{^_^}> [ "out" "dev" "man" ]
<Izorkin> Mic92: need create this file? - https://github.com/netdata/netdata/blob/master/netdata-installer.sh#L1497-L1512 Without this file, an error - WEB_SERVER[static2] : PROCFILE: Cannot open file '/etc/netdata/.environment' (errno 2, No such file or directory)
cole-h has quit [Quit: Goodbye]
<Mic92> Izorkin: what is it used for in WEB_SERVER?
<Mic92> Izorkin: looks fine too me: https://github.com/netdata/netdata/blob/master/web/api/formatters/charts2json.c#L15 They assume stable if the file does not exists.
<Mic92> If it would be mandatory it would be part of their buildsystem
<Mic92> Izorkin: Yes, However also here it is used for installing the binary as it seems: https://github.com/netdata/netdata/blob/master/collectors/ioping.plugin/ioping.plugin.in#L51
<Mic92> We would provide the binary ourself.
jmeredith has quit [Quit: Connection closed for inactivity]
<Izorkin> Mic92: can create an empty file?
<Mic92> Izorkin: I am not sure if that is a good idea. Netdata might assume it was installed via an installer, which it is not.
<Mic92> As long as everything works properly...
<Izorkin> ок
<danderson> When I'm hacking on a derivation in nixpkgs, how do I get a nix shell where I can run build phases separately?
<danderson> I got `nix-build --run-env -A <pkg>`, but I can only find `genericBuild` in there, which does everything
<tilpner> danderson: That should make the phases available, but it depends on what you substitute for <pkg>
* tilpner didn't know about --run-env though
<danderson> I found it from some desperate googling, it's not documented.
<tilpner> Which package are you trying to use it with?
<danderson> redo-apenwarr
jakobrs has quit [Quit: WeeChat 2.7.1]
<tilpner> Well, that doesn't even instantiate
<danderson> yeah, that's why I'm trying to hack on it :)
ardumont has joined #nixos
<danderson> upstream's built a new version that works with python3
<danderson> I'm upgrading the derivation, and trying to figure out why docs aren't building.
<danderson> One sec, I'll push what I have.
glittershark has quit [Ping timeout: 240 seconds]
<tilpner> And after you got it to instantiate, --run-env doesn't export the phases?
doyougnu has joined #nixos
<tilpner> At a glance, nothing there should overwrite them
<danderson> how would I list what got exported?
<tilpner> env
<tilpner> Ohh, hmm
<danderson> env is full of crap, anything in particular I'm looking for? :)
<tilpner> No, wait a minute
glittershark has joined #nixos
<tilpner> Not pretty, but declare -f | grep Phase
opthomasprime has joined #nixos
opthomasprime has left #nixos [#nixos]
<danderson> hmkay, so I do have the phases. But running unpackPhase fails with a bunch of permission denied errors. I'm assuming it's trying to unpack in /nix/store ?
<tilpner> No, unpackPhase should create a new directory in the current working directory
<tilpner> Try with hello for a known-working package
<tilpner> If you run unpackPhase, it creates a hello-2.10 directory
<danderson> hrm. Probably some leftover garbage from a nix-build, sec.
kleisli has quit [Remote host closed the connection]
<danderson> yeah, there we go.
<danderson> looks good now, thanks.
kleisli has joined #nixos
<danderson> now, to figure out why this python module isn't visible...
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/fe67af81d2e (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<colemickens> I mean, creating an extra key isn't even a choice necessarily.
<colemickens> I don't want to have to PR the community aarch box with an "extra" key and especially one that I know isn't up to my security bar.
<colemickens> Mostly frustrating because there must be a way to do it, knowing people around here, someone is doing it. We just don't have it documented on the wiki/manual as far as I can tell.
domogled has quit [Quit: domogled]
domogled has joined #nixos
<Izorkin> Mic92: https://github.com/koct9i/ioping/pull/41 - Conflicting files
<{^_^}> koct9i/ioping#41 (by vlvkobal, 49 weeks ago, open): Add support for netdata
lorimer has quit [Ping timeout: 250 seconds]
<Mic92> Izorkin: I know. I updated the patch before applying it.
<danderson> tilpner: thanks for the help! I got things figured out.
<danderson> It turns out, my fix for the derivation was working perfectly. I just didn't know that Nix hides manpages in some other nix store path
chagra_ has quit [Ping timeout: 240 seconds]
<danderson> so I was trying to figure out why manpages weren't built... in the wrong dir :)
bahamas has joined #nixos
<tilpner> :)
lorimer has joined #nixos
<Izorkin> Mic92: please check #82711 and #82801
<{^_^}> https://github.com/NixOS/nixpkgs/pull/82711 (by Izorkin, 6 days ago, open): nixos/malloc: add jemalloc450-mysql memoryAllocator
<{^_^}> https://github.com/NixOS/nixpkgs/pull/82801 (by Izorkin, 4 days ago, open): nixos/fail2ban: add warning if work fail2ban without firewall
chimay has joined #nixos
kleisli has quit [Remote host closed the connection]
kleisli has joined #nixos
switchy has quit [Read error: Connection reset by peer]
kleisli has quit [Remote host closed the connection]
kleisli has joined #nixos
switchy has joined #nixos
MichaelRaskin has joined #nixos
justanotheruser has quit [Ping timeout: 246 seconds]
pjan has quit [Remote host closed the connection]
linarcx has quit [Read error: Connection reset by peer]
linarcx has joined #nixos
mexisme_ has joined #nixos
pjan has joined #nixos
mexisme_ has quit [Ping timeout: 246 seconds]
revtintin has joined #nixos
justanotheruser has joined #nixos
<bqv[m]> https://github.com/NixOS/nixpkgs/issues/30742 hey y'all, anyone got any ideas for this
<{^_^}> #30742 (by ljli, 2 years ago, open): buildRustPackage: found duplicate version of package
<bqv[m]> i've hit it yet a-fucking-gain
<bqv[m]> and last time i hit it was more than a month ago with no progress since
o1lo01ol1o has joined #nixos
evils has quit [Remote host closed the connection]
captjakk has joined #nixos
captjakk has quit [Remote host closed the connection]
o1lo01ol1o has quit [Ping timeout: 240 seconds]
captjakk has joined #nixos
evils has joined #nixos
captjakk has quit [Ping timeout: 264 seconds]
<peelz_> What's the proper phase for executing wrapProgram? I see some derivations are doing it in postFixup and other in installPhase.
abathur has joined #nixos
chagra_ has joined #nixos
abathur has quit [Ping timeout: 250 seconds]
<Izorkin> Mic92: not builded module netdata-1.20.0/libexec/netdata/plugins.d/libnetdata_ebpf.so no idea?
<Izorkin> ,locate fcntl.h
<{^_^}> Found in packages: zig, wine, dev86, klibc, root5, z88dk, framac, uclibc, arduino, lkl.dev, cdrtools, musl.dev, boomerang, glibc.dev, linux.dev, emscripten, libfixposix, wineMinimal, arduino_core, linuxHeaders, wine-staging, glibc_multi.dev, linux-libre.dev, linux_mptcp.dev, gcc-arm-embedded, linux_latest.dev, linuxPackages.zfs, winePackages.base, gcc-arm-embedded-5, gcc-arm-embedded-6, gcc-arm-embedded-7, glibc_memusage.dev, and 30 more
jgeerds has joined #nixos
chloekek has joined #nixos
wavirc22 has quit [Ping timeout: 240 seconds]
<Mic92> Izorkin: there is a ./libexec/netdata/plugins.d/ebpf_process.plugin
wavirc22 has joined #nixos
<Mic92> Maybe it needs setuid or so
<Mic92> we already do this for other plugins
<Mic92> Ah, now I see what you mean
<Mic92> Izorkin: Looks complex because we would need this for every kernel in NixOS: https://docs.netdata.cloud/collectors/ebpf_process.plugin/
<Mic92> It is probably not worth the effort the time beeing.
<Izorkin> Mic92: ok
<tilpner> Mic92: Can you supply config.boot.kernelPackages.kernel to the package via an override, and have it recompile just the ebpf part?
<Mic92> tilpner: This is indeed an option. However right now it does not provide many information we would not already have otherwise.
<Mic92> It just provides vfs read/write metrics, which netdata already has.
<tilpner> I don't use or particularly care about netdata, just curious. However, the last paragraph describes it as "collecting and displaying much more sophisticated metrics."
abbe has quit [Quit: “Everytime that we are together, it's always estatically palpitating!”]
* tilpner hasn't read much else though
<Mic92> In theory yes, but right now it seems sparse. They also just introduced this plugin recently
<tilpner> There's probably no urgency, I just wanted to point out that a module could prevent having to compile for all kernels
evils has quit [Quit: Lost terminal]
<Mic92> The epbf part is seperate from netdata. So only the kernel-specific part would need to be recompiled.
<tilpner> Well, even if you compile for "all" kernels (from nixpkgs), you can't really cover all of them. The user might provide their own
evils has joined #nixos
<tilpner> And you can still combine these two methods, so that you get the best of both
ambro718 has joined #nixos
ambro718 has quit [Client Quit]
wavirc22 has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
<linarcx> Guys, shell.nix complains that it can't find mount, but i've added it to shell.nix :`Package 'mount', required by 'gio-2.0', not found`
<tilpner> That might not be a Nix error
<tilpner> But I need more context to be sure
<bqv[m]> hey, if i do `nix-store --gc --print-roots` i see a hecktonne of lines that say `{censored}`
<bqv[m]> what are those and how do i kill them
<bqv[m]> oh, nevermind, sudo unmasked them
<bqv[m]> apparently they're in /proc...
<bqv[m]> why the hell do i have gc roots in /proc
<tilpner> That might be processes using those store paths
<bqv[m]> hmm
<bqv[m]> makes sense
evils has quit [Quit: Lost terminal]
knupfer has joined #nixos
chocopuff has quit [Ping timeout: 246 seconds]
evils has joined #nixos
chagra_ has quit [Ping timeout: 250 seconds]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
evils has quit [Client Quit]
fendor has joined #nixos
evils has joined #nixos
c0c0 has quit [Ping timeout: 250 seconds]
__monty__ has joined #nixos
tmaekawa has joined #nixos
mexisme_ has joined #nixos
jakobrs has joined #nixos
<bqv[m]> is there a mechanism for cleaning up old generations
<srk> nix-collect-garbage -d / --delete-older-than
ottidmes has joined #nixos
bahamas has quit [Ping timeout: 240 seconds]
<bqv[m]> gotcha
<bqv[m]> cheers
dycan has joined #nixos
<peelz_> What's the proper phase for executing wrapProgram? Some derivations are doing it in postFixup and others in installPhase.
<bqv[m]> pick one and stick to it
<bqv[m]> i don't think anyone cares too much
o1lo01ol1o has quit [Remote host closed the connection]
c0c0 has joined #nixos
m0rphism has joined #nixos
<peelz_> bqv[m]: hmmm okay
m0rphism is now known as Guest93098
o1lo01ol1o has joined #nixos
Cale has quit [Remote host closed the connection]
thc202 has joined #nixos
<jakobrs> When do I need to specify which outputs I want?
kenran has joined #nixos
<jakobrs> buildInputs = [ SDL2 ] seems to work even if I want SDL2.dev and not SDL2.out
<jakobrs> where SDL2.out is the default output
<bqv[m]> when you want ones that aren't already there? :D
<jakobrs> But it seems I can just go with SDL2 and it works even though I want SDL2.dev specifically
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<ottidmes> peelz_: I roughly follow the rule that when the subject of the derivation is to wrap the program, like when you make a derivation to wrap some scripts, then put it in installPhase, but if it is part of a bigger installation, I would put it in postFixup
tmaekawa has quit [Quit: tmaekawa]
oever has joined #nixos
<ottidmes> jakobrs: pretty sure it also includes .dev inputs by default when you use nix-shell, so that might be what you are seeing
<peelz_> ottidmes: hmm... what do you think of this? https://github.com/NixOS/nixpkgs/pull/83061
<{^_^}> #83061 (by LouisTakePILLz, 1 day ago, open): rmtrash: init at 1.13
Guest93098 has quit [Quit: WeeChat 2.7.1]
mvnetbiz_ has quit [Read error: Connection reset by peer]
m0rphism1 has joined #nixos
blaggacao has quit [Read error: Connection reset by peer]
blaggacao has joined #nixos
<bqv[m]> looks sensible
<peelz_> okay, was just wondering if it made sense to have wrapProgram in the postFixup phase when I could just do everything in installPhase
<evils> i don't suppose anyone can point me in the right direction to getting a VM with USB passthrough working?
<bqv[m]> virtualbox supports that almost by default doesn't it?
<bqv[m]> not sure about anything else
<srk> virt-manager & libvirt does as well, you need to allow polkit access
<evils> bqv[m]: virtualbox is about the only option i know how to use, last time i tried i concluded it doesn't support usb passthrough (i could be wrong about that)
kolbycrouch has quit [Remote host closed the connection]
<jakobrs> Is it possible to keep the build directory *even if the build succeeds*?
kolbycrouch has joined #nixos
<ottidmes> peelz_: You can look in nixpkgs and search for wrapProgram, you will see basically different opinions on the matter, but most will have it in their installPhase when it is like yours, just copying some files, and most that have an install phase as part of the thing that is packaged (i.e. its Makefile), will have it is in postFixup
bahamas has joined #nixos
<kenran> I've been trying to use nim-lang in a tiny project of mine on NixOS. It has a dependency on `SDL2`. I can build it just fine, but when trying to run the binary it can't find the .so. When I had a similar problem in Rust, I created a shell.nix which has `SDL2` in its buildInputs and it worked, but doesn't for nim.
<peelz_> ottidmes: okay, thanks!
<tilpner> bqv[m]: Keep in mine that it requires root to delete system generations
<evils> srk: thanks, i guess i'll look up how to use virt-manager
<srk> evils: basically e; virtualisation.libvirtd.enable = true;
<srk> oop
<jakobrs> in what phase should I put patchelf?
<srk> evils: add yourself to libvirtd group, install/start virt-manager
<kenran> Any hints on how I could proceed to debug this?
<srk> rest is easy
logand has joined #nixos
<colemickens> I don't know if that's still needed, but usb passthrough worked for me with virt-manager with that.
<srk> evils: ^
<srk> kenran: what does ldd says on the binary? how does it even compile with missing SDL?
<colemickens> er, I don't know how I got that so wrong on the username there, sorry for the random mention there
<srk> happens! :)
<evils> colemickens++ srk++
<{^_^}> colemickens's karma got increased to 18, srk's karma got increased to 3
o1lo01ol1o has joined #nixos
<peelz_> ottidmes++
<{^_^}> ottidmes's karma got increased to 21
<kenran> srk: I don't know how it does compile. Something seems fishy there. `ldd` says https://pastebin.com/Ax9D5eKg
<kenran> Shouldn't SDL2 be mentioned there somewhere?
<srk> maybe it's loaded dynamically
<srk> try with strace -f
<ottidmes> is system.nixos.revision the Nixpkgs revision or my config revision, guess the former? The description says the git revision from which NixOS was built, but thats ambiguous
Guest91724 has quit [Changing host]
Guest91724 has joined #nixos
Guest91724 is now known as Miyu-saki
evils has quit [Quit: Lost terminal]
<kenran> srk: Thanks, I'll have a look later. Probably won't get anywhere, first time using those tools :D but something to learn. I have to go outside for a bit *shudder* now.
evils has joined #nixos
xkapastel has joined #nixos
teto has joined #nixos
kenran has quit [Quit: leaving]
domogled has quit [Ping timeout: 250 seconds]
<peelz_> bqv[m]: hey, thanks for the LGTM. I just realized that both scripts depend on GNUs rm and rmdir, not just trash-cli. Should I add coreutils to the wrapper?
<gentauro> is there any way to add a `package` instead of override? At the moment I'm overriden `dotnet` but what I really want to do is, to expand `pkgs` with an `ad-hoc` extra package called `dotnet-sdk-lts` -> https://pastebin.com/wNUwFQ0D
<gentauro> [nix-shell:~/code/dotnet]$ which dotnet
<gentauro> [nix-shell:~/code/dotnet]$ dotnet --version
<gentauro> /nix/store/4xkb7y3ffswxyqygwfy4l3r8lvjgnakw-dotnet-sdk-2.2.401/bin/dotnet
<gentauro> 3.1.102
<srk> you can create an overlay that just adds the package via callPackage
chagra has joined #nixos
<gentauro> srk: link to a guide/tutorial?
<gentauro> (or just an example)
<srk> ,overlay
<{^_^}> 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
domogled has joined #nixos
<srk> it's just (self: super: { newPackage = super.callPackage .. })
<srk> yeah, there's an example as well in docs, rr package
blaggacao has quit [Read error: Connection reset by peer]
blaggacao has joined #nixos
abathur has joined #nixos
tobi has joined #nixos
tobi is now known as Guest92223
<gentauro> srk: I don't seem to get it to work, based on the `rr` example -> https://pastebin.com/txvGfdkn
<Guest92223> hello, I've created an overlay in ~/.config/nixpkgs/overlays which works fine when I use nix-shell. However, it doesn't work when doing a nixos-rebuild. Do I have to change my configuration.nix somehow?
<srk> how do you include the overlay?
<srk> both of you? :)
<srk> you can either use nixpkgs.overlays = [ (super: self:.. ) (import ./another-overlay.nix) ];
<srk> in your configuration.nix to apply them system wide
<gentauro> srk: oh, that might be the problem
abathur has quit [Ping timeout: 265 seconds]
chagra has quit [Ping timeout: 265 seconds]
<gentauro> :)
<srk> or use import <nixpkgs> { overlays = [ overlay1 overlay2 ]; } in e.g. default.nix
Makaveli7 has joined #nixos
chagra has joined #nixos
<Guest92223> @srk: right now I haven't modified my configuration.nix at all, I was under the impression that overlays which are placed in ~/.config/nixpkgs/overlays are picked up automatically, which is what happens for nix-shell. I will try including them how you showed me, thanks a lot
<bqv[m]> <peelz_ "qy: hey, thanks for the LGTM. I "> no, that's part of the default nix build environment
<bqv[m]> oh wait, you mean the program itself
<bqv[m]> yes, then
<peelz_> Yeah. I missed a bunch of dependencies. I realized that when running it in nix-shell --pure
<peelz_> getopt, which, coreutils
o1lo01ol1o has quit [Remote host closed the connection]
<bqv[m]> scripts are always a pain
<peelz_> :P
revtintin has quit [Quit: WeeChat 1.9.1]
<srk> Guest92223: https://nixos.org/nixpkgs/manual/#sec-overlays-lookup ~/.config/ suggest it's a user configuration instead of system-wide
abbe has joined #nixos
o1lo01ol1o has joined #nixos
dycan has quit [Remote host closed the connection]
<Guest92223> srk: including the overlay in configuration.nix has worked, thanks again!
<srk> yw!
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<peelz_> bqv[m]: changed are pushed. I tested again with `nix-shell --pure`. Everything seems fine.
<jakobrs> Any ideas why patchelf could cause a segfault?
<jakobrs> If I run patchelf manually, everything works
<jakobrs> but if I run it in preFixup, the resulting executable segfaults
<jakobrs> ^ Comment out patchelf in the above derivation and patchelf it manually and everything works
bahamas has quit [Quit: leaving]
chagra has quit [Ping timeout: 240 seconds]
eyenx has quit [Read error: Connection reset by peer]
chagra has joined #nixos
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/d5661765539 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<leonardp> is anyone here who can help me cross compile firefox for aarch64? i would love to have it for my pinebook pro...
eyenx has joined #nixos
eyenx has quit [Client Quit]
eyenx has joined #nixos
<leonardp> compiling natively doesn't work, and i cannot get ff to cross-compile. nix-build fails with: `error: attribute 'llvmPackages_7' missing`
<clever> > pkgsCross.aarch64-multiplatform.firefox
<{^_^}> attribute 'llvmPackages_7' missing, at /var/lib/nixbot/nixpkgs/master/repo/pkgs/top-level/all-packages.nix:8729:27
<clever> 8450 targetLlvmLibraries = targetPackages.llvmPackages_7.libraries;
<clever> not sure what would cause that
<leonardp> `nix build -f channel:nixos-19.09 pkgsCross.aarch64-multiplatform.firefox` -> returns `error: attribute 'llvmPackages_7' missing`
<clever> also fails the same way on nixos-unstable
<leonardp> yes
aveltras has joined #nixos
<leonardp> is it broken four you too?
blaggacao has quit [Read error: Connection reset by peer]
blaggacao has joined #nixos
<clever> leonardp: yes
<clever> not sure what the solution is
domogled has quit [Ping timeout: 265 seconds]
<clever> leonardp: maybe #nixos-aarch64 can help more?
<leonardp> clever: good point. thanks!
eyenx has quit [Changing host]
eyenx has joined #nixos
<jakobrs> Hm, dontStrip = true; makes it not segfault
<jakobrs> is that normal?
<clever> jakobrs: sounds like the program relies on something in its debug info
<jakobrs> clever: But if I strip it first, *then* patchelf it, it works fine
<clever> weird
<clever> might be a bug to file on the patchelf repo
<gchristensen> jakobrs: can you produce both binaries and diffoscope them?
<jakobrs> It's probably my own fault, but if I can't figure out what's wrong I'll consider filing it as an issue on the patchelf repo
<jakobrs> What's diffoscope?
linarcx has quit [Ping timeout: 250 seconds]
<gchristensen> it is a tool for figuring out why build products are different :) by the reproducible builds project
<jakobrs> I'll try that, building takes awhile (5mins)
justanotheruser has quit [Ping timeout: 260 seconds]
bierlingm has joined #nixos
<jakobrs> I've created a tar.gz archive of: 1. patch, no strip 2. patchelf, then strip 3. strip, no patchelf 4. strip, then patchelf
<jakobrs> What do you want me to do with them?
justanotheruser has joined #nixos
<bierlingm> ,channels
<{^_^}> Largest Nix-related channels: #nixos, #nixos-dev, #nix-darwin, #nixos-chat, #nixos-aarch64, #nixos-wiki, #nixos-borg, #nixos-security, #nix-core
<MichaelRaskin> Hmm, should #nix-core be removed from the list?
<bierlingm> (Don't want to interrupt -- where do I go for help with setting up NixOS on Catalina? Having some issues...)
<gchristensen> MichaelRaskin: probably
<gchristensen> bierlingm: here or #nix-darwin :)
<MichaelRaskin> #nix-darwin; I assume you have read The Issue?
<atemu12[m]> bierlingm: #nix-darwin
<bierlingm> Thank you
bierlingm has quit [Remote host closed the connection]
<jakobrs> gchristensen: Should I give you the tar.gz archive?
bierlingm has joined #nixos
cosimone has joined #nixos
chris__ has joined #nixos
<MichaelRaskin> bierlingm: https://github.com/NixOS/nix/issues/2925
<{^_^}> nix#2925 (by mroi, 41 weeks ago, open): /nix will not be writable on macOS Catalina
<bierlingm> MichaelRaskin yeah, that's the issue thread I've consulted to try and set it up. I've tried some suggested routes, but it hasn't worked so far.
<gchristensen> jakobrs: sure!
<gchristensen> jakobrs: if you could attach it to the issue, that'd be ideal
<chris__> Is the packages search really slow for anyone else? The one at nixos.org? It took 1.4 minutes to just download the css files.. That are <1kb.
blaggacao has quit [Ping timeout: 264 seconds]
<gchristensen> yep, cool
blaggacao has joined #nixos
<bierlingm> MichaelRaskin As far I can tell, it ended up looping in some weird way, setting up 32 build users...
blaggacao has quit [Read error: Connection reset by peer]
<gchristensen> that is on purpose
<jakobrs> Note that I've replaced $out with `.` in the wrapper scripts
<atemu12[m]> chris__: Yup, noticed that too
blaggacao has joined #nixos
Cale has joined #nixos
Guest92223 has quit [Quit: leaving]
<tilpner> chris__, atemu12[m]: nixos-homepage#353
<{^_^}> https://github.com/NixOS/nixos-homepage/issues/353 (by samueldr, 5 days ago, open): Package listing is extremely slow to load initially
<tilpner> Ahh, you found it already
<chris__> Yup, thanks :)
chris__ has quit [Quit: Lost terminal]
<jakobrs> NixOS/patchelf#196
<{^_^}> https://github.com/NixOS/patchelf/issues/196 (by jakobrs, 21 seconds ago, open): Patchelf and stripping give weird results when used together
<jakobrs> I'd prefer if the discussion could be continued on github as I'd like to spend my day not only debugging this issue.
jgeerds has quit [Ping timeout: 240 seconds]
<tilpner> jakobrs: Did you see patchelf#110 and related issues?
<{^_^}> https://github.com/NixOS/patchelf/issues/110 (by probonopd, 3 years ago, open): Running patchelf on a dynamic executable causes a segfault
<jakobrs> Now I have
<jakobrs> Anyway, I'm leaving for now
jakobrs has left #nixos ["WeeChat 2.7.1"]
bierlingm has quit [Remote host closed the connection]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/96502b19040 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
cosimone has quit [Remote host closed the connection]
<ottidmes> is the system generation number available within Nix?
<MichaelRaskin> No
<MichaelRaskin> I think there can be two generations with different number but exact same system instance path in Nix store
<MichaelRaskin> (probably non-adjacent)
<gchristensen> and a system can be built and used without it being written as a generation
<clever> MichaelRaskin: definitely non-adjacent, you have to switch 3 times, with the 1st and 3rd having identical output
<clever> MichaelRaskin: if the 2nd switch matches the 1st, it wont do anything
<ottidmes> Ah ok, just wondering, cause I saw it mentioned in system.nixos.versionSuffix, and thought it might be useful if it showed up when I checked /nix/store, but I guess I there a better ways to get this info
<MichaelRaskin> clever: this is what I normally assume, but I haven't checked recently
<MichaelRaskin> Thanks for confirmation
<clever> ottidmes: about the only place youll find generation numbers, is the bootloader scripts
<MichaelRaskin> Well, or when looking at /nix/var/nix/profiles
<ottidmes> Checking /nix/var/nix/profiles/ will probably be best anyway
<clever> nix-env can also read that profile
<clever> [root@amd-nixos:~]# nix-env --profile /nix/var/nix/profiles/system --list-generations
<clever> and all of the other generation management commands like delete and rollback work
drakonis_ has quit [Ping timeout: 264 seconds]
jmeredith has joined #nixos
linarcx has joined #nixos
<ottidmes> I have the rev of my Nixpkgs channel and NixOS configuration, I probably have to set nixos.revision to the Nixpkgs channel rev, but am I allowed to set nixos.configurationRevision to my NixOS configuration revision, since it mentiones flake's explicitly, I might better not touch it
noudle has joined #nixos
<ottidmes> Hmm, from checking nixpkgs, its only used for extra info, so should be safe
<kraem> i'm trying to learn how to write shell.nix files to have yarn with node pinned at a certain version. i'm having trouble finding examples on how to that, does anybody have any? :)
<ottidmes> And my setup is basically already flakes-light, so should be future compatible, or easy to make compatible when flakes come out
<clever> 9 yarn = pkgs.yarn.override { inherit nodejs; };
<ottidmes> kraem: Guess you would use nodejs-12_x and nodePackages_12_x
<clever> kraem: you can just override the nodejs that yarn is using
<clever> 3 nodejs = nodejs-12_x;
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<ottidmes> kraem: Tip, don't overlay nodejs to a specific version, rather override only your specific use, i.e. yarn = super.yarn.override { nodejs = self.nodejs-12_x; }
<jluttine> what's a good way to quickly look up the signature and docstring of some function in nix/nixpkgs? for instance, now i wanted to look up toJSON and writeText. googling doesn't work too well and grepping nixpkgs neither
philr has quit [Ping timeout: 246 seconds]
<kraem> i've tried something similiar to that; https://bpaste.net/RZAA but can't get it to work
<clever> jluttine: i tend to just look at the source
<jluttine> clever: yeah, but then how to find those easily in the source?
<clever> > builtins.unsafeGetAttrPos "writeText" pkgs
<{^_^}> { column = 3; file = "/var/lib/nixbot/nixpkgs/master/repo/pkgs/build-support/trivial-builders.nix"; line = 114; }
<clever> jluttine: for anything in pkgs, use this function to find the location the attr was defined at
<clever> jluttine: for builtins.toJSON, check primops.cc in the nix source
<clever> they sometimes have a comment nearby with the type
<jluttine> would be really nice to have some manual where one could just search for these and get the docstring, signature and link to the source code :)
<clever> jluttine: writeText i would expect to find in the nixpkgs manual, and toJSON in the nix manual
<jluttine> probably somewhere in the manual but i couldn't figure out how to find them from the manual.. searching for them gives a huge number of hits
<jluttine> maybe i just don't know how to use the manual..
<clever> jluttine: writeText and toJSON should be fairly unique words in the manual
<kraem> clever ottidmes do you have a full example? i thought i'd have to override nodejs-13_x to use a specific version and then use that override while overriding yarn but can't get my head around how to do it
<clever> kraem: builtInputs = [ (yarn.override { nodejs = nodejs-13_x; }) ];
<kraem> clever: that's what i did in https://bpaste.net/RZAA but i need to override nodejs-13_x too, but can't get that to work
o1lo01ol1o has joined #nixos
<clever> kraem: version is not an argument to nodejs, so .override cant change it
<clever> kraem: you want .overrideAttrs
logand has quit [Ping timeout: 250 seconds]
<tilpner> clever: Changing just version without src is probably not helpful
<clever> you must also override the sha256 under src as well
<clever> tilpner: yeah
<clever> the whole src attr will need to be overriden
<tilpner> Maybe they could import and call buildNodejs
<kraem> ah ok. makes sense. i thought it would spit out the "want" and "got" so i could alter sha256 as soon as i have a derivation that "worked"
<kraem> how would i go about importing buildNodejs?
o1lo01ol1o has quit [Ping timeout: 246 seconds]
<clever> 4 buildNodejs = callPackage ./nodejs.nix { inherit openssl icu; };
<clever> kraem: just run callPackage on the path to nodejs.nix
ArchFeh has joined #nixos
<clever> kraem: exactly as the main nodejs package does
_deepfire` has quit [Ping timeout: 264 seconds]
<tilpner> callPackage (path + /pkgs/development/web/nodejs/nodejs.nix) {}
<clever> > pkgs.path
<{^_^}> /var/lib/nixbot/nixpkgs/master/repo
wavirc22 has joined #nixos
abathur has joined #nixos
kleisli has quit [Remote host closed the connection]
<kraem> ah thanks! i used niv init and then imported sources.json in `sources`, can i import buildNodejs from there?
<clever> kraem: yeah, you can also do `sources.nixpkgs + "/pkgs/development/web/nodejs/nodejs.nix")
kleisli has joined #nixos
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
o1lo01ol1o has joined #nixos
oever has quit [Ping timeout: 264 seconds]
abathur has quit [Ping timeout: 264 seconds]
<jared-w> gchristensen: saw your recent article about nix and Arm and thought it was great stuff, btw :)
<jared-w> clever: any functional difference between `"${sources.nixpkgs}/pkgs/development/web/nodejs/nodejs.nix}"` and your syntax? Been wondering for a while. I seeeeem to recall something vaguely about it being lazier in downloading nixpkgs?
<clever> jared-w: mainly, when sources.nixpkgs is a local path, not a derivation
<clever> jared-w: let foo = ./.; in "${foo}/bar" will copy ./. in full, then generate /nix/store/hash-something/bar
<kraem> clever, tilpner thanks. getting somewhere. how do i inherit openssl the right way? i'm getting "openssl undefined" with just openssl and "unexpected '.'" with pkgs.openssl https://bpaste.net/PQVA
<clever> jared-w: so if anything in . changes, everything rebuilds
<clever> jared-w: but, let foo = ./.; in foo + "/bar" will copy only bar, creating /nix/store/hash-bar
<jared-w> gotcha. That makes sense
v88m has quit [Ping timeout: 264 seconds]
<clever> jared-w: also, bar only gets copied, when you later force that into a string
<clever> jared-w: so you could add ../foo to it, to go to a sibling
<clever> kraem: inherit (pkgs) openssl;
<jared-w> So most of the time it doesn't matter and sometimes it really does, and I should probably use + for things to be better behaving :p
<jared-w> Very excited to see how nixbuild.net works out
domogled has joined #nixos
<jared-w> Between cachix, hercules, and nixbuild all coming out, nix is getting a lot of much needed dev/ops infrastructure improvements. On one hand, it's kinda sad to see all of that not being FOSS, otoh nix has very little investment by large corporations, so it makes sense that the tooling can't be funded otherwise.
<kraem> clever: thanks again :) what's the difference with pkgs.openssl? i get "undefined variable callPackage", tried with builtins.callPackage but get "attribute missing". where does it live? do i need to import it from nixpkgs?
<clever> kraem: pkgs.callPackage
<gchristensen> oh cool, thanks jared-w!
acarrico has joined #nixos
abathur has joined #nixos
oever has joined #nixos
vandenoever has quit [Ping timeout: 264 seconds]
<kraem> clever: https://bpaste.net/CFMA getting `error: attempt to call something which is not a function but a set` - i thought buildNodejs on line 10 returned the function needed by buildInputs?
<clever> kraem: thats not how buildNodejs is used
<clever> pkgs/development/web/nodejs/v13.nix
<clever> kraem: read this file
rardiol has joined #nixos
civodul has joined #nixos
<aveltras> is there a way around this error ?
<kraem> clever: is this the right approach? https://bpaste.net/UJ2A
jdelStrother has joined #nixos
Makaveli7 has quit [Ping timeout: 240 seconds]
<jdelStrother> Heya
reallymemorable has joined #nixos
Makaveli7 has joined #nixos
<jdelStrother> I'm really struggling to figure out why a certain gem isn't building in NixOS. Is there any way of essentially adding a breakpoint or dropping into a shell mid-build, complete with all the environment variables and other dependencies that would have been set up?
<gchristensen> ,bottest
<gchristensen> ,botsnack
<{^_^}> Oh thanks, have a cookie yourself
<jdelStrother> I'm currently using postPatch to call substituteInPlace and insert a bunch of printf statements all over the place, but after about 3 days of that I'm slowly going insane.
noonereally[m] has joined #nixos
<{^_^}> [nixops] @grahamc merged pull request #1255 → ci: move back to hand-written yaml → https://git.io/Jv6hA
<{^_^}> [nixops] @grahamc pushed commit from @lovesegfault to master « ci: move back to hand-written yaml »: https://git.io/JvDwU
<simpson> jdelstrother: nix-shell can be used to enter an interactive builder's shell. From that shell, you'd explicitly incant the unpackPhase, buildPhase, and others.
<simpson> The manual has details https://nixos.org/nix/manual/#sec-nix-shell
<{^_^}> [nixpkgs] @r-ryantm opened pull request #83140 → glusterfs: 7.3 -> 7.4 → https://git.io/JvDwL
Rusty1 has joined #nixos
iyzsong has quit [Ping timeout: 246 seconds]
<jdelStrother> simpson: sorry, I'm struggling to figure out how that would work. If I have a default.nix like this: https://gist.github.com/jdelStrother/01b44bf2b09869496e0ac8484416a1d7 - can I use nix-shell to build that but stop short of building the mini_racer gem?
turion has joined #nixos
<jdelStrother> I can't see what my equivalent of 'pan' would be from the manual's example of `nix-shell '<nixpkgs>' -A pan`
<clever> jdelstrother: you need your default.nix to return a set, not a derivation, and that set can then contain things like your-package, gems, and ruby
<clever> then you could shell into any of those
<kraem> clever: am i way off with this? https://bpaste.net/DAHA :P
<clever> kraem: that looks much better, does it work?
<kraem> clever: i'm getting this error: unsupported argument 'outPath' to 'addPath', at /sources.nix:118:21
<clever> linarcx: dont use builtins.path on line 6
<clever> kraem: it was already a path
<clever> linarcx: oops
<kraem> clever: ah i needed '( "/foo/bar" )' including the '()' for it to not throw "cannot coerce a string to function". the shell builds and everything but `node --version` outputs "10.19.0" so it wasn't built with my override
<clever> kraem: what does `type node` report?
<kraem> clever: "node is /nix/store/8fb67axqjywj3l09y898b1p4q81iary5-nodejs-10.19.0/bin/node"
<clever> kraem: and if you exit the `nix-shell`, what does `type node` report?
drozdziak1 has joined #nixos
<kraem> clever: same path node is /nix/store/8fb67axqjywj3l09y898b1p4q81iary5-nodejs-10.19.0/bin/node
<clever> kraem: then that default.nix isnt providing any nodejs at all, and you have a node installed elsewhere that is leaking in
<{^_^}> [nixpkgs] @jtojnar pushed 140 commits to gnome-3.36: https://git.io/JvDwA
<clever> kraem: this is why i never install tools like nodejs, so they cant leak in unexpectedly
<clever> kraem: but you can fix it by adding nodejs_override to the buildInputs
c0c0 has quit [Ping timeout: 246 seconds]
glittershark has quit [Ping timeout: 250 seconds]
logand has joined #nixos
c0c0 has joined #nixos
<kraem> clever: perfect! thank you!
<kraem> clever++
<{^_^}> clever's karma got increased to 357
glittershark has joined #nixos
<kraem> now i have to figure out how to the same thing with yarn, hopefully with your help with this i can figure it out :)
<clever> kraem: ive been using yarn2nix with good success
<{^_^}> [nixpkgs] @jtojnar pushed 140 commits to gnome-3.36: https://git.io/JvDrf
kolbycrouch has quit [Remote host closed the connection]
<kraem> thanks! using that yarn, node + yarn.lock dependencies would be packaged and available in the nix store when entering the shell? no need for what i have been doing?
kolbycrouch has joined #nixos
<ottidmes> And if you don't want to go the Nix route for npm/yarn I am using without problem on NixOS without going through Nix. If I were to do it profesionally I would probably try the Nix route, but for my use case just using the tools like normal is preferrable
<clever> kraem: yarn2nix does the entire `yarn build` under nix, so you dont need `nix-shell`
teto has quit [Ping timeout: 246 seconds]
<clever> kraem: there is also a shell.nix in daedalus, but all it does is provide node and yarn, and everything else is done impurely by yarn, as you would on any other distro
<jdelStrother> simpson / clever: sorry, I still don't understand '=( I thought you were suggesting something like this - https://gist.github.com/jdelStrother/8f344274f18762d8e463d3a122a356be - and then running `nix-shell test.nix`, but that also still tries to build the gem
<clever> jdelstrother: thats still not returning a set, thats returning the builderEnv
<kraem> ottidmes, clever yeah that's what i'm trying now. just getting the right versions of yarn + node, as specified by yarn.lock, to be able to run `yarn dev` when in the project
<clever> jdelstrother: and i dont see any obvious expression that could contain a sub-section of things
<{^_^}> [nixpkgs] @jtojnar pushed 136 commits to gnome-3.36: https://git.io/JvDrt
shweta has joined #nixos
<shweta> nix installation is not supported for iOS 10.10.5(yosemite)
<shweta> any suggestions on how I may use nix in this mac
justanotheruser has quit [Ping timeout: 246 seconds]
<clever> shweta: what error is it giving?
fenedor has joined #nixos
<{^_^}> [nixpkgs] @Ma27 pushed to master « nixos/ssmtp: declare all option renames manually »: https://git.io/JvDrm
organixpear has joined #nixos
doyougnu has quit [Remote host closed the connection]
ArchFeh has quit [Quit: archfeh]
<linarcx> clever: What? Where?
<clever> linarcx: tab-completed the wrong name, l and k are beside eachother
<{^_^}> [nixpkgs] @Ma27 pushed to release-20.03 « nixos/ssmtp: declare all option renames manually »: https://git.io/JvDrs
fendor has quit [Ping timeout: 240 seconds]
<linarcx> clever: No problem :)))
organixpear has quit [Client Quit]
teto has joined #nixos
shweta has quit [Ping timeout: 240 seconds]
<emily> asking this again since no reply last time: is anyone running a nixos-unstable system with flakes? is there any reference material for how to switch your system over to using a flakes Nix and referencing nixpkgs as a flake, etc.?
magnetophon has joined #nixos
<Orbstheorem> Hello, I've installed nixos using `nixos-install` based on this system derivation: https://gitlab.com/roosemberth/dotfiles/-/commit/a9ad31688cfa6d23e05e1d8637c5ad587e0a2ac7 (I've set and verified the disk UUIDs myself). When I boot the system in bare hardware it can't find find the block device with the disk UUID, after ssh'ing to the initramfs I realised there are no /dev/sd* nodes and /dev/disk/by-uuid
<Orbstheorem> doesn't exist. The disk where I installed the system is the same that was booted. I can see that the kernel initialized the ata5 link to UDMA/133. udev (systemd-udevd) is running.
<ottidmes> driver issue?
<clever> Orbstheorem: is it a sata or usb disk?
<Orbstheorem> sata ^^
<clever> Orbstheorem: have you looked at the hardware-configuration that nixos-generate-config makes for that machine?
<Orbstheorem> I have not
<misuzu> Orbstheorem: make sure that `boot.initrd.availableKernelModules` has all modules listed in `nixos-generate-config --show-hardware-config`
* Orbstheorem reboots to a nixos live
<{^_^}> [nixpkgs] @veprbl merged pull request #81922 → Enable nvidia-optical-flow-sdk when building opencv4 with cuda → https://git.io/Jvw6g
<{^_^}> [nixpkgs] @veprbl pushed 3 commits to master: https://git.io/JvDrw
<jluttine> Is there any way to tag something like "help needed" to a PR? (I don't have permissions to tag my PRs though)
justanotheruser has joined #nixos
<Orbstheorem> I think there's a hardware problem, when I plug the nixos USB key, the disk is magically recognized...
<linarcx> What's this means: `Package 'mount', required by 'gio-2.0', not found`?
delli3 has quit [Read error: Connection reset by peer]
<Orbstheorem> Or a kernel bug
<{^_^}> [nixpkgs] @r-ryantm opened pull request #83142 → ibus-engines.libpinyin: 1.11.1 -> 1.11.92 → https://git.io/JvDrF
<clever> ,locate mount.pc
<{^_^}> Found in packages: libuuid.dev, utillinux.dev
<clever> linarcx: add libuuid or utillinux to the buildInputs
<linarcx> clever: what's the difference?
wozeparrot has joined #nixos
<clever> 16138 libuuid = if stdenv.isLinux
<clever> 16139 then utillinuxMinimal
<clever> linarcx: ah, they are identical
<linarcx> thanks.
tmplt has joined #nixos
<tmplt> Are profile names stored somewhere? I think I tried to rebuild with an invalid name, now `nixos-rebuild` always fails (w/o -p, after reboot) with OSError 22, Invalid argument trying to create the temp file in /boot/loader/entries.
<clever> tmplt: what does dmesg say?
<tmplt> clever: oh the system boots, but I'm unable to create new generations.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #83143 → intel-gpu-tools: 1.24 -> 1.25 → https://git.io/JvDok
<clever> tmplt: does dmesg say anything new after the above error happens?
<tmplt> clever: nothing, no
<clever> tmplt: `mount | grep boot` ?
<tmplt> clever: /dev/sda1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
<clever> tmplt: `df -h /boot` ?
jakobrs has joined #nixos
leonardp has quit [Remote host closed the connection]
<tmplt> clever: /dev/sda1 500M 43M 458M 9% /boot
<jakobrs> Is it ever correct to install .so files into $out/bin?
<tmplt> clever: oops; 458M avail
<{^_^}> [nixpkgs] @nh2 opened pull request #83144 → Conan 1.23.0 → https://git.io/JvDoq
<clever> jakobrs: .so files should be in $out/lib/
<clever> tmplt: i would expect that to work, what if you do `nixos-rebuild boot` again ?
<jakobrs> I know that's where I'd expect it to be, but it's not in this case for whatever reason
<jakobrs> If a derivation is capable of producing both 32-bit and 64-bit libraries at the same time, should the 32-bit and 64-bit libraries be in the same folder?
<clever> jakobrs: id prefer to build only one, and use stdenv.system to decide which one to build
<jakobrs> I know, but I didn't make this program
<jakobrs> The program dynamically links to *both* libraries
<clever> tmplt: you have a : in the profile name, and : is not a valid part of a filename on fat32
<jakobrs> I'm tempted to split it up into several derivations
<clever> jakobrs: thats what i would do as well
<tmplt> clever: that explains it. Any idea how to stop nixos-rebuild from trying to build that file? Omitting -p doesn't stop it.
steell has quit [Ping timeout: 260 seconds]
<clever> tmplt: you have to delete the problematic profile/generation from /nix/var/nix/profiles/
steell has joined #nixos
magnetophon has quit [Ping timeout: 250 seconds]
<tmplt> clever: that did it; cheers.
<Shell> is there a way to get the hash part of a Nix derivation's output directory name in Nix?
leonardp has joined #nixos
kolbycrouch has quit [Remote host closed the connection]
kolbycrouch has joined #nixos
jakobrs has quit [Quit: WeeChat 2.7.1]
<infinisil> Shell: What do you need this for?
<infinisil> The answer is yes, but trying to do this is usually a sign that there's a better way
ddellacosta has joined #nixos
palo has quit [Quit: WeeChat 2.7.1]
<Shell> infinisil: I'm just trying to use it as a hash for a directory of static files served over HTTP with long cache times.
palo has joined #nixos
<Shell> I can do this in bash, obviously, was just wondering if there's a nicer Nix way.
<Shell> (so the directory gets served as /static-somehash)
jmarin217 has quit [Ping timeout: 246 seconds]
<leonardp> Shell: sounds like a job for IPFS?
<Shell> leonardp: no.
<leonardp> oh, ok :)
<Valodim[m]> haha
<Valodim[m]> that period tho
<infinisil> Sounds like a decent use for just getting the hash
<infinisil> Or the hash plus the name
aleph- has quit [Ping timeout: 240 seconds]
<infinisil> > builtins.unsafeDiscardStringContext (lib.removePrefix builtins.storeDir pkgs.hello.outPath)
<{^_^}> "/njlavpa90laywf22b1myif5101qhln8r-hello-2.10"
<infinisil> Shell: This should work ^
tmplt has quit [Quit: leaving]
<Shell> oh nice.
aleph- has joined #nixos
<mpickering> How can I find the name of a package which installed a certain executable (installed using nix-env)
captjakk has joined #nixos
knupfer1 has joined #nixos
captjakk_ has joined #nixos
<coderobe> mpickering: `which`
<coderobe> it'll point you to the derivation in your nix store
<mpickering> And can I pass the whole store path to `nix-env -e`?
magnetophon has joined #nixos
captjakk has quit [Remote host closed the connection]
<mpickering> ah just the name
<Shell> infinisil: thanks :)
<mpickering> I was just a bit hesitant because the package name was strange
knupfer has quit [Ping timeout: 246 seconds]
noudle has quit []
knupfer1 has quit [Ping timeout: 246 seconds]
Rusty1 has quit [Remote host closed the connection]
peelz_ has quit [Remote host closed the connection]
captjakk_ has quit [Remote host closed the connection]
captjakk_ has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #83145 → jotta-cli: 0.6.21799 -> 0.6.24251 → https://git.io/JvDoo
roconnor has quit [Quit: Konversation terminated!]
Church- has joined #nixos
aleph- has quit [Read error: Connection reset by peer]
captjakk_ has quit [Ping timeout: 256 seconds]
<Valodim[m]> infinisil: the settings and partially typed options seem really important for scaling nixos modules. thanks for driving that effort!
<infinisil> :D
sigmundv__ has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed 8 commits to master: https://git.io/JvDo9
detran has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed 6 commits to release-19.09: https://git.io/JvDo5
<{^_^}> [nixpkgs] @NeQuissimus pushed 6 commits to release-20.03: https://git.io/JvDob
<mmatthieu> Hi everyone, Is there someone who knows how to run games like divinity original sin on dr
<mmatthieu> * Hi everyone, Is there someone who knows how to run games like divinity original sin on steam ?
excelsiora has quit [Remote host closed the connection]
reallymemorable has quit [Quit: reallymemorable]
reallymemorable has joined #nixos
blaggacao has quit [Ping timeout: 256 seconds]
blaggacao has joined #nixos
cinimod has joined #nixos
waleee-cl has joined #nixos
knupfer has joined #nixos
<linarcx> Guys, what's difference between buildInputs and nativeBuildInputs?
peelz has joined #nixos
<linarcx> Where i put pkg-config and cmake?
<peelz> I upgraded my NixOS and now everything GTK is mega zoomed in. What's up with that?
<peelz> I'm on 19.09
akegalj has joined #nixos
<jtojnar> linarcx nativeBuildInputs are for build time dependencies, buildInputs for run time
<linarcx> jtojnar: Thanks
<jtojnar> so pkg-config and cmake go to nativeBuildInputs
<linarcx> Another question
<linarcx> If a librarie required for both runtime and build time, should i place there in both places?
<cinimod> I am trying to install octave on macos, I am modifying the default.nix in nixpkgs and making some progress. At the moment I get `ld: framework not found Cocoa` so I am trying https://gist.github.com/idontgetoutmuch/0bddedcd31366fe7249735c18ce06d54#file-default-nix-L98 but this fails with `error: value is a list while a set was expected, at /Users/dom/nixpkgs/pkgs/development/interpreters/octave/default.nix:98:32`
<jtojnar> yup
<jtojnar> linarcx you can also set `strictDeps = true;` to enforce the difference
<cinimod> What is nix trying to tell me?
<linarcx> thanks
<{^_^}> [nixpkgs] @DieracDelta opened pull request #83146 → Fix/imagemagick default → https://git.io/JvDKL
reallymemorable has quit [Quit: reallymemorable]
<jtojnar> cini: I would use (stdenv.lib.optionals stdenv.isDarwin darwin.apple_sdk.frameworks.Accelerate)
<jtojnar> but it looks fine to me
<obadz> general linux advice, are there filesystems that are particularly well suited to being nested via loopback? ext4 over ext4 feels inefficient given double journaling? I supposed LVM could be a good outer "filesystem". How about ext2 over ext4, is that a reasonable combo? Looking for someone who wants to discuss this with me :-)
<linarcx> Guys, how can i find which package or file contains a c function name?
<obadz> linarcx: try nix edit, or grep
<linarcx> obadz: What? nix-edit?
<jtojnar> linarcx I would use duckduckgo or debian code search to find the library
<linarcx> I know the library. but seems it doesn't have certain functions.
<linarcx> Seems it's a bug.
<obadz> linarcx: nix edit is a command.. try nix edit nixpkgs.wget
fenedor is now known as fendor
<linarcx> obadz: Wow, such a great thinkg. thanks..
<jtojnar> and then grep nixpkgs/use package search/nix-index
<jtojnar> linarcx possibly, what is the lib?
<linarcx> libgit2
<linarcx> It can't find this function in libgit2: `git_error_last`
<jtojnar> that is not very configurable, so I would guess new version does not contain the function any more
<linarcx> Same issue in vcpkg: https://github.com/libgit2/libgit2/issues/5215
<{^_^}> libgit2/libgit2#5215 (by jvelilla, 29 weeks ago, closed): Undefined reference to `git_error_last' using libgit2 version 0.28.3
<linarcx> jtojnar: No, it's there in library. The issue is from nix package.
<cinimod> jtojnar: `++ (stdenv.lib.optionals (stdenv.isDarwin) stdenv.lib.platforms.darwin.apple_sdk.frameworks.Accelerate)` gives me `error: value is a list while a set was expected`
peelz has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @bhipple opened pull request #83147 → [20.03] nixos-ami: update nvme_core.io_timeout for linux kernel >= 4.15 → https://git.io/JvDKc
<jtojnar> linarcx that looks more like the build does not pass linking flags correctly
maddo2 has joined #nixos
<linarcx> jtojnar: Hmm.. what can i do?
<linarcx> You mean -lgit2?
<jtojnar> cinimod I would try darwin.apple_sdk.frameworks.Accelerate instead of taking it from lib
<cinimod> jtojnar: full expression here: https://gist.github.com/idontgetoutmuch/0bddedcd31366fe7249735c18ce06d54 - probably me getting the syntax wrong but nix' error message is not helping me
<jluttine> i'm getting "undefined reference" errors when building a package derivation. how should i add a dependency so that it's found? i tried buildInputs and propagatedBuildInputs
<linarcx> This is the project if you want to look at it: https://github.com/LinArcX/captain-ballard
<cinimod> jtojnar: but then it says: error: undefined variable 'darwin'
maddo has quit [Ping timeout: 240 seconds]
gustavderdrache has joined #nixos
delli3 has joined #nixos
<jtojnar> cinimod did you add it to the arguments (line 1-53)?
<jtojnar> linarcx yup -lgit2, will check
<jtojnar> jluttine buildInputs should do it if the project's build scripts are not borked
<cinimod> jtojnar: then I get error: value is a set while a list was expected, at /Users/dom/nixpkgs/pkgs/development/interpreters/octave/default.nix:169:35
<{^_^}> [nixpkgs] @DieracDelta closed pull request #83146 → Fix/imagemagick default → https://git.io/JvDKL
<jtojnar> `cinimod change that line to with stdenv.lib; platforms.linux ++ platforms.darwin` (with does not shadow existing definitions)
veske has joined #nixos
veske2 has joined #nixos
<jluttine> jtojnar: thanks!
<{^_^}> [nixpkgs] @PawelLipski opened pull request #83148 → gitAndTools.git-machete: 2.13.5 -> 2.13.6 → https://git.io/JvDKB
T_S_ has quit [Remote host closed the connection]
veske has quit [Client Quit]
veske2 has quit [Client Quit]
<{^_^}> [nixpkgs] @DieracDelta opened pull request #83149 → imagemagick: add liquid rescale build option → https://git.io/JvDKR
gfixler has quit [Ping timeout: 246 seconds]
s1341 has joined #nixos
<cinimod> jtojnar: with that https://gist.github.com/idontgetoutmuch/0bddedcd31366fe7249735c18ce06d54 I get error: value is a set while a list was expected, at /Users/dom/nixpkgs/pkgs/development/interpreters/octave/default.nix:112:6
kolbyjcrouch has joined #nixos
<{^_^}> [nixpkgs] @mweinelt opened pull request #83150 → zsh-powerlevel10k: v1.4.0 → v1.5.0 → https://git.io/JvDK0
kolbycrouch has quit [Read error: Connection reset by peer]
T_S_ has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #83151 → hiredis: 0.14.0 -> 0.14.1 → https://git.io/JvDK2
cole-h has joined #nixos
is_null has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @s9gf4ult opened pull request #83152 → qxmledit: init at 0.9.15 → https://git.io/JvDKi
<evils> i'm packaging tuptime, which keeps a database and sometimes changes its format, should i do something with stateVersion now, or only deal with that if they change their format again?
hmpffff has joined #nixos
alexherbo2 has joined #nixos
<{^_^}> [nixpkgs] @grahamc merged pull request #83147 → [20.03] nixos-ami: update nvme_core.io_timeout for linux kernel >= 4.15 → https://git.io/JvDKc
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to release-20.03: https://git.io/JvDKH
<jtojnar> cinimod, weird, I would expect that to work
timsears has joined #nixos
T_S_ has quit [Quit: rcirc on GNU Emacs 26.3]
<samueldr> evils: it's more for when *nixos* changes the state schema for a package than for when a package changes its own state schema
<samueldr> evils: e.g. when we moved postgresql's data folder
<jtojnar> cinimod also do not see -L flags which I would expect pkg-config to pass but perhaps cmake strips them
<jtojnar> $ nix-shell -p pkg-config -p libgit2 --run 'pkg-config libgit2 --libs'
<jtojnar> -L/nix/store/mqp9bai8f37flvah86arp81cxh60y01i-libgit2-0.99.0/lib -lgit2
<{^_^}> [nixpkgs] @vcunat pushed 3 commits to staging: https://git.io/JvDKQ
<{^_^}> [nixpkgs] @vcunat merged pull request #82510 → gcc: fix building cross-compiler on 32-bit host platforms → https://git.io/JviUj
jdelStrother has quit [Ping timeout: 240 seconds]
<samueldr> evils: I'm not 100% positive, but I think in your case it's just about running the appropriate migration
<{^_^}> [nixpkgs] @roberth merged pull request #83041 → hackage2nix: Restore arion-compose → https://git.io/JvDK7
<{^_^}> [nixpkgs] @roberth pushed 2 commits to haskell-updates: https://git.io/JvDK5
<samueldr> evils: anyway a user should not change stateVersion, so what would happen when tuptime changes it schema? user will be forced to change it? two distinct versions would be maintained%?
<evils> samueldr: yea, there's some migration scripts in the source, it does mean an update could break stuff
<linarcx> jtojnar: Yes, it's because i'm on channel 19.09 and libgit2 version for this channel is: `libgit2-0.27.8` that doesn't cantain that function. But in unstable channel we have this function.
<evils> samueldr: well, presumably a newer version of the package could be stopped from working if the database is in the old format
<samueldr> stateVersion could be better named "whenWasThisInstallationFirstSetupSoWeCanFindTheFilesAtTheRightPlace"
<raboof> is it possible to override bootStage2 when creating a lxc image with nixos-generators? I tried the simplistic thing at https://pastebin.com/8uZuPBaZ but that doesn't seem to have any effect
<xfix> in general, you don't want to modify stateVersion
bandali has joined #nixos
<evils> samueldr: that would probably cut down on a lot of questions xD
<samueldr> evils: the nixos-side service AFAIK would need to know about running the migration on start
<{^_^}> [nixpkgs] @markuskowa merged pull request #81277 → nixos/rdma-core: 27.0 -> 28.0, update RXE module → https://git.io/JvzQ6
<{^_^}> [nixpkgs] @markuskowa pushed 4 commits to staging: https://git.io/JvDKd
<samueldr> if it's like most migration setups, just run it always, most of the time it's gonna be a no-op
<samueldr> sure, this "breaks" downgrades, but this is not something that nixos has been concerning itself with yet, downgrade of stateful data
<samueldr> there's no good solution in that situation
<bandali> hey folks, any committer up for merging my (trivial) pr#82900?
<cinimod> jtojnar: somem missing [ ] - now it's building so only 30 minutes to wait - thanks for your help
<xfix> the idea of stateVersion is to allow changing defaults without breaking it for upgrades from older NixOS versions
<xfix> for example, MySQL since 17.09 stores its databases in /var/lib/mysql, previously it used /var/mysql
<xfix> changing the stateVersion from 17.03 would result in breakage
<evils> samueldr: well, there's the alternative approach (and seems to be what the author does in their debian package), don't automatically migrate
timsears` has joined #nixos
<timsears`> .
<samueldr> evils: the service could handle this with a stateful marker in its directory
<xfix> stateVersion should not change after installing NixOS
<samueldr> e.g. a file with a version number
<linarcx> there is newer versions of it. But it's still an old version. Is it possible in future it update?
v88m has joined #nixos
<xfix> yes, in fact it is already updated
<linarcx> No. newer version is 2-0.99.0
<xfix> what you are looking for is a version of libgit2 in release-19.09
<linarcx> it doesn't have a function
<xfix> on master, the version is 0.99.0
<linarcx> And my application can't build
<linarcx> Should i change to channel unstable for this issue?
<linarcx> Or there is another solutions?
o1lo01ol1o has quit [Remote host closed the connection]
<evils> samueldr: looking at their migrate scripts, it doesn't seem to check if the database is already the target version, thanks for the suggestion though
o1lo01ol1o has joined #nixos
<xfix> in short, to ensure stability, for stable releases like 19.09, only security updates are applied
reallymemorable has joined #nixos
<linarcx> xfix: Hmmm...
<xfix> so what can you do? well, you can import libgit2 from unstable, for instance
turion has quit [Ping timeout: 250 seconds]
<linarcx> How do that? (in shell.nix)
<{^_^}> [nixops-aws] @bhipple opened pull request #32 → py3 prep: relative imports and exception syntax → https://git.io/JvD6J
<{^_^}> [nixops] @grahamc opened pull request #1261 → Add types to argparse calls → https://git.io/JvD6U
<xfix> you can have a separate unstable channel, for instance
<xfix> or you can use fetchTarball to import unstable nixpkgs
Makaveli7 has quit [Ping timeout: 246 seconds]
<xfix> (eh, Discourse automatically updating URLs...)
delli3 has quit [Read error: Connection reset by peer]
SimonAlling has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<linarcx> thank you soooo much..
<SimonAlling> Hello guys! Wow, this new web GUI is splendid!
<{^_^}> [nixops] @grahamc merged pull request #1261 → Add types to argparse calls → https://git.io/JvD6U
<{^_^}> [nixops] @grahamc pushed 3 commits to master: https://git.io/JvD6I
<{^_^}> [nixpkgs] @roberth merged pull request #83124 → python39Full: fix to use Python 3.9 rather than 3.8 → https://git.io/JvD6L
<{^_^}> [nixpkgs] @roberth pushed 2 commits to master: https://git.io/JvD6t
<SimonAlling> I used to nick Alling, but it's registered according to the server. Dunno if it was me who registered it. Anyway. I'm having some trouble with Murmur and TLS.
o1lo01ol1o has joined #nixos
<{^_^}> [nixops-aws] @grahamc merged pull request #32 → py3 prep: relative imports and exception syntax → https://git.io/JvD6J
<{^_^}> [nixops-aws] @grahamc pushed 2 commits to master: https://git.io/JvD6m
blaggacao has quit [Read error: Connection reset by peer]
<SimonAlling> Running Murmur on my server, but I can't connect anymore with Mumble 1.3.0+dfsg-1. Error on client: "This server is using an older encryption standard, and is no longer supported by modern versions of Mumble."
blaggacao has joined #nixos
<SimonAlling> Error in journalctl on server: "Connection closed: Error during SSL handshake: error:1408F10B:SSL routines:ssl3_get_record:wrong version number [13]"
<SimonAlling> NixOS 18.03 with nixos-19.09 as "main system channel"(?).
<tilpner> SimonAlling: Yes, Alling was registered by you. You can probably reset your password with a PM to NickServ
cinimod has quit [Read error: Connection reset by peer]
<SimonAlling> tilpner: (Y)
cinimod has joined #nixos
<tilpner> SimonAlling: Which murmur version does your system end up running?
<{^_^}> [nixpkgs] @roberth pushed commit from @gnprice to release-20.03 « python39Full: fix to use Python 3.9 rather than 3.8 »: https://git.io/JvD6Z
<SimonAlling> tilpner: Seems to be murmur-1.2.19 based on the nix path.
<{^_^}> [nixpkgs] @rnhmjoj closed pull request #82425 → vulkan-loader: use vulkan-headers include path in pkgconfig file → https://git.io/Jv6aL
<{^_^}> [nixpkgs] @rnhmjoj reopened pull request #82425 → vulkan-loader: use vulkan-headers include path in pkgconfig file → https://git.io/Jv6aL
timsears is now known as T_S_
<{^_^}> [nixpkgs] @rnhmjoj merged pull request #82425 → vulkan-loader: use vulkan-headers include path in pkgconfig file → https://git.io/Jv6aL
<{^_^}> [nixpkgs] @rnhmjoj pushed 2 commits to master: https://git.io/JvD6n
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<SimonAlling> I tried adding sslCiphers=CIPHERS, where CIPHERS is the preferred ciphers according to my client.
<tilpner> Ahh, I hoped the murmur version would tell me what channel is being used
<{^_^}> [nixpkgs] @ciil opened pull request #83153 → fail2ban: fix firewall warning → https://git.io/JvD6c
o1lo01ol1o has joined #nixos
<tilpner> But 1.2.19 is being used by 18.03, and 19.09
purpleman has joined #nixos
cinimod` has joined #nixos
<tilpner> 20.03 has 1.3.0 though
<tilpner> ,unstable
<tilpner> Use that (^) with 20.03 instead of unstable, or just switch the channel if you're up for it
cinimod has quit [Ping timeout: 250 seconds]
<kraem> clever: i am getting the "outPath to addPath" error if i'm having `yarn = builtins.path ...` and if i don't have it it says "value is a string with context while a set was expected". what am i missing? https://bpaste.net/WFAA
<SimonAlling> Ooo, might be worth a shot!
<purpleman> Hello everybody
<clever> kraem: stop using builtins.path, you almost never need it
<purpleman> I'm new to nix and I'm trying to add a plugin to gdb (gnu debugger) by packaging gdb using a shell script. Since it adds a config file, I have no binary expect of gdb. So I thought to create a small script with a name and execute gdb inside it (like an alias). Nix mkderivation compiles it but nix-shell tells me: command not found
T_S_ has left #nixos [#nixos]
<SimonAlling> tilpner: Hmm ... I tried installing Mumble from snap instead of apt and now it works as usual. (I probably have the snap version on my laptop, where it works.) I'll refrain from modifying anything right now, as I really need the Murmur server working, but I'll stash your 20.03 tip for when someone can't connect anymore. :)
T_S_ has joined #nixos
<timsears`> .
timsears` has quit [Quit: rcirc on GNU Emacs 26.3]
<SimonAlling> Thank you, tilpner! <3
gfixler has joined #nixos
<purpleman> Here's the mkderivation: https://pastebin.com/Xut4BkRr
<kraem> clever: alright :) how do i bind the variable to the attrset of "sources.nixpkgs + /path/to/yarn.nix" and not the path-string?
<clever> kraem: path + "string" always results in a path
SimonAlling has left #nixos [#nixos]
<ottidmes> Is there a linux prog that would merge common prefixes, I have a hard time googling it, for now I just call mkdir -p a bunch of times unnecessarily, but don't like it (off topic, but I am looking into this for my NixOS config)
<ottidmes> So ./nixos/modules and ./nixos/modules/installer would become just the latter
<xfix> what do you mean by that?
<cole-h> Why wouldn't you just `mkdir -p ./nixos/modules/installer`?
<superbaloo> how can I find which package to install to get a manpage ?
<ottidmes> cole-h: that is what I want, but its part of a script that generates these paths
<clever> superbaloo: use nix-locate to see which package includes the man page
<xfix> what's the problem with unnecessarily generating directories?
slack1256 has joined #nixos
<superbaloo> clever: thanks!
<kraem> clever: makes sense. `yarn = (sources.nixpkgs + "/pkgs/development/tools/yarn/default.nix"); builtins.trace yarn` reports string though and overrideAttrs won't take it
Makaveli7 has joined #nixos
<cole-h> kraem: Maybe you want to `callPackage` it?
c0c0 has quit [Ping timeout: 256 seconds]
knupfer has quit [Ping timeout: 246 seconds]
knupfer has joined #nixos
<ottidmes> xfix: well they might be hundreds of mkdir -p calls, although it should be fast enough, filtering the list of paths that are unnecessary cause the deeper mkdir -p would already handle them would also cost time
timsears has joined #nixos
akegalj has quit [Remote host closed the connection]
<clever> kraem: if you just want the yarn/default.nix in nixpkgs, its already been callPackage'd and is at pkgs.yarn
<xfix> let's say, 300 syscalls, kind of nothing I feel like
<xfix> by the way, you can pass multiple arguments to `mkdir -p`
<xfix> which avoids the cost of `exec` syscall
<cole-h> Which means you can use brace expansion as well
<clever> ottidmes: mkdir -pv root/{foo,bar}/baz
<cole-h> ^
<cole-h> Why can't you just use the `WANT` directly?
<ottidmes> clever: Its generated by a script, I am not manually writing those calls, so brace expansion is out
<xfix> 300 syscalls assuming on average you create 3 directories per mkdir -p, this seems like it would be really fast
timsears has quit [Quit: rcirc on GNU Emacs 26.3]
<xfix> i wouldn't be worried about performance, unless you can prove it's slow
<cole-h> ottidmes: Can you modify said script?
<xfix> most of the cost would be I assume creating the directories, for already existing directories, I assume kernel will figure out rather quickly from the cache that the directory already exists
sleepingforest has quit [Quit: bye!]
<kraem> clever: i want to override the version of it as well.
<xfix> and trimming the list of directories is not going to shorten the time for creating the directories
sleepingforest has joined #nixos
<ottidmes> cole-h: xfix: I updated the gist with the script: https://gist.github.com/msteen/b98d2fde4aebe8a368756b3c6f5fc82d so yeah I can edit it
<purpleman> Can someone tell me how to package a bash script using mkderivation ?
<kraem> cole-h: ah i thought i'd have to call stdenv.mkDerivation on it but `yarn/default.nix` is of course a function which calls mkDerivation itself
<ottidmes> purpleman: lol, well you could look at the gist I just posted before you, although there are slight different ways
<s1341> ohi. i'm getting this error: error: the lock file /tmp/nix-build-page-2.3.3.drv-1/source/Cargo.lock needs to be updated but --frozen was passed to prevent this
<s1341> i'm trying to update my PR to a new version of the tool....
<s1341> (that i'm packaging)
<s1341> but i don't know what this error means...
<xfix> i don't think you need mkDerivation for something as simple as bash script
<clever> kraem: you can use pkgs.yarn.overrideAttrs
<purpleman> ottidmes: thanks, I'm checking it out
<clever> kraem: yarn isnt as complicated as nodejs
<clever> kraem: just set src and version
T_S_ has quit [Disconnected by services]
<purpleman> xfix: please check this derivation and see if the approach is correct https://pastebin.com/Xut4BkRr
timsears has joined #nixos
timsears has quit [Quit: rcirc on GNU Emacs 26.3]
<s1341> nm. the upstream forgot to commit the updated Cargo.lock....
chimay has quit [Ping timeout: 256 seconds]
<xfix> purpleman: that's a Python program, not a bash script, I'm not sure what are you trying to do
c0c0 has joined #nixos
<ottidmes> kraem: BTW I use this for my NodeJS without Nix within NixOS https://gist.github.com/msteen/8e3b987feecc98e0317383def42ce3fe
<purpleman> xfix: I want to run gdb with gef library which is loaded via .gdbinit when gdb starts. .gdbinit contains the source of gef.py.
chimay has joined #nixos
<ottidmes> kraem: and I just installed yarn via, npm -g install yarn
<xfix> i think it would make sense to make a wrapper script for gef, ending with two derivatios
<purpleman> I don't know how to wrap it in a nix package called gef. So when I run gef it runs gdb with the config file I fetched
<purpleman> What would be a nice idea, but gdb load gef using the file .gdbinit which contains only the line: echo source ~/.gdbinit-gef.py >> ~/.gdbinit
cr4y1 has joined #nixos
<kraem> clever: `yarn_v1211 = pkgs.yarn.overrideAttrs { version="1.21.1"; src=....}; ... buildInputs = [ yarn_v1211 ];` leaves me with "error: attempt to call something which is not a function but a set"
<purpleman> ofc I changed the line context to nix
<clever> kraem: overrideAttrs takes a function
<clever> kraem: .overrideAttrs (old: { version="1.21.1"; src=....});
<kraem> ottidmes: thanks! i'm just hacking away on this to understand nix better :)
justanotheruser has quit [Ping timeout: 246 seconds]
<xfix> this is more complicated then, and non-trivial
krasnij has quit [Quit: ZNC 1.7.4 - https://znc.in]
<xfix> from what I understand, gef modifies your configuration, and likely the modified configuration contains paths to gef
krasnij has joined #nixos
<ottidmes> kraem: fair enough, always good to have a good understanding of Nix
reallymemorable has quit [Quit: reallymemorable]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #83154 → libev: 4.31 -> 4.33 → https://git.io/JvD67
Dagger has quit [Quit: Quitting]
<kraem> clever: ah thanks - now on to combining the overriden yarn and node
Dagger2 has joined #nixos
<xfix> this would mean that if you would let gef built using nix-build change your configuration files, the paths would become outdated the moment package gets updated, and then with nix-collect-garbage you could end up in a spot where gef no longer exists, and gdb is confused
blaggacao has quit [Read error: Connection reset by peer]
peelz has joined #nixos
reallymemorable has joined #nixos
blaggacao has joined #nixos
<xfix> so, what can be done? the easiest solution is to modify gdb to use different default settings
<purpleman> xfix: Yes you are right, my solution isn't good because I'm still trying to learn the Nix way. So how would you implement it ideally ?
<xfix> it's non-trivial, i know, but hey, that's how things so sometimes
<xfix> or you could consider managing your home with nix (with programs like home-manager), also kinda non-trivial
<purpleman> How would you tell gdb to look on the config file .gdbinit ?
<purpleman> Yep, that's not the way I want to do it. I'm trying to move all my environments to nix and then to switch to NixOs
hmpffff has quit [Ping timeout: 272 seconds]
<purpleman> So I'm learning how to get into this Nix thinking approach
T_S_ has joined #nixos
<peelz> Nautilus isn't generating any thumbnails for my pictures. I'm running on a tiling WM. Any idea why?
<xfix> see, the problem is, what gef is doing isn't really compatible with Nix derivations
<xfix> so getting that to work is more complicated
hmpffff has joined #nixos
<purpleman> crap
<xfix> it can be done (probably the best approach would be to modify gdb), but it isn't simple
<jtojnar> peelz thumbnailers should be self contained
<jtojnar> any messages in concole?
<peelz> lemme check
<peelz> nothing at all
<peelz> jtojnar: it may or may not have worked previously because ~/.thumbnails contains some files
<peelz> not sure what's happening
justanotheruser has joined #nixos
<jtojnar> iirc ~/.cache/thumbnails/ would be used
<peelz> doesn't exist on my end
<purpleman> xfix: I know that the approach of wrapping gdb into a new package isn't the best way, but for now I want to stick to it. Probably into the future I'll try to modify gdb
<purpleman> So the question now is, why nix-shell cannot find the bash script called gef like a command ?
<xfix> first thing first, there is no such a thing as /bin/bash
<xfix> first things first*
<jtojnar> peelz do you have XDG_CACHE_HOME variable set? then it would be in there
<peelz> no
lord| has quit [Quit: https://i.imgur.com/xacQ09F.mp4]
lord| has joined #nixos
alexherbo2 has quit [Ping timeout: 264 seconds]
<jtojnar> peelz looking at the code, it would only use the cache home directory (falling back to ~/.cache)
slack1256 has quit [Ping timeout: 256 seconds]
<purpleman> funny haha, did not know that. I thought you could create a script to be run. Got to this solution because I saw someone that packaged a python script into a nix derivation. Now even that solution doesn't work lol
blaggacao has quit [Read error: Connection reset by peer]
o1lo01ol1o has quit [Remote host closed the connection]
blaggacao has joined #nixos
o1lo01ol1o has joined #nixos
turion has joined #nixos
<peelz> jtojnar: hmmm... not sure what's going on
<{^_^}> [nixpkgs] @veprbl merged pull request #82065 → [20.03] glibc: provide fallback for kernels with missing prlimit64 → https://git.io/JvrAB
<{^_^}> [nixpkgs] @veprbl pushed 2 commits to staging-20.03: https://git.io/JvDis
<jtojnar> linarcx I recommend just tracking nixpkgs-unstable, see https://gitlab.gnome.org/GNOME/buoh/-/blob/master/shell.nix and https://gitlab.gnome.org/GNOME/buoh/-/blob/master/default.nix for example
o1lo01ol1o has quit [Ping timeout: 256 seconds]
<jtojnar> some people also recommend https://github.com/nmattia/niv but I find it too much
bennofs has quit [Quit: No Ping reply in 180 seconds.]
<jtojnar> peelz you can kill nautilus and try running `env G_MESSAGES_DEBUG=all nautilus` in terminal
bennofs has joined #nixos
<peelz> not much getting printed
<jtojnar> how does it look like? do you see the icon with ellipsis and then it turns into a generic image icon?
m0rphism1 has quit [Quit: WeeChat 2.7.1]
<{^_^}> [nixpkgs] @deedrah opened pull request #83155 → alsa-lib: 1.1.9 -> 1.2.2 and new alsa conf packages → https://git.io/JvDi4
<peelz> jtojnar: well, nautilus detaches from the terminal rather quickly so it doesn't print much
o1lo01ol1o has joined #nixos
<jtojnar> peelz did you kill it first?
<peelz> yeah
<jtojnar> if you have another insance running it will detach but otherwise it should remain attached
<peelz> weird because it's definitely getting detached
slack1256 has joined #nixos
<peelz> oh there was an invisible instance... wth
<cole-h> jtojnar: Sorry to interrupt, but while you're here... Do you have any idea why the icons in lollypop (or any gnome app really) would look like this: https://paste.rs/4wt.jpg ? Is it likely because I'm not on NixOS?
<linarcx> Guys, i'm building my gtk project. But i get these errors: https://gist.github.com/LinArcX/a86f8a39530f2c6ab86752c05c013a01
<peelz> jtojnar: this is what I get: https://termbin.com/7m0c
m0rphism has joined #nixos
o1lo01ol1o has quit [Ping timeout: 250 seconds]
noudle has joined #nixos
<peelz> jtojnar: *facepalm* the thumnails show up only when zoomed in... otherwise they show up as gray squares (missing icon?)
<peelz> I'm guessing that's expected behavior?
<jtojnar> peelz that is weird, I cannot zoom below 50% and thumbnails are there at hat level
<peelz> o_o
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/JvDi9
<{^_^}> [nixpkgs] @matthewbauer merged pull request #80784 → libeatmydata: fix launcher script - find shell library properly → https://git.io/Jv0LN
turion has quit [Ping timeout: 272 seconds]
<peelz> jtojnar: https://0x0.st/iaWB.png
dvn has left #nixos ["gxis"]
<peelz> jtojnar: 150% and above displays them fine though
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/JvDiA
<{^_^}> [nixpkgs] @matthewbauer merged pull request #79704 → powerline-fonts: install psf to share/consolefonts → https://git.io/JvcMR
benedikt93 has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #83117 → netease-cloud-music: do not set QT_AUTO_SCREEN_SCALE_FACTOR → https://git.io/JvDip
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/JvDih
benedikt93 has joined #nixos
<jtojnar> peelz yeah, that is intended, I think. It would be pretty illegible in list mode
<jtojnar> completely forgot they are shown there when you zoom in so I was thinking you were in thumbnail mode
cosimone has joined #nixos
<linarcx> Guys, i get this runtime error when runnig a gtk application:
<linarcx> Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element "its:rules
<linarcx> what should i do?
<peelz> jtojnar: ah gotcha. so it is intended after all. thanks :P
<peelz> jtojnar++
<{^_^}> jtojnar's karma got increased to 33
<ottidmes> peelz: its the same for me in thunar
cosimone has quit [Client Quit]
slack1256 has quit [Remote host closed the connection]
cosimone has joined #nixos
<peelz> ottidmes: does thunar remember your view layout on a per-folder basis? Nautilus broke that feature a couple years and it's annoyed me since
<peelz> *ago
<{^_^}> [nixpkgs] @Ma27 pushed to master « fd: 7.4.0 -> 7.5.0 »: https://git.io/JvDPq
opthomasprime has joined #nixos
<ottidmes> peelz: lol... got to facepalm myself too, apparently I switched to nautilus some time ago (think it had to do with external drives working better in nautilus), no wonder it behaved the same XD
<peelz> haha
<ottidmes> peelz: to make up for that, I checked with nix-shell -p xfce.thunar and it does show the thumbnails in list mode, and let me check if it remembers
shibboleth has joined #nixos
<ottidmes> peelz: it does not remember
<cole-h> linarcx: `FONTCONFIG_FILE = "${pkgs.fontconfig.out}/etc/fonts/fonts.conf";`
<cole-h> linarcx: It's because Nix uses fontconfig 2.12, while Arch (which I'm assuming you're using) uses 2.13.
<jtojnar> cole-h: weird, that should work – the wrapper sets GDK_PIXBUF_MODULE_FILE to correctly contain librsvg
<cole-h> Nixpkgs/NixOS*
opthomasprime has left #nixos [#nixos]
<{^_^}> [nixops-aws] @bhipple opened pull request #33 → py3 prep: replacing iteritems and itervalues → https://git.io/JvDPs
<peelz> ottidmes: shucks. well thanks for testing :P
<cole-h> jtojnar: This is what gets printed when I run lollypop: https://gist.github.com/cole-h/1eb39b773a0cdfcbb61bddc47d02ed28
<cole-h> And I added `hicolor-icon-theme` to my packages, just in case. No dice.
<linarcx> cole-h: Thanks.
<jtojnar> cole-h that would be adwaita-icon-theme, hicolor is empty
<{^_^}> [nixops-aws] @grahamc merged pull request #33 → py3 prep: replacing iteritems and itervalues → https://git.io/JvDPs
<{^_^}> [nixops-aws] @grahamc pushed 2 commits to master: https://git.io/JvDPG
kleisli has quit [Ping timeout: 264 seconds]
<jtojnar> the icon themes are weird and I have not really investigated how they work outside of NixOS
kolby_ has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @Ma27 pushed to release-20.03 « fd: 7.4.0 -> 7.5.0 »: https://git.io/JvDPc
kolbyjcrouch has quit [Ping timeout: 260 seconds]
<jtojnar> I suppose you have them in /usr/share and that is not in XDG_DATA_DIRS, so apps that set XDG_DATA_DIRS (everything using wrapGAppsHook) will not be able to see them
<jtojnar> cole-h but that is just a guess
<kraem> clever: thank you for all your help. had to disconnect earlier but here's the final derivation: https://bpaste.net/WDAA
<kraem> clever++
<{^_^}> clever's karma got increased to 358
kolbycrouch has joined #nixos
<clever> kraem: nice
<linarcx> Guys, i want to set locale inside my shell.nix. so: i set `LOCALE_ARCHIVE = "${glibcLocales}/lib/locale/locale-archive";`. But i get this error:
<linarcx> `error: undefined variable \'glibcLocales\'`
<clever> linarcx: pkgs.glibcLocales
<linarcx> clever: You're the best :)
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
opthomasprime has joined #nixos
wucke13 has quit [Quit: ZNC 1.7.4 - https://znc.in]
mumuluxi has quit [Quit: ZNC 1.7.4 - https://znc.in]
<kraem> clever: what's generally preferred? to call `(yarn-vXX.override { nodejs=nodjes-custom; })` or to override the buildInputs within the pkgs.yarn.overrideAttrs? are they used in different ways in different situations or do they basically always work the same?
<clever> kraem: if you use overrideAttrs, you have to either re-create the buildInputs list, or filter things out, then add things back in
<clever> kraem: .override is much simpler, when the things you want to change are at that level
<{^_^}> [nixpkgs] @Izorkin closed pull request #82711 → nixos/malloc: add jemalloc-mariadb memoryAllocator → https://git.io/JvPT3
<clever> kraem: basically, callPackage takes a file that defines a function, and calls it with everything in pkgs, then adds a .override
<clever> kraem: you can then use .override to change those inputs
mumuluxi has joined #nixos
<clever> the function it calls, then runs stdenv.mkDerivation, which returns a derivation, that has a .overrideAttrs
wucke13 has joined #nixos
<cole-h> jtojnar: I'll try linking `/usr/share/icons` into `XDG_DATA_HOME` then, maybe that'll help.
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/54a0e269b39 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<jtojnar> cole-h running lollypop with XDG_DATA_DIRS=/usr/share:$XDG_DATA_DIRS should be enough
<cole-h> jtojnar++ Hah, that did it! (both linking Adwaita into my local icons dir and setting XDG_DATA_DIRS)
<{^_^}> jtojnar's karma got increased to 34
opthomasprime has quit [Ping timeout: 264 seconds]
* cole-h sets XDG_DATA_DIRS in his hm sessionVariables
opthomasprime has joined #nixos
<jtojnar> we should probably document that
alexherbo2 has joined #nixos
<{^_^}> [nixpkgs] @Izorkin reopened pull request #82711 → nixos/malloc: add jemalloc-mariadb memoryAllocator → https://git.io/JvPT3
<kraem> clever: okok makes sense. why don't i have to call `yarn.override { nodejs-13_x = nodejs-custom }` when the input parameter is nodejs-13_x?
<energizer> i just installed dunst but `man dunst` doesn't find anything. man is one of the outputs. https://github.com/NixOS/nixpkgs/blob/54a27fb2fc5fbd8927f9f6dc77fe1de1faa05266/pkgs/applications/misc/dunst/default.nix#L25 what's going on? how do i get the manpage?
<clever> 7552 yarn = callPackage ../development/tools/yarn { };
<clever> 1 { stdenv, nodejs, fetchzip }:
<clever> kraem: the input param is called nodejs
<clever> 4680 nodejs = hiPrio nodejs-10_x;
<clever> kraem: and pkgs.nodejs is an alias to pkgs.nodejs-10_x
mniip has quit [Ping timeout: 606 seconds]
Jackneill has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @lsix opened pull request #83156 → mtools: 4.0.23 -> 4.0.24 → https://git.io/JvDPx
<cole-h> jtojnar: If you point me to where I should put that information, I'd gladly do it. Unless you want to take care of it.
<{^_^}> [nixops-aws] @bhipple opened pull request #34 → py3-prep: fix filter with list comprehensions → https://git.io/JvDPp
<jtojnar> cole-h I am not sure, maybe a wiki page for using graphical applications on Arch
<jtojnar> by the way do you have nix profile in XDG_DATA_DIRS
<kraem> clever: oh sorry, i was looking at my branch where i had the input param modified to be able to install yarn with node-13_x with `nix-env` :P
turion has joined #nixos
<jtojnar> cole-h perhaps the recomendation coul judt be to install icon theme like adwaita using nix
o1lo01ol1o has joined #nixos
jumper149 has joined #nixos
leonardp has quit [Remote host closed the connection]
mniip has joined #nixos
purpleman has quit [Read error: Connection reset by peer]
o1lo01ol1o has quit [Remote host closed the connection]
ZoomZoomZoom has joined #nixos
o1lo01ol1o has joined #nixos
<energizer> anybody who has dunst installed mind confirming that `man dunst` doesn't work?
<kraem> clever: thanks again! your help really helped me understand how callPackage, overrides and all the derivations in nixpkgs are connected
Havvy has quit [Read error: Connection reset by peer]
Havvy has joined #nixos
<tilpner> energizer: man dunst works here
<energizer> tilpner: which version of dunst do you have, and where did you install it from?
cosimone has quit [Quit: Terminated!]
<cole-h> jtojnar: My XDG_DATA_DIRS was empty. And I did have `gnome3.adwaita-icon-theme` in my packages (maybe home-manager doesn't install it properly/to the right place?)
<tilpner> energizer: I'm not aware of any variations. It's "dunst" from nixos-20.03
<energizer> tilpner: ok
<tilpner> /nix/store/d2xaw9fsz1lp6mkgiq010lgkvr1dzpfz-dunst-1.4.1 in cache.nixos.org
<tilpner> (Sorry, no. /nix/store/577crhh1czmjyjb6kzn0fcv3kzyymflk-dunst-1.4.1/bin/dunst)
<clever> > "${dunst}"
<{^_^}> "/nix/store/577crhh1czmjyjb6kzn0fcv3kzyymflk-dunst-1.4.1"
ZoomZoomZoom has quit [Ping timeout: 256 seconds]
alexherbo20 has joined #nixos
mniip has quit [Ping timeout: 600 seconds]
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo20 is now known as alexherbo2
<{^_^}> [nixops-aws] @bhipple opened pull request #35 → py3-prep: fix map with list comprehensions → https://git.io/JvDXn
aveltras has quit [Quit: Connection closed for inactivity]
justanotheruser has quit [Ping timeout: 240 seconds]
ZaraChimera has joined #nixos
Rusty1 has joined #nixos
<{^_^}> [nixops-aws] @grahamc merged pull request #35 → py3-prep: fix map with list comprehensions → https://git.io/JvDXn
<{^_^}> [nixops-aws] @grahamc pushed 2 commits to master: https://git.io/JvDXl
swapgs has joined #nixos
swapgs has joined #nixos
swapgs has quit [Changing host]
mniip has joined #nixos
blaggacao has quit [Ping timeout: 240 seconds]
blaggacao has joined #nixos
<claudiii> I'm trying to setup a hetzner root server with nixops but i get a `blivet.errors.FormatCreateError: ('invalid device specification', u'/dev/sdb2')` error
<{^_^}> [nixops-aws] @grahamc merged pull request #34 → py3-prep: fix filter with list comprehensions → https://git.io/JvDPp
<{^_^}> [nixops-aws] @grahamc pushed 2 commits to master: https://git.io/JvDX0
Neo-- has quit [Ping timeout: 240 seconds]
purpleman has joined #nixos
purpleman has quit [Client Quit]
<claudiii> that is with the default partitio scheme and nixops 1.7
chimay has quit [Ping timeout: 264 seconds]
linarcx has quit [Ping timeout: 250 seconds]
ZoomZoomZoom has joined #nixos
shibboleth has quit [Quit: shibboleth]
<{^_^}> [nixops-aws] @bhipple opened pull request #36 → py3 prep: foo.values() does not return an indexable list → https://git.io/JvDXK
<ZoomZoomZoom> Hi. nixos-rebuild fails on the GRUB stage with the following error: https://pastebin.com/v5maUb0A What should I do?
Neo-- has joined #nixos
<ZoomZoomZoom> "/dev/sde1" is a boot partitions (vfat)
Makaveli7 has quit [Quit: WeeChat 2.7.1]
<clever> ZoomZoomZoom: did you run nixos-rebuild as root?
<cole-h> Stupid question, but doesn't hurt to ask: are you running with `sudo` or otherwise as root?
<ZoomZoomZoom> clever, you mean ever?
<pie_[bnc]> i stull get hung up on basic stuff like this:
<energizer> are you uspposed to run nixos-rebuild as root or not?
<pie_[bnc]> if i have a function in a default.nix, how do i call it with nix-build?
<pie_[bnc]> {pkgs ? stuff}: ...
<energizer> supposed*
<pie_[bnc]> im doing nix-build default.nix -A sometihngorother
<cole-h> ZoomZoomZoom: You need to run `nixos-rebuild` as root for everything (or almost everything)
<clever> ,callPackage pie_[bnc]
<{^_^}> pie_[bnc]: 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 {}'`
<ZoomZoomZoom> cole-h, I use sudo
ChimeraZara has joined #nixos
<{^_^}> [nixops-aws] @grahamc merged pull request #36 → py3 prep: foo.values() does not return an indexable list → https://git.io/JvDXK
<{^_^}> [nixops-aws] @grahamc pushed 2 commits to master: https://git.io/JvDXj
<pie_[bnc]> clever: ok so i have to use -E
<pie_[bnc]> clever: i figured there might be some magic comfortable way
<pie_[bnc]> clever: because default arguments.
<clever> pie_[bnc]: nix-build will call it with {}, and the defaults may work
justanotheruser has joined #nixos
<lewo> ~.
<pie_[bnc]> clever: im dumb. this means its getting called fine just something else is choking:
<pie_[bnc]> $ nix-build default.nix --arg pkgs '<nixpkgs>' -A apidumper-upstream
<pie_[bnc]> error: value is a path while a set was expected, at /bakery2/oven1/personal/projects/hask2/qtah3/meta-qtah/extern/default.nix:33:7
<pie_[bnc]> wrong paste
<ZoomZoomZoom> clever, This is probably not the issue. I've rebuilt as root.
ZaraChimera has quit [Ping timeout: 250 seconds]
<pie_[bnc]> $ nix-build default.nix -A apidumper-upstream
<pie_[bnc]> error: expression does not evaluate to a derivation (or a set or list of those)
o1lo01ol1o has quit [Remote host closed the connection]
<clever> pie_[bnc]: are you expecting the pkgs argument to be a set (of all packages) or a path (to nixpkgs) ?
noudle has quit []
<pie_[bnc]> clever: i got it to work. major misdiagnosis :P
<clever> pie_[bnc]: have you seen the whackyness of what --arg can do?
<pie_[bnc]> clever: dont think so
<{^_^}> [nixpkgs] @markuskowa merged pull request #83134 → redo-apenwarr: switch to python3 and fix building man → https://git.io/JvD1B
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/JvD1R
<pie_[bnc]> clever: i think i see whats going on 'xD
<pie_[bnc]> clever: does that mean argstr applies to any uncalled function along the evaled attrs?
<clever> pie_[bnc]: basically, for every attr in the `-A foo.bar.baz`, nix will try to call it with all --arg and --argstr
<clever> yep
<{^_^}> [nixops-aws] @bhipple opened pull request #37 → Migrate nixops-aws to python3 → https://git.io/JvD1u
gustavderdrache has quit [Quit: Leaving.]
<{^_^}> [nixpkgs] @markuskowa pushed commit from @ckesg to release-20.03 « redo-apenwarr: 0.42 -> 0.42a; use python3 and fixed building manpage »: https://git.io/JvD1V
<Nafai> nixops-aws, hmm. That reminds me. Anyone got hints on the latest and greatest way to run nixos on AWS - to run things like IRC, etc?
oever has quit [Read error: Connection reset by peer]
ChimeraZara is now known as ZaraChimera
oever has joined #nixos
Intensity has quit [Changing host]
Intensity has joined #nixos
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
spacefrogg has joined #nixos
<{^_^}> [nixpkgs] @markuskowa merged pull request #83131 → kodi: fix lirc support → https://git.io/JvD1S
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/JvD19
<{^_^}> [nixpkgs] @markuskowa pushed commit from @ckesg to release-20.03 « kodi: fix lirc support »: https://git.io/JvD1F
markus1199 has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #83158 → libmwaw: 0.3.15 -> 0.3.16 → https://git.io/JvDMU
markus1189 has joined #nixos
Neo-- has quit [Ping timeout: 240 seconds]
ChimeraZara has joined #nixos
ZaraChimera has quit [Disconnected by services]
ChimeraZara is now known as ZaraChimera
davidak has joined #nixos
davidak has quit [Client Quit]
scream has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
hmpffff has quit [Quit: nchrrrr…]
<{^_^}> [nixops-aws] @grahamc pushed 0 commits to pre-python3: https://git.io/JvDM1
<{^_^}> [nixops-aws] @grahamc merged pull request #37 → Migrate nixops-aws to python3 → https://git.io/JvD1u
<{^_^}> [nixops-aws] @grahamc pushed 2 commits to master: https://git.io/JvDMS
Neo-- has joined #nixos
pinkieval has joined #nixos
drakonis has joined #nixos
cr4y1 has quit [Quit: Leaving]
cr4y1 has joined #nixos
<{^_^}> [nixpkgs] @khumba opened pull request #83159 → pydf: install man page and default config file → https://git.io/JvDMj
hmpffff has joined #nixos
szicari has quit [Ping timeout: 264 seconds]
szicari has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #83160 → bat: 0.12.1 -> 0.13.0 → https://git.io/JvDDI
scream has left #nixos ["Kicked by @appservice-irc:matrix.org : issued !quit command"]
chagra has quit [Ping timeout: 264 seconds]
chagra has joined #nixos
Nafai has quit [Quit: WeeChat 2.7.1]
<{^_^}> [nixpkgs] @c00w closed pull request #81159 → [go] Undo some 1.12 overrides that now build with 1.13 → https://git.io/JvzTU
<raboof> when I "nixos-generate -f lxc -c empty-config.nix", the resulting tarball includes gcc. how could I diagnose why that is?
scream has joined #nixos
<clever> raboof: find the root storepath (the one with /init) and then run `nix why-depends /nix/store/path-gcc /nix/store/root-path`
<clever> oops, swap the 2 paths around
<{^_^}> [nixpkgs] @c00w reopened pull request #81159 → [go] Undo some 1.12 overrides that now build with 1.13 → https://git.io/JvzTU
<{^_^}> [nixpkgs] @marsam opened pull request #83161 → lean: 3.7.0 -> 3.7.2 → https://git.io/JvDD2
<hodapp> are there any good write-ups on how to get a functioning setup with Rust + Racer, maybe with Emacs?
<raboof> clever: hmm, "'/nix/store/x5wir58d412060vlxh21p3z2x48cy0q9-nixos-system-nixos-20.09.git.40cd29c2693' does not depend on '/nix/store/gh9a48qcwzw588vy4w72w93kad0mhhi8-gcc-9.2.0'"
<{^_^}> [nixpkgs] @Profpatsch opened pull request #83162 → Skaware 2020 03 → https://git.io/JvDDr
<clever> raboof: unpack the tar somewhere, and just `grep -r gh9a48qcwzw588vy4w72w93kad0mhhi8` to see what depends on it
<{^_^}> [nixpkgs] @7c6f434c merged pull request #83140 → glusterfs: 7.3 -> 7.4 → https://git.io/JvDwL
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/JvDDK
<hodapp> I see references to needing the Rust overlay but don't understand a lot of this
<hodapp> and out-of-the-box Racer doesn't really work (at least in Emacs) because racer-rust-src-path/RUST_SRC_PATH point somewhere nonexistent
cosimone has joined #nixos
shibboleth has joined #nixos
<kalbasit> how can I override lib in a `import <nixpkgs> { config = {}; overlays = []; }`? Can it be done via an overlay?
joesbushi has joined #nixos
<clever> kalbasit: you could use an overlay to just change lib
<clever> that would affect pkgs.lib
<kalbasit> ok I'm going to try that
Desetude has joined #nixos
<kalbasit> yay, worked!
<kalbasit> I don't know why I thought it wouldn't work 🤔
joesbushi is now known as tlux
scream has left #nixos ["Kicked by @appservice-irc:matrix.org : issued !quit command"]
<raboof> clever: it shows up via /nix/store/h1fh4y7vkhh46x6z6g032jrmv71bx8km-stdenv-linux , but then I get stuck: h1fh4y7vkhh46x6z6g032jrmv71bx8km doesn't seem to appear anywhere in the tarball (except in /nix-path-registration)
<clever> ,locate bin/nixos-generate
<{^_^}> Found in packages: nixos-generators
<clever> $ vi nixos-generators/share/nixos-generator/formats/lxc.nix
<clever> 11 storeContents = [
<clever> 8 system.build.tarball = lib.mkForce (pkgs.callPackage <nixpkgs/nixos/lib/make-system-tarball.nix> {
<clever> 13 object = config.system.build.toplevel + "/init";
<clever> 16 ] ++ (pkgs2storeContents [ pkgs.stdenv ]);
<clever> 14 symlink = "/sbin/init";
<clever> raboof: it specially adds the stdenv to the tar, beside the toplevel nixos
xkapastel has quit [Quit: Connection closed for inactivity]
<clever> raboof: so `nix-shell` doesnt have to download gcc upon first boot
tlux has left #nixos [#nixos]
<raboof> ah, `pkgs.stdenv` corresponds to `stdenv-linux`?
<clever> raboof: yep
<clever> > stdenv
<{^_^}> "<derivation /nix/store/wvwmp826sz9rlwfyxpi0xn62s0c4ys1z-stdenv-linux.drv>"
scream has joined #nixos
opthomasprime has quit [Remote host closed the connection]
<raboof> I don't think I need nix-shell inside the container though, so I'd be best off using a modified nixos-generate I guess? (or perhaps copying over just the parts of nixos-generate I need to my project?)
<{^_^}> [nixpkgs] @lasandell opened pull request #83163 → shortwave: init at 1.0.1 → https://git.io/JvDyC
<{^_^}> [nixpkgs] @7c6f434c merged pull request #83154 → libev: 4.31 -> 4.33 → https://git.io/JvD67
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to staging: https://git.io/JvDyW
opthomasprime has joined #nixos
opthomasprime has quit [Remote host closed the connection]
cinimod` has quit [Ping timeout: 246 seconds]
kleisli has joined #nixos
cinimod` has joined #nixos
<clever> raboof: yeah
<raboof> cool, thanks for helping me navigate a bit better ;)
knupfer has quit [Ping timeout: 264 seconds]
Rusty1 has quit [Remote host closed the connection]
oever is now known as vandenoever
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/JvDy5
Nafai has joined #nixos
<boogiewoogie[m]> hey, is there a way to create files in absolute paths in a derivation? (e.g. copy prepared configs or files in $src to ~/.config)
<{^_^}> [nixpkgs] @peti opened pull request #83164 → Update Haskell package set to LTS 15.5 (plus other fixes) → https://git.io/JvDyp
<gchristensen> no
johnw has joined #nixos
<boogiewoogie[m]> okay, thanks
<gchristensen> instead of, say, emacs reading my config files from ~/.emacs/, I instead create a wrapper around emacs which knows my plugins are at /nix/store/....-grahams-config
hmpffff has quit [Quit: nchrrrr…]
knupfer has joined #nixos
<boogiewoogie[m]> ah, gotcha!
ZoomZoomZoom has quit [Ping timeout: 256 seconds]
turion has quit [Ping timeout: 272 seconds]
philr has joined #nixos
<{^_^}> [nixops-aws] @bhipple opened pull request #38 → Bugfix: known_hosts update on nixops destroy → https://git.io/JvDSa
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/ec145bfbddf (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<{^_^}> [nixops-aws] @grahamc merged pull request #38 → Bugfix: known_hosts update on nixops destroy → https://git.io/JvDSa
<{^_^}> [nixops-aws] @grahamc pushed 2 commits to master: https://git.io/JvDS6
codygman has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @Ma27 merged pull request #83143 → intel-gpu-tools: 1.24 -> 1.25 → https://git.io/JvDok
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JvDSH
<energizer> gchristensen: what's the benefit of that over just reading from ~/.emacs?
codygman has joined #nixos
sleepingforest has quit [Quit: bye!]
sleepingforest has joined #nixos
<cole-h> No need to drop a .emacs file that way
<gchristensen> ^, that `emacs` will work the same no matter who runs it, and also I get rollbacks and all that jazz automatically
<gchristensen> the same reasons I use nixos :)
<energizer> do you do that for all your app configurations?
<gchristensen> all the ones that I know I have, yeah
<gchristensen> I don' do that for Super GUI stuff, like firefox -- mostly
<MichaelRaskin> Isn't Firefox where one actually needs that most?
<gchristensen> yes P
<gchristensen> :P
<{^_^}> [nixpkgs] @Ma27 pushed 4 commits to master: https://git.io/JvD9f
<evils> what's the best way to chmod a directory from a nixos module?
<energizer> does home-manager give all the benefits of that strategy?
<{^_^}> [nixops-aws] @bhipple opened pull request #39 → Bugfix: SSH public key creation has to be encoded into bytes → https://git.io/JvD9I
<energizer> HM doesn't do "`emacs` will work the same no matter who runs it" but that's probably for the best since nobody else would like my .emacs
codygman has quit [Read error: Connection reset by peer]
vandenoever has quit [Read error: Connection reset by peer]
codygman has joined #nixos
<gchristensen> as much as possible, I like the build output to be completely independent, and only use things like home-manager or nixos configuration for things which simply cannot be feasibly done that way
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
nerdmaxx has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
<energizer> by independent you mean the only input should be ~/.nixpkgs/config.nix ?
<energizer> (sorry for the barrage of questions, still getting the feel of things...)
<gchristensen> I mean I can do nix-build ./emacs.nix, and get out a ./result/bin/emacs where I can try out that new version
<energizer> ok i see
<gchristensen> and if I have a bug report, I can upload that emacs.nix and be done prett ymuch
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #83165 → Update openshot qt → https://git.io/JvD90
<{^_^}> [nixpkgs] @Ma27 pushed to release-20.03 « EmptyEpsilon: 2020.02.18 -> 2020.03.22 »: https://git.io/JvD9z
<energizer> gchristensen: the content of your .emacs is contained in emacs.nix?
__monty__ has quit [Quit: leaving]
<energizer> aha
<{^_^}> [nixops] @bhipple opened pull request #1262 → Use context manager for file opens → https://git.io/JvD9r
<{^_^}> [nixops-aws] @grahamc merged pull request #39 → Bugfix: SSH public key creation has to be encoded into bytes → https://git.io/JvD9I
<{^_^}> [nixops-aws] @grahamc pushed 2 commits to master: https://git.io/JvD96
dycan has joined #nixos
Cale has quit [Remote host closed the connection]
Cale has joined #nixos
dsx has quit [Quit: dsx]
knupfer has quit [Remote host closed the connection]
bhipple has quit [Ping timeout: 250 seconds]
<colemickens> Can you have a module in an overlay? I tried to do this a while back and never could figure it out. I think NUR claims to allow it but I'm not sure I've seen a full example before.
<colemickens> It seems like it's just more nix, it ought to be possible?
bhipple has joined #nixos
<tilpner> colemickens: It's perfectly fine, but you have to be really carefuly how you access them
<tilpner> colemickens: And you should make sure your modules are of type path, not functions
<tilpner> (The values you expose and stuff into imports. The modules themselves are always functions of course)
dsx has joined #nixos
<colemickens> Okay, thanks for the links/tips.
<colemickens> You don't just have a link to one of your usages do you?
<tilpner> No, sorry
Cale has quit [Remote host closed the connection]
Desetude has quit [Ping timeout: 260 seconds]
cosimone has quit [Ping timeout: 246 seconds]
reallymemorable has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
Neo-- has quit [Ping timeout: 258 seconds]
peelz has quit [Ping timeout: 250 seconds]
ZaraChimera has quit [Quit: ZaraChimera]
ZaraChimera has joined #nixos
shibboleth has quit [Quit: shibboleth]
chloekek has quit [Ping timeout: 240 seconds]
<energizer> is there a cli version of https://nixos.org/nixos/options.html ?
<simpson> energizer: $(man configuration.nix)
<MichaelRaskin> I think nixos-option is kind of similar
<colemickens> nixos-option
<simpson> Also nixos-option
<cole-h> Did anybody mention nixos-option yet? Because that's pretty handy, too
<cole-h> :P
v0|d has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
<energizer> what do i do about data that's private but not super-secret, such as ~/.ssh/config?
o1lo01ol1o has joined #nixos
<energizer> things that fall under "opsec"
v0|d has joined #nixos
<energizer> do you put them in your dotfiles repo on github or what?
<colemickens> I use a dotfiles repo + git-crypt
cosimone has joined #nixos
<cole-h> ^
reallymemorable has quit [Quit: reallymemorable]
astrofog has joined #nixos
furzio has joined #nixos
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<danderson> energizer: git-crypt + custom keys deployment goop that integrates with nixos (so that nixos knows when a secret changes, but not what the secret is)
<danderson> https://github.com/danderson/homelab has the goop in question, lib/key-management.sh has a comment that explains it.
<danderson> I do not recommend anyone actually use this. But I use it, and it works for me.
<{^_^}> [nixops-aws] @bhipple opened pull request #40 → Remove unused imports → https://git.io/JvDHC
<energizer> sounds like a pretty uniform response, that's reassuring
<danderson> for my personal homelab use case, I just need "I give you a symmetric key and you decrypt my stuff". git-crypt does that well.
<danderson> and once initialized, it stays out of the way.
<colemickens> do you use it without having to involve gpg then?
<danderson> that doesn't scale to multi-user though. git-crypt and git-secret both try to solve that with using GPG and public keys
<danderson> colemickens: maybe? I'm sure on the inside git-crypt still uses gpg for stuff somewhere
<danderson> but from my UI perspective, there are no GPG keys or anything
<danderson> I just git-crypt init <<<"my-secret-key" after initial clone, and voila, my secrets are there.
furzio has left #nixos [#nixos]
<cole-h> Unfamiliar with git-secret, but I like git-crypt because I don't have to think about de/encrypting. It's encrypted on push. It's decrypted on my FS
<bqv[m]> You could achieve that with filters, no?
<cole-h> That's what git-crypt does under the hood
sleepingforest has quit [Quit: bye!]
<bqv[m]> Makes the sense
<cole-h> I don't want to learn how to use git's filters, so I let git-crypt do it for me :P
<{^_^}> [nixpkgs] @Ma27 merged pull request #83153 → fail2ban: fix firewall warning → https://git.io/JvD6c
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JvDH0
sleepingforest has joined #nixos
Cale has joined #nixos
justanotheruser has quit [Ping timeout: 250 seconds]
zemm_ has quit [Ping timeout: 258 seconds]
zebrag has joined #nixos
inkbottle has quit [Ping timeout: 264 seconds]
reallymemorable has joined #nixos
<{^_^}> [nixpkgs] @avnik opened pull request #83166 → nixos: Introduce nix.buildLocation option → https://git.io/JvDHr
<{^_^}> [nixpkgs] @marsam merged pull request #83160 → bat: 0.12.1 -> 0.13.0 → https://git.io/JvDDI
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvDH6
aszlig has quit [Quit: Kerneling down for reboot NOW.]
hmpffff has joined #nixos
maddo2 has quit [Quit: See ya]