diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 0408194c9c5b..9dbde11fb72a 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -26308,6 +26308,12 @@ github = "teczito"; githubId = 15378834; }; + teeco123 = { + name = "Kacper Gajko"; + email = "kacper.gajko1@icloud.com"; + github = "teeco123"; + githubId = 116846689; + }; teh = { email = "tehunger@gmail.com"; github = "teh"; diff --git a/pkgs/servers/home-assistant/custom-lovelace-modules/kiosk-mode/package.nix b/pkgs/servers/home-assistant/custom-lovelace-modules/kiosk-mode/package.nix new file mode 100644 index 000000000000..3e5bc5e5381b --- /dev/null +++ b/pkgs/servers/home-assistant/custom-lovelace-modules/kiosk-mode/package.nix @@ -0,0 +1,58 @@ +{ + lib, + stdenvNoCC, + fetchFromGitHub, + fetchPnpmDeps, + pnpmConfigHook, + pnpm, + nodejs, +}: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "kiosk-mode"; + version = "10.0.1"; + + src = fetchFromGitHub { + owner = "nemesisre"; + repo = "kiosk-mode"; + tag = "v${finalAttrs.version}"; + hash = "sha256-y8ck4Y8tmZkUv35n78u+PRc+i6wF6iuhYbQJ7wQPVqE="; + }; + + pnpmDeps = fetchPnpmDeps { + inherit (finalAttrs) pname version src; + fetcherVersion = 3; + hash = "sha256-4pTI5d1Mn/GtbjkOAyemxXN2k2rRj8kYS4t2C6OLVSc="; + }; + + nativeBuildInputs = [ + pnpmConfigHook + pnpm + nodejs + ]; + + buildPhase = '' + runHook preBuild + + pnpm run build + + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + + mkdir -p "$out" + cp dist/* "$out" + + runHook postInstall + ''; + + meta = { + description = "Hides the Home Assistant header and/or sidebar"; + homepage = "https://github.com/NemesisRE/kiosk-mode"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ teeco123 ]; + platforms = lib.platforms.all; + }; +})