From a569d08bc9d24918addaa61b89bf0a29adb67115 Mon Sep 17 00:00:00 2001 From: Thomas Syms Date: Fri, 13 Sep 2024 22:02:20 -0300 Subject: [PATCH] Added nix-on-droid.nix --- flake.nix | 2 +- modules/nix-on-droid.nix | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 modules/nix-on-droid.nix diff --git a/flake.nix b/flake.nix index 4044418..0ee2d64 100644 --- a/flake.nix +++ b/flake.nix @@ -216,7 +216,7 @@ nixOnDroidConfigurations.default = nix-on-droid.lib.nixOnDroidConfiguration { pkgs = import nixpkgs {system = "aarch64-linux";}; modules = [ - ./modules/system.nix + ./modules/nix-on-droid.nix ./home ./home/shell ]; diff --git a/modules/nix-on-droid.nix b/modules/nix-on-droid.nix new file mode 100644 index 0000000..0cc7990 --- /dev/null +++ b/modules/nix-on-droid.nix @@ -0,0 +1,40 @@ +{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 + + # 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"; +}