add nh_darwin

This commit is contained in:
Natalie 2024-09-30 10:06:51 -07:00
parent 104b213ebd
commit bcbd75a340
3 changed files with 1027 additions and 81 deletions

1079
flake.lock

File diff suppressed because it is too large Load diff

View file

@ -39,6 +39,11 @@
url = "github:lilyinstarlight/nixos-cosmic"; url = "github:lilyinstarlight/nixos-cosmic";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nh_darwin = {
url = "github:ToyVo/nh_darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { outputs = {
self, self,
@ -53,6 +58,7 @@
zls, zls,
ghostty, ghostty,
nixos-cosmic, nixos-cosmic,
nh_darwin,
... ...
} @ inputs: let } @ inputs: let
overlays = [ overlays = [
@ -93,6 +99,7 @@
"Natalies-MacBook-Air" = darwin.lib.darwinSystem { "Natalies-MacBook-Air" = darwin.lib.darwinSystem {
system = "aarch64-darwin"; system = "aarch64-darwin";
modules = [ modules = [
# nh_darwin.nixDarwinModules.default
{nixpkgs.overlays = overlays;} {nixpkgs.overlays = overlays;}
./hosts/laptop/configuration.nix ./hosts/laptop/configuration.nix
home-manager.darwinModules.home-manager home-manager.darwinModules.home-manager
@ -111,6 +118,7 @@
} }
]; ];
specialArgs = { specialArgs = {
inherit nh_darwin;
inherit inputs; inherit inputs;
inherit stylix; inherit stylix;
inherit blocklist-hosts; inherit blocklist-hosts;
@ -118,6 +126,8 @@
}; };
}; };
}; };
# darwinPackages = self.darwinConfigurations."Natalie-MacBook-Air".pkgs;
# nixos = inputs.self.nixosConfigurations.nmarks; # nixos = inputs.self.nixosConfigurations.nmarks;
# #
# #

View file

@ -3,12 +3,17 @@
pkgs, pkgs,
... ...
}: { }: {
programs.nh = { # nixpkgs.overlays = [
enable = true; # (final: prev: {nh-darwin = nh_darwin.packages.${prev.system}.default;})
clean.enable = true; # ];
clean.extraArgs = "--keep-since 4d --keep 3"; environment.shellAliases.nh = "nh_darwin";
flake = "/Users/nmarks/.dotfiles";
}; # programs.nh = {
# enable = true;
# clean.enable = true;
# clean.extraArgs = "--keep-since 4d --keep 3";
# flake = "/Users/nmarks/.dotfiles";
# };
environment.systemPackages = [ environment.systemPackages = [
pkgs.home-manager pkgs.home-manager
@ -44,6 +49,8 @@
pkgs.iosevka pkgs.iosevka
]; ];
services.tailscale.enable = true;
# Use homebrew to install casks and Mac App Store apps # Use homebrew to install casks and Mac App Store apps
homebrew = { homebrew = {
enable = true; enable = true;