nix-managed-macbook/flake.nix
Abhinav Sarkar 3860b368d2 flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/0f5908daf890c3d7e7052bef1d6deb0f2710aaa1' (2025-04-04)
  → 'github:nix-community/home-manager/e43c6bcb101ba3301522439c459288c4a248f624' (2025-04-11)
• Updated input 'nix-darwin':
    'github:LnL7/nix-darwin/73d59580d01e9b9f957ba749f336a272869c42dd' (2025-04-01)
  → 'github:LnL7/nix-darwin/113883e37d985d26ecb65282766e5719f2539103' (2025-04-09)
• Updated input 'nix-index-database':
    'github:nix-community/nix-index-database/b3696bfb6c24aa61428839a99e8b40c53ac3a82d' (2025-03-30)
  → 'github:nix-community/nix-index-database/a36f6a7148aec2c77d78e4466215cceb2f5f4bfb' (2025-04-06)
• Updated input 'nix-vscode-extensions':
    'github:nix-community/nix-vscode-extensions/2a7a2b80740dd1dbb8b4e1d5b2ae6ad9b7fbd5e3' (2025-04-05)
  → 'github:nix-community/nix-vscode-extensions/f0555ec37883d2bddca658cad7bfe995bc195217' (2025-04-11)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/2bfc080955153be0be56724be6fa5477b4eefabb' (2025-04-03)
  → 'github:nixos/nixpkgs/d19cf9dfc633816a437204555afeb9e722386b76' (2025-04-10)
• Updated input 'nixpkgs-stable':
    'github:nixos/nixpkgs/5051ae6744b993fcfab221e8bd38f8bc26f88393' (2025-04-02)
  → 'github:nixos/nixpkgs/cd4d63bf9485ba66a1f5d036118b053289b153e4' (2025-04-10)
2025-04-11 22:20:25 +05:30

118 lines
3.2 KiB
Nix

{
description = "Nix Darwin + Home Manager configuration of Abhinav Sarkar";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixpkgs-24.11-darwin";
nixpkgs-ghostty.url = "github:nixos/nixpkgs/69b9a8c860bdbb977adfa9c5e817ccb717884182";
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-vscode-extensions = {
url = "github:nix-community/nix-vscode-extensions";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};
# nixd = {
# url = "github:nix-community/nixd/2.6.1";
# inputs.nixpkgs.follows = "nixpkgs";
# };
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.92.0-3.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
dm-mono-font = {
url = "github:googlefonts/dm-mono";
flake = false;
};
};
outputs =
inputs@{
self,
nixpkgs,
nixpkgs-stable,
nixpkgs-ghostty,
nix-darwin,
home-manager,
nix-index-database,
lix-module,
...
}:
let
system = "aarch64-darwin";
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
};
pkgs-stable = import nixpkgs-stable {
inherit system;
config = {
allowUnfree = true;
};
};
pkgs-ghostty = import nixpkgs-ghostty {
inherit system;
config = {
allowUnfree = true;
};
};
in
{
darwinConfigurations."Abhinavs-M4-MacBook-Pro" = nix-darwin.lib.darwinSystem {
inherit system;
specialArgs = {
inherit inputs pkgs-stable;
};
modules = [
./configuration.nix
./homebrew.nix
lix-module.nixosModules.default
home-manager.darwinModules.home-manager
nix-index-database.darwinModules.nix-index
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup";
home-manager.users.abhinav = import ./home.nix;
home-manager.extraSpecialArgs = {
inherit inputs pkgs-stable pkgs-ghostty;
# nixd = inputs.nixd.packages.${system}.nixd;
};
}
{ programs.nix-index-database.comma.enable = true; }
];
};
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
(import home-manager { inherit pkgs; }).home-manager
just
nix-output-monitor
nvd
];
shellHook = ''
export NIXPKGS_PATH=${pkgs.path};
'';
};
};
}