fix resolv.conf on nix-on-droid

This commit is contained in:
Shelvacu
2024-05-19 20:38:26 -07:00
parent 2ed035a139
commit dd8268fe72
2 changed files with 10 additions and 0 deletions

2
dnod Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
git add . && nix-on-droid --flake . "$@"

View File

@@ -26,6 +26,14 @@
git
] ++ (import ./common-packages.nix { inherit pkgs inputs; });
environment.etc."resolv.conf".text = lib.mkForce ''
nameserver 10.78.79.1
nameserver 9.9.9.10
nameserver 149.112.112.10
options timeout:1 attempts:5
'';
# Backup etc files instead of failing to activate generation if a file already exists in /etc
environment.etcBackupExtension = ".bak";