nixos module
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user