mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-10 06:32:42 +02:00
feat: add devbox from nixpkgs-unstable
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user