ark/users/modules/psd/default.nix
2022-06-16 21:38:12 +03:00

25 lines
489 B
Nix

username: {pkgs, ...}: {
services.psd.enable = true;
security.sudo.extraRules = [
{
users = [username];
commands = [
{
command = "${pkgs.profile-sync-daemon}/bin/psd-overlay-helper";
options = ["SETENV" "NOPASSWD"];
}
];
}
];
home-manager.users.${username} = {
xdg.enable = true;
xdg.configFile."psd/psd.conf".text = ''
USE_OVERLAYFS="no"
BROWSERS=(chromium)
USE_BACKUPS="no"
'';
};
}