nixos-config/profiles/overlay.nix

108 lines
4.6 KiB
Nix
Raw Normal View History

2020-08-04 01:46:48 +04:00
{ pkgs, config, lib, inputs, ... }:
2020-09-08 03:07:50 +04:00
let
2022-12-14 23:51:59 +03:00
inherit (pkgs.hostPlatform) system;
2023-01-26 02:12:00 +03:00
master = import inputs.nixpkgs-master {
2021-04-02 21:50:33 +03:00
config = config.nixpkgs.config;
localSystem = { inherit system; };
2023-01-26 02:12:00 +03:00
};
stable = import inputs.nixpkgs-stable {
2022-11-21 02:54:56 +03:00
config = config.nixpkgs.config;
localSystem = { inherit system; };
2023-01-26 02:12:00 +03:00
};
2022-03-22 06:01:10 +03:00
roundcube-plugins = import ./packages/roundcube-plugins/default.nix;
2020-09-08 03:07:50 +04:00
in
2021-10-26 17:10:21 +03:00
with lib; {
2019-08-27 23:41:02 +04:00
nixpkgs.overlays = [
2022-04-22 02:14:31 +03:00
# inputs.nixpkgs-wayland.overlay
2022-01-29 00:41:41 +03:00
inputs.nix-alien.overlay
2022-04-22 02:15:29 +03:00
inputs.nur.overlay
2022-11-21 02:53:20 +03:00
# inputs.nixos-rocm.overlay
2022-03-22 06:01:10 +03:00
roundcube-plugins
2022-12-07 22:05:00 +03:00
(final: prev:
2020-02-05 04:30:49 +04:00
rec {
2020-08-04 01:46:48 +04:00
inherit inputs;
2020-02-10 20:06:45 +04:00
2022-12-07 22:05:00 +03:00
android-emulator = final.callPackage ./packages/android-emulator.nix { };
2022-04-22 02:15:29 +03:00
arkenfox-userjs = pkgs.callPackage ./packages/arkenfox-userjs.nix { arkenfox-repo = inputs.arkenfox-userjs; };
2022-11-21 02:54:56 +03:00
a2ln = pkgs.callPackage ./packages/a2ln.nix { };
2022-07-07 22:46:27 +03:00
bibata-cursors-tokyonight = pkgs.callPackage ./packages/bibata-cursors-tokyonight.nix { };
2021-09-28 01:47:42 +03:00
ceserver = pkgs.callPackage ./packages/ceserver.nix { };
2022-08-05 21:10:22 +03:00
hyprpaper = pkgs.callPackage ./packages/hyprpaper.nix { src = inputs.hyprpaper; };
2022-01-29 00:51:09 +03:00
kitti3 = pkgs.python3Packages.callPackage ./packages/kitti3.nix { };
2022-08-31 11:37:26 +03:00
microbin = pkgs.callPackage ./packages/microbin-pkg { };
2021-09-28 01:47:42 +03:00
mpris-ctl = pkgs.callPackage ./packages/mpris-ctl.nix { };
2022-07-06 00:14:26 +03:00
parsec = pkgs.callPackage ./packages/parsec.nix { };
2023-01-26 00:23:55 +03:00
protonhax = pkgs.callPackage ./packages/protonhax.nix { };
2021-10-24 23:13:51 +03:00
reshade-shaders = pkgs.callPackage ./packages/reshade-shaders.nix { };
2022-10-21 14:08:45 +03:00
rosepine-gtk-theme = pkgs.callPackage ./packages/rosepine-gtk-theme.nix { };
rosepine-icon-theme = pkgs.callPackage ./packages/rosepine-icon-theme.nix { };
2023-01-26 00:36:27 +03:00
# seadrive-fuse = pkgs.callPackage ./packages/seadrive-fuse.nix { };
2021-11-05 21:45:23 +03:00
tidal-dl = pkgs.callPackage ./packages/tidal-dl.nix { };
2022-07-06 00:14:26 +03:00
tokyonight-gtk-theme = pkgs.callPackage ./packages/tokyonight-gtk-theme.nix { };
2022-07-07 22:46:27 +03:00
tokyonight-icon-theme = pkgs.callPackage ./packages/tokyonight-icon-theme.nix { };
2021-04-02 21:50:33 +03:00
vscode = master.vscode;
2021-09-07 09:50:47 +03:00
vscode-fhs = master.vscode-fhs;
2021-11-05 21:45:23 +03:00
xonar-fp = pkgs.callPackage ./packages/xonar-fp.nix { };
youtube-to-mpv = pkgs.callPackage ./packages/youtube-to-mpv.nix { term = config.defaultApplications.term.cmd; };
2022-02-11 14:07:03 +03:00
vivaldi = master.vivaldi;
2022-12-07 22:05:00 +03:00
steam = prev.steam.override {
extraPkgs = pkgs: with pkgs; [ mono libkrb5 keyutils ];
};
2022-11-21 02:53:20 +03:00
waybar = inputs.nixpkgs-wayland.packages.${system}.waybar.overrideAttrs (old: {
2022-12-07 22:05:00 +03:00
preBuildPhase = ''
sed -i 's/zext_workspace_handle_v1_activate(workspace_handle_);/const std::string command = "hyprctl dispatch workspace " + name_;\n\tsystem(command.c_str());/g' src/modules/wlr/workspace_manager.cpp
'';
2022-08-18 18:00:14 +03:00
mesonFlags = old.mesonFlags ++ [
"-Dexperimental=true"
];
});
2022-10-08 04:38:45 +03:00
waydroid-script = pkgs.callPackage ./packages/waydroid-script.nix { };
2022-12-07 22:05:00 +03:00
wine = prev.wineWowPackages.staging;
qbittorrent = prev.qbittorrent.overrideAttrs (old: rec {
2022-08-31 01:15:53 +03:00
version = "enchanced-edition";
src = inputs.qbittorrent-ee;
});
2022-08-18 18:00:14 +03:00
2022-08-31 11:37:26 +03:00
nix = inputs.nix.packages.${system}.default.overrideAttrs (oa: {
doInstallCheck = false;
2022-12-07 22:13:34 +03:00
patches = [ ./nix/nix.patch ./nix/doas.patch ] ++ oa.patches or [ ];
2022-08-31 11:37:26 +03:00
});
2022-11-21 02:53:20 +03:00
2022-12-07 22:05:00 +03:00
nix-direnv = inputs.nix-direnv.packages.${system}.default.override { pkgs = final; };
# For nix-direnv
nixFlakes = final.nix;
pass-secret-service = prev.pass-secret-service.overrideAttrs (_: {
2022-11-21 02:53:20 +03:00
installCheckPhase = null;
postInstall = ''
mkdir -p $out/share/{dbus-1/services,xdg-desktop-portal/portals}
cat > $out/share/dbus-1/services/org.freedesktop.secrets.service << EOF
[D-BUS Service]
Name=org.freedesktop.secrets
Exec=/run/current-system/sw/bin/systemctl --user start pass-secret-service
EOF
cp $out/share/dbus-1/services/{org.freedesktop.secrets.service,org.freedesktop.impl.portal.Secret.service}
cat > $out/share/xdg-desktop-portal/portals/pass-secret-service.portal << EOF
[portal]
DBusName=org.freedesktop.secrets
Interfaces=org.freedesktop.impl.portal.Secrets
UseIn=gnome
EOF
'';
});
2022-12-10 02:23:25 +03:00
grub2 = prev.callPackage ./packages/grub { };
2022-12-07 02:27:22 +03:00
2023-01-13 04:03:15 +03:00
narodmon-py = prev.writers.writePython3Bin "temp.py" {
libraries = with prev.python3Packages; [ requests ];
2022-12-07 02:27:22 +03:00
} ./packages/narodmon-py.nix;
2020-02-05 04:30:49 +04:00
}
)
2019-08-27 23:41:02 +04:00
];
2020-02-05 04:30:49 +04:00
2020-08-04 01:46:48 +04:00
nixpkgs.config = {
allowUnfree = true;
2020-09-04 23:32:11 +04:00
android_sdk.accept_license = true;
2020-08-04 01:46:48 +04:00
};
2020-02-15 03:15:10 +04:00
}