flocon/modules/programs/pcmanfm.nix

36 lines
920 B
Nix
Raw Permalink Normal View History

2025-02-11 18:03:13 +01:00
{
lib,
pkgs,
config,
...
}: let
inherit (lib) mkIf;
inherit (config.local.systemVars) username;
in {
config = mkIf config.local.profiles.desktop.enable {
hjem.users.${username} = {
packages = with pkgs; [
lxmenu-data
2025-02-11 18:20:43 +01:00
pcmanfm # builds with gtk3 by default, no need to override
2025-02-11 18:03:13 +01:00
shared-mime-info
];
};
2025-02-11 18:20:43 +01:00
services.gvfs.enable = true; # mount, trash, and other functionalities
systemd.user.services.pcmanfm = {
description = "PCManFM daemon";
documentation = ["https://github.com/lxde/pcmanfm"];
after = ["graphical-session.target"];
partOf = ["graphical-session.target"];
wantedBy = ["graphical-session.target"];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.pcmanfm}/bin/pcmanfm --daemon-mode";
Restart = "on-failure";
Slice = "background-graphical.slice";
};
};
2025-02-11 18:03:13 +01:00
};
}