2023-10-08 14:57:57 +00:00
|
|
|
{
|
|
|
|
description = "My NixOS configuration";
|
|
|
|
|
|
|
|
inputs = {
|
2024-11-30 12:14:46 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
2023-11-30 15:59:49 +00:00
|
|
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
2023-10-09 09:25:17 +00:00
|
|
|
nur.url = "github:nix-community/NUR";
|
2024-11-30 12:14:46 +00:00
|
|
|
stylix.url = "github:pizzapim/stylix/master";
|
2024-10-26 18:32:37 +00:00
|
|
|
treefmt-nix.url = "github:numtide/treefmt-nix";
|
2024-11-07 18:10:08 +00:00
|
|
|
nixos-facter-modules.url = "github:numtide/nixos-facter-modules";
|
2024-11-11 20:40:36 +00:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2024-11-30 21:48:30 +00:00
|
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
2024-11-30 22:22:16 +00:00
|
|
|
colmena.url = "github:zhaofengli/colmena";
|
2024-09-24 20:19:37 +00:00
|
|
|
|
2024-10-30 20:18:18 +00:00
|
|
|
git-hooks = {
|
2024-10-28 11:19:36 +00:00
|
|
|
url = "github:cachix/git-hooks.nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
|
|
};
|
|
|
|
|
2024-09-24 20:19:37 +00:00
|
|
|
nix-index-database = {
|
|
|
|
url = "github:nix-community/nix-index-database";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-02-18 21:05:23 +00:00
|
|
|
|
2023-10-08 16:03:14 +00:00
|
|
|
home-manager = {
|
2024-11-30 12:14:46 +00:00
|
|
|
url = "github:nix-community/home-manager?ref=release-24.11";
|
2023-10-08 16:03:14 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-02-18 21:05:23 +00:00
|
|
|
|
2024-01-29 20:05:48 +00:00
|
|
|
lanzaboote = {
|
|
|
|
url = "github:nix-community/lanzaboote/v0.3.0";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-05-26 15:12:52 +00:00
|
|
|
|
|
|
|
disko = {
|
|
|
|
url = "github:nix-community/disko";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-06-09 18:31:39 +00:00
|
|
|
|
|
|
|
nixos-artwork = {
|
|
|
|
type = "git";
|
|
|
|
url = "https://github.com/NixOS/nixos-artwork.git";
|
|
|
|
flake = false;
|
|
|
|
};
|
2024-06-15 14:20:03 +00:00
|
|
|
|
|
|
|
sops-nix = {
|
|
|
|
url = "github:Mic92/sops-nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-10-26 09:59:32 +00:00
|
|
|
|
|
|
|
nixos-cosmic = {
|
|
|
|
url = "github:lilyinstarlight/nixos-cosmic";
|
2024-10-27 11:23:20 +00:00
|
|
|
inputs.nixpkgs-stable.follows = "nixpkgs-unstable";
|
2024-10-26 09:59:32 +00:00
|
|
|
};
|
2023-10-08 14:57:57 +00:00
|
|
|
};
|
2023-11-05 17:49:51 +00:00
|
|
|
|
2024-11-11 21:29:39 +00:00
|
|
|
outputs = inputs @ {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
flake-utils,
|
2024-11-30 22:22:16 +00:00
|
|
|
colmena,
|
2024-11-11 21:29:39 +00:00
|
|
|
...
|
|
|
|
}:
|
|
|
|
(flake-utils.lib.meld inputs [
|
2024-11-11 20:40:36 +00:00
|
|
|
./packages.nix
|
|
|
|
./formatter.nix
|
|
|
|
./nixos-configurations.nix
|
|
|
|
./checks.nix
|
|
|
|
./colmena.nix
|
2024-11-11 21:29:39 +00:00
|
|
|
])
|
|
|
|
// flake-utils.lib.eachDefaultSystem (system: {
|
|
|
|
devShells.default = nixpkgs.legacyPackages.${system}.mkShell {
|
|
|
|
inherit (self.checks.${system}.pre-commit-check) shellHook;
|
|
|
|
buildInputs =
|
2024-11-30 22:22:16 +00:00
|
|
|
self.checks.${system}.pre-commit-check.enabledPackages ++ [colmena.defaultPackage.${system}];
|
2024-11-11 21:29:39 +00:00
|
|
|
};
|
|
|
|
});
|
2023-10-08 14:57:57 +00:00
|
|
|
}
|