defaults: nixUnstable, activate flakes, auto optimise store, auto gc
This commit is contained in:
parent
5634cec1f0
commit
f817394e5e
|
@ -159,10 +159,6 @@
|
|||
extraModules = [
|
||||
self.nixosModules.c3d2
|
||||
({ pkgs, ... }: {
|
||||
nix = {
|
||||
package = pkgs.nixFlakes;
|
||||
extraOptions = "experimental-features = nix-command flakes";
|
||||
};
|
||||
nixpkgs.overlays = [ self.overlay ];
|
||||
})
|
||||
];
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue