Compare commits

..

2 commits

Author SHA1 Message Date
bf41da3a33 Tidy overlay 2025-08-24 19:38:41 +08:00
2cbe48276e Enable zram for all hosts 2025-08-24 19:38:33 +08:00
3 changed files with 75 additions and 66 deletions

View file

@ -4,71 +4,20 @@
... ...
}: }:
with inputs; with inputs;
final: prev: { final: prev: let
# WebOne HTTP proxy. pkgsConfig = {
webone = prev.pkgs.callPackage ./packages/webone {}; inherit system;
config.allowUnfree = true;
# Yazi Gruvbox theme.
yazi-flavour-kanagawa-dragon = prev.pkgs.callPackage ./packages/yazi-flavour-kanagawa-dragon {};
# Dymo label printer drivers.
cups-dymo = prev.pkgs.callPackage ./packages/cups-dymo {};
# Latest protonmail-desktop
protonmail-desktop = (import nixpkgs-unstable {inherit system;}).protonmail-desktop;
# Latest Rockbox Utility.
rockbox-utility = (import nixpkgs-unstable {inherit system;}).rockbox-utility;
# Latest FluffyChat.
fluffychat =
(import nixpkgs-unstable
{
inherit system;
overlays = [
(final: prev: {
fluffychat = prev.fluffychat.overrideAttrs (prevAttrs: {
desktopItems = [
((builtins.elemAt prevAttrs.desktopItems 0).override {startupWMClass = "fluffychat";})
];
});
})
];
}).fluffychat;
# Latest Feishin.
feishin =
(import nixpkgs-pr-feishin {
inherit system;
overlays = [
(final: prev: {
feishin = prev.feishin.overrideAttrs (prevAttrs: rec {
pname = "feishin";
version = "0.18.0";
src = prev.fetchFromGitHub {
owner = "jeffvli";
repo = "feishin";
rev = "v${version}";
hash = "sha256-4gcS7Vd7LSpEByO2Hlk6nb8V2adBPh5XwWGCu2lwOA4=";
};
pnpmDeps = prev.pnpm_10.fetchDeps {
inherit pname version src;
hash = "sha256-1MGxrUcfvazxAubaYAsQuulUKm05opWOIC7oaLzjr7o=";
};
});
})
];
}).feishin;
# PrismLauncher with Temurin JRE;
prismlauncher = prev.prismlauncher.override {
jdks = [
prev.pkgs.temurin-jre-bin
];
}; };
pkgs-unstable = import nixpkgs-unstable pkgsConfig;
pkgs-pr-feishin = import nixpkgs-pr-feishin pkgsConfig;
in {
# My packages.
webone = prev.pkgs.callPackage ./packages/webone {}; # WebOne HTTP proxy.
yazi-flavour-kanagawa-dragon = prev.pkgs.callPackage ./packages/yazi-flavour-kanagawa-dragon {}; # Kanagawa theme for yazi.
cups-dymo = prev.pkgs.callPackage ./packages/cups-dymo {}; # Dymo label printer drivers.
# Kanagawa Dragon theme for tmux. # Kanagawa Dragon theme for tmux.
tmuxPlugins = tmuxPlugins =
prev.tmuxPlugins prev.tmuxPlugins
@ -86,6 +35,63 @@ with inputs;
}; };
}; };
## Unstable channel. ##
protonmail-desktop = pkgs-unstable.protonmail-desktop; # Protonmail desktop client.
rockbox-utility = pkgs-unstable.rockbox-utility; # Rockbox installer.
# Fluffychat.
fluffychat =
(pkgs-unstable
// {
overlay = [
(final: prev: {
fluffychat = prev.fluffychat.overrideAttrs (prevAttrs: {
desktopItems = [
((builtins.elemAt prevAttrs.desktopItems 0).override {startupWMClass = "fluffychat";})
];
});
})
];
}).fluffychat;
## Pull requests. ##
# Feishin music player.
feishin =
(pkgs-pr-feishin
// {
overlay = [
(final: prev: {
feishin = prev.feishin.overrideAttrs (prevAttrs: rec {
pname = "feishin";
version = "0.18.0";
src = prev.fetchFromGitHub {
owner = "jeffvli";
repo = "feishin";
rev = "v${version}";
hash = "sha256-4gcS7Vd7LSpEByO2Hlk6nb8V2adBPh5XwWGCu2lwOA4=";
};
pnpmDeps = prev.pnpm_10.fetchDeps {
inherit pname version src;
hash = "sha256-1MGxrUcfvazxAubaYAsQuulUKm05opWOIC7oaLzjr7o=";
};
});
})
];
}).feishin;
## Modifications ##
# PrismLauncher with Temurin JRE;
prismlauncher = prev.prismlauncher.override {
jdks = [
prev.pkgs.temurin-jre-bin
];
};
# Custom iosevka build. # Custom iosevka build.
iosevka = prev.iosevka.override { iosevka = prev.iosevka.override {
set = "Custom"; set = "Custom";

View file

@ -33,6 +33,12 @@ with lib; {
# Enable firmware updates. # Enable firmware updates.
services.fwupd.enable = true; services.fwupd.enable = true;
# Enable zram swap.
zramSwap = {
enable = true;
algorithm = "lz4";
};
# Set time zone. # Set time zone.
time.timeZone = "Australia/Perth"; time.timeZone = "Australia/Perth";

View file

@ -31,9 +31,6 @@ with lib; {
binfmt.emulatedSystems = ["aarch64-linux"]; binfmt.emulatedSystems = ["aarch64-linux"];
}; };
# Enable zram swap.
zramSwap.enable = true;
# Enable smart card support (for YubiKey). # Enable smart card support (for YubiKey).
services.pcscd.enable = true; services.pcscd.enable = true;