dotfiles/nod/common/default.nix

35 lines
1.4 KiB
Nix

{ pkgs, config, ... }:
{
android-integration = {
am.enable = true; # Required for okc
termux-open.enable = true;
termux-open-url.enable = true;
termux-setup-storage.enable = true;
termux-reload-settings.enable = true;
termux-wake-lock.enable = true;
termux-wake-unlock.enable = true;
xdg-open.enable = true;
};
environment.motd = "";
home-manager = {
useGlobalPkgs = true;
config =
{ ... }:
{
frogeye = config.frogeye;
home.file = {
".ssh/authorized_keys" = {
# TODO Make an option and reuse at other places
text = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPE41gxrO8oZ5n3saapSwZDViOQphm6RzqgsBUyA88pU geoffrey@frogeye.fr";
};
};
};
};
nix.package = pkgs.lix;
system.stateVersion = "24.05";
terminal.font = "${pkgs.nerd-fonts.dejavu-sans-mono}/share/fonts/truetype/NerdFonts/DejaVuSansM/DejaVuSansMNerdFont-Regular.ttf";
time.timeZone = "Europe/Amsterdam";
}
# TODO SSH: https://github.com/nix-community/nix-on-droid/wiki/SSH-access#nix-on-droid-config but using /etc or something. ssh-keygen -A should work then
# TODO OpenKeyChain support. https://github.com/DDoSolitary/okc-agents compiles with nixpkgs#{cargo,gcc} and okc-gpg works out of the box.
# okc-ssh-agent doesn't seem to get/process answers from OkcAgent, despite connection being done (logs not printing is a different issue, s/tokio::Command/std::process::Command/ to fix).