Files
nixos/flake.nix
T

109 lines
2.9 KiB
Nix
Raw Normal View History

2022-04-17 22:29:13 -05:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{
description = "Greg's machines!";
inputs = {
2024-02-27 18:47:24 +00:00
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixunstable";
};
2024-08-23 14:08:01 -05:00
btc = {
url = "github:fort-nix/nix-bitcoin/release";
};
2023-06-20 19:28:14 -05:00
darwin = {
url = "github:lnl7/nix-darwin/master";
inputs.nixpkgs.follows = "nixunstable";
};
flake-parts.url = "github:hercules-ci/flake-parts";
hooks.url = "github:cachix/git-hooks.nix";
2023-05-11 09:32:05 -05:00
hm = {
2024-06-10 13:30:23 -05:00
url = "github:nix-community/home-manager/release-24.05";
2023-06-20 11:52:10 -05:00
inputs.nixpkgs.follows = "nixstable";
2022-04-18 11:38:06 -05:00
};
2023-11-03 10:06:32 -05:00
hmunstable = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixstable";
};
2024-08-17 00:04:27 -05:00
nixvimstable.url = "github:nix-community/nixvim/nixos-24.05";
nixvimunstable.url = "github:nix-community/nixvim/main";
nix23_05.url = "github:NixOS/nixpkgs/nixos-23.05";
2024-06-10 13:30:23 -05:00
nixstable.url = "github:nixos/nixpkgs/nixos-24.05";
2023-06-20 19:28:14 -05:00
nixunstable.url = "github:nixos/nixpkgs/nixos-unstable";
nurpkgs.url = "github:nix-community/NUR";
2024-09-20 09:20:56 -05:00
vsext.url = "github:nix-community/nix-vscode-extensions";
2022-12-28 15:39:44 -06:00
wsl = {
url = "github:nix-community/NixOS-WSL";
inputs.nixpkgs.follows = "nixunstable";
};
2024-10-02 10:17:51 -05:00
zed.url = "github:zed-industries/zed/v0.154.x";
2022-04-17 22:29:13 -05:00
};
outputs = { self, ...}@inputs: let
2022-05-04 13:52:38 -05:00
local_overlay = import ./overlays;
2022-09-09 14:19:12 -05:00
overlays = [
inputs.agenix.overlays.default
2022-09-09 14:19:12 -05:00
local_overlay
inputs.nurpkgs.overlay
inputs.vsext.overlays.default
2024-10-02 10:17:51 -05:00
(_: _: { zed-editor = inputs.zed.packages.x86_64-linux.default; } )
2022-09-06 11:41:09 -05:00
];
in inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
2024-08-17 00:04:27 -05:00
#checks = {
# x86_64-linux = {
# unstable = self.nixosConfigurations.jude.config.system.build.toplevel;
# stable = self.nixosConfigurations.linode.config.system.build.toplevel;
# };
# aarch64-linux = {
# unstable = self.nixosConfigurations.nixos.config.system.build.toplevel;
# };
#};
flake = {
nixosConfigurations = (import ./hosts { inherit inputs overlays; });
2022-04-21 12:42:42 +00:00
darwinConfigurations = (import ./darwin { inherit inputs overlays; });
2022-09-06 11:41:09 -05:00
homeConfigurations = (import ./home { inherit inputs overlays; });
2023-11-01 14:14:50 -05:00
overlays = {
default = local_overlay;
};
2023-06-28 23:10:07 -05:00
modules = import ./modules;
2024-02-13 23:58:38 -06:00
};
2024-02-09 14:33:51 -06:00
perSystem = { config, self', pkgs', system, ... }: {
_module.args.pkgs = import inputs.nixpkgs {
inherit system overlays;
};
devShells = {
default = pkgs'.mkShell {
buildInputs = with pkgs'; [
bashInteractive
curl
git
gnutar
gzip
inject
inject-darwin
tmux
vim
xonsh
];
};
};
packages = rec {
defaullt = iso;
iso = self.nixosConfigurations.iso.config.system.build.isoImage;
2024-02-19 12:13:07 -06:00
iso-beta = self.nixosConfigurations.iso-beta.config.system.build.isoImage;
};
2024-01-20 23:31:07 -06:00
};
2022-04-17 22:29:13 -05:00
};
}