!UUqahLbShAYkkrXmKs:matrix.org

DevOS

34 Members
Seeking help and geeking out together on https://github.com/divnix/devos & https://github.com/divnix/digga10 Servers

Load older messages


SenderMessageTime
13 Nov 2021
@aciceri:nixos.devaciceri 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:nixos.devaciceri * 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:matrix.orggenadij.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:matrix.orggenadij.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:matrix.orggenadij.udarovI think this one is related: https://github.com/serokell/deploy-rs/issues/1213:45:54
@aciceri:nixos.devaciceri
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:nixos.devaciceriAfter I'll try it, thank you.13:46:35
@genadij.udarov:matrix.orggenadij.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:matrix.orggenadij.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:matrix.orggenadij.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:matrix.orggenadij.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:nixos.devaciceri* Later I'll try it, thank you.15:06:32
@aciceri:nixos.devaciceri 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:matrix.orggenadij.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:matrix.orggenadij.udarovI 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:matrix.orggenadij.udarov Just realised, that it might be nix-copy issue rather than deploy-rs. Could anyone confirm that? 18:02:09
14 Nov 2021
@blaggacao:matrix.orgDavid 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:matrix.orggenadij.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:matrix.orgultranixwhat's a good way to use agenix to hide strings in the config?20:15:16
@ultranix:matrix.orgultranixit wont evaluate if i try to read a string from builtins.readFile /run/secrets/* since its a impure path20:16:29
@ultranix:matrix.orgultranix David Arnold (blaggacao): good to still you have a voice in some places! 20:19:53
@ultranix:matrix.orgultranix
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
@pachumicchu:myrdd.infoPacman99

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@gytis-ivaskevicius:matrix.orghttps://github.com/rust-lang/team/pull/671 15:10:00
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.org🤔15:10:03
23 Nov 2021
@server_stats:nordgedanken.dev@server_stats:nordgedanken.dev left the room.02:21:09
@teutat3s:pub.solar@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@teutat3s:pub.solarBut I can't manage to do it, does someone have an idea for a proper overlay?16:46:21
@teutat3s:pub.solar@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:pub.solarb12f pkgs is self or super here 16:48:10

Show newer messages


Back to Room ListRoom Version: 6