{
nix.settings.experimental-features = [ "nix-command" "flakes" "repl-flake" ];
#nix.registry.self.flake = inputs.self;
- # Pin the rev to the revision of the public Nixpkgs that the system was built from.
- # This is the version which will be locked by flakes using flake:nixpkgs
- nix.registry.nixpkgs = {
- from = { id = "nixpkgs"; type = "indirect"; };
- to = {
- owner = "NixOS";
- repo = "nixpkgs";
- inherit (inputs.nixpkgs) rev;
- type = "github";
- };
- };
nix.nixPath = [
"nixpkgs=${inputs.nixpkgs}"
];
gc.dates = mkDefault "weekly";
gc.options = mkDefault "--delete-older-than 7d";
nixPath = mkForce [ ];
+ # Pin the rev to the revision of the public Nixpkgs that the system was built from.
+ # This is the version which will be locked by flakes using flake:nixpkgs
#registry.nixpkgs = mkDefault { flake = inputs.nixpkgs; };
+ registry.nixpkgs = {
+ from = { id = "nixpkgs"; type = "indirect"; };
+ to = {
+ owner = "NixOS";
+ repo = "nixpkgs";
+ inherit (inputs.nixpkgs) rev;
+ type = "github";
+ };
+ };
package = pkgs.nixFlakes;
settings.experimental-features = [ "nix-command" "flakes" "repl-flake" ];
};