!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
26 Dec 2024
@dmoonfire:matrix.orgdmoonfire

Your gist works fine, that isn't the problem. The problem I'm having is translating your trivial example into my non-trivial system (154 nix files, 7 nodes, plus a bunch of other flakes that I pull in). I've been working on this flake since 2021 with an imperfect understanding of Nix, so most of it is cobbled together.

A good example is that I haven't used nixosConfigurations but that is something I've been thinking about doing, so I was trying to retrofit my system to do it so I can bring my flake to the same layout in hopes of seeing what I'm doing differently.

I think I have the basic refactor that uses nixosConfigurations, but I'm getting stuck trying to get an input flake (remote flate) from my flake.nix into an inner file.

This in my inputs section of my flake.nix:

    dosage.url = "git+https://src.mfgames.com/nixos-contrib/dosage-dmoonfire-flake.git";
    sbmp4a.url = "git+https://src.mfgames.com/nixos-contrib/sickbeard-mp4-automator-flake.git";
    ficsit-cli.url = "git+https://src.mfgames.com/nixos-contrib/ficsit-cli-flake.git";

I want to get those into the files I need them which means going this path:

  • flake.nix
  • src/nodes/silud/default.nix (silud being one of my home servers)
  • src/programs/sbmp4a.nix

The goal is to have inputs.sbmp4a available in the sbmp4a.nix file so I can have it included on the nodes that need to have Sickbeard's MP4A.

I also don't want to list every flake in every package, so I use inputs: {} or inputs@{pkgs,...}: {} fairly often.

Mostly, this is just trying to refactor to integrate your working gist into my setup. Does that make sense?

14:21:20
@justinas:nixos.devJustinas Stankevičius

Right. This is a bit beyond the scope of your original question about building an insecure package. For getting inputs into individual NixOS modules, look into specialArgs.

Sorry about confusing you by dragging nixosConfigurations into the mix - my brain merged your question with another one together, so for some reason I assumed you were using the "flake shim" for Colmena as well.

14:50:32
@justinas:nixos.devJustinas Stankevičius Coming back to the problem in question, just to clarify: you're using Sonarr, right, that's what's triggering the "insecure package" error? Do you know what configures Sonarr, is it one of the remote flakes you include? If you are not sure, maybe running with --show-trace would help figure that out? 14:51:57
@justinas:nixos.devJustinas Stankevičius *

Right. This is a bit beyond the scope of your original question about building an insecure package. For getting inputs into individual NixOS modules, look into specialArgs.

Sorry about confusing you by dragging nixosConfigurations into the mix - my brain merged your question with another one together, so for some reason I assumed you were using the "flake shim" for Colmena as well.

It does not matter if you use nixosConfigurations as an output or just colmena. What matters is configuring permittedInsecurePkgs for the relevant instance of Nixpkgs. Which is what I'm trying to figure out - since configuring it for the default pkgs for the node is not working, maybe there's another instance of Nixpkgs in play?

14:56:28
@tommy:datenkollektiv.netTommy changed their display name from Tommy to Tommy (3841).16:06:29
@phaer:matrix.orgphaer changed their display name from phaer to phaer (8650 at 38c3).17:41:50
@ftchrist:matrix.orgFrédéric Christ changed their display name from Frédéric Christ to Frédéric Christ (DECT 5915).18:29:46
@dmoonfire:matrix.orgdmoonfireOh, I'm using lots of things including Sonarr that require dotnet.23:26:46
@dmoonfire:matrix.orgdmoonfireI'll see about the special args, I know I had to do it earlier, but trying to figure out how the special args works with your nixosConfiguration setup is confusing me a trifle. 🙂23:28:05
27 Dec 2024
@raitobezarius:matrix.orgraitobezarius changed their display name from raitobezarius to raitobezarius (DECT: 3538 / EPVPN 2681).07:31:47
@test-user:c.imperishable.namerendakuenthusiast⚡️ left the room.09:00:48
@nazarewk:matrix.orgkdn changed their display name from nazarewk to kdn.12:38:58
28 Dec 2024
@dmoonfire:matrix.orgdmoonfire Justinas Stankevičius: I think I got most of it working except for one minor bump. Where/how do I put the deployment attribute for Colmena in the gist you gave above? 06:03:07
@justinas:nixos.devJustinas Stankevičius I think you need to colmena as an input to your flake, then add colmena.nixosModules.deploymentOptions as shown in this comment: https://github.com/zhaofengli/colmena/issues/60#issuecomment-1047199551 14:42:18
@justinas:nixos.devJustinas Stankevičius Then, you can simply specify deployment.targetHost = ... etc. in your NixOS configuration, as if it was any other option. 14:42:36
@justinas:nixos.devJustinas Stankevičius * I think you need to have colmena as an input to your flake, then add colmena.nixosModules.deploymentOptions as shown in this comment: https://github.com/zhaofengli/colmena/issues/60#issuecomment-1047199551 14:58:32
@dmoonfire:matrix.orgdmoonfireAnd that was the last bit I needed. Thank you so very much 💙, that was definitely a frustrating eight days that I would have never had figured out with your help. Hopefully 25.04 won't be as painful.20:59:12
29 Dec 2024
@bonus:bonusplay.plBonus changed their display name from Bonus to Bonus (p4team, 7128).12:09:22
@bonus:bonusplay.plBonus changed their display name from Bonus (p4team, 7128) to Bonus.12:52:36
30 Dec 2024
@schrobingus:matrix.orgschrobingus joined the room.09:23:46
@raitobezarius:matrix.orgraitobezarius changed their display name from raitobezarius (DECT: 3538 / EPVPN 2681) to raitobezarius.16:27:22
@tommy:datenkollektiv.netTommy changed their display name from Tommy (3841) to Tommy.19:25:09
31 Dec 2024
@phaer:matrix.orgphaer changed their display name from phaer (8650 at 38c3) to phaer.19:23:59
1 Jan 2025
@kevinpthorne:matrix.orgkevinpthorne joined the room.06:48:07
@kevinpthorne:matrix.orgkevinpthorne Hi all - new to Nix generally and using colmena for remote deployment after generating system images for bootstrapping. I am running into an issue with either colmena, the nix store, or somewhere else. Running nix build '.#nixosConfigurations.my-config... in my flake works, but colmena build --on my-config doesn't. The stacktrace from colmena was similar to an issue that I resolved in a previous commit, making it look like some source was out of date. Any ideas? 06:52:38
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.14:26:27
4 Jan 2025
@tammi:greyseal.euTammi (ey/em) joined the room.01:13:36
6 Jan 2025
@jh-devv:matrix.org@jh-devv:matrix.org changed their display name from Sofie 🏳️‍⚧️ to jh-devv.19:00:33
@jh-devv:matrix.org@jh-devv:matrix.org changed their display name from jh-devv to Sofie Halenius 🏳️‍⚧️.19:01:14
@jh-devv:matrix.org@jh-devv:matrix.org changed their display name from Sofie Halenius 🏳️‍⚧️ to Sofie 🏳️‍⚧️.19:03:21

Show newer messages


Back to Room ListRoom Version: 6