hm-extra
Custom, mostly ad hoc, sometimes experimental home-manager modules
Usage
Just add this flake as a home-manager module:
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nix-darwin.url = "github:LnL7/nix-darwin";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
home-manager-extra.url = "git+https://git.segundo.io/nix/hm-extra";
};
outputs = inputs @ { self, nix-darwin, nixpkgs, home-manager, home-manager-extra }:
let
configuration = { ... }: {
# Necessary for using flakes on this system.
nix.settings.experimental-features = "nix-command flakes";
# Set Git commit hash for darwin-version.
system.configurationRevision = self.rev or self.dirtyRev or null;
};
in
{
darwinConfigurations = {
lenny = nix-darwin.lib.darwinSystem {
system = "aarch64-darwin";
specialArgs = inputs;
modules = [ configuration ] ++ [
home-manager.darwinModules.home-manager
{ home-manager.sharedModules = [ home-manager-extra.default ]; }
];
};
};
};
}