use the same nixpkgs

This commit is contained in:
Daylin Morgan 2024-08-06 10:02:16 -05:00
parent e4a304c274
commit 0a54af8cc7
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -14,18 +14,24 @@ in
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# nix.package = pkgs.nixVersions.latest; # nix.package = pkgs.nixVersions.latest;
nix.extraOptions = '' nix = {
extraOptions = ''
experimental-features = nix-command flakes experimental-features = nix-command flakes
use-xdg-base-directories = true use-xdg-base-directories = true
''; '';
nix.optimise.automatic = true; optimise.automatic = true;
nix.gc = { gc = {
automatic = true; automatic = true;
dates = "weekly"; dates = "weekly";
options = "--delete-older-than 7d"; options = "--delete-older-than 7d";
}; };
# use the same nixpkgs for nix run "nixpkgs#hello" style commands
registry.nixpkgs.flake = inputs.nixpkgs;
};
environment.systemPackages = [ environment.systemPackages = [
pkgs.nixd pkgs.nixd
pkgs.nixfmt-rfc-style pkgs.nixfmt-rfc-style