Update Darwin building and copier

This commit is contained in:
Greg Hellings
2024-01-22 12:16:56 -06:00
committed by greg-compass
parent 21540946b0
commit b9cca7d400
6 changed files with 25 additions and 31 deletions
-11
View File
@@ -1,11 +0,0 @@
{ ... }:
{
system.stateVersion = 4;
programs = {
zsh.enable = true;
bash.enable = true;
};
services.nix-daemon.enable = true;
nix.gc.interval.Hour = 24;
}
+5 -5
View File
@@ -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;