diff options
| author | Skullheadx <admonty1@gmail.com> | 2026-06-28 23:40:22 -0400 |
|---|---|---|
| committer | Skullheadx <admonty1@gmail.com> | 2026-06-28 23:40:22 -0400 |
| commit | 9b85a4ff0a0be79bd65db09463e1b3f0d4860098 (patch) | |
| tree | d07e820a9e23197f078f95b5dadb413b111c4782 /flake.nix | |
| parent | update todo (diff) | |
| download | nixos-9b85a4ff0a0be79bd65db09463e1b3f0d4860098.tar.gz nixos-9b85a4ff0a0be79bd65db09463e1b3f0d4860098.tar.bz2 nixos-9b85a4ff0a0be79bd65db09463e1b3f0d4860098.zip | |
add darwin
Diffstat (limited to '')
| -rw-r--r-- | flake.nix | 71 |
1 files changed, 68 insertions, 3 deletions
@@ -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; + }; + } + ]; + }; + }; }; } |
