2022-01-11 18:44:40 +01:00
|
|
|
{
|
|
|
|
description = "Frosted Flakes";
|
|
|
|
|
|
|
|
inputs = {
|
2023-12-08 12:06:38 +01:00
|
|
|
nixpkgs.url = "nixpkgs/nixos-23.11";
|
2022-09-05 18:16:09 +02:00
|
|
|
|
|
|
|
# WARNING: Where possible, prefer the stable branch of nixpkgs as nixpkgs-unstable may have incompatable or vulnerable software.
|
2022-01-11 18:44:40 +01:00
|
|
|
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
|
|
|
|
|
2023-12-08 12:06:38 +01:00
|
|
|
home-manager.url = "github:nix-community/home-manager/release-23.11";
|
2023-06-01 23:36:20 +02:00
|
|
|
#home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2022-01-11 18:44:40 +01:00
|
|
|
|
|
|
|
# agenix - age-encrypted secrets
|
2022-11-15 06:19:54 +01:00
|
|
|
agenix = {
|
|
|
|
url = "github:ryantm/agenix";
|
2023-06-01 23:36:20 +02:00
|
|
|
#inputs.nixpkgs.follows = "nixpkgs";
|
2022-11-15 06:19:54 +01:00
|
|
|
};
|
2022-01-11 18:44:40 +01:00
|
|
|
|
2022-11-15 06:19:54 +01:00
|
|
|
nixos-hardware = {
|
|
|
|
url = "github:nixos/nixos-hardware";
|
2023-06-01 23:36:20 +02:00
|
|
|
#inputs.nixpkgs.follows = "nixpkgs";
|
2022-11-15 06:19:54 +01:00
|
|
|
};
|
2022-01-11 18:44:40 +01:00
|
|
|
|
2022-11-15 06:19:54 +01:00
|
|
|
nix-minecraft = {
|
|
|
|
url = "github:Infinidoge/nix-minecraft";
|
2023-06-01 23:36:20 +02:00
|
|
|
#inputs.nixpkgs.follows = "nixpkgs";
|
2022-11-15 06:19:54 +01:00
|
|
|
};
|
2022-01-11 18:44:40 +01:00
|
|
|
|
2023-04-30 21:42:43 +02:00
|
|
|
cohost-blogger = {
|
|
|
|
url = "git+https://git.oat.zone/oat/cohost-blogger";
|
2023-06-01 23:36:20 +02:00
|
|
|
#inputs.nixpkgs.follows = "nixpkgs";
|
2023-04-30 21:42:43 +02:00
|
|
|
};
|
|
|
|
|
2024-02-23 12:45:34 +01:00
|
|
|
nlw-api.url = "git+https://git.oat.zone/oat/nlw-api";
|
2024-07-24 16:45:15 +02:00
|
|
|
cardgen.url = "git+https://git.oat.zone/oat/cardgen";
|
|
|
|
gd-icon-renderer-web.url = "github:oatmealine/gd-icon-renderer-web";
|
2024-02-23 12:45:34 +01:00
|
|
|
|
2022-11-15 06:19:54 +01:00
|
|
|
emacs-overlay = {
|
|
|
|
url = "github:nix-community/emacs-overlay";
|
2023-06-01 23:36:20 +02:00
|
|
|
#inputs.nixpkgs.follows = "nixpkgs";
|
2022-11-15 06:19:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
hyprland = {
|
|
|
|
url = "github:hyprwm/Hyprland";
|
2023-06-01 23:36:20 +02:00
|
|
|
#inputs.nixpkgs.follows = "nixpkgs";
|
2022-11-15 06:19:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
hyprpaper = {
|
|
|
|
url = "github:hyprwm/hyprpaper";
|
2023-06-01 23:36:20 +02:00
|
|
|
#inputs.nixpkgs.follows = "nixpkgs";
|
2022-11-15 06:19:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
hyprpicker = {
|
|
|
|
url = "github:hyprwm/hyprpicker";
|
2023-06-01 23:36:20 +02:00
|
|
|
#inputs.nixpkgs.follows = "nixpkgs";
|
2022-11-15 06:19:54 +01:00
|
|
|
};
|
2023-01-19 15:17:35 +01:00
|
|
|
|
2023-06-08 20:47:25 +02:00
|
|
|
vscode-server.url = "github:nix-community/nixos-vscode-server";
|
2022-01-11 18:44:40 +01:00
|
|
|
};
|
|
|
|
|
2024-02-23 12:45:34 +01:00
|
|
|
outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, nix-minecraft, /* hyprland, hyprpaper, hyprpicker, */ ... }:
|
2022-01-11 18:44:40 +01:00
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
|
|
|
|
lib = import ./lib { inherit pkgs inputs; lib = nixpkgs.lib; };
|
|
|
|
inherit (lib._) mapModules mapModulesRec mkHost;
|
|
|
|
|
|
|
|
mkPkgs = pkgs: overlays: import pkgs {
|
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
overlays = overlays ++ (lib.attrValues self.overlays);
|
|
|
|
};
|
|
|
|
|
2022-09-05 18:16:09 +02:00
|
|
|
pkgs = mkPkgs nixpkgs [ self.overlay nix-minecraft.overlay ];
|
2022-01-11 18:44:40 +01:00
|
|
|
in {
|
|
|
|
packages."${system}" = mapModules ./packages (p: pkgs.callPackage p {});
|
|
|
|
overlay = final: prev: {
|
|
|
|
_ = self.packages."${system}";
|
|
|
|
unstable = mkPkgs nixpkgs-unstable [];
|
|
|
|
};
|
2022-01-11 19:06:11 +01:00
|
|
|
overlays = mapModules ./overlays import;
|
2023-01-19 00:11:01 +01:00
|
|
|
nixosModules = (mapModulesRec ./modules import) ++ [
|
2023-04-24 23:41:20 +02:00
|
|
|
#hyprland.nixosModules.default
|
2023-01-19 00:11:01 +01:00
|
|
|
];
|
2022-09-05 18:16:09 +02:00
|
|
|
nixosConfigurations = mapModules ./hosts (host: mkHost host { inherit system; });
|
2022-04-20 10:53:28 +02:00
|
|
|
devShell."${system}" = import ./shell.nix { inherit pkgs; };
|
2022-01-11 18:44:40 +01:00
|
|
|
};
|
|
|
|
}
|