Fix up gmp properly

This commit is contained in:
Smaug123
2021-11-28 11:58:39 +00:00
parent e2cc0a629a
commit e62158389b
5 changed files with 59 additions and 26 deletions

View File

@@ -2,12 +2,6 @@
let python = import ./python.nix { inherit pkgs; }; in
let gmp =
if pkgs.stdenv.isDarwin then
import ./gmp.nix { inherit pkgs; }
else pkgs.gmp
; in
{
nix.useDaemon = true;
@@ -26,7 +20,6 @@ let gmp =
pkgs.rustup
pkgs.libiconv
pkgs.clang
#gmp
#pkgs.keepassxc
python
];
@@ -50,12 +43,13 @@ let gmp =
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
nix.package = pkgs.nix;
nix.package = pkgs.nixFlakes;
nix.gc.automatic = true;
nix.useSandbox = true;
nix.extraOptions = ''
auto-optimise-store = true
experimental-features = nix-command flakes
'';
# Used for backwards compatibility, please read the changelog before changing.