nixos-configs/configurations/android/default.nix

57 lines
1.2 KiB
Nix
Raw Normal View History

2024-01-17 20:29:40 -05:00
{
config,
lib,
pkgs,
2024-01-17 20:29:40 -05:00
...
2024-11-23 04:53:02 -05:00
}: let
inherit (lib) attrValues concatStringsSep;
in {
imports = [./nix-on-droid.nix];
environment.variables.FLAKE = "/data/data/com.termux.nix/files/home/.nix";
2024-12-05 19:03:48 -05:00
terminal.font = "${
pkgs.nerd-fonts.jetbrains-mono
2024-12-10 23:03:13 -05:00
}/share/fonts/truetype/NerdFonts/JetBrainsMono/JetBrainsMonoNerdFontMono-Regular.ttf";
environment.packages = [
(pkgs.writeShellApplication {
name = "switch";
2024-11-23 04:53:02 -05:00
runtimeInputs = attrValues {
inherit
(pkgs)
coreutils
nix-output-monitor
nvd
;
};
2024-11-23 04:53:02 -05:00
text = ''
oldProfile=$(realpath /nix/var/nix/profiles/per-user/nix-on-droid/profile)
2024-11-23 04:53:02 -05:00
nix-on-droid ${concatStringsSep " " [
"switch"
"--flake ${config.environment.variables.FLAKE}"
"--builders ssh-ng://matt@100.64.0.7"
''"$@"''
"|&"
"nom"
]} &&
nvd diff "$oldProfile" "$(realpath /nix/var/nix/profiles/per-user/nix-on-droid/profile)"
'';
})
];
environment.etcBackupExtension = ".bak";
environment.motd = null;
home-manager.backupFileExtension = "hm-bak";
# Set your time zone.
time.timeZone = "America/Montreal";
# No touchy
system.stateVersion = "23.05";
2023-12-08 14:59:44 -05:00
}