config/flake.nix

136 lines
3.5 KiB
Nix
Raw Normal View History

2023-12-28 21:33:09 -08:00
{
2024-02-22 15:27:47 -08:00
description = "New Modular flake!";
2023-12-28 21:33:09 -08:00
inputs = {
2024-02-22 15:27:47 -08:00
nixpkgs.url = "nixpkgs/nixos-unstable";
2024-09-27 14:29:46 -07:00
# nixpkgs.url = "github:NixOS/nixpkgs/master";
2024-02-22 15:27:47 -08:00
nixpkgs-stable.url = "nixpkgs/nixos-23.11";
2023-12-28 21:33:09 -08:00
2024-02-22 15:27:47 -08:00
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2023-12-28 21:33:09 -08:00
2024-09-27 15:09:44 -07:00
darwin = {
url = "github:lnl7/nix-darwin/master";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-09-30 10:06:37 -07:00
hosts = {
2024-02-22 15:27:47 -08:00
url = "github:StevenBlack/hosts";
#flake = false;
};
2024-09-30 10:06:37 -07:00
2024-02-22 15:27:47 -08:00
hyprland.url = "github:hyprwm/Hyprland";
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
#flake = false;
};
2024-05-20 17:28:40 -07:00
2024-06-22 19:05:32 -07:00
zig.url = "github:mitchellh/zig-overlay";
zls.url = "github:zigtools/zls?rev=a26718049a8657d4da04c331aeced1697bc7652b";
2024-09-30 15:06:45 -07:00
# foundryvtt.url = "github:reckenrode/nix-foundryvtt";
2024-09-30 10:06:37 -07:00
2024-09-27 14:29:46 -07:00
ghostty = {
url = "git+ssh://git@github.com/ghostty-org/ghostty";
};
nixos-cosmic = {
url = "github:lilyinstarlight/nixos-cosmic";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-09-30 10:06:51 -07:00
nh_darwin = {
url = "github:ToyVo/nh_darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-09-30 10:06:37 -07:00
nix-options-search = {
url = "github:madsbv/nix-options-search";
};
2023-12-28 21:33:09 -08:00
};
2024-01-29 01:53:47 -08:00
outputs = {
self,
nixpkgs,
2024-02-22 15:27:47 -08:00
nixpkgs-stable,
2024-09-30 10:06:37 -07:00
nix-options-search,
2024-02-22 15:27:47 -08:00
home-manager,
2024-09-27 15:15:30 -07:00
darwin,
2024-09-30 10:06:37 -07:00
hosts,
2024-02-22 15:27:47 -08:00
hyprland-plugins,
2024-06-22 19:05:32 -07:00
zig,
zls,
2024-09-27 14:29:46 -07:00
ghostty,
nixos-cosmic,
2024-09-30 10:06:51 -07:00
nh_darwin,
2024-01-29 01:53:47 -08:00
...
2024-02-22 15:27:47 -08:00
} @ inputs: let
2024-06-22 19:05:32 -07:00
overlays = [
inputs.zig.overlays.default
];
2024-09-27 19:01:35 -07:00
inherit (nixpkgs) lib;
2024-02-22 15:27:47 -08:00
in {
2024-09-27 15:09:44 -07:00
nixosConfigurations = {
nixos = lib.nixosSystem {
2024-06-22 19:05:32 -07:00
modules = [
2024-09-27 19:01:35 -07:00
{nixpkgs.overlays = overlays;}
2024-09-30 10:06:37 -07:00
hosts.nixosModule
{
networking.stevenBlackHosts.enable = true;
}
2024-09-27 19:01:35 -07:00
./hosts/desktop/configuration.nix
2024-09-27 15:09:44 -07:00
home-manager.nixosModules.home-manager
{
2024-09-27 19:01:35 -07:00
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.nmarks = import ./hosts/desktop/home.nix;
};
2024-09-27 15:15:30 -07:00
home-manager.extraSpecialArgs = {
inherit hyprland-plugins;
inherit zls;
inherit ghostty;
};
2024-09-27 15:09:44 -07:00
}
2024-09-27 14:29:46 -07:00
];
2024-02-22 15:27:47 -08:00
specialArgs = {
2024-05-20 17:28:40 -07:00
inherit inputs;
2024-02-22 15:27:47 -08:00
};
2023-12-28 21:33:09 -08:00
};
2024-01-29 01:53:47 -08:00
};
2024-09-27 19:01:35 -07:00
darwinConfigurations = {
"Natalies-MacBook-Air" = darwin.lib.darwinSystem {
system = "aarch64-darwin";
modules = [
2024-09-30 10:06:51 -07:00
# nh_darwin.nixDarwinModules.default
2024-09-27 19:01:35 -07:00
{nixpkgs.overlays = overlays;}
./hosts/laptop/configuration.nix
home-manager.darwinModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.nmarks = import ./hosts/laptop/home.nix;
};
home-manager.extraSpecialArgs = {
inherit zls;
inherit ghostty;
};
users.users.nmarks.home = "/Users/nmarks";
}
];
specialArgs = {
2024-09-30 10:06:51 -07:00
inherit nh_darwin;
2024-09-27 19:01:35 -07:00
inherit inputs;
inherit ghostty;
};
};
2024-09-27 15:15:30 -07:00
};
2024-09-30 10:06:51 -07:00
# darwinPackages = self.darwinConfigurations."Natalie-MacBook-Air".pkgs;
2024-09-27 14:29:46 -07:00
# nixos = inputs.self.nixosConfigurations.nmarks;
#
#
# nmarks = inputs.self.nixosConfigurations.nmarks.config.system.build.toplevel;
# defaultPackage.x86_64-linux = inputs.self.nixosConfigurations.laptoptop.config.system.build.toplevel;
2023-12-28 21:33:09 -08:00
};
}