summaryrefslogtreecommitdiffstats
path: root/flake.nix
diff options
context:
space:
mode:
authorSkullheadx <admonty1@gmail.com>2026-06-28 23:40:22 -0400
committerSkullheadx <admonty1@gmail.com>2026-06-28 23:40:22 -0400
commit9b85a4ff0a0be79bd65db09463e1b3f0d4860098 (patch)
treed07e820a9e23197f078f95b5dadb413b111c4782 /flake.nix
parentupdate todo (diff)
downloadnixos-9b85a4ff0a0be79bd65db09463e1b3f0d4860098.tar.gz
nixos-9b85a4ff0a0be79bd65db09463e1b3f0d4860098.tar.bz2
nixos-9b85a4ff0a0be79bd65db09463e1b3f0d4860098.zip
add darwin
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix71
1 files changed, 68 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix
index 9d42340..443194f 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,10 +1,10 @@
{
- description = "Based and Minimal Flake";
+ description = "Based and Minimal Flake For Darwin";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
- hjem = {
- url = "github:feel-co/hjem";
+ nix-darwin = {
+ url = "github:nix-darwin/nix-darwin/master";
inputs.nixpkgs.follows = "nixpkgs";
};
@@ -36,6 +36,14 @@
url = "github:notashelf/nvf";
inputs.nixpkgs.follows = "nixpkgs";
};
+ home-manager = {
+ url = "github:nix-community/home-manager";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+ hjem = {
+ url = "github:feel-co/hjem";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
};
outputs = {
self,
@@ -47,6 +55,8 @@
my-st,
my-dmenu,
nvf,
+ nix-darwin,
+ home-manager,
} @ inputs: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
@@ -54,6 +64,9 @@
inherit pkgs;
modules = [./nvf/nvf.nix];
};
+
+ system2 = "aarch64-darwin";
+ pkgs = nixpkgs.legacyPackages.${system2};
in {
nixosConfigurations.nepsis = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs customNeovim;};
@@ -75,5 +88,57 @@
};
packages.${system}.my-neovim = customNeovim.neovim;
+
+ packages.${system2}.my-neovim = customNeovim.neovim;
+ darwinConfigurations = {
+ kenosis = nix-darwin.lib.darwinSystem {
+ specialArgs = {inherit inputs customNeovim;};
+ modules = [
+ ./darwin-common.nix
+ ./hosts/kenosis/configuration.nix
+ ./overlays.nix
+ home-manager.darwinModules.home-manager
+ {
+ users.users.andrew = {
+ home = /Users/andrew;
+ };
+ home-manager.useGlobalPkgs = true;
+ home-manager.useUserPackages = true;
+ home-manager.extraSpecialArgs = {
+ inherit inputs;
+ };
+ home-manager.users.andrew = {
+ imports = [./home.nix];
+ home.username = "andrew";
+ home.homeDirectory = /Users/andrew/;
+ };
+ }
+ ];
+ };
+ bear = nix-darwin.lib.darwinSystem {
+ specialArgs = {inherit inputs customNeovim;};
+ modules = [
+ ./darwin-common.nix
+ ./hosts/bear/configuration.nix
+ ./overlays.nix
+ home-manager.darwinModules.home-manager
+ {
+ users.users.andrewmontgomery = {
+ home = /Users/andrewmontgomery;
+ };
+ home-manager.useGlobalPkgs = true;
+ home-manager.useUserPackages = true;
+ home-manager.extraSpecialArgs = {
+ inherit inputs;
+ };
+ home-manager.users.andrewmontgomery = {
+ imports = [./home.nix];
+ home.username = "andrewmontgomery";
+ home.homeDirectory = /Users/andrewmontgomery;
+ };
+ }
+ ];
+ };
+ };
};
}