diff --git a/overlay.nix b/overlay.nix index 195692d..b00903a 100644 --- a/overlay.nix +++ b/overlay.nix @@ -4,19 +4,70 @@ ... }: with inputs; - final: prev: let - pkgsConfig = { - inherit system; - config.allowUnfree = true; - }; + final: prev: { + # WebOne HTTP proxy. + webone = prev.pkgs.callPackage ./packages/webone {}; - 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. + # 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 + ]; + }; # Kanagawa Dragon theme for tmux. tmuxPlugins = @@ -35,63 +86,6 @@ 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. iosevka = prev.iosevka.override { set = "Custom"; diff --git a/suites/default.nix b/suites/default.nix index 789071c..38529df 100644 --- a/suites/default.nix +++ b/suites/default.nix @@ -33,12 +33,6 @@ with lib; { # Enable firmware updates. services.fwupd.enable = true; - # Enable zram swap. - zramSwap = { - enable = true; - algorithm = "lz4"; - }; - # Set time zone. time.timeZone = "Australia/Perth"; diff --git a/suites/desktop/default.nix b/suites/desktop/default.nix index e117819..5af203f 100755 --- a/suites/desktop/default.nix +++ b/suites/desktop/default.nix @@ -31,6 +31,9 @@ with lib; { binfmt.emulatedSystems = ["aarch64-linux"]; }; + # Enable zram swap. + zramSwap.enable = true; + # Enable smart card support (for YubiKey). services.pcscd.enable = true;