48 lines
962 B
Nix
48 lines
962 B
Nix
{ config, lib, pkgs, inputs, ... }: {
|
|
|
|
imports = [
|
|
./programs
|
|
./services
|
|
./packages
|
|
./dotfiles
|
|
];
|
|
|
|
options.homeconfig = {
|
|
host = lib.options.mkOption {
|
|
type = lib.types.str;
|
|
default = null;
|
|
};
|
|
|
|
home-manager.enable = lib.options.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
};
|
|
};
|
|
|
|
config = {
|
|
|
|
home.stateVersion = "24.11";
|
|
|
|
home.username = "nix-on-droid";
|
|
|
|
home.homeDirectory = "/data/data/com.termux.nix/files/home";
|
|
|
|
nix = {
|
|
package = pkgs.nix;
|
|
|
|
nixPath = [
|
|
"nixpkgs=${inputs.nixpkgs}"
|
|
];
|
|
|
|
settings = {
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
};
|
|
};
|
|
|
|
programs.ssh.enable = true;
|
|
|
|
programs.home-manager.enable = config.homeconfig.home-manager.enable;
|
|
|
|
};
|
|
}
|