move
This commit is contained in:
47
home-manager/users/nix-on-droid/default.nix
Normal file
47
home-manager/users/nix-on-droid/default.nix
Normal file
@@ -0,0 +1,47 @@
|
||||
{ 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;
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user