feat: add devbox from nixpkgs-unstable

This commit is contained in:
Ryan Yin
2023-07-21 12:15:46 +08:00
parent 3bbe86cb55
commit cf6584ea71
2 changed files with 17 additions and 6 deletions
+14 -5
View File
@@ -181,10 +181,19 @@
}; };
# macOS's configuration, for work. # macOS's configuration, for work.
darwinConfigurations."harmonica" = darwin.lib.darwinSystem { darwinConfigurations."harmonica" = let
system = "x86_64-darwin"; system = "x86_64-darwin";
specialArgs = {
specialArgs = inputs; # use unstable branch for some packages to get the latest updates
pkgs-unstable = import inputs.nixpkgs-unstable {
inherit system; # refer the `system` parameter form outer scope recursively
# To use chrome, we need to allow the installation of non-free software
config.allowUnfree = true;
};
} // inputs;
in
darwin.lib.darwinSystem {
inherit system specialArgs;
modules = [ modules = [
./hosts/harmonica ./hosts/harmonica
@@ -193,7 +202,7 @@
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = inputs; home-manager.extraSpecialArgs = specialArgs;
home-manager.users.ryan = import ./home/darwin; home-manager.users.ryan = import ./home/darwin;
} }
]; ];
+3 -1
View File
@@ -1,4 +1,4 @@
{ pkgs, ... }: { pkgs, pkgs-unstable, ... }:
{ {
############################################################# #############################################################
@@ -12,6 +12,8 @@
############################################################# #############################################################
home.packages = with pkgs; [ home.packages = with pkgs; [
pkgs-unstable.devbox
# cloud native # cloud native
skopeo skopeo
docker-compose docker-compose