refactor configuration

This commit is contained in:
Tim Schubert 2022-09-18 17:26:06 +02:00
parent d016cc67bc
commit 2aafcc9b49
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
17 changed files with 154 additions and 149 deletions

View file

@ -49,7 +49,7 @@ in
users = mkOption {
type = with types; attrsOf (submodule adminOpts);
default = { };
default = import ../../admins.nix;
description = ''
Admin users with root access machine.
'';
@ -67,6 +67,13 @@ in
};
config = mkIf cfg.enable {
assertions = [
{
assertion = cfg.users != [ ];
message = "Must provide at least one admin, if the admin module is enabled.";
}
];
programs.zsh.enable = mkDefault true;
services.sshd.enable = true;