Update Darwin building and copier
This commit is contained in:
committed by
greg-compass
parent
21540946b0
commit
b9cca7d400
+5
-5
@@ -2,12 +2,12 @@
|
||||
|
||||
let
|
||||
inherit (lib.strings) hasSuffix;
|
||||
system = pkgs.system; in
|
||||
{
|
||||
system = pkgs.system;
|
||||
inherit (pkgs.stdenv) isDarwin isLinux;
|
||||
in {
|
||||
imports = [
|
||||
]
|
||||
++ (if (lib.strings.hasSuffix "darwin" "nope") then [./darwin] else [])
|
||||
++ (if (lib.strings.hasSuffix "linux" "linux") then [./linux] else []);
|
||||
++ (if (isLinux) then [./linux] else []);
|
||||
|
||||
# Enable flakes
|
||||
nix = {
|
||||
@@ -20,7 +20,7 @@ let
|
||||
};
|
||||
|
||||
settings = {
|
||||
auto-optimise-store = (if lib.strings.hasSuffix "darwin" pkgs.system then false else true);
|
||||
auto-optimise-store = true;
|
||||
experimental-features = "nix-command flakes";
|
||||
keep-outputs = true;
|
||||
keep-derivations = true;
|
||||
|
||||
Reference in New Issue
Block a user