sysadmin: init, replacing deployment directory
This commit is contained in:
parent
b4b879a87b
commit
8076f91738
8 changed files with 36 additions and 29 deletions
16
common/sysadmin/default.nix
Normal file
16
common/sysadmin/default.nix
Normal 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" ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue