| 13 Nov 2021 |
aciceri | Hi, I can't understand how to use deploy-rs, if I run deploy '.#pc inside my flake it starts building all my hosts (pc is the hostname of one of my configuration). | 13:42:51 |
aciceri | * Hi, I can't understand how to use deploy-rs, if I run deploy '.#pc inside my flake it starts building all my hosts (pc is the hostname of one of my configurations). | 13:43:57 |
genadij.udarov | deploy -d --hostname some-ssh-host-or-ip '.#nixoshost' --skip-checks --ssh-user root Will build nixoshost on your PC and push it to some-ssh-host-or-ip. I wasn't able to find a way to build remotely, but I wasn't looking much either.
If you'll be able to find it, I'm interested in that as well.
| 13:44:49 |
genadij.udarov | * deploy -d --hostname some-ssh-host-or-ip '.#nixoshost' --skip-checks --ssh-user root Will build nixoshost on your PC and push it to some-ssh-host-or-ip logging in with user root. I wasn't able to find a way to build remotely, but I wasn't looking much either.
If you'll be able to find it, I'm interested in that as well.
| 13:45:09 |
genadij.udarov | I think this one is related: https://github.com/serokell/deploy-rs/issues/12 | 13:45:54 |
aciceri | In reply to @genadij.udarov:matrix.org
deploy -d --hostname some-ssh-host-or-ip '.#nixoshost' --skip-checks --ssh-user root Will build nixoshost on your PC and push it to some-ssh-host-or-ip logging in with user root. I wasn't able to find a way to build remotely, but I wasn't looking much either.
If you'll be able to find it, I'm interested in that as well.
It's perfect, my goal is to build locally. | 13:46:21 |
aciceri | After I'll try it, thank you. | 13:46:35 |
genadij.udarov | You might want to omit the --skip-checks, at least initially. It is faster with it, but you might find bugs earlier, as long as there are checks for those bugs :-D | 13:47:26 |
genadij.udarov | Btw, there's a glitch with nix-copy (which is used by deploy-rs) which took me a while to figure out: if you enter the copy stage and your connection drops (i.e. your PC enters sleep mode, you change conn from wifi to ethernet, etc), you won't be able to resume, since nixos daemon will be locked by the first connection. Solution: kill the nix-store --serve process (IIRC the process name). | 13:49:42 |
genadij.udarov | The symptoms of such state: you see copying YYYYY to ZZZZ without any further progress. Hopefully that won't happen to you, but in case it does, be prepared. :-D | 13:50:45 |
genadij.udarov | I've been waiting for an hour or two in the copying state until I've realised that there's a deadlock :-D | 13:51:12 |
aciceri | * Later I'll try it, thank you. | 15:06:32 |
aciceri | genadij.udarov: just happened what you described with the same symptoms and killing the process seems to work. Thank you! | 17:05:26 |
genadij.udarov | It would be nice if deploy-rs would print something waiting for nixos daemon lock, or indicate that it's doing nothing in another way. | 18:00:48 |
genadij.udarov | I think I'll create a ticket for that, since it looks like I'm not the only one to get in that state. | 18:01:34 |
genadij.udarov | Just realised, that it might be nix-copy issue rather than deploy-rs. Could anyone confirm that? | 18:02:09 |
| 14 Nov 2021 |
David Arnold (blaggacao) | In reply to @genadij.udarov:matrix.org It would be nice if deploy-rs would print something waiting for nixos daemon lock, or indicate that it's doing nothing in another way. Rust is fun. 🤣 Go ahead. I'm also interested in this. | 15:14:28 |
genadij.udarov | In reply to @blaggacao:matrix.org Rust is fun. 🤣 Go ahead. I'm also interested in this. Yeah it is, I've spent some time with deploy-rs code already when trying to make it work :-D Though I'm not sure if we can detect that from nix-copy output, as there might be none :-D | 15:26:13 |
| 16 Nov 2021 |
ultranix | what's a good way to use agenix to hide strings in the config? | 20:15:16 |
ultranix | it wont evaluate if i try to read a string from builtins.readFile /run/secrets/* since its a impure path | 20:16:29 |
ultranix | David Arnold (blaggacao): good to still you have a voice in some places! | 20:19:53 |
ultranix | In reply to @ultranix:matrix.org it wont evaluate if i try to read a string from builtins.readFile /run/secrets/* since its a impure path ah well i suppose I can specify a relative directory to the repo with agenix on a per secret basis. | 20:50:30 |
Pacman99 | I just came across this method to import modules from other channels:
{ lib, config, latestModulesPath, channels, ... }:
let
domain = "files.${config.networking.domain}";
seafileModule = import
"${latestModulesPath}/services/networking/seafile.nix"
{ inherit config lib; pkgs = channels.latest; };
in
{
imports = [ seafileModule ];
services.seafile = {
channels is a module arg I added in my flake.nix, its just self.pkgs.${system}
| 23:08:25 |
| 22 Nov 2021 |
@gytis-ivaskevicius:matrix.org | https://github.com/rust-lang/team/pull/671
| 15:10:00 |
@gytis-ivaskevicius:matrix.org | 🤔 | 15:10:03 |
| 23 Nov 2021 |
| @server_stats:nordgedanken.dev left the room. | 02:21:09 |
@teutat3s:pub.solar | I'd like to add this to an overlay for element-desktop (from unstable, I added it to the inherit list in overrides.nix)
fixupPhase = ''
sed -i "s#exec#LD_PRELOAD=${pkgs.sqlcipher}/lib/libsqlcipher.so exec#g" "$out/bin/element-desktop"
'';
| 16:45:55 |
@teutat3s:pub.solar | But I can't manage to do it, does someone have an idea for a proper overlay? | 16:46:21 |
@teutat3s:pub.solar | I thought adding a overlays/element-desktop.nix file could be the solution, looking similar to this:
self: super: {
element-desktop = super.element-desktop.overrideAttrs (old: {
fixupPhase = ''
sed -i "s#exec#LD_PRELOAD=${pkgs.sqlcipher}/lib/libsqlcipher.so exec#g" "$out/bin/element-desktop"
'';
});
}
but ofc I get: error: undefined variable 'pkgs'
| 16:47:55 |
b12f | pkgs is self or super here | 16:48:10 |