nixos-laptop/flake.nix

77 lines
2 KiB
Nix
Raw Normal View History

2023-10-08 14:57:57 +00:00
{
description = "My NixOS configuration";
inputs = {
2024-06-04 19:21:38 +00:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
2023-10-09 09:25:17 +00:00
nur.url = "github:nix-community/NUR";
stylix.url = "github:pizzapim/stylix/release-24.05";
2024-10-26 18:32:37 +00:00
treefmt-nix.url = "github:numtide/treefmt-nix";
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-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";
};
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-06-04 19:21:38 +00:00
url = "github:nix-community/home-manager?ref=release-24.05";
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";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
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
outputs = inputs @ {
self,
nixpkgs,
flake-utils,
...
}:
(flake-utils.lib.meld inputs [
2024-11-11 20:40:36 +00:00
./packages.nix
./formatter.nix
./nixos-configurations.nix
./checks.nix
./colmena.nix
])
// flake-utils.lib.eachDefaultSystem (system: {
devShells.default = nixpkgs.legacyPackages.${system}.mkShell {
inherit (self.checks.${system}.pre-commit-check) shellHook;
buildInputs =
self.checks.${system}.pre-commit-check.enabledPackages
++ (with nixpkgs.legacyPackages.${system}; [colmena]);
};
});
2023-10-08 14:57:57 +00:00
}