Re-add nix community cache

This commit is contained in:
Nathan McCarty 2022-01-26 17:10:25 -05:00
parent 5553b32d53
commit d87a8b57f7
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
3 changed files with 19 additions and 4 deletions

View File

@ -44,6 +44,7 @@
}; };
## Left over uncategorized packages ## Left over uncategorized packages
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
firefox unstable.firefox-beta-bin firefox
unstable.firefox-beta-bin
]; ];
} }

View File

@ -54,7 +54,23 @@
}; };
fenix = fenix.packages.x86_64-linux; fenix = fenix.packages.x86_64-linux;
}; };
modules = [ ./hardware/levitation.nix ] ++ desktopModules; modules = [
./hardware/levitation.nix
({ pkgs, ... }: {
## Setup binary caches
# First install cachix, so we can discover new ones
environment.systemPackages = [ pkgs.cachix ];
# Then configure up the nix community cache
nix = {
binaryCaches = [
"https://nix-community.cachix.org"
];
binaryCachePublicKeys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
})
] ++ desktopModules;
}; };
nixosConfigurations.x86vm = nixpkgs.lib.nixosSystem { nixosConfigurations.x86vm = nixpkgs.lib.nixosSystem {

View File

@ -33,8 +33,6 @@
# Install general use packages # Install general use packages
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# cachix for nix cache management
cachix
# Install our shell of choice # Install our shell of choice
unstable.fish unstable.fish
]; ];