close to working

This commit is contained in:
Henry Hiles 2025-08-17 20:02:28 -04:00
commit b1ae9aefa1
No known key found for this signature in database
9 changed files with 44 additions and 18 deletions

View file

@ -1,8 +1,13 @@
{inputs, ...}: {
imports = [inputs.gnome-mobile.nixosModules.gnome-mobile];
nixpkgs.overlays = [inputs.gnome-mobile.overlays.default];
i18n.inputMethod = {
enable = true;
type = "ibus";
};
services.logind = {
powerKey = "ignore";
powerKeyLongPress = "poweroff";
};
}

View file

@ -15,6 +15,8 @@
})
];
boot.initrd.allowMissingModules = true;
nixpkgs.hostPlatform = "aarch64-linux";
nixpkgs.config.allowBroken = true;
}

View file

@ -0,0 +1,27 @@
{
lib,
pkgs,
...
}: {
nixpkgs.overlays = [
(_: super: {
ruby_3_3 = super.ruby_3_3.overrideAttrs (old: {
NIX_RUSTFLAGS =
(old.NIX_RUSTFLAGS or "")
+ " --target ${super.stdenv.hostPlatform.rust.rustcTargetSpec}";
});
iniparser = super.iniparser.overrideAttrs (old: {
cmakeFlags = [
(lib.cmakeBool "BUILD_TESTING" false)
];
});
gnome-user-share = super.gnome-user-share.overrideAttrs (old: {
postPatch = lib.optionalString (pkgs.stdenv.buildPlatform != pkgs.stdenv.hostPlatform) ''
substituteInPlace src/meson.build \
--replace-fail "cargo_options += [ '--target-dir', meson.project_build_root() / 'src' ]" "cargo_options += [ '--target-dir', meson.project_build_root() / 'src', '--target=${pkgs.stdenv.hostPlatform.rust.rustcTarget}' ]" \
--replace-fail "'cp', 'src' / rust_target / meson.project_name(), '@OUTPUT@'," "'cp', 'src' / '${pkgs.stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target / meson.project_name(), '@OUTPUT@',"
'';
});
})
];
}

View file

@ -1,11 +0,0 @@
{
nixpkgs.overlays = [
(_: super: {
ruby_3_3 = super.ruby_3_3.overrideAttrs (old: {
NIX_RUSTFLAGS =
(old.NIX_RUSTFLAGS or "")
+ " --target ${super.stdenv.hostPlatform.rust.rustcTargetSpec}";
});
})
];
}