First pass nix-on-droid

This commit is contained in:
Nathan McCarty 2022-09-04 02:46:27 -04:00
parent 87ed166256
commit e5be86a89f
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
4 changed files with 46 additions and 4 deletions

View File

@ -169,6 +169,9 @@
tablet = nix-on-droid.lib.nixOnDroidConfiguration {
config = ./machines/tablet/configuration.nix;
system = "aarch64-linux";
extraModules = [
./modules/nix-on-droid/default.nix
];
};
};
packages = {

View File

@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
}
{ }

View File

@ -2,4 +2,10 @@
let
inherit (import ../lib.nix { inherit lib; inherit pkgs; }) nLib;
in
{ }
{
imports = [
../options.nix
];
options = with lib; with nLib; { };
}

View File

@ -0,0 +1,35 @@
{ config, lib, pkgs, ... }:
let
nathan = config.nathan;
in
with lib;
{
config = mkMerge [
(mkIf nathan.programs.utils.core
{
environment.packages = with pkgs; [
# Basic command line utilities
wget
tmux
nano
unzip
any-nix-shell
htop
# For being able to update the flake
gitFull
# For nslookup
dnsutils
# Mosh for better high-latency ssh
mosh
# PV for viewing pipes
pv
];
})
(mkIf nathan.programs.utils.devel {
environment.packages = with pkgs; [
gcc
binutils
];
})
];
}