close to working
This commit is contained in:
parent
c02d6b41f0
commit
b1ae9aefa1
9 changed files with 44 additions and 18 deletions
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
})
|
||||
];
|
||||
|
||||
boot.initrd.allowMissingModules = true;
|
||||
|
||||
nixpkgs.hostPlatform = "aarch64-linux";
|
||||
nixpkgs.config.allowBroken = true;
|
||||
}
|
||||
|
|
27
clients/quadphone/overlays.nix
Normal file
27
clients/quadphone/overlays.nix
Normal 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@',"
|
||||
'';
|
||||
});
|
||||
})
|
||||
];
|
||||
}
|
|
@ -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}";
|
||||
});
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue