70 lines
2.0 KiB
Nix
70 lines
2.0 KiB
Nix
{ config, lib, pkgs, inputs, ... }: {
|
|
|
|
options.sysconfig.remoteBuildClient = with lib; mkOption {
|
|
type = with types; bool;
|
|
default = false;
|
|
};
|
|
|
|
config = {
|
|
sysconfig.remoteBuildClient = true;
|
|
|
|
home-manager = {
|
|
backupFileExtension = ".backup";
|
|
useUserPackages = true;
|
|
useGlobalPkgs = true;
|
|
extraSpecialArgs = { inherit inputs; };
|
|
sharedModules = [
|
|
inputs.sops-nix.homeManagerModules.sops
|
|
inputs.home-manager-config
|
|
];
|
|
config = { config, lib, pkgs, ... }: {
|
|
imports = [
|
|
inputs.nathan
|
|
];
|
|
config = {
|
|
homeconfig = {
|
|
graphical = false;
|
|
minimal = true;
|
|
host = "android";
|
|
scripts.enable = false;
|
|
};
|
|
|
|
home.username = "nathan";
|
|
|
|
home.homeDirectory = "/data/data/com.termux.nix/files/home";
|
|
};
|
|
};
|
|
};
|
|
|
|
terminal.font = "${pkgs.fira-code}/share/fonts/truetype/FiraCode-VF.ttf";
|
|
|
|
user = {
|
|
userName = "nathan";
|
|
uid = 10472; #update this for your device!
|
|
shell = "${pkgs.zsh}/bin/zsh";
|
|
};
|
|
|
|
time.timeZone = "America/Chicago";
|
|
|
|
android-integration = {};
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
environment = {
|
|
etcBackupExtension = ".backup";
|
|
motd = "";
|
|
};
|
|
|
|
nix = {
|
|
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
|
extraOptions = ''
|
|
experimental-features = nix-command flakes
|
|
builders-use-substitutes = true
|
|
max-jobs = 0
|
|
builders = ssh://builder x86_64-linux,aarch64-linux /run/secrets/remoteBuildKey 1 1 nixos-test,benchmark,big-parallel,kvm - -
|
|
'';
|
|
};
|
|
|
|
};
|
|
}
|