From d9317de584c66b068a336889aa9adc3ac3837e5e Mon Sep 17 00:00:00 2001 From: tzlil Date: Sat, 21 Jan 2023 17:34:49 +0200 Subject: change deploy-rs to nixinate, change user to use passwordFile, add password age secret, remove NetworkManager-wait-online.service --- profiles/gentoo.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 profiles/gentoo.nix (limited to 'profiles/gentoo.nix') diff --git a/profiles/gentoo.nix b/profiles/gentoo.nix new file mode 100644 index 0000000..67f7e78 --- /dev/null +++ b/profiles/gentoo.nix @@ -0,0 +1,22 @@ +{ pkgs, lib, config, inputs, ... }: + +{ + imports = []; + config = { + nativeStdenv = prev.stdenvAdapters.withCFlags [ "-O3" "-pipe" "-mcpu=apple-m1" ] + (prev.overrideCC prev.llvmPackages_latest.stdenv + (prev.wrapCCWith rec { + cc = prev.llvmPackages_latest.clang-unwrapped; + bintools = (final.wrapBintoolsWith { + coreutils = final.uutils-coreutils; + libc = final.musl; + bintools = final.binutils-unwrapped.overrideAttrs + (old: { + postInstall = '' + ln -sf ${final.mold}/bin/mold $out/bin/ld + ''; + }); + }); + })); + }; +} \ No newline at end of file -- cgit 1.4.1