From 3a95254b88d5aef5ba511d74c7fce300b5626095 Mon Sep 17 00:00:00 2001 From: Swarsel Date: Thu, 5 Dec 2024 03:14:22 +0100 Subject: [PATCH] chore: rename nix-on-droid configuration --- SwarselSystems.org | 6 +++--- flake.nix | 4 ++-- profiles/magicant/default.nix | 40 +++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 profiles/magicant/default.nix diff --git a/SwarselSystems.org b/SwarselSystems.org index 29b4fcf..c98448b 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -659,10 +659,10 @@ Nix on Android also demands an own flake output, which is provided here. #+begin_src nix :tangle no :noweb-ref flakedroidconf - mysticant = inputs.nix-on-droid.lib.nixOnDroidConfiguration { + magicant = inputs.nix-on-droid.lib.nixOnDroidConfiguration { pkgs = pkgsFor.aarch64-linux; modules = [ - ./profiles/mysticant + ./profiles/magicant ]; }; @@ -1187,7 +1187,7 @@ My work machine. Built for more security, this is the gold standard of my config **** Magicant (Phone) -#+begin_src nix :tangle profiles/mysticant/default.nix +#+begin_src nix :tangle profiles/magicant/default.nix { pkgs, ... }: { environment = { diff --git a/flake.nix b/flake.nix index b54a791..cdb9c7b 100644 --- a/flake.nix +++ b/flake.nix @@ -266,10 +266,10 @@ nixOnDroidConfigurations = { - mysticant = inputs.nix-on-droid.lib.nixOnDroidConfiguration { + magicant = inputs.nix-on-droid.lib.nixOnDroidConfiguration { pkgs = pkgsFor.aarch64-linux; modules = [ - ./profiles/mysticant + ./profiles/magicant ]; }; diff --git a/profiles/magicant/default.nix b/profiles/magicant/default.nix new file mode 100644 index 0000000..8743b81 --- /dev/null +++ b/profiles/magicant/default.nix @@ -0,0 +1,40 @@ +{ pkgs, ... }: { + environment = { + packages = with pkgs; [ + vim + git + openssh + # toybox + dig + man + gnupg + ]; + + etcBackupExtension = ".bak"; + extraOutputsToInstall = [ + "doc" + "info" + "devdoc" + ]; + motd = null; + }; + + + android-integration = { + termux-open.enable = true; + xdg-open.enable = true; + termux-open-url.enable = true; + termux-reload-settings.enable = true; + termux-setup-storage.enable = true; + }; + + # Backup etc files instead of failing to activate generation if a file already exists in /etc + + # Read the changelog before changing this value + system.stateVersion = "23.05"; + + # Set up nix for flakes + nix.extraOptions = '' + experimental-features = nix-command flakes + ''; +}