Configure nix-core module
This commit is contained in:
parent
71fd7ff1d6
commit
50e4e444b8
2 changed files with 10 additions and 6 deletions
|
|
@ -25,11 +25,6 @@
|
|||
darwinConfigurations.TobAir = darwin.lib.darwinSystem {
|
||||
system = "aarch64-darwin";
|
||||
|
||||
pkgs = import nixpkgs {
|
||||
system = "aarch64-darwin";
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
|
||||
modules = [
|
||||
./modules/nix-core.nix
|
||||
./modules/system.nix
|
||||
|
|
|
|||
|
|
@ -1,6 +1,15 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nix.package = pkgs.nix;
|
||||
services.nix-daemon.enable = true;
|
||||
programs.nix-index.enable = true;
|
||||
nix.gc = {
|
||||
automatic = lib.mkDefault true;
|
||||
options = lib.mkDefault "--delete-older-than 7d";
|
||||
};
|
||||
nix.settings = {
|
||||
auto-optimise-store = false;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue