defaults: nixUnstable, activate flakes, auto optimise store, auto gc

This commit is contained in:
Sandro - 2021-10-02 19:27:02 +02:00
parent 5634cec1f0
commit f817394e5e
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
3 changed files with 16 additions and 16 deletions

View File

@ -159,10 +159,6 @@
extraModules = [
self.nixosModules.c3d2
({ pkgs, ... }: {
nix = {
package = pkgs.nixFlakes;
extraOptions = "experimental-features = nix-command flakes";
};
nixpkgs.overlays = [ self.overlay ];
})
];

View File

@ -26,7 +26,6 @@
useSandbox = false;
maxJobs = 4;
buildCores = 20;
autoOptimiseStore = true;
gc = {
automatic = true;
dates = "06:00";
@ -58,10 +57,6 @@
};
environment.systemPackages = with pkgs; [ tmux htop vim gitMinimal nixFlakes ];
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you

View File

@ -213,14 +213,23 @@ in {
};
});
nix.registry.c3d2 = {
from = {
id = "c3d2";
type = "indirect";
nix = {
autoOptimiseStore = true;
extraOptions = "experimental-features = nix-command flakes";
gc = {
automatic = true;
dates = "weekly";
};
to = {
type = "git";
url = "ssh://gitea@gitea.c3d2.de:C3D2/nix-config.git";
package = pkgs.nixUnstable;
registry.c3d2 = {
from = {
id = "c3d2";
type = "indirect";
};
to = {
type = "git";
url = "ssh://gitea@gitea.c3d2.de:C3D2/nix-config.git";
};
};
};