diff options
author | tzlil <tzlils@protonmail.com> | 2023-01-21 17:34:49 +0200 |
---|---|---|
committer | tzlil <tzlils@protonmail.com> | 2023-01-21 17:34:49 +0200 |
commit | d9317de584c66b068a336889aa9adc3ac3837e5e (patch) | |
tree | f9418f271c8e9bdc2cc6075de471bc4b7049f965 /profiles/gentoo.nix | |
parent | 5aa3d1eb375f7d67b717f0306752bd974fce1fbc (diff) |
change deploy-rs to nixinate, change user to use passwordFile, add password age secret, remove NetworkManager-wait-online.service
Diffstat (limited to 'profiles/gentoo.nix')
-rw-r--r-- | profiles/gentoo.nix | 22 |
1 files changed, 22 insertions, 0 deletions
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 |