finally set up some of nix-darwin
This commit is contained in:
30
flake.nix
30
flake.nix
@@ -58,6 +58,8 @@
|
||||
inputs.nixpkgs.follows = "desktop-nixpkgs";
|
||||
};
|
||||
|
||||
desktop-nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
|
||||
|
||||
#####################################################
|
||||
# NAS #
|
||||
#####################################################
|
||||
@@ -278,6 +280,17 @@
|
||||
url = "github:LnL7/nix-darwin";
|
||||
inputs.nixpkgs.follows = "desktop-nixpkgs";
|
||||
};
|
||||
|
||||
nix-homebrew.url = "github:zhaofengli/nix-homebrew";
|
||||
|
||||
homebrew-core = {
|
||||
url = "github:homebrew/homebrew-core";
|
||||
flake = false;
|
||||
};
|
||||
homebrew-cask = {
|
||||
url = "github:homebrew/homebrew-cask";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
#####################################################
|
||||
# Macbook Nix #
|
||||
@@ -336,6 +349,7 @@
|
||||
desktop-sops-nix,
|
||||
desktop-steam-rom-manager,
|
||||
desktop-cosmic,
|
||||
desktop-nix-vscode-extensions,
|
||||
|
||||
# NAS
|
||||
nas-nixpkgs,
|
||||
@@ -384,6 +398,9 @@
|
||||
|
||||
# MacBook
|
||||
nix-darwin,
|
||||
nix-homebrew,
|
||||
homebrew-core,
|
||||
homebrew-cask,
|
||||
|
||||
# MacBook Nix
|
||||
mac-nixpkgs,
|
||||
@@ -795,14 +812,27 @@
|
||||
darwinConfigurations = {
|
||||
"MacBook-Pro" = nix-darwin.lib.darwinSystem {
|
||||
system = "aarch64-darwin";
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
modules = [
|
||||
./hosts/mac/configuration.nix
|
||||
nix-homebrew.darwinModules.nix-homebrew
|
||||
desktop-home-manager.darwinModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.mattjallen = import ./hosts/mac/home.nix;
|
||||
home-manager.backupFileExtension = "backup";
|
||||
}
|
||||
(
|
||||
{ ... }:
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
desktop-nix-vscode-extensions.overlays.default
|
||||
];
|
||||
}
|
||||
)
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user