!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

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


SenderMessageTime
1 Dec 2022
@ask-yourself:matrix.org@ask-yourself:matrix.org

It still seems to complain in the same way:

.dotfiles on  main [!+] λ colmena apply-local --sudo --sudo-command=doas
error: getting the HEAD of the Git tree '/home/isaac/.dotfiles' failed with exit code 1:
       error: executing 'git': No such file or directory

(use '--show-trace' to show detailed location information)
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ChildFailure { exit_code: 1 }', src/command/apply_local.rs:95:55
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
20:46:55
@zhaofeng:zhaofeng.liZhaofeng Li Yeah, because the whole deployment process is relaunched as root and Nix depends on git in the PATH for flakes, you would need to add it to the global (or root's) environment. 20:48:07
@ask-yourself:matrix.org@ask-yourself:matrix.org Don't I do that with keepEnv? 20:48:46
@ask-yourself:matrix.org@ask-yourself:matrix.org
{user, ...}: {
  # deployment.privilegeEscalationCommand = ["doas"];
  security = {
    doas = {
      enable = true;
      extraRules = [
        {
          keepEnv = true;
          noPass = true;
          users = ["${user}"];
        }
      ];
    };
    sudo.enable = true ;
  };
}
20:48:51
@zhaofeng:zhaofeng.liZhaofeng Li Does doas git work? 20:49:51
@ask-yourself:matrix.org@ask-yourself:matrix.orgYup.20:50:02
@zhaofeng:zhaofeng.liZhaofeng LiHmm, this is very weird indeed.20:52:00

Show newer messages


Back to Room ListRoom Version: 6