nix-conf/system/dev/generic/default.nix
danny d7cf0baf67 feat: markdown to html script
- add binary: md2html
- nvf: add snack nvim
2025-09-18 21:44:57 +08:00

47 lines
882 B
Nix

{
modulesPath,
lib,
pkgs,
nix-version,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
./disk.nix
./hardware-configuration.nix
../../modules/nixsettings.nix
];
boot.loader.systemd-boot.enable = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.firewall = {
allowedTCPPorts = [ 22 ];
allowedUDPPorts = [ ];
};
services.openssh = {
enable = true;
ports = [
22
];
settings = {
PasswordAuthentication = true;
PermitRootLogin = "yes";
UseDns = false;
};
};
environment.systemPackages = map lib.lowPrio [
pkgs.curl
pkgs.gitMinimal
];
users.users.root.openssh.authorizedKeys.keys = [
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJSAOufpee7f8D8ONIIGU3qsN+8+DGO7BfZnEOTYqtQ5 danny@pre7780.dn''
];
system.stateVersion = nix-version;
}