2022-10-01 12:13:38 +05:30
|
|
|
{
|
2024-01-31 16:00:03 +05:30
|
|
|
description = "Nix Darwin + Home Manager configuration of Abhinav Sarkar";
|
2022-10-01 12:13:38 +05:30
|
|
|
|
|
|
|
inputs = {
|
2024-01-31 16:02:50 +05:30
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
2024-10-18 17:41:54 +05:30
|
|
|
nixpkgs-stable.url = "github:nixos/nixpkgs/nixpkgs-24.05-darwin";
|
2023-11-25 16:13:20 +05:30
|
|
|
nix-darwin = {
|
|
|
|
url = "github:LnL7/nix-darwin";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2022-10-01 12:13:38 +05:30
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-09-14 12:15:52 +05:30
|
|
|
nix-vscode-extensions = {
|
|
|
|
url = "github:nix-community/nix-vscode-extensions";
|
2024-11-16 21:01:56 +05:30
|
|
|
inputs = {
|
|
|
|
nixpkgs.follows = "nixpkgs";
|
|
|
|
flake-compat.follows = "flake-compat";
|
|
|
|
flake-utils.follows = "flake-utils";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
nixd = {
|
|
|
|
url = "github:nix-community/nixd/2.5.1";
|
2024-09-14 12:15:52 +05:30
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-07-12 07:46:14 +05:30
|
|
|
lix-module = {
|
2024-11-10 19:49:22 +05:30
|
|
|
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.1.tar.gz";
|
2024-07-12 07:46:14 +05:30
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-09-14 12:15:52 +05:30
|
|
|
inputs.flake-utils.follows = "flake-utils";
|
2024-07-12 07:46:14 +05:30
|
|
|
};
|
2024-09-14 12:15:52 +05:30
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2022-10-01 12:13:38 +05:30
|
|
|
flake-compat = {
|
|
|
|
url = "github:edolstra/flake-compat";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
dm-mono-font = {
|
|
|
|
url = "github:googlefonts/dm-mono";
|
|
|
|
flake = false;
|
|
|
|
};
|
2023-11-25 12:48:21 +05:30
|
|
|
monaspace-font = {
|
2024-09-14 12:15:52 +05:30
|
|
|
url = "github:githubnext/monaspace";
|
2023-11-25 12:48:21 +05:30
|
|
|
flake = false;
|
|
|
|
};
|
2022-10-01 12:13:38 +05:30
|
|
|
};
|
|
|
|
|
2024-10-22 18:53:09 +05:30
|
|
|
outputs =
|
|
|
|
inputs@{
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
nixpkgs-stable,
|
|
|
|
nix-darwin,
|
|
|
|
home-manager,
|
|
|
|
lix-module,
|
|
|
|
...
|
|
|
|
}:
|
2022-10-01 12:13:38 +05:30
|
|
|
let
|
|
|
|
system = "x86_64-darwin";
|
2022-11-15 22:56:40 +05:30
|
|
|
pkgs = import nixpkgs {
|
2022-10-01 12:13:38 +05:30
|
|
|
inherit system;
|
2024-10-22 18:53:09 +05:30
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
};
|
2022-10-01 12:13:38 +05:30
|
|
|
};
|
2024-10-18 17:41:54 +05:30
|
|
|
pkgs-stable = import nixpkgs-stable {
|
|
|
|
inherit system;
|
2024-10-22 18:53:09 +05:30
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
};
|
2024-10-18 17:41:54 +05:30
|
|
|
};
|
2024-10-22 18:53:09 +05:30
|
|
|
in
|
|
|
|
{
|
2023-11-25 16:13:20 +05:30
|
|
|
darwinConfigurations."Abhinavs-MacBook-Pro" = nix-darwin.lib.darwinSystem {
|
|
|
|
inherit system;
|
2024-10-22 18:53:09 +05:30
|
|
|
specialArgs = {
|
|
|
|
inherit inputs pkgs-stable;
|
|
|
|
};
|
2023-11-25 16:13:20 +05:30
|
|
|
modules = [
|
|
|
|
./configuration.nix
|
2024-01-31 16:00:03 +05:30
|
|
|
./homebrew.nix
|
2024-07-12 07:46:14 +05:30
|
|
|
lix-module.nixosModules.default
|
2023-11-25 16:13:20 +05:30
|
|
|
home-manager.darwinModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
2024-05-02 19:05:26 +05:30
|
|
|
home-manager.backupFileExtension = "backup";
|
2023-11-25 16:13:20 +05:30
|
|
|
home-manager.users.abhinav = import ./home.nix;
|
2024-10-22 18:53:09 +05:30
|
|
|
home-manager.extraSpecialArgs = {
|
|
|
|
inherit inputs pkgs-stable;
|
2024-11-16 21:01:56 +05:30
|
|
|
nixd = inputs.nixd.packages.${system}.nixd;
|
2024-10-22 18:53:09 +05:30
|
|
|
};
|
2023-11-25 16:13:20 +05:30
|
|
|
}
|
|
|
|
];
|
2022-10-01 12:13:38 +05:30
|
|
|
};
|
|
|
|
devShells.${system}.default = pkgs.mkShell {
|
2024-10-22 18:53:09 +05:30
|
|
|
buildInputs = with pkgs; [
|
|
|
|
(import home-manager { inherit pkgs; }).home-manager
|
|
|
|
just
|
|
|
|
];
|
2022-10-01 23:55:27 +05:30
|
|
|
shellHook = ''
|
2023-11-25 16:13:20 +05:30
|
|
|
export NIXPKGS_PATH=${pkgs.path};
|
2022-10-01 23:55:27 +05:30
|
|
|
'';
|
2022-10-01 12:13:38 +05:30
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|