!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

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


SenderMessageTime
9 Feb 2024
@pgibson:matrix.orgpgibson

Is this the correct way to import a flake from a subdir? ```
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
dockerSshTunnel.url = "path:./docker-ssh-tunnel";
};

03:44:30
@pgibson:matrix.orgpgibson *

Is this the correct way to import a flake from a subdir?

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
dockerSshTunnel.url = "path:./docker-ssh-tunnel";
};
03:44:43
@pgibson:matrix.orgpgibson Or should I be using imports = [...] 03:51:11
@treed:zenithia.nettreed If you want to update an input, it's nix flake lock --update-input $input-name 23:24:22
@treed:zenithia.nettreedThat'll update to the latest version23:24:32
@treed:zenithia.nettreed And I have no experience with local flakes, other than knowing that . is a reference to the local flake. So maybe just ./docker-ssh-tunnel 23:25:18
@treed:zenithia.nettreedAlthough if it's working with the path prefix, then that's probably also fine23:25:30
@treed:zenithia.nettreed * And I have no experience with local flakes, other than knowing that . is a reference to the local directory's flake. So maybe just ./docker-ssh-tunnel 23:28:22
@treed:zenithia.nettreed * And I have no experience with local flakes, other than knowing that . is a reference to the current directory's flake. So maybe just ./docker-ssh-tunnel 23:28:30
@pgibson:matrix.orgpgibsonAppears to use the name that you import it under in your outer flake inputs23:28:35
@treed:zenithia.nettreed yeah, the name should be as listed in the inputs so dockerSshTunnel in your case 23:29:03
@pgibson:matrix.orgpgibsonSteep learning curve, but being able to define a server with containers running as a service in a hundred LoC is pretty awesome23:31:23
@treed:zenithia.nettreedYeah, my homelab has like 25 VMs and it's all from just over 5k LoC23:35:43
@treed:zenithia.nettreedI've done cfengine, puppet, chef, saltstack, ansible. This is by far the smoothest experience, once you figure out what you're doing23:36:04
@treed:zenithia.nettreedI still have to use ansible for the hypervisors (proxmox) and I get agitated every time23:36:24

Show newer messages


Back to Room ListRoom Version: 6