!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

623 Members
128 Servers

Load older messages


SenderMessageTime
14 May 2024
@ajustinlime:matrix.org@ajustinlime:matrix.org joined the room.20:11:33
@ajustinlime:matrix.org@ajustinlime:matrix.org left the room.22:44:55
15 May 2024
@raghavsood:matrix.orgraghavsood joined the room.08:27:41
@raghavsood:matrix.orgraghavsood set a profile picture.08:38:26
@thatoo:matrix.orgThatoo

mewpjust to let you know that I'm typing with this ergol.xkb_custom keaybord layout. It has work exactly as you said. After a logout/login, I could choose and use it.
Thank you.

14:44:56
@fomosapien:matrix.org@fomosapien:matrix.org changed their display name from Triskelion (AFK) to Triskelion.14:45:25
@mewp:nurupo.plmewphappy I could help14:46:12
17 May 2024
@woobilicious:matrix.orgwoobilicious how would I do the equivent of nix build 'nixpkg/<commit>#pkg but on a local clone? ./<commit>#pkg obviously doens't work. 09:03:11
@woobilicious:matrix.orgwoobilicious even better if I could do HEAD~1 09:05:48
@alex3829:matrix.org@alex3829:matrix.org left the room.13:11:19
@samasaur:matrix.orgsamasaur i think it's nix build '.?rev=<commit>#pkg' 17:49:29
18 May 2024
@erazemk:matrix.org@erazemk:matrix.org left the room.17:15:22
20 May 2024
@northben:pixelchef.net@northben:pixelchef.net joined the room.20:33:14
@daschw:matrix.org@daschw:matrix.org left the room.20:49:46
@alx_sim:matrix.org@alx_sim:matrix.org left the room.22:39:18
21 May 2024
@bumperboat:matrix.org@bumperboat:matrix.org changed their display name from bumperboat (UTC+8) to bumperboat (UTC+7).04:34:22
@jalaziz:matrix.orgjalaziz joined the room.05:05:15
@jalaziz:matrix.orgjalaziz

I'm switching from shell.nix to Flakes. With shell.nix, I could use nix-build to effectively build the derivation and store it.

With Flakes, it seems like I can do nix build ".#devShells.aarch64-darwin.default", but I need the system which is not very convenient. Is there an equally simple way to pre-build the derivation without having to specify the system and without dropping into a shell?

05:07:47
@gsaurel:laas.frnim65s jalaziz: https://github.com/nix-community/nix-direnv is a solution for that I think 10:44:45
@tanja:catgirl.cloudTanja (she/her) joined the room.11:34:51
@bryan.bennett:matrix.orgBryan nix-direnv does not itself present a way to fix this problem, but you can rely on it to not gc the derivation (which is at least a partial answer?) 18:30:57
@jalaziz:matrix.orgjalaziz

Unfortunately that's mostly only useful for a local machine. I was trying to pre-build the derivation for CI purposes. So direnv won't work.

I found an interesting technique looking at https://github.com/numtide/devshell/blob/12e914740a25ea1891ec619bb53cf5e6ca922e40/docs/src/flake-app.md?plain=1#L7 that makes it so it's a bit easier to call nix build on the devShells derivation.

18:53:29
@morgrimm:matrix.orgremi-gelinasCan't push the devshell to cachix?19:10:20
@janik0:matrix.org@janik0:matrix.org left the room.19:11:10
@bryan.bennett:matrix.orgBryan

Abílio Costa: I missed your reply here. I am sorry for that! Both nix-direnv and flakeenv take a flake specifier for the flake you want to use: use flake /home/acosta/dev/thirdparty/nix-environments#home-assistant or use flake_env home/acosta/dev/thirdparty/nix-environments#home-assistant should work, I would think!

I wrote and maintain flakeenv and am a maintainer of nix-direnv, so if you have trouble - please ping me here or (preferably) on the repo for the tool in question :)

21:03:34
@bryan.bennett:matrix.orgBryan *

Abílio Costa: I missed your reply here. I am sorry for that! Both nix-direnv and flakeenv take a flake specifier for the flake you want to use: use flake /home/acosta/dev/thirdparty/nix-environments#home-assistant or use flake_env /home/acosta/dev/thirdparty/nix-environments#home-assistant should work, I would think!

I wrote and maintain flakeenv and am a maintainer of nix-direnv, so if you have trouble - please ping me here or (preferably) on the repo for the tool in question :)

21:03:49
22 May 2024
@mjolnir:nixos.orgmjolnirchanged room power levels.15:26:03
@mjolnir:nixos.orgmjolnirchanged room power levels.15:28:17
@jalaziz:matrix.orgjalazizI can and should. I'm planning on doing that, but that's part of what I am trying to solve for too. I wanted to be able to build the devshell without entering the terminal so that I could then do things like cache it. 18:52:57
@morgrimm:matrix.orgremi-gelinas So - at the risk of not understanding the context, why does nix build .#devshells.<system>.<name> not work? 18:54:33

Show newer messages


Back to Room ListRoom Version: 6