nixos-config/flake.nix

84 lines
2.2 KiB
Nix
Raw Normal View History

2024-11-28 01:14:34 +08:00
{
description = "a nixos configuration collection by rebmit";
outputs =
inputs@{ flake-parts, rebmit, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
inherit (rebmit.lib) systems;
imports = [
inputs.devshell.flakeModule
inputs.git-hooks-nix.flakeModule
inputs.treefmt-nix.flakeModule
inputs.rebmit.flakeModule
] ++ rebmit.lib.path.buildModuleList ./flake;
};
inputs = {
# flake-parts
flake-parts.follows = "rebmit/flake-parts";
# nixpkgs
nixpkgs.follows = "rebmit/nixpkgs";
nixpkgs-unstable.follows = "rebmit/nixpkgs-unstable";
# flake modules
devshell.follows = "rebmit/devshell";
git-hooks-nix.follows = "rebmit/git-hooks-nix";
treefmt-nix.follows = "rebmit/treefmt-nix";
# nixos modules
preservation.url = "github:WilliButz/preservation";
2024-11-28 01:14:34 +08:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
disko = {
url = "github:nix-community/disko/v1.8.2";
2024-11-28 01:14:34 +08:00
inputs.nixpkgs.follows = "nixpkgs";
};
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.1";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
inputs.flake-utils.follows = "flake-utils";
inputs.flake-compat.follows = "flake-compat";
inputs.pre-commit-hooks-nix.follows = "git-hooks-nix";
};
# programs
niri-flake = {
url = "github:sodiboo/niri-flake";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs-stable.follows = "nixpkgs";
};
2024-12-14 01:55:51 +08:00
nixpkgs-terraform-providers-bin = {
url = "github:nix-community/nixpkgs-terraform-providers-bin";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-12-19 15:14:46 +08:00
caddy-nix.url = "github:vincentbernat/caddy-nix";
2024-11-28 01:14:34 +08:00
# libraries
rebmit.url = "github:rebmit/nix-exprs";
flake-utils.url = "github:numtide/flake-utils";
2024-12-15 22:33:35 +08:00
dns = {
url = "github:NickCao/dns.nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
2024-11-28 01:14:34 +08:00
# misc
flake-compat.follows = "rebmit/flake-compat";
};
}