mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix!: refactored nixosModules
This commit is contained in:
parent
3753271d60
commit
18f7c70bc9
17 changed files with 25 additions and 32 deletions
9
nix/nixosModules/common/auto-gc/default.nix
Normal file
9
nix/nixosModules/common/auto-gc/default.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
nix.gc = lib.mkDefault {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 15d";
|
||||
};
|
||||
}
|
||||
11
nix/nixosModules/common/locale/default.nix
Normal file
11
nix/nixosModules/common/locale/default.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
}
|
||||
20
nix/nixosModules/common/network/default.nix
Normal file
20
nix/nixosModules/common/network/default.nix
Normal 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"
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue