add app with nom, rework overlays

This commit is contained in:
Henry Hiles 2025-08-29 18:46:36 -04:00
commit a29a5eb23c
No known key found for this signature in database
3 changed files with 22 additions and 6 deletions

View file

@ -1,9 +1,11 @@
{
inputs,
crossPkgs,
...
}: {
nixpkgs.overlays = [(self: super: inputs.gnome-mobile.overlays.default self crossPkgs)];
{crossPkgs, ...}: {
nixpkgs.overlays = [
(self: super: {
gnome-shell = crossPkgs.gnome-shell;
gnome-settings-daemon-mobile = crossPkgs.gnome-settings-daemon-mobile;
mutter = crossPkgs.mutter;
})
];
i18n.inputMethod = {
enable = true;

View file

@ -0,0 +1 @@
inputs: inputs.gnome-mobile.overlays.default

View file

@ -79,6 +79,11 @@
hostPlatform = info.system;
localSystem = info.system;
buildPlatform = "x86_64-linux";
overlays = let
overlays = lib.filesystem.listFilesRecursive ./cross-overlays/${info.hostname};
in
map (file: import file inputs) overlays;
};
};
@ -108,6 +113,14 @@
perSystem = {pkgs, ...}: {
formatter = pkgs.alejandra;
apps.image = {
type = "app";
program = pkgs.writeShellApplication {
name = "image";
runtimeInputs = with pkgs; [nix-output-monitor];
text = "nix build .#nixosConfigurations.quadphone.config.system.build.image | nom";
};
};
};
flake.nixosConfigurations = builtins.mapAttrs (name: value: system ({system = "x86_64-linux";} // value // {hostname = name;})) {