sysadmin: init, replacing deployment directory

This commit is contained in:
Katherina Walshe-Grey 2024-08-29 16:00:50 +01:00
parent b4b879a87b
commit 8076f91738
8 changed files with 36 additions and 29 deletions

View file

@ -0,0 +1,16 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.qenya.sysadmin;
in
{
options.qenya.sysadmin.enable = mkEnableOption "Base configuration for headless servers";
config = mkIf cfg.enable {
# Allow remote deployment with colmena
deployment.targetUser = null;
security.sudo.wheelNeedsPassword = false;
nix.settings.trusted-users = [ "@wheel" ];
};
}