!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

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


SenderMessageTime
1 Dec 2022
@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
@zhaofeng:zhaofeng.liZhaofeng LiAnd the weirdness is part of the reason I changed it to only escalate during activation. Permissions can also be easily messed up if you interact with the flake as another user.20:52:18
@ask-yourself:matrix.org@ask-yourself:matrix.orgI can deinitely switch to unstable.20:52:58
@ask-yourself:matrix.org@ask-yourself:matrix.orgI was just a bit confused how to do that.20:53:04
@zhaofeng:zhaofeng.liZhaofeng Li nix shell github:zhaofengli/colmena should get you in a shell that has the unstable colmena. To add it to your config, add inputs.colmena.url = "github:zhaofengli/colmena"; and insert colmena.packages.${system}.colmena to devShell/systemPackages. 20:55:36
@ask-yourself:matrix.org@ask-yourself:matrix.org Ok doing this now. And then once I'm unstable the command is just colmena apply-local? 20:56:26
@zhaofeng:zhaofeng.liZhaofeng Li colmena apply --sudo with deployment.privilegeEscalationCommand set in the config. 20:56:59
@ask-yourself:matrix.org@ask-yourself:matrix.orgAhhh, ok right.20:57:09

Show newer messages


Back to Room ListRoom Version: 6