mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 10:18:37 +02:00
feat: refactoring configuration with options to make it more modular
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user