mirror of
https://github.com/Cian-H/My_NixOS_Config.git
synced 2026-02-20 07:08:02 +00:00
Added local custom packages repo
This commit is contained in:
@@ -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
|
||||
|
||||
5
home-manager/worklaptop/packages/my_pkgs.nix
Normal file
5
home-manager/worklaptop/packages/my_pkgs.nix
Normal 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 {};
|
||||
}
|
||||
7
home-manager/worklaptop/packages/python.nix
Normal file
7
home-manager/worklaptop/packages/python.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{pkgs}:
|
||||
pkgs.python314.withPackages (
|
||||
python-pkgs: [
|
||||
python-pkgs.pkginfo
|
||||
python-pkgs.setuptools
|
||||
]
|
||||
)
|
||||
28
home-manager/worklaptop/packages/rbw_autofill.nix
Normal file
28
home-manager/worklaptop/packages/rbw_autofill.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
11
home-manager/worklaptop/packages/vivaldi_wayland.nix
Normal file
11
home-manager/worklaptop/packages/vivaldi_wayland.nix
Normal 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"
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user