mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-09-19 16:49:04 +05:30
feat(droid): add nix-on-droid support and vega host
This commit is contained in:
48
modules/hosts/vega/config.nix
Normal file
48
modules/hosts/vega/config.nix
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
flake.modules.droid.vega =
|
||||
{
|
||||
pkgs,
|
||||
userEmail,
|
||||
...
|
||||
}:
|
||||
{
|
||||
# @TODO: Broken currently
|
||||
# android-integration.am.enable = true;
|
||||
# android-integration.termux-open-url.enable = true;
|
||||
# android-integration.xdg-open.enable = true;
|
||||
# android-integration.termux-setup-storage.enable = true;
|
||||
# android-integration.termux-reload-settings.enable = true;
|
||||
|
||||
terminal.font =
|
||||
let
|
||||
firacode = pkgs.nerd-fonts.fira-code;
|
||||
fontPath = "share/fonts/truetype/NerdFonts/FiraCode/FiraCodeNerdFont-Regular.ttf";
|
||||
in
|
||||
"${firacode}/${fontPath}";
|
||||
|
||||
time.timeZone = "Asia/Kolkata";
|
||||
|
||||
tnix.networking.openssh = {
|
||||
enable = true;
|
||||
ports = [ 8033 ];
|
||||
authorizedKeys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL+OzPUe2ECPC929DqpkM39tl/vdNAXfsRnmrGfR+X3D ${userEmail}"
|
||||
];
|
||||
};
|
||||
|
||||
user = {
|
||||
uid = 10481;
|
||||
gid = 10481;
|
||||
shell = "${pkgs.zsh}/bin/zsh";
|
||||
};
|
||||
|
||||
environment.etcBackupExtension = ".backup";
|
||||
environment.motd = "";
|
||||
environment.packages = with pkgs; [
|
||||
openssh
|
||||
rsync
|
||||
];
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
};
|
||||
}
|
||||
41
modules/hosts/vega/default.nix
Normal file
41
modules/hosts/vega/default.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
inputs,
|
||||
outputs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
hostName = "vega";
|
||||
userName = "nix-on-droid";
|
||||
userEmail = "t@tux.rs";
|
||||
system = "aarch64-linux";
|
||||
unstable = true;
|
||||
nixpkgs = if unstable then inputs.nixpkgs else inputs.nixpkgs-stable;
|
||||
in
|
||||
{
|
||||
flake.nixOnDroidConfigurations."${hostName}" = inputs.nix-on-droid.lib.nixOnDroidConfiguration {
|
||||
pkgs = import nixpkgs {
|
||||
system = system;
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
joypixels.acceptLicense = true;
|
||||
};
|
||||
overlays = builtins.attrValues inputs.self.overlays;
|
||||
};
|
||||
extraSpecialArgs = {
|
||||
inherit
|
||||
inputs
|
||||
outputs
|
||||
hostName
|
||||
userName
|
||||
userEmail
|
||||
;
|
||||
};
|
||||
|
||||
modules = [
|
||||
config.flake.modules.droid.core
|
||||
config.flake.modules.droid.networking
|
||||
config.flake.modules.droid.${hostName}
|
||||
];
|
||||
};
|
||||
}
|
||||
9
modules/hosts/vega/home.nix
Normal file
9
modules/hosts/vega/home.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
flake.modules.homeManager.vega = {
|
||||
# @TODO: Broken currently - By default it's enabled by neovim module
|
||||
programs.vim.enable = lib.mkForce false;
|
||||
|
||||
home.stateVersion = "26.05";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user