nixpak shenanigans (I have no idea what I'm doing)

This commit is contained in:
jacekpoz 2023-07-30 01:12:40 +02:00
parent 2857f19e43
commit 59bb53f16a
3 changed files with 22 additions and 3 deletions

View file

@ -40,5 +40,10 @@
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpak = {
url = "github:max-privatevoid/nixpak";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}

View file

@ -1,12 +1,18 @@
{
inputs,
pkgs,
self,
...
}: {
}: let
mkNixPak = inputs.nixpak.lib.nixpak {
inherit (pkgs) lib;
inherit pkgs;
};
in {
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
extraSpecialArgs = {inherit inputs self;}; # let home-manager access inputs and self
extraSpecialArgs = {inherit inputs self mkNixPak;}; # let home-manager access inputs and self
users = {
jacek = import ./jacek;
#chmura = import ./chmura;

View file

@ -1,9 +1,17 @@
{
config,
lib,
inputs,
pkgs,
mkNixPak,
...
}: {
}: let
sandboxed-firefox = mkNixPak {
config = { sloth, ... }: {
app.package = pkgs.firefox-devedition;
};
};
in {
config = let
buildFirefoxXpiAddon = lib.makeOverridable ({
stdenv ? pkgs.stdenv,