!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

783 Members
153 Servers

Load older messages


SenderMessageTime
10 Jun 2025
@seven7houghts:matrix.orgVeeApologies if this is not the place to ask. I have gone over many rooms but can't seem to find a good place to post this question. I am trying to setup LSP for my Neovim on NixOS, is anyone familiar with this? Details are in my Nix Discourse topic https://discourse.nixos.org/t/i-need-help-setting-up-lsp-for-neovim-using-lspconfig-language-server-binaries/6545504:35:17
@longregen:matrix.orglon joined the room.12:37:19
@longregen:matrix.orglonMaybe you can take some ideas from this framework for using neovim with nix: https://github.com/notaShelf/nvf12:38:03
@bivsk22:matrix.orgfour joined the room.17:05:56
11 Jun 2025
@seven7houghts:matrix.orgVeeThat looks complex for my use-case and I also managed to answer my own question. I'll take a look in the future when I have better grasp of nvm and nix. Thanks!03:21:47
@seven7houghts:matrix.orgVee* That looks complex for my use-case and I also managed to answer my own question already. I'll take a look in the future when I have better grasp of nvm and nix. Thanks!04:19:47
@astodialo:matrix.orgelamon joined the room.15:13:36
@hcbt:matrix.orghcbt joined the room.20:48:18
15 Jun 2025
@debtquity:matrix.orgdebtquity joined the room.14:03:38
17 Jun 2025
@jopejoe1:matrix.orgjopejoe1 (4094@GPN23) changed their display name from jopejoe1 (4094@eh22) to jopejoe1 (4094@GPN23).12:06:44
18 Jun 2025
@rav:vergara.techRene

Hello. I'm trying to build a Docker image from a flake using haskell-flake. The image is very large and when using the suggestions on the haskell-flake website, it gets reduced for just the executables but just for the Haskell portion. The package has some Rust dependencies that are included in the image wholesale, code, readmes, everything. Is there a guide on how to avoid this?

18:52:48
19 Jun 2025
@lgcl:lgcl.delgcl (she/they) changed their display name from lgcl (they/them) to lgcl (she/they).18:06:47
@yaqueen:matrix.orgyaqueen joined the room.19:23:33
20 Jun 2025
@thenextusername:matrix.orgthenextusername joined the room.14:16:06
@d:bugpara.dedebugloop joined the room.17:30:13
22 Jun 2025
@rav:vergara.techRene

Hello, anyone familiar with nixGL?

13:35:13
@sandro:supersandro.deSandro 🐧What is you actually question and is it even flakes related?14:15:43
@rav:vergara.techRene

It is. I have an app that is built with a flake. It has a UI, so to run it, I have to do nixGL ./result/bin/myapp.

14:17:09
@rav:vergara.techRene

I'm trying to bundle it into a Docker image and I wonder if I can bundle nixGL in the image, or if that defeats the purpose given that nixGL is an impure compat layer to the world outside nix

14:18:29
@rav:vergara.techRene

I currently have nixGL installed on my profile, but I see in the docs you can use it as a flake input and overlay it on top of nixpkgs

14:19:42
@rav:vergara.techRene

trying to add nixGL to the image is giving me an error that builtins.currentTime is missing, which seems to point to nixGL being impure

14:40:02
@ners:nixos.devners joined the room.18:55:53
@ners:nixos.devners Hello, is there a way to execute an attrset with type = "app" that is exposed through a different output than apps? 18:56:42
@ners:nixos.devners

I have an "app" (which is a library output, it would never occur to me to make this an app) that I'd like to run with nix run packages.${system}.foo.someApp, but I get the following error:

error: expected flake output attribute 'packages.x86_64-linux.foo.someApp' to be a derivation or path but found a set: { type = "app"; meta = «thunk»; program = «thunk»; }
18:58:25
23 Jun 2025
@nebucatnetzer13:matrix.orgnebucatnetzer13Redacted or Malformed Event07:49:12
@nebucatnetzer13:matrix.orgnebucatnetzer13 If you can build it you could run the result? We use this at work result=$(nix build .#devShells.x86_64-linux.default --no-link --print-out-paths) and then you could do $result/bin/foo or maybe even something with $(nix build ...) might work. 07:49:33
@ners:nixos.devners
$ nix build .#foo.someApp

error: expected flake output attribute 'packages.x86_64-linux.foo.someApp' to be a derivation or path but found a set: { type = "app"; meta = «thunk»; program = «thunk»; }
08:06:51
@ners:nixos.devners Ah, I can build .foo.someApp.program! Thanks for the tip. :) 08:07:43
@ners:nixos.devnersSurprising that I can build it but not run it.08:07:56
@ners:nixos.devners * Surprising that I can nix build it but not nix run it. 08:08:05

Show newer messages


Back to Room ListRoom Version: 6