realised how self' is supposed to work and removed all stdenv bullshit

This commit is contained in:
2026-07-07 13:53:09 +01:00
parent dd8369d01e
commit d18e1476dd
8 changed files with 73 additions and 107 deletions

View File

@@ -1,21 +1,16 @@
{
self,
inputs,
wrappers,
moduleWithSystem,
...
}: {
flake.nixosModules.gotify-desktop = {
pkgs,
lib,
...
}: {
environment.systemPackages = [
self.packages.${pkgs.stdenv.hostPlatform.system}.gotify-desktop
flake.nixosModules.gotify-desktop = moduleWithSystem ({self', ...}: {
environment.systemPackages = with self'.packages; [
gotify-desktop
];
};
});
perSystem = {
pkgs,
lib,
self',
inputs',
...
}: {
packages = {
@@ -29,14 +24,9 @@
min_priority = 1
'';
in
inputs.wrappers.lib.wrapPackage ({
config,
wlib,
lib,
...
}: {
wrappers.lib.wrapPackage ({...}: {
inherit pkgs;
package = inputs.gotify-desktop.packages.${pkgs.stdenv.hostPlatform.system}.default;
package = inputs'.gotify-desktop.default;
flags = {
"-c" = config-file;
};