aboutsummaryrefslogtreecommitdiffstats
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix21
1 files changed, 20 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index 27215c7..76423fa 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,14 +1,27 @@
+# Flake for development environment for better-containers
+# Provides devShell for the browser extension and home-manager configuration
+
{
description = "Flake for development environment for better-containers.";
inputs = {
+ # Nixpkgs from nixos-unstable channel
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
+ # Home-manager for user environment configuration
+ home-manager = {
+ url = "github:nix-community/home-manager";
+ # Use the same nixpkgs as the main input
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
};
- outputs = { self, nixpkgs }:
+ outputs = { self, nixpkgs, home-manager }:
let
pkgs = nixpkgs.legacyPackages."x86_64-linux";
+ # Import all home-manager modules from ./modules
+ modules = import ./modules;
in {
+ # Development shell for the browser extension project
devShells."x86_64-linux".default = pkgs.mkShell {
packages = with pkgs; [
nodejs_22
@@ -17,5 +30,11 @@
vtsls
];
};
+
+ # Home-manager configuration for user arpit
+ homeConfigurations."arpit" = home-manager.lib.homeManagerConfiguration {
+ inherit pkgs;
+ modules = modules;
+ };
};
}