feat: markdown to html script

- add binary: md2html
- nvf: add snack nvim
This commit is contained in:
danny 2025-09-18 21:44:57 +08:00
parent 16da0a0a4d
commit d7cf0baf67
10 changed files with 246 additions and 199 deletions

View file

@ -139,11 +139,17 @@ let
allowedIPs = [ "10.0.0.145/32" ];
}
{
# Skydrive
# Skydrive Lap
dns = "skydrive-mesh";
publicKey = "MK6UX8WadSbDXI3919F5EarYlZHjFNbHwYJH8Ub/YXk=";
allowedIPs = [ "10.0.0.146/32" ];
}
{
# Skydrive Phone
dns = "skydrive-mesh-phone";
publicKey = "K6Pd69/Hfu4ceCAp/JbeEL2QQ+/4ohugW1lAOxHFKDA=";
allowedIPs = [ "10.0.0.147/32" ];
}
];
in
{

View file

@ -8,27 +8,24 @@
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix")
./disk.nix
./hardware-configuration.nix
../../modules/nixsettings.nix
];
# boot.loader.systemd-boot.enable = true;
boot.loader.grub = {
enable = true;
devices = [ "/dev/sda" ];
efiSupport = true;
efiInstallAsRemovable = true;
};
boot.loader.systemd-boot.enable = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.firewall = {
allowedTCPPorts = [ 22 ];
allowedUDPPorts = [ ];
};
services.openssh = {
enable = true;
ports = [
22
30072
];
settings = {
PasswordAuthentication = true;

View file

@ -152,5 +152,6 @@ in
users.users."${username}".openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJSAOufpee7f8D8ONIIGU3qsN+8+DGO7BfZnEOTYqtQ5 danny@pre7780.dn"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBDk8GmC7b9+XSDxnIj5brYmNLPVO47G5enrL3Q+8fuh "
];
}