simple nixos wrapper module

This commit is contained in:
atagen 2025-11-09 01:30:04 +11:00
parent 2341a204bb
commit 42b18f3ee3
2 changed files with 99 additions and 5 deletions

View file

@ -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 ];
};
};
};
}