Flake lock file updates: • Updated input 'flake-utils': 'github:numtide/flake-utils/c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a' (2024-09-17) → 'github:numtide/flake-utils/11707dc2f618dd54ca8739b309ec4fc024de578b' (2024-11-13) • Updated input 'home-manager': 'github:nix-community/home-manager/60bb110917844d354f3c18e05450606a435d2d10' (2024-11-10) → 'github:nix-community/home-manager/1d0862ee2d7c6f6cd720d6f32213fa425004be10' (2024-11-14) • Updated input 'nix-darwin': 'github:LnL7/nix-darwin/5c74ab862c8070cbf6400128a1b56abb213656da' (2024-11-09) → 'github:LnL7/nix-darwin/2bcef10f4319f34ddebadb5f37eaa81ca2510730' (2024-11-16) • Updated input 'nix-vscode-extensions': 'github:nix-community/nix-vscode-extensions/85caf0185a4bf8fc2161c33a6d6d328052d7da44' (2024-11-10) → 'github:nix-community/nix-vscode-extensions/32e3b124252161fcd7e0623c6e6faf9d535c1a3f' (2024-11-16) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/85f7e662eda4fa3a995556527c87b2524b691933' (2024-11-07) → 'github:nixos/nixpkgs/24f0d4acd634792badd6470134c387a3b039dace' (2024-11-13)
106 lines
2.8 KiB
Nix
106 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";
|
|
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";
|
|
};
|
|
};
|
|
nixd = {
|
|
url = "github:nix-community/nixd/2.5.1";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
lix-module = {
|
|
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.1.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;
|
|
};
|
|
monaspace-font = {
|
|
url = "github:githubnext/monaspace";
|
|
flake = false;
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
inputs@{
|
|
self,
|
|
nixpkgs,
|
|
nixpkgs-stable,
|
|
nix-darwin,
|
|
home-manager,
|
|
lix-module,
|
|
...
|
|
}:
|
|
let
|
|
system = "x86_64-darwin";
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config = {
|
|
allowUnfree = true;
|
|
};
|
|
};
|
|
pkgs-stable = import nixpkgs-stable {
|
|
inherit system;
|
|
config = {
|
|
allowUnfree = true;
|
|
};
|
|
};
|
|
in
|
|
{
|
|
darwinConfigurations."Abhinavs-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;
|
|
nixd = inputs.nixd.packages.${system}.nixd;
|
|
};
|
|
}
|
|
];
|
|
};
|
|
devShells.${system}.default = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
(import home-manager { inherit pkgs; }).home-manager
|
|
just
|
|
];
|
|
shellHook = ''
|
|
export NIXPKGS_PATH=${pkgs.path};
|
|
'';
|
|
};
|
|
};
|
|
}
|