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’).
|
|
|
|
|
|
{
|
2024-10-03 11:26:39 -05:00
|
|
|
|
description = "Greg's machines!";
|
2022-04-17 22:29:13 -05:00
|
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
|
inputs = {
|
|
|
|
|
|
agenix = {
|
|
|
|
|
|
url = "github:ryantm/agenix";
|
|
|
|
|
|
inputs.nixpkgs.follows = "nixunstable";
|
|
|
|
|
|
};
|
|
|
|
|
|
btc = {
|
|
|
|
|
|
url = "github:fort-nix/nix-bitcoin/release";
|
|
|
|
|
|
};
|
|
|
|
|
|
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";
|
|
|
|
|
|
hm = {
|
|
|
|
|
|
url = "github:nix-community/home-manager/release-24.05";
|
|
|
|
|
|
inputs.nixpkgs.follows = "nixstable";
|
|
|
|
|
|
};
|
|
|
|
|
|
hmunstable = {
|
|
|
|
|
|
url = "github:nix-community/home-manager/master";
|
|
|
|
|
|
inputs.nixpkgs.follows = "nixstable";
|
|
|
|
|
|
};
|
|
|
|
|
|
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";
|
|
|
|
|
|
nixstable.url = "github:nixos/nixpkgs/nixos-24.05";
|
|
|
|
|
|
nixunstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
|
|
nurpkgs.url = "github:nix-community/NUR";
|
|
|
|
|
|
vsext.url = "github:nix-community/nix-vscode-extensions";
|
|
|
|
|
|
wsl = {
|
|
|
|
|
|
url = "github:nix-community/NixOS-WSL";
|
|
|
|
|
|
inputs.nixpkgs.follows = "nixunstable";
|
|
|
|
|
|
};
|
|
|
|
|
|
zed.url = "github:zed-industries/zed/v0.154.x";
|
|
|
|
|
|
};
|
2022-04-17 22:29:13 -05:00
|
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
|
outputs = { self, ... }@inputs:
|
|
|
|
|
|
let
|
|
|
|
|
|
local_overlay = import ./overlays;
|
|
|
|
|
|
overlays = [
|
|
|
|
|
|
inputs.agenix.overlays.default
|
|
|
|
|
|
local_overlay
|
|
|
|
|
|
inputs.nurpkgs.overlay
|
|
|
|
|
|
inputs.vsext.overlays.default
|
|
|
|
|
|
(_: _: { zed-editor = inputs.zed.packages.x86_64-linux.default; })
|
|
|
|
|
|
];
|
2022-09-06 11:41:09 -05:00
|
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
|
in
|
|
|
|
|
|
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
|
|
|
|
|
systems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
|
|
|
|
|
|
#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;
|
|
|
|
|
|
# };
|
|
|
|
|
|
#};
|
2024-01-22 13:34:35 -06:00
|
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
|
flake = {
|
|
|
|
|
|
nixosConfigurations = (import ./hosts { inherit inputs overlays; });
|
2022-04-21 12:42:42 +00:00
|
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
|
darwinConfigurations = (import ./darwin { inherit inputs overlays; });
|
2022-09-06 11:41:09 -05:00
|
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
|
homeConfigurations = (import ./home { inherit inputs overlays; });
|
2023-11-01 14:14:50 -05:00
|
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
|
overlays = {
|
|
|
|
|
|
default = local_overlay;
|
|
|
|
|
|
};
|
2023-06-28 23:10:07 -05:00
|
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
|
modules = import ./modules;
|
|
|
|
|
|
};
|
2024-02-09 14:33:51 -06:00
|
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
|
perSystem = { pkgs, self', system, ... }: {
|
|
|
|
|
|
_module.args.pkgs = import inputs.nixstable {
|
|
|
|
|
|
inherit system overlays;
|
|
|
|
|
|
};
|
2024-10-03 09:45:45 -05:00
|
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
|
checks = import ./checks.nix { inherit system; inherit (inputs) hooks; };
|
2024-10-03 11:16:06 -05:00
|
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
|
devShells = {
|
|
|
|
|
|
default = pkgs.mkShell {
|
|
|
|
|
|
inherit (self'.checks.pre-commit-check) shellHook;
|
|
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
|
|
bashInteractive
|
|
|
|
|
|
curl
|
|
|
|
|
|
git
|
|
|
|
|
|
gnutar
|
|
|
|
|
|
gzip
|
|
|
|
|
|
inject
|
|
|
|
|
|
inject-darwin
|
2024-10-04 09:33:53 -05:00
|
|
|
|
(inputs.nixvimunstable.legacyPackages.${system}.makeNixvim (import ./home/modules/baseline/vim/config.nix { inherit pkgs; }))
|
2024-10-03 15:21:56 -05:00
|
|
|
|
self'.checks.pre-commit-check.enabledPackages
|
2024-10-03 11:26:39 -05:00
|
|
|
|
tmux
|
|
|
|
|
|
xonsh
|
|
|
|
|
|
];
|
|
|
|
|
|
};
|
|
|
|
|
|
};
|
2024-10-03 09:45:45 -05:00
|
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
|
packages = rec {
|
2024-10-03 16:01:56 -05:00
|
|
|
|
default = iso;
|
2024-10-03 11:26:39 -05:00
|
|
|
|
iso = self.nixosConfigurations.iso.config.system.build.isoImage;
|
|
|
|
|
|
iso-beta = self.nixosConfigurations.iso-beta.config.system.build.isoImage;
|
|
|
|
|
|
};
|
|
|
|
|
|
};
|
|
|
|
|
|
};
|
2022-04-17 22:29:13 -05:00
|
|
|
|
}
|