simple nixos wrapper module
This commit is contained in:
parent
2341a204bb
commit
b11ab8a728
2 changed files with 105 additions and 5 deletions
15
flake.nix
15
flake.nix
|
|
@ -1,6 +1,8 @@
|
|||
{
|
||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
inputs.systems.url = "github:nix-systems/default-linux";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
systems.url = "github:nix-systems/default-linux";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
|
|
@ -34,10 +36,13 @@
|
|||
yoke-lite = pkgs.rustPlatform.callPackage ./nix/package.nix { };
|
||||
});
|
||||
nixosModules.default =
|
||||
{ pkgs, ... }:
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
imports = [ ./nix/module.nix ];
|
||||
programs.yoke.package = self.packages.${pkgs.system}.yoke;
|
||||
config = {
|
||||
imports = [ ./nix/module.nix ];
|
||||
wrapperPkg = self.packages.${pkgs.system}.yoke-lite;
|
||||
environment.systemPackages = [ self.packages.${pkgs.system}.yoke ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue