ark/users/modules/psd/default.nix

25 lines
489 B
Nix
Raw Normal View History

2022-06-16 21:38:12 +03:00
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"
'';
};
}