diff --git a/flake.nix b/flake.nix index 9c1af37..0fe5d8d 100644 --- a/flake.nix +++ b/flake.nix @@ -33,9 +33,15 @@ # enable secure boot on NixOS lanzaboote.url = github:nix-community/lanzaboote; + # nix for android + nix-on-droid = { + url = github:t184256/nix-on-droid/release-23.05; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; - outputs = inputs@{ self, nixpkgs, home-manager, emacs-overlay, nur, nixgl, stylix, sops-nix, lanzaboote, ... }: let + outputs = inputs@{ self, nixpkgs, home-manager, nix-on-droid, emacs-overlay, nur, nixgl, stylix, sops-nix, lanzaboote, ... }: let system = "x86_64-linux"; # not very portable, but I do not use other architectures at the moment pkgs = import nixpkgs { inherit system; overlays = [ emacs-overlay.overlay @@ -123,5 +129,9 @@ }; + nixOnDroidConfigurations.default = nix-on-droid.lib.nixOnDroidConfiguration { + modules = [ ./profiles/mysticant/configuration.nix ]; + }; + }; } diff --git a/profiles/mysticant/configuration.nix b/profiles/mysticant/configuration.nix new file mode 100644 index 0000000..eb6837a --- /dev/null +++ b/profiles/mysticant/configuration.nix @@ -0,0 +1,22 @@ +{ config, lib, pkgs, ... }: + +{ + environment.packages = with pkgs; [ + vim + git + man + gnupg + ]; + + # 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 = "23.05"; + + # Set up nix for flakes + nix.extraOptions = '' + experimental-features = nix-command flakes + ''; + +}