2024-01-11 09:18:07 +01:00
|
|
|
{
|
|
|
|
description = "Harald Hoyer's Nix Configurations";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
|
|
|
|
|
2024-03-05 14:09:22 +01:00
|
|
|
# NixPkgs Unstable (nixos-unstable)
|
|
|
|
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
|
2024-03-05 15:41:42 +01:00
|
|
|
lanzaboote = {
|
|
|
|
url = "github:nix-community/lanzaboote/v0.3.0";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-01-11 09:18:07 +01:00
|
|
|
snowfall-lib = {
|
2024-03-11 17:05:47 +01:00
|
|
|
url = "github:snowfallorg/lib?rev=5082cdac87c5fd99ef2ee5989d9f73888bc5ed14";
|
2024-01-11 09:18:07 +01:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-03-12 00:24:28 +01:00
|
|
|
# macOS Support (master)
|
|
|
|
darwin.url = "github:lnl7/nix-darwin";
|
|
|
|
darwin.inputs.nixpkgs.follows = "nixpkgs";
|
2024-01-11 09:18:07 +01:00
|
|
|
|
|
|
|
home-manager.url = "github:nix-community/home-manager/release-23.11";
|
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2024-03-04 14:09:57 +01:00
|
|
|
|
2024-03-12 00:24:28 +01:00
|
|
|
neovim-flake.url = "github:notashelf/neovim-flake/v0.5";
|
|
|
|
neovim-flake.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
2024-03-04 14:09:57 +01:00
|
|
|
disko.url = "github:nix-community/disko";
|
|
|
|
disko.inputs.nixpkgs.follows = "nixpkgs";
|
2024-03-06 12:26:12 +01:00
|
|
|
|
|
|
|
sops-nix.url = "github:Mic92/sops-nix";
|
|
|
|
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
2024-03-06 15:12:04 +01:00
|
|
|
|
|
|
|
nixsgx-flake = {
|
|
|
|
url = "github:matter-labs/nixsgx";
|
|
|
|
# inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-01-11 09:18:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = inputs:
|
|
|
|
let
|
|
|
|
lib = inputs.snowfall-lib.mkLib {
|
|
|
|
inherit inputs;
|
|
|
|
src = ./.;
|
|
|
|
|
2024-03-20 08:58:05 +01:00
|
|
|
snowfall.namespace = "metacfg";
|
2024-01-11 13:42:31 +01:00
|
|
|
|
|
|
|
snowfall = {
|
|
|
|
meta = {
|
2024-03-20 08:58:05 +01:00
|
|
|
name = "metacfg";
|
2024-01-11 13:42:31 +01:00
|
|
|
title = "Plus Ultra";
|
|
|
|
};
|
|
|
|
};
|
2024-01-11 09:18:07 +01:00
|
|
|
};
|
|
|
|
in
|
|
|
|
lib.mkFlake {
|
|
|
|
channels-config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
};
|
|
|
|
|
2024-03-11 17:05:47 +01:00
|
|
|
homes.modules = with inputs; [
|
2024-01-11 09:18:07 +01:00
|
|
|
neovim-flake.homeManagerModules.default
|
|
|
|
];
|
|
|
|
|
2024-01-11 13:42:31 +01:00
|
|
|
systems.modules.nixos = with inputs; [
|
2024-03-05 15:41:42 +01:00
|
|
|
lanzaboote.nixosModules.lanzaboote
|
2024-01-11 13:42:31 +01:00
|
|
|
home-manager.nixosModules.home-manager
|
2024-03-06 12:26:12 +01:00
|
|
|
sops-nix.nixosModules.sops
|
|
|
|
disko.nixosModules.disko
|
2024-01-11 13:42:31 +01:00
|
|
|
];
|
|
|
|
|
2024-03-06 15:12:04 +01:00
|
|
|
overlays = with inputs; [
|
|
|
|
nixsgx-flake.overlays.default
|
|
|
|
];
|
|
|
|
|
2024-01-11 09:18:07 +01:00
|
|
|
outputs-builder = channels: {
|
|
|
|
formatter = channels.nixpkgs.nixpkgs-fmt;
|
|
|
|
defaultApp = lib.flake-utils-plus.mkApp { drv = channels.nixpkgs.home-manager; };
|
|
|
|
};
|
2024-01-11 13:42:31 +01:00
|
|
|
|
2024-01-11 09:18:07 +01:00
|
|
|
};
|
|
|
|
}
|