nix!: refactored nixosModules

This commit is contained in:
Primrose 2024-10-12 00:11:47 +02:00
parent 3753271d60
commit 18f7c70bc9
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
17 changed files with 25 additions and 32 deletions

View file

@ -0,0 +1,9 @@
{ lib, ... }:
{
nix.gc = lib.mkDefault {
automatic = true;
dates = "weekly";
options = "--delete-older-than 15d";
};
}

View file

@ -0,0 +1,11 @@
{
time.timeZone = "Europe/Paris";
i18n = {
defaultLocale = "en_US.UTF-8";
supportedLocales = [
"en_US.UTF-8/UTF-8"
"fr_FR.UTF-8/UTF-8"
"zh_TW.UTF-8/UTF-8"
];
};
}

View file

@ -0,0 +1,20 @@
{ lib, hostname, ... }:
{
networking.hostName = hostname;
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "prohibit-password";
PasswordAuthentication = false;
};
ports = lib.mkDefault [ 22 ];
};
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBt+MINzxBF8uyFIuz/UvMZe9Ml+qxU0hxxi7UAmUzpc leana@bismuth"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBvP72buxKrTAtu9SxSqd0kzzbGxY7fUwgT100Q0S/Yi leana@carbon"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIBT72uvhrQs7Itf0UJKy6SGBvO0jiFCiZ3icYiTEJIK leana@tungsten"
];
}