23 lines
757 B
Nix
23 lines
757 B
Nix
{
|
|
config,
|
|
lib,
|
|
vacuModuleType,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkDefault;
|
|
in
|
|
lib.optionalAttrs (vacuModuleType == "nix-on-droid") {
|
|
environment.packages = config.vacu.packageList;
|
|
environment.etc."ssh/ssh_config".text = config.vacu.ssh.config;
|
|
nix.substituters = lib.mkForce config.vacu.nix.substituterUrls;
|
|
nix.trustedPublicKeys = lib.mkForce config.vacu.nix.trustedKeys;
|
|
vacu.shell.functionsDir = "${config.user.home}/.nix-profile/share/vacufuncs";
|
|
environment.etc.bashrc.text = config.vacu.shell.initLines;
|
|
environment.etc.profile.text = config.vacu.shell.initLines;
|
|
environment.etc."vacu/info.json".text = builtins.toJSON config.vacu.versionInfo;
|
|
|
|
vacu.hostName = mkDefault "nix-on-droid";
|
|
vacu.shortHostName = mkDefault "nod";
|
|
}
|