2022-09-18 15:49:37 +00:00
|
|
|
{
|
|
|
|
description = "Lars' MacBook Pro";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
|
|
|
|
nixpkgs = {
|
|
|
|
url = "github:nixos/nixpkgs/nixpkgs-22.05-darwin";
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs-unstable.url = github:NixOS/nixpkgs/nixpkgs-unstable;
|
|
|
|
|
|
|
|
# Nix-Darwin
|
|
|
|
darwin = {
|
|
|
|
url = "github:LnL7/nix-darwin";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
|
|
};
|
|
|
|
|
|
|
|
# HM-manager for dotfile/user management
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
|
|
};
|
|
|
|
|
2022-12-23 00:32:36 +00:00
|
|
|
emacs.url = github:nix-community/emacs-overlay;
|
2022-09-18 15:49:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, darwin, home-manager, ... }@inputs: {
|
|
|
|
darwinConfigurations."larstvei-macbookpro" = darwin.lib.darwinSystem {
|
|
|
|
system = "aarch64-darwin";
|
|
|
|
|
|
|
|
modules = [
|
|
|
|
./modules/mac.nix
|
|
|
|
home-manager.darwinModule
|
|
|
|
{
|
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
|
|
|
users.larstvei = {
|
|
|
|
imports = [
|
|
|
|
./modules/home.nix
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
({ config, pkgs, lib, ... }: {
|
|
|
|
services.nix-daemon.enable = true;
|
|
|
|
|
|
|
|
nixpkgs = {
|
2022-12-22 00:15:21 +00:00
|
|
|
|
2022-11-03 11:25:37 +00:00
|
|
|
config.allowUnfree = true;
|
2022-09-19 14:23:37 +00:00
|
|
|
|
|
|
|
overlays = with inputs; [
|
2022-12-23 00:32:36 +00:00
|
|
|
emacs.overlays.emacs
|
|
|
|
emacs.overlays.package
|
2022-09-19 14:23:37 +00:00
|
|
|
(final: prev: {
|
2022-12-23 00:32:36 +00:00
|
|
|
emacsGit = (prev.emacsGit.overrideAttrs (o: rec {
|
2022-09-19 14:23:37 +00:00
|
|
|
patches = [
|
2022-09-19 22:51:33 +00:00
|
|
|
./patches/no-titlebar-rounded-corners.patch
|
2022-09-19 14:23:37 +00:00
|
|
|
./patches/system-appearance.patch
|
|
|
|
];
|
2022-12-23 00:32:36 +00:00
|
|
|
}));
|
2022-11-20 12:17:46 +00:00
|
|
|
|
2022-11-20 14:24:29 +00:00
|
|
|
maude-mac = final.callPackage ./pkgs/maude-mac { };
|
2022-09-19 14:23:37 +00:00
|
|
|
})
|
|
|
|
];
|
2022-09-18 15:49:37 +00:00
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|