!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

864 Members
167 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
2 May 2024
@hbjy:matrix.orgHayden joined the room.20:40:32
@nick_kadutskyi:matrix.org@nick_kadutskyi:matrix.org set a profile picture.21:19:13
4 May 2024
@hofsiedge:matrix.orgIlya Zuev joined the room.06:48:30
@abmantis:abcosta.com@abmantis:abcosta.com joined the room.19:18:22
@abmantis:abcosta.com@abmantis:abcosta.com Hey! Why is it that when I use nix develop (on some repo I've used already) it fetches and updates the packages automatically? It takes quite a while, and I would be happy most of the times to use the current packages I already used one day ago. any way to stop that? 19:24:06
@mewp:nurupo.pl@mewp:nurupo.pl I don't use nix develop, so I'm not sure, but direnv with use flake definitely doesn't do that 19:25:44
@tomberek:matrix.orgtomberekDo you have automatic GC turned on to run nightly? If so, a feature that might help you is "nix develop --profile ./tools". It makes a symlink to protect that stuff from GC. You can even enter that profile directly instead of the flake-defined one with "nix develop ./tools".20:11:57
@abmantis:abcosta.com@abmantis:abcosta.comohhh, I do have GC running! 20:23:23
@abmantis:abcosta.com@abmantis:abcosta.comI'll try that out! thanks a lot20:23:32
6 May 2024
@dayvidpham:envs.netdayvidpham joined the room.05:43:33
@peacememories:fairydust.space@peacememories:fairydust.space left the room.14:11:28
@charles:computer.surgeryCharles changed their display name from Charles ⚡️ to Charles.17:01:06
@nick_kadutskyi:matrix.org@nick_kadutskyi:matrix.org changed their display name from nick_kadutskyi to nickkadutskyi.17:33:26
@nick_kadutskyi:matrix.org@nick_kadutskyi:matrix.org left the room.17:35:38
@nickkadutskyi:matrix.org@nickkadutskyi:matrix.org joined the room.17:37:50
@nickkadutskyi:matrix.org@nickkadutskyi:matrix.org changed their display name from nickkadutskyi to Nick Kadutskyi.17:39:31
@bryan.bennett:matrix.orgBryanIf you use nix-direnv (or flakeenv) and the flake itself hasn't changed, the environment should be cached and a gcroot added for it so that gc doesn't clean it up :) 19:16:53
@abmantis:abcosta.com@abmantis:abcosta.com tomberek: using --profile did not make it :( 21:16:12
@abmantis:abcosta.com@abmantis:abcosta.com the command I'm using is:
nix develop --profile ./nix-profile /home/acosta/dev/thirdparty/nix-environments#home-assistant
21:16:37
@abmantis:abcosta.com@abmantis:abcosta.com
In reply to @bryan.bennett:matrix.org
If you use nix-direnv (or flakeenv) and the flake itself hasn't changed, the environment should be cached and a gcroot added for it so that gc doesn't clean it up :)
I think in this case using flakeenv would not work since the flake is in the nix-environments repo, not in the project repo
21:17:12
@tracteur:chiral.devtracteur joined the room.21:59:26
7 May 2024
@nat:nekopon.plnat changed their display name from nat to nat ⋆ ˚。⋆୨୧˚.21:21:44
@nat:nekopon.plnat changed their profile picture.21:21:46
8 May 2024
@mfed3:matrix.org@mfed3:matrix.org joined the room.01:39:32
@mfed3:matrix.org@mfed3:matrix.orgimage.png
Download image.png
01:48:36
@mfed3:matrix.org@mfed3:matrix.orgHey everyone, been using nixos for about 2 years now, but finally doing some tests to migrate to flakes with my configuration of 2 hosts. Was following some basics on the nixos-wiki and right off the bat errors. My steps were: Enabled flakes and nix-command on the old style configuration Refactored my configs a bit to have a modules and hosts folder at the top level Ran nix flake init Modified the file to look like this: 01:48:38
@mfed3:matrix.org@mfed3:matrix.orgRan sudo nixos-rebuild switch --flake .01:49:02
@mfed3:matrix.org@mfed3:matrix.org
[mfed3@fed-gc:~/git/nixos-config]$ sudo nixos-rebuild switch --flake .
[sudo] password for mfed3: 
error:
       … while calling the 'seq' builtin

         at /nix/store/3pif36ks3f56py4wb1dkq6sh0nkf3ygj-source/lib/modules.nix:322:18:

          321|         options = checked options;
          322|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          323|         _module = checked (config._module);

       … while evaluating a branch condition

         at /nix/store/3pif36ks3f56py4wb1dkq6sh0nkf3ygj-source/lib/modules.nix:261:9:

          260|       checkUnmatched =
          261|         if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [] then
             |         ^
          262|           let

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: getting status of '/nix/store/b0x9sbi7iqgkw5m01ccak1w7vl69fn8c-source/hosts/modules': No such file or directory

[mfed3@fed-gc:~/git/nixos-config]$ 


01:50:36

Show newer messages


Back to Room ListRoom Version: 6