feat: make a complete nix module

This commit is contained in:
2025-07-06 05:06:54 +02:00
parent 6cac2f91ed
commit be6e039a9b
4 changed files with 64 additions and 11 deletions

View File

@@ -20,7 +20,13 @@
lidm = pkgs.callPackage assets/pkg/nix/lidm.nix {
inherit pkgs;
config = { inherit version; src = ./.; };
lib = pkgs.lib;
config = {
inherit version;
src = ./.;
xsessions = null;
wayland-sessions = null;
};
};
in
rec {
@@ -28,5 +34,7 @@
defaultPackage = lidm;
devShell = pkgs.mkShell { buildInputs = lidm.nativeBuildInputs ++ [ pkgs.clang-tools ]; };
}
);
) // {
nixosModules.lidm = assets/pkg/nix/module.nix;
};
}