nix-on-droid
This commit is contained in:
parent
679ebeacba
commit
bf026690ae
10
flake.nix
10
flake.nix
@ -21,11 +21,16 @@
|
||||
ghostty = {
|
||||
url = "github:ghostty-org/ghostty";
|
||||
};
|
||||
nix-on-droid = {
|
||||
url = "github:nix-community/nix-on-droid/release-24.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = inputs @ {
|
||||
nixpkgs,
|
||||
nix-darwin,
|
||||
nix-on-droid,
|
||||
...
|
||||
}: {
|
||||
nixosConfigurations = {
|
||||
@ -60,5 +65,10 @@
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
nixOnDroidConfigurations.default = nix-on-droid.lib.nixOnDroidConfiguration {
|
||||
pkgs = import nixpkgs { system = "aarch64-linux"; };
|
||||
modules = [ ./hosts/android/configuration.nix ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
47
hosts/android/configuration.nix
Normal file
47
hosts/android/configuration.nix
Normal file
@ -0,0 +1,47 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Simply install just the packages
|
||||
environment.packages = with pkgs; [
|
||||
# User-facing stuff that you really really want to have
|
||||
vim # or some other editor, e.g. nano or neovim
|
||||
emacs
|
||||
git
|
||||
|
||||
openssh
|
||||
which
|
||||
|
||||
# Some common stuff that people expect to have
|
||||
procps
|
||||
killall
|
||||
diffutils
|
||||
findutils
|
||||
utillinux
|
||||
#tzdata
|
||||
hostname
|
||||
man
|
||||
gnugrep
|
||||
#gnupg
|
||||
#gnused
|
||||
#gnutar
|
||||
#bzip2
|
||||
#gzip
|
||||
#xz
|
||||
#zip
|
||||
#unzip
|
||||
];
|
||||
|
||||
# Backup etc files instead of failing to activate generation if a file already exists in /etc
|
||||
environment.etcBackupExtension = ".bak";
|
||||
|
||||
# Read the changelog before changing this value
|
||||
system.stateVersion = "24.05";
|
||||
|
||||
# Set up nix for flakes
|
||||
nix.extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
|
||||
# Set your time zone
|
||||
#time.timeZone = "Europe/Berlin";
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user