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}";
});
})
];
}

8
flake.lock generated
View file

@ -156,11 +156,11 @@
"fromYaml": "fromYaml"
},
"locked": {
"lastModified": 1746562888,
"narHash": "sha256-YgNJQyB5dQiwavdDFBMNKk1wyS77AtdgDk/VtU6wEaI=",
"owner": "SenchoPens",
"lastModified": 1755473996,
"narHash": "sha256-qcMhnL7aGAuFuutH4rq9fvAhCpJWVHLcHVZLtPctPlo=",
"owner": "SuperSandro2000",
"repo": "base16.nix",
"rev": "806a1777a5db2a1ef9d5d6f493ef2381047f2b89",
"rev": "e37d495352e3dde37c9977f6e7951a4a6d26599a",
"type": "github"
},
"original": {

View file

@ -18,7 +18,10 @@
};
stylix = {
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs";
inputs = {
nixpkgs.follows = "nixpkgs";
base16.url = "github:SuperSandro2000/base16.nix/patch-1";
};
};
ooye = {
url = "git+https://cgit.rory.gay/nix/OOYE-module.git";

View file

@ -5,6 +5,7 @@
inkscape
r2modman
libreoffice
authenticator
cinny-desktop
prismlauncher
nexusmods-app-unfree

View file

@ -8,7 +8,6 @@
resources
wl-clipboard
google-cursor
authenticator
papirus-icon-theme
];
}