!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

307 Members
A simple, stateless NixOS deployment tool - https://github.com/zhaofengli/colmena105 Servers

Load older messages


SenderMessageTime
16 Apr 2023
@aleksana:mozilla.orgFind me at aleksana:qaq.liBut if disable that line of home-manager, it works18:37:22
@aleksana:mozilla.orgFind me at aleksana:qaq.liThis is unrelated to flake-parts, but the well-known nixosSystem adapter.18:37:51
@aleksana:mozilla.orgFind me at aleksana:qaq.liAny suggestions?18:38:57
@askyourself:askyourself.caAsk Yourself🍉From me no, I'm a noob, but I'm eager to see if anyone gets it working.19:00:02
@askyourself:askyourself.caAsk Yourself🍉I switched to flake parts cause it's definitely a lot cleaner than basic flake, but I miss Colmena! That's been the only downside so far. :p19:00:47
@aleksana:mozilla.orgFind me at aleksana:qaq.li
In reply to @aleksana:mozilla.org
https://paste.aleksana.moe/bletteenti.nix
Can anyone play with this?
19:01:41
@me:indeednotjames.comemily
In reply to @aleksana:mozilla.org
Can anyone play with this?

try the following instead:

        })

        # Some seemingly innocent home-manager imports
        inputs.home-manager.nixosModules.home-manager
      ];
      extraModules = [ inputs.colmena.nixosModules.deploymentOptions ];
20:35:58
@aleksana:mozilla.orgFind me at aleksana:qaq.li
In reply to @me:indeednotjames.com

try the following instead:

        })

        # Some seemingly innocent home-manager imports
        inputs.home-manager.nixosModules.home-manager
      ];
      extraModules = [ inputs.colmena.nixosModules.deploymentOptions ];
What does that mean?
20:38:23
@aleksana:mozilla.orgFind me at aleksana:qaq.liThe main problem is, I've written a lot of such imports, and they all go well with nix build and nixos-rebuild20:39:16
@aleksana:mozilla.orgFind me at aleksana:qaq.liI know I can include them in modules however 20:39:36
@me:indeednotjames.comemily you can probably also use ({ ... }: { imports = [ inputs.home-manager.nixosModules.home-manager ]; }) instead 20:41:33
@aleksana:mozilla.orgFind me at aleksana:qaq.li
In reply to @me:indeednotjames.com
you can probably also use ({ ... }: { imports = [ inputs.home-manager.nixosModules.home-manager ]; }) instead
But in real situations I'm writing them in different files
20:42:48
@me:indeednotjames.comemily

then use

      system = "x86_64-linux";
      specialArgs = { inherit inputs; };
      modules = [

your inputs isn't available otherwise

20:43:21
@aleksana:mozilla.orgFind me at aleksana:qaq.li
In reply to @me:indeednotjames.com

then use

      system = "x86_64-linux";
      specialArgs = { inherit inputs; };
      modules = [

your inputs isn't available otherwise

I've used specialArgs = {inherit inputs;} in colmena
20:44:10
@aleksana:mozilla.orgFind me at aleksana:qaq.lihttps://github.com/zhaofengli/colmena/issues/8620:44:56
@aleksana:mozilla.orgFind me at aleksana:qaq.liWait20:47:54
@aleksana:mozilla.orgFind me at aleksana:qaq.liYou are right actually 20:47:56
@aleksana:mozilla.orgFind me at aleksana:qaq.liI found some rather strange situations20:49:27
@aleksana:mozilla.orgFind me at aleksana:qaq.liWhether I put specialArgs in colmena or nixosSystem, as long as I don't put it at the same time, it will lead to infinite recursion20:50:51
@aleksana:mozilla.orgFind me at aleksana:qaq.li* Whether I put specialArgs in colmena or nixosSystem, as long as I don't put in both at the same time, it will lead to infinite recursion20:51:33
@me:indeednotjames.comemily
In reply to @aleksana:mozilla.org
Whether I put specialArgs in colmena or nixosSystem, as long as I don't put in both at the same time, it will lead to infinite recursion
can't reproduce what you are saying.
what commands are you using?
20:55:56
@aleksana:mozilla.orgFind me at aleksana:qaq.li
In reply to @me:indeednotjames.com
can't reproduce what you are saying.
what commands are you using?
colmena build --show-trace
20:56:30
@me:indeednotjames.comemily
In reply to @aleksana:mozilla.org
colmena build --show-trace
can you share your config again?
20:57:42
@aleksana:mozilla.orgFind me at aleksana:qaq.li
In reply to @me:indeednotjames.com
can you share your config again?
https://paste.aleksana.moe/pubarmaine.nix
20:58:26
@aleksana:mozilla.orgFind me at aleksana:qaq.liThis is the second situation, where specialArgs is moved into nixosSystem20:58:47
@aleksana:mozilla.orgFind me at aleksana:qaq.li This produces infinite recursion … while evaluating the module argument inputs' in ":anon-1420:anon-1:anon-2":` 20:59:27
@aleksana:mozilla.orgFind me at aleksana:qaq.lihttps://paste.aleksana.moe/ckliblefec.nix21:00:33
@aleksana:mozilla.orgFind me at aleksana:qaq.liThis is the third that has both specialArgs included, and it successfully builds21:00:53
@me:indeednotjames.comemily
In reply to @aleksana:mozilla.org
This is the third that has both specialArgs included, and it successfully builds
why don't you use that version then? :)
21:08:34
@aleksana:mozilla.orgFind me at aleksana:qaq.li
In reply to @me:indeednotjames.com
why don't you use that version then? :)
Because this is just a simple demo of my config
21:09:09

Show newer messages


Back to Room ListRoom Version: 6