1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat: nix-on-droid for moto-g5

This commit is contained in:
2023-07-22 23:42:39 +02:00
parent 69aa19e9d3
commit 7551fd5a58
3 changed files with 199 additions and 3 deletions

View File

@@ -0,0 +1,37 @@
{
config,
lib,
pkgs,
...
}: let
sshPort = 8022;
in {
environment.packages = with pkgs; [
vim
openssh
curl
findutils
utillinux
gnugrep
gnused
gnutar
iproute2
git
which
procps
(pkgs.writers.writeDashBin "start-ssh" ''
${pkgs.openssh}/bin/sshd -f ${pkgs.writeText "sshd_config" ''
HostKey /data/data/com.termux.nix/files/home/.ssh/ssh_host_rsa_key
Port ${toString sshPort}
''}
'')
];
environment.etcBackupExtension = ".bak";
system.stateVersion = "23.05";
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
}