nix-managed-macbook/flake.nix
Abhinav Sarkar 1cce6679c1 flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/5f6aa268e419d053c3d5025da740e390b12ac936?narHash=sha256-C73gLFnEh8ZI0uDijUgCDWCd21T6I6tsaWgIBHcfAXg%3D' (2025-01-01)
  → 'github:nix-community/home-manager/fc52a210b60f2f52c74eac41a8647c1573d2071d?narHash=sha256-TY0jUwR3EW0fnS0X5wXMAVy6h4Z7Y6a3m%2BYq%2B%2BC9AyE%3D' (2025-01-13)
• Updated input 'nix-darwin':
    'github:LnL7/nix-darwin/53a0c2fe6ed46ab33fc4a221c9f907a7b4c8a91c?narHash=sha256-rTpBl3xmKYDQTRWF8CRk/r1FoKPDVwqLHGoU7tfECvY%3D' (2024-12-28)
  → 'github:LnL7/nix-darwin/6ace2f2d12bdf74235d5cbf9fbd34a71c9716685?narHash=sha256-mG9lRZBcPiAGiVJ9B97BJoIGQcSBWIVlBiN30QYCtG0%3D' (2025-01-11)
• Updated input 'nix-vscode-extensions':
    'github:nix-community/nix-vscode-extensions/adf374ae7e5237a3aa03e88503644732ea15045d?narHash=sha256-UMLwX1WiR2cjJndlKHm4WXQ8fBKJPMMSUsk%2BYjsjTl8%3D' (2024-12-29)
  → 'github:nix-community/nix-vscode-extensions/44474e2ca975af013f1594abd6c922f2c8dba022?narHash=sha256-6232F8et5z7XTxK0RuX6bocT6yYGJhlmlHbFdZuHcP0%3D' (2025-01-13)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/69b9a8c860bdbb977adfa9c5e817ccb717884182?narHash=sha256-5zJyv66q68QZJZsXtmjDBazGnF0id593VSy%2B8eSckoo%3D' (2024-12-31)
  → 'github:nixos/nixpkgs/ef56e777fedaa4da8c66a150081523c5de1e0171?narHash=sha256-a3MMEY7i/wdF0gb7WFNTn6onzaiMOvwj7OerRVenA8o%3D' (2025-01-13)
• Updated input 'nixpkgs-stable':
    'github:nixos/nixpkgs/42f30f55ec9d396b67c456683b4409cd7d07fc7b?narHash=sha256-YJwQfdSFep6IFrhZGEjug/HuCauGntDAesjCS5mxTis%3D' (2024-12-25)
  → 'github:nixos/nixpkgs/1e7a8f391f1a490460760065fa0630b5520f9cf8?narHash=sha256-HB/FA0%2B1gpSs8%2B/boEavrGJH%2BEq08/R2wWNph1sM1Dg%3D' (2024-12-30)
2025-01-13 23:07:07 +05:30

107 lines
2.8 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.05-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-vscode-extensions = {
url = "github:nix-community/nix-vscode-extensions";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-compat.follows = "flake-compat";
flake-utils.follows = "flake-utils";
};
};
# lix-module = {
# url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.1-2.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,
# 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
{
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;
};
}
];
};
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};
'';
};
};
}