feat: initial flake setup with flake-parts

Sets up a basic flake with flake-parts for modularity.
This commit is contained in:
Mohammad Rafiq 2025-07-02 22:04:42 +08:00
parent c81d8dfc9f
commit 6c59366f8f
No known key found for this signature in database
2 changed files with 81 additions and 0 deletions

20
flake.nix Normal file
View file

@ -0,0 +1,20 @@
{
inputs = {
# nixos-unstable provides a binary cache for all packages.
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# flake-parts lets us define flake modules.
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs =
inputs@{ self, ... }:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ inputs.flake-parts.flakeModules.modules ];
systems = [ "x86_64-linux" ];
perSystem =
{ pkgs, ... }:
{
packages.default = pkgs.hello;
};
};
}