add nh_darwin
This commit is contained in:
parent
104b213ebd
commit
bcbd75a340
3 changed files with 1027 additions and 81 deletions
1079
flake.lock
1079
flake.lock
File diff suppressed because it is too large
Load diff
10
flake.nix
10
flake.nix
|
@ -39,6 +39,11 @@
|
|||
url = "github:lilyinstarlight/nixos-cosmic";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
nh_darwin = {
|
||||
url = "github:ToyVo/nh_darwin";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
outputs = {
|
||||
self,
|
||||
|
@ -53,6 +58,7 @@
|
|||
zls,
|
||||
ghostty,
|
||||
nixos-cosmic,
|
||||
nh_darwin,
|
||||
...
|
||||
} @ inputs: let
|
||||
overlays = [
|
||||
|
@ -93,6 +99,7 @@
|
|||
"Natalies-MacBook-Air" = darwin.lib.darwinSystem {
|
||||
system = "aarch64-darwin";
|
||||
modules = [
|
||||
# nh_darwin.nixDarwinModules.default
|
||||
{nixpkgs.overlays = overlays;}
|
||||
./hosts/laptop/configuration.nix
|
||||
home-manager.darwinModules.home-manager
|
||||
|
@ -111,6 +118,7 @@
|
|||
}
|
||||
];
|
||||
specialArgs = {
|
||||
inherit nh_darwin;
|
||||
inherit inputs;
|
||||
inherit stylix;
|
||||
inherit blocklist-hosts;
|
||||
|
@ -118,6 +126,8 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
# darwinPackages = self.darwinConfigurations."Natalie-MacBook-Air".pkgs;
|
||||
# nixos = inputs.self.nixosConfigurations.nmarks;
|
||||
#
|
||||
#
|
||||
|
|
|
@ -3,12 +3,17 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
clean.enable = true;
|
||||
clean.extraArgs = "--keep-since 4d --keep 3";
|
||||
flake = "/Users/nmarks/.dotfiles";
|
||||
};
|
||||
# nixpkgs.overlays = [
|
||||
# (final: prev: {nh-darwin = nh_darwin.packages.${prev.system}.default;})
|
||||
# ];
|
||||
environment.shellAliases.nh = "nh_darwin";
|
||||
|
||||
# programs.nh = {
|
||||
# enable = true;
|
||||
# clean.enable = true;
|
||||
# clean.extraArgs = "--keep-since 4d --keep 3";
|
||||
# flake = "/Users/nmarks/.dotfiles";
|
||||
# };
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.home-manager
|
||||
|
@ -44,6 +49,8 @@
|
|||
pkgs.iosevka
|
||||
];
|
||||
|
||||
services.tailscale.enable = true;
|
||||
|
||||
# Use homebrew to install casks and Mac App Store apps
|
||||
homebrew = {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in a new issue