blob: 57e3acbc04aab32a30a44c20945c6199eaebddc9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ config, lib, pkgs, ...}: with lib; let
cfg = config.santi-modules;
in {
options.santi-modules = {
default-user.enable = mkOption {
type = types.bool;
default = true;
description = "Enables default user configuration and ssh access";
};
};
config = mkIf config.santi-modules.default-user.enable {
environment.systemPackages = with pkgs; [
deploy-rs
jujutsu
] ++ (if cfg.mu.enable then [ pkgs.parallel ] else []);
users.mutableUsers = false;
users.users.leonardo = {
isNormalUser = true;
description = "leonardo";
extraGroups = [ "networkmanager" "wheel" ];
shell = pkgs.bashInteractive;
};
programs.ssh.startAgent = true;
services.openssh = {
enable = true;
settings = {
KbdInteractiveAuthentication = false;
PasswordAuthentication = false;
};
};
};
}
|