Use overlays instead of patched packages
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -5,13 +5,17 @@
|
|||||||
let
|
let
|
||||||
userConfig = config.users.users.${username};
|
userConfig = config.users.users.${username};
|
||||||
hmConfig = config.home-manager.users.${username};
|
hmConfig = config.home-manager.users.${username};
|
||||||
android-tools = pkgs.android-tools.overrideAttrs (oldAttrs: {
|
|
||||||
patches = oldAttrs.patches or [ ] ++ [ ./env-var-user-home.patch ];
|
|
||||||
});
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.udev.packages = with pkgs; [ android-udev-rules ];
|
nixpkgs.overlays = [
|
||||||
environment.systemPackages = [ android-tools ];
|
(final: prev: {
|
||||||
|
android-tools = prev.android-tools.overrideAttrs (oldAttrs: {
|
||||||
|
patches = oldAttrs.patches or [ ] ++ [ ./env-var-user-home.patch ];
|
||||||
|
});
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.adb.enable = true;
|
||||||
services.gvfs.enable = true;
|
services.gvfs.enable = true;
|
||||||
|
|
||||||
users.users.${username}.extraGroups = [ "adbusers" ];
|
users.users.${username}.extraGroups = [ "adbusers" ];
|
||||||
|
@@ -10,14 +10,19 @@
|
|||||||
let
|
let
|
||||||
userConfig = config.users.users.${username};
|
userConfig = config.users.users.${username};
|
||||||
hmConfig = config.home-manager.users.${username};
|
hmConfig = config.home-manager.users.${username};
|
||||||
qalculate-gtk = pkgs.qalculate-gtk.overrideAttrs (oldAttrs: {
|
|
||||||
patches = oldAttrs.patches or [ ] ++ [ ./skip-save-prefs.patch ];
|
|
||||||
});
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(final: prev: {
|
||||||
|
qalculate-gtk = prev.qalculate-gtk.overrideAttrs (oldAttrs: {
|
||||||
|
patches = oldAttrs.patches or [ ] ++ [ ./skip-save-prefs.patch ];
|
||||||
|
});
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
home-manager.users.${username} = {
|
home-manager.users.${username} = {
|
||||||
home = {
|
home = {
|
||||||
packages = [ qalculate-gtk ];
|
packages = with pkgs; [ qalculate-gtk ];
|
||||||
persistence."/cache${userConfig.home}".files = [
|
persistence."/cache${userConfig.home}".files = [
|
||||||
"${hmConfig.xdg.relativeConfigHome}/qalculate/qalculate-gtk.history"
|
"${hmConfig.xdg.relativeConfigHome}/qalculate/qalculate-gtk.history"
|
||||||
];
|
];
|
||||||
@@ -44,7 +49,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
bind = [ ", XF86Calculator, exec, ${lib.meta.getExe qalculate-gtk}" ];
|
bind = [ ", XF86Calculator, exec, ${lib.meta.getExe pkgs.qalculate-gtk}" ];
|
||||||
windowrulev2 = [ "float, class:(qalculate-gtk)" ];
|
windowrulev2 = [ "float, class:(qalculate-gtk)" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user