add nix-on-droid configuration

This commit is contained in:
Swarsel 2023-12-15 16:54:17 +01:00
parent b04f4d6c1f
commit 2d49ddaeb2
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
2 changed files with 33 additions and 1 deletions

View file

@ -33,9 +33,15 @@
# enable secure boot on NixOS # enable secure boot on NixOS
lanzaboote.url = github:nix-community/lanzaboote; 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 system = "x86_64-linux"; # not very portable, but I do not use other architectures at the moment
pkgs = import nixpkgs { inherit system; pkgs = import nixpkgs { inherit system;
overlays = [ emacs-overlay.overlay overlays = [ emacs-overlay.overlay
@ -123,5 +129,9 @@
}; };
nixOnDroidConfigurations.default = nix-on-droid.lib.nixOnDroidConfiguration {
modules = [ ./profiles/mysticant/configuration.nix ];
};
}; };
} }

View file

@ -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
'';
}