defaults: nixUnstable, activate flakes, auto optimise store, auto gc
This commit is contained in:
parent
5634cec1f0
commit
f817394e5e
|
@ -159,10 +159,6 @@
|
||||||
extraModules = [
|
extraModules = [
|
||||||
self.nixosModules.c3d2
|
self.nixosModules.c3d2
|
||||||
({ pkgs, ... }: {
|
({ pkgs, ... }: {
|
||||||
nix = {
|
|
||||||
package = pkgs.nixFlakes;
|
|
||||||
extraOptions = "experimental-features = nix-command flakes";
|
|
||||||
};
|
|
||||||
nixpkgs.overlays = [ self.overlay ];
|
nixpkgs.overlays = [ self.overlay ];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
useSandbox = false;
|
useSandbox = false;
|
||||||
maxJobs = 4;
|
maxJobs = 4;
|
||||||
buildCores = 20;
|
buildCores = 20;
|
||||||
autoOptimiseStore = true;
|
|
||||||
gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
dates = "06:00";
|
dates = "06:00";
|
||||||
|
@ -58,10 +57,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [ tmux htop vim gitMinimal nixFlakes ];
|
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
|
# This value determines the NixOS release with which your system is to be
|
||||||
# compatible, in order to avoid breaking some software such as database
|
# compatible, in order to avoid breaking some software such as database
|
||||||
# servers. You should change this only after NixOS release notes say you
|
# servers. You should change this only after NixOS release notes say you
|
||||||
|
|
|
@ -213,14 +213,23 @@ in {
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
nix.registry.c3d2 = {
|
nix = {
|
||||||
from = {
|
autoOptimiseStore = true;
|
||||||
id = "c3d2";
|
extraOptions = "experimental-features = nix-command flakes";
|
||||||
type = "indirect";
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
};
|
};
|
||||||
to = {
|
package = pkgs.nixUnstable;
|
||||||
type = "git";
|
registry.c3d2 = {
|
||||||
url = "ssh://gitea@gitea.c3d2.de:C3D2/nix-config.git";
|
from = {
|
||||||
|
id = "c3d2";
|
||||||
|
type = "indirect";
|
||||||
|
};
|
||||||
|
to = {
|
||||||
|
type = "git";
|
||||||
|
url = "ssh://gitea@gitea.c3d2.de:C3D2/nix-config.git";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue