feat: refactoring configuration with options to make it more modular

This commit is contained in:
Ryan Yin
2023-12-23 19:34:13 +08:00
parent 1f08d10ac7
commit b75b79057b
106 changed files with 289 additions and 279 deletions

View File

@@ -1,7 +1,7 @@
args:
with args;
with mylib;
with allSystemAttrs; let
macosSystem = import ../lib/macosSystem.nix;
base_args = {
inherit nix-darwin home-manager;
nixpkgs = nixpkgs-darwin;
@@ -10,7 +10,7 @@ in {
# macOS's configuration
darwinConfigurations = {
harmonica = macosSystem (
libAttrs.mergeAttrsList [
attrs.mergeAttrsList [
base_args
darwin_harmonica_modules
{
@@ -21,7 +21,7 @@ in {
);
fern = macosSystem (
libAttrs.mergeAttrsList [
attrs.mergeAttrsList [
base_args
darwin_fern_modules
{