Added local custom packages repo

This commit is contained in:
2026-02-18 11:58:19 +00:00
parent 22bc6e1411
commit 973d334944
5 changed files with 55 additions and 19 deletions

View File

@@ -7,23 +7,7 @@
unstablePkgs,
...
}: let
# Patch vivaldi to ensure reliability on wayland
vivaldi-wayland = pkgs.symlinkJoin {
name = "vivaldi-wayland";
paths = [pkgs.vivaldi];
buildInputs = [pkgs.makeWrapper];
postBuild = ''
wrapProgram $out/bin/vivaldi \
--set NIXOS_OZONE_WL 1 \
--add-flags "--ozone-platform=wayland --enable-features=UseOzonePlatform --ozone-platform-hint=auto"
'';
};
python = pkgs.python314.withPackages (
python-pkgs: [
python-pkgs.pkginfo
python-pkgs.setuptools
]
);
myPkgs = import ./packages/my_pkgs.nix {inherit pkgs;};
in {
home.packages = [
pkgs.bitwarden-desktop
@@ -64,13 +48,14 @@ in {
unstablePkgs.podman-desktop
unstablePkgs.podman-tui
pkgs.popsicle
python
myPkgs.python
myPkgs.rbw-autofill
unstablePkgs.ruff
pkgs.smile
pkgs.sshs
unstablePkgs.uv
pkgs.vial
vivaldi-wayland
myPkgs.vivaldi-wayland
unstablePkgs.visidata
pkgs.vivaldi-ffmpeg-codecs
pkgs.warpinator

View File

@@ -0,0 +1,5 @@
{pkgs}: {
python = pkgs.callPackage ./python.nix {};
vivaldi-wayland = pkgs.callPackage ./vivaldi_wayland.nix {};
rbw-autofill = pkgs.callPackage ./rbw_autofill.nix {};
}

View File

@@ -0,0 +1,7 @@
{pkgs}:
pkgs.python314.withPackages (
python-pkgs: [
python-pkgs.pkginfo
python-pkgs.setuptools
]
)

View File

@@ -0,0 +1,28 @@
{pkgs}:
pkgs.writeShellApplication {
name = "rbw-autofill";
runtimeInputs = [pkgs.bash pkgs.libsecret pkgs.zenity];
text = ''
#!/usr/bin/env bash
echo "OK"
while read -r line; do
if [[ "$line" == "GETPIN" ]]; then
pass=$(secret-tool lookup application rbw 2>/dev/null)
if [[ -z "$pass" ]]; then
pass=$(zenity --password --title="rbw Setup" --text="Enter Bitwarden Master Password to save to Keyring:")
if [[ -n "$pass" ]]; then
printf "%s" "$pass" | secret-tool store --label="rbw" application rbw
else
echo "ERR 100 Password retrieval cancelled"
exit 1
fi
fi
printf "D %s\n" "$pass"
echo "OK"
exit 0
fi
echo "OK"
done
'';
}

View File

@@ -0,0 +1,11 @@
{pkgs}:
pkgs.symlinkJoin {
name = "vivaldi-wayland";
paths = [pkgs.vivaldi];
buildInputs = [pkgs.makeWrapper];
postBuild = ''
wrapProgram $out/bin/vivaldi \
--set NIXOS_OZONE_WL 1 \
--add-flags "--ozone-platform=wayland --enable-features=UseOzonePlatform --ozone-platform-hint=auto"
'';
}