!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
9 Feb 2024
@treed:zenithia.nettreeduhhh not sure what happened there03:00:43
@pgibson:matrix.orgpgibson If you prefix the image name with localhost it will prevent it from downloading a new image, eg image = "localhost/hello-world"; fails rather than downloading the hello-world docker hub image 03:12:48
@pgibson:matrix.orgpgibsonSo that seems like a good measure03:13:51
@pgibson:matrix.orgpgibson I've got a problem with colmena build caching the old version of the flake that builds the dockerImage after making changes to it 03:32:49
@pgibson:matrix.orgpgibsonIs this due to the flake.lock?03:33:34
@pgibson:matrix.orgpgibsonIf I delete the lock file then it picks up the changes03:40:41
@pgibson:matrix.orgpgibsonIs there something like --upgrade?03:40:48
@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
@pgibson:matrix.orgpgibsonAnsible is just so unreasonably slow23:36:47
@pgibson:matrix.orgpgibsonDrives me crazy23:36:55
@treed:zenithia.nettreedExecution slowness doesn't really bother me. Just writing the stuff is so slow23:37:13
@treed:zenithia.nettreedAll the stuff spread out in multiple files for even the simplest of "deploy this binary, run it as a service" things23:37:35
@treed:zenithia.nettreedPlus the weird YAML-not-a-programming-language aspect23:38:27
10 Feb 2024
@aktaboot:tchncs.de@aktaboot:tchncs.de changed their profile picture.22:06:29
11 Feb 2024
@ibtalot:matrix.org@ibtalot:matrix.org joined the room.19:53:12
16 Feb 2024
@hexa:lossy.networkhexa ok, so raitobezarius eta l 13:50:23

Show newer messages


Back to Room ListRoom Version: 6