mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-17 23:14:07 +01:00
feat: add devbox from nixpkgs-unstable
This commit is contained in:
19
flake.nix
19
flake.nix
@@ -181,10 +181,19 @@
|
||||
};
|
||||
|
||||
# macOS's configuration, for work.
|
||||
darwinConfigurations."harmonica" = darwin.lib.darwinSystem {
|
||||
system = "x86_64-darwin";
|
||||
|
||||
specialArgs = inputs;
|
||||
darwinConfigurations."harmonica" = let
|
||||
system = "x86_64-darwin";
|
||||
specialArgs = {
|
||||
# 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 = [
|
||||
./hosts/harmonica
|
||||
|
||||
@@ -193,7 +202,7 @@
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
home-manager.extraSpecialArgs = inputs;
|
||||
home-manager.extraSpecialArgs = specialArgs;
|
||||
home-manager.users.ryan = import ./home/darwin;
|
||||
}
|
||||
];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ pkgs, ... }:
|
||||
{ pkgs, pkgs-unstable, ... }:
|
||||
|
||||
{
|
||||
#############################################################
|
||||
@@ -12,6 +12,8 @@
|
||||
#############################################################
|
||||
|
||||
home.packages = with pkgs; [
|
||||
pkgs-unstable.devbox
|
||||
|
||||
# cloud native
|
||||
skopeo
|
||||
docker-compose
|
||||
|
||||
Reference in New Issue
Block a user