This commit is contained in:
Vivian 2024-12-30 10:19:30 +01:00
parent 8413ab2e0f
commit afa692e17d
5 changed files with 56 additions and 32 deletions

View file

@ -1,4 +1,9 @@
{ lib, inputs, pkgs, ... }:
{
lib,
inputs,
pkgs,
...
}:
{
imports = [
./users
@ -75,21 +80,23 @@
'';
};
# Limit the systemd journal to 100 MB of disk or the
# last 7 days of logs, whichever happens first.
services.journald.extraConfig = ''
SystemMaxUse=100M
MaxFileSec=7day
'';
services = {
# Limit the systemd journal to 100 MB of disk or the
# last 7 days of logs, whichever happens first.
journald.extraConfig = ''
SystemMaxUse=100M
MaxFileSec=7day
'';
services.dbus.implementation = "broker";
dbus.implementation = "broker";
# Enable SSH
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = lib.mkDefault false;
PermitRootLogin = lib.mkDefault "no";
# Enable SSH
openssh = {
enable = true;
settings = {
PasswordAuthentication = lib.mkDefault false;
PermitRootLogin = lib.mkDefault "no";
};
};
};