config/flake.nix

134 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-02-22 15:27:47 -08:00
stylix.url = "github:danth/stylix";
blocklist-hosts = {
url = "github:StevenBlack/hosts";
#flake = false;
};
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
flake-utils.url = "github:numtide/flake-utils";
zig.url = "github:mitchellh/zig-overlay";
zls.url = "github:zigtools/zls?rev=a26718049a8657d4da04c331aeced1697bc7652b";
foundryvtt.url = "github:reckenrode/nix-foundryvtt";
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";
};
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,
home-manager,
stylix,
blocklist-hosts,
hyprland-plugins,
2024-06-22 19:05:32 -07:00
zig,
zls,
2024-09-27 14:29:46 -07:00
ghostty,
nixos-cosmic,
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-02-22 15:27:47 -08:00
pkgs = import nixpkgs {
system = systemSettings.system;
config = {
allowUnfree = true;
allowUnfreePredicate = _: true;
};
2024-06-22 19:05:32 -07:00
overlays = overlays;
2024-02-22 15:27:47 -08:00
};
pkgs-stable = import nixpkgs-stable {
system = systemSettings.system;
config = {
allowUnfree = true;
allowUnfreePredicate = _: true;
2023-12-28 21:33:09 -08:00
};
2024-02-22 15:27:47 -08:00
overlays = [];
2023-12-28 21:33:09 -08:00
};
2024-02-22 15:27:47 -08:00
2024-09-27 15:09:44 -07:00
2024-02-22 15:27:47 -08:00
lib = nixpkgs.lib;
in {
2024-09-27 15:09:44 -07:00
nixosConfigurations = {
nixos = lib.nixosSystem {
system = systemSettings.system;
2024-06-22 19:05:32 -07:00
modules = [
2024-09-27 15:09:44 -07:00
nixos-cosmic.nixosModules.default
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.nmarks = import ./hosts/desktop/home.nix;
home-manager.extraSpecialArgs = {
2024-02-22 15:27:47 -08:00
inherit pkgs-stable;
inherit systemSettings;
inherit userSettings;
inherit stylix;
inherit hyprland-plugins;
2024-06-22 19:05:32 -07:00
inherit zls;
2024-09-27 14:29:46 -07:00
inherit ghostty;
2024-02-22 15:27:47 -08:00
};
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
inherit pkgs-stable;
inherit systemSettings;
inherit userSettings;
inherit stylix;
inherit blocklist-hosts;
};
2023-12-28 21:33:09 -08:00
};
2024-01-29 01:53:47 -08:00
};
2024-09-27 15:09:44 -07:00
darwinSystem = darwin.lib.darwinSystem {
system = "aarch64-darwin";
modules = [
./hosts/laptop/configuration.nix
home-manager.darwinModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.nmarks = import ./hosts/laptop/home.nix;
users.users.nmarks.home = "/Users/nmarks";
};
];
specialArgs = { inherit nixpkgs; };
};
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
};
}