programs/pcmanfm: add daemon service
This commit is contained in:
parent
749de574a0
commit
d14fc3c13d
1 changed files with 16 additions and 2 deletions
|
@ -11,11 +11,25 @@ in {
|
|||
hjem.users.${username} = {
|
||||
packages = with pkgs; [
|
||||
lxmenu-data
|
||||
pcmanfm
|
||||
pcmanfm # builds with gtk3 by default, no need to override
|
||||
shared-mime-info
|
||||
];
|
||||
};
|
||||
|
||||
services.gvfs.enable = true; # Mount, trash, and other functionalities
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue