nixos module

This commit is contained in:
Aaron Manning
2026-09-15 18:31:49 +10:00
parent d3f3403523
commit 5c548b909e
2 changed files with 37 additions and 4 deletions
+11 -4
View File
@@ -6,9 +6,16 @@
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
in {
packages.${system}.default = nixpkgs.legacyPackages.${system}.callPackage ./. { };
let
system = "x86_64-linux";
package = nixpkgs.legacyPackages.${system}.callPackage ./. { };
in {
packages.${system}.default = package;
nixosModules.default = {
imports = [ ./module.nix ];
_module.args.package = package;
};
};
}