2024-01-17 20:29:40 -05:00
|
|
|
{
|
2024-05-20 22:41:45 -04: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 {
|
2024-11-22 17:58:24 -05:00
|
|
|
imports = [./nix-on-droid.nix];
|
|
|
|
|
2024-05-20 22:41:45 -04:00
|
|
|
environment.variables.FLAKE = "/data/data/com.termux.nix/files/home/.nix";
|
|
|
|
|
|
|
|
terminal.font = "${(pkgs.nerdfonts.override {
|
|
|
|
fonts = [
|
|
|
|
"JetBrainsMono"
|
|
|
|
];
|
|
|
|
})}/share/fonts/truetype/NerdFonts/JetBrainsMonoNerdFontMono-Regular.ttf";
|
|
|
|
|
2024-07-28 01:44:16 -04:00
|
|
|
environment.packages = [
|
|
|
|
(pkgs.writeShellApplication {
|
|
|
|
name = "switch";
|
2024-11-23 04:53:02 -05:00
|
|
|
|
|
|
|
runtimeInputs = attrValues {
|
2024-08-31 19:16:06 -04:00
|
|
|
inherit
|
|
|
|
(pkgs)
|
|
|
|
coreutils
|
|
|
|
nix-output-monitor
|
|
|
|
nvd
|
|
|
|
;
|
|
|
|
};
|
2024-11-23 04:53:02 -05:00
|
|
|
|
2024-07-28 01:44:16 -04:00
|
|
|
text = ''
|
2024-08-20 08:43:38 -04:00
|
|
|
oldProfile=$(realpath /nix/var/nix/profiles/per-user/nix-on-droid/profile)
|
|
|
|
|
2024-11-23 04:53:02 -05:00
|
|
|
nix-on-droid ${concatStringsSep " " [
|
2024-07-28 01:44:16 -04:00
|
|
|
"switch"
|
|
|
|
"--flake ${config.environment.variables.FLAKE}"
|
|
|
|
"--builders ssh-ng://matt@100.64.0.7"
|
|
|
|
''"$@"''
|
|
|
|
"|&"
|
|
|
|
"nom"
|
2024-08-20 08:43:38 -04:00
|
|
|
]} &&
|
|
|
|
|
|
|
|
nvd diff "$oldProfile" "$(realpath /nix/var/nix/profiles/per-user/nix-on-droid/profile)"
|
2024-07-28 01:44:16 -04:00
|
|
|
'';
|
|
|
|
})
|
|
|
|
];
|
2024-05-20 22:41:45 -04:00
|
|
|
|
|
|
|
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
|
|
|
}
|