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-10 10:41:37 -05:00
|
|
|
|
nixConfig = {
|
2024-10-19 02:14:43 -05:00
|
|
|
|
extra-substituters = [
|
|
|
|
|
|
"https://greg-hellings.cachix.org"
|
|
|
|
|
|
"https://cache.garnix.io"
|
|
|
|
|
|
];
|
|
|
|
|
|
extra-trusted-public-keys = [
|
|
|
|
|
|
"greg-hellings.cachix.org-1:y01Jl/L5evlhxdnUW6n56AiI1k8g1wxWhTxJCe7XSco="
|
|
|
|
|
|
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g"
|
|
|
|
|
|
];
|
2024-10-10 10:41:37 -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";
|
|
|
|
|
|
hmunstable = {
|
|
|
|
|
|
url = "github:nix-community/home-manager/master";
|
2024-11-23 01:23:26 -06:00
|
|
|
|
inputs.nixpkgs.follows = "nixunstable";
|
2024-10-03 11:26:39 -05:00
|
|
|
|
};
|
2024-12-02 12:44:21 -06:00
|
|
|
|
#proxmox.url = "github:SaumonNet/proxmox-nixos";
|
|
|
|
|
|
# To enable backups: https://github.com/SaumonNet/proxmox-nixos/pull/45
|
|
|
|
|
|
proxmox.url = "github:blecher-at/proxmox-nixos/fix-backup-pve-manager";
|
2024-11-19 22:43:13 -06:00
|
|
|
|
nixos-generators = {
|
|
|
|
|
|
url = "github:nix-community/nixos-generators";
|
|
|
|
|
|
inputs.nixpkgs.follows = "nixunstable";
|
|
|
|
|
|
};
|
2024-10-03 11:26:39 -05:00
|
|
|
|
nixvimunstable.url = "github:nix-community/nixvim/main";
|
|
|
|
|
|
nixunstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
|
|
nurpkgs.url = "github:nix-community/NUR";
|
2025-02-19 19:45:51 -06:00
|
|
|
|
vsext.url = "github:greg-hellings/nix-vscode-extensions/fix-json";
|
2024-10-03 11:26:39 -05:00
|
|
|
|
wsl = {
|
|
|
|
|
|
url = "github:nix-community/NixOS-WSL";
|
|
|
|
|
|
inputs.nixpkgs.follows = "nixunstable";
|
|
|
|
|
|
};
|
|
|
|
|
|
};
|
2022-04-17 22:29:13 -05:00
|
|
|
|
|
2024-10-11 12:28:53 -05:00
|
|
|
|
outputs =
|
|
|
|
|
|
{ self, ... }@top:
|
2024-10-03 11:26:39 -05:00
|
|
|
|
let
|
|
|
|
|
|
local_overlay = import ./overlays;
|
2024-10-11 12:28:53 -05:00
|
|
|
|
packages_overlay = (
|
|
|
|
|
|
_: prev:
|
|
|
|
|
|
(import ./pkgs {
|
2024-11-19 22:43:13 -06:00
|
|
|
|
inherit self top;
|
2024-10-11 12:28:53 -05:00
|
|
|
|
pkgs = prev;
|
2024-11-19 22:43:13 -06:00
|
|
|
|
})
|
2024-10-11 12:28:53 -05:00
|
|
|
|
);
|
2024-10-03 11:26:39 -05:00
|
|
|
|
overlays = [
|
2024-10-11 12:28:53 -05:00
|
|
|
|
top.agenix.overlays.default
|
2024-10-03 11:26:39 -05:00
|
|
|
|
local_overlay
|
2024-10-11 12:28:53 -05:00
|
|
|
|
packages_overlay
|
2025-02-04 13:50:04 +00:00
|
|
|
|
top.nurpkgs.overlays.default
|
2024-10-11 12:28:53 -05:00
|
|
|
|
top.vsext.overlays.default
|
2024-10-03 11:26:39 -05:00
|
|
|
|
];
|
2022-09-06 11:41:09 -05:00
|
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
|
in
|
2024-10-11 12:28:53 -05:00
|
|
|
|
top.flake-parts.lib.mkFlake { inputs = top; } {
|
|
|
|
|
|
systems = [
|
|
|
|
|
|
"aarch64-linux"
|
|
|
|
|
|
"x86_64-linux"
|
|
|
|
|
|
"aarch64-darwin"
|
|
|
|
|
|
];
|
2024-01-22 13:34:35 -06:00
|
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
|
flake = {
|
2024-10-11 12:28:53 -05:00
|
|
|
|
nixosConfigurations = (import ./hosts { inherit top overlays; });
|
2022-04-21 12:42:42 +00:00
|
|
|
|
|
2024-10-11 12:28:53 -05:00
|
|
|
|
darwinConfigurations = (import ./darwin { inherit top overlays; });
|
2022-09-06 11:41:09 -05:00
|
|
|
|
|
2024-10-11 12:28:53 -05:00
|
|
|
|
homeConfigurations = (import ./home { inherit top overlays; });
|
2023-11-01 14:14:50 -05:00
|
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
|
overlays = {
|
2024-10-11 12:28:53 -05:00
|
|
|
|
default = packages_overlay;
|
|
|
|
|
|
local = local_overlay;
|
2024-10-03 11:26:39 -05:00
|
|
|
|
};
|
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-11 12:28:53 -05:00
|
|
|
|
perSystem =
|
|
|
|
|
|
{
|
|
|
|
|
|
pkgs,
|
|
|
|
|
|
self',
|
|
|
|
|
|
system,
|
|
|
|
|
|
...
|
|
|
|
|
|
}:
|
|
|
|
|
|
{
|
|
|
|
|
|
_module.args = {
|
2024-11-23 01:23:26 -06:00
|
|
|
|
pkgs = import top.nixunstable { inherit system overlays; };
|
2024-10-11 12:28:53 -05:00
|
|
|
|
};
|
|
|
|
|
|
|
2024-11-21 23:13:21 -06:00
|
|
|
|
packages = (import ./pkgs { inherit pkgs top; }) // (import ./vms { inherit top; });
|
2024-10-11 12:28:53 -05:00
|
|
|
|
|
|
|
|
|
|
checks = import ./checks.nix {
|
|
|
|
|
|
inherit system;
|
|
|
|
|
|
inherit (top) hooks;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
devShells = import ./shells.nix {
|
|
|
|
|
|
inherit self' pkgs;
|
|
|
|
|
|
inherit (top) nixvimunstable;
|
|
|
|
|
|
};
|
2024-10-03 11:26:39 -05:00
|
|
|
|
};
|
|
|
|
|
|
};
|
2022-04-17 22:29:13 -05:00
|
|
|
|
}
|