mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
add spacefm
This commit is contained in:
parent
df4b64e180
commit
3c376038a8
@ -25,6 +25,7 @@
|
|||||||
../../modules/wallpaper.nix
|
../../modules/wallpaper.nix
|
||||||
|
|
||||||
../../modules/programs.nix
|
../../modules/programs.nix
|
||||||
|
../../modules/spaceFM.nix
|
||||||
../../modules/nextcloud-integration.nix
|
../../modules/nextcloud-integration.nix
|
||||||
../../modules/syncthing.nix
|
../../modules/syncthing.nix
|
||||||
../../modules/signal-desktop.nix
|
../../modules/signal-desktop.nix
|
||||||
|
25
modules/spaceFM.nix
Normal file
25
modules/spaceFM.nix
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
users.users.yoda = {
|
||||||
|
packages = with pkgs; [
|
||||||
|
spaceFM
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# spaceFM won't start on Wayland except setting GDK_BACKEND=x11.
|
||||||
|
# See https://github.com/NixOS/nixpkgs/issues/275426
|
||||||
|
nixpkgs.overlays = lib.mkIf (config.services.xserver.displayManager.gdm.wayland) [
|
||||||
|
(final: prev: {
|
||||||
|
spaceFM = prev.spaceFM.overrideAttrs (oldAttrs: {
|
||||||
|
postInstall = (oldAttrs.postInstall or "") + ''
|
||||||
|
substituteInPlace $out/share/applications/spacefm.desktop \
|
||||||
|
--replace "Exec=spacefm" "Exec=env GDK_BACKEND=x11 spacefm"
|
||||||
|
substituteInPlace $out/share/applications/spacefm-find.desktop \
|
||||||
|
--replace "Exec=spacefm" "Exec=env GDK_BACKEND=x11 spacefm"
|
||||||
|
substituteInPlace $out/share/applications/spacefm-folder-handler.desktop \
|
||||||
|
--replace "Exec=spacefm" "Exec=env GDK_BACKEND=x11 spacefm"
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user