How to mount other nvme/hdd partition

  security.polkit.enable = true;
  services.devmon.enable = true;
  services.gvfs.enable = true;
  services.udisks2.enable = true;

i can see all of my partaion on filemanager but if i try to open dolphin says " An error occurred while accessing ‘boot’, the system responded: Cannot request authentication for this action. The PolicyKit authentication system appears to be not available.: Not authorized to perform operation"

pcmanfm says " Not authorized to preform operation"

if you need to see my whole config configuration.nix · main · kazi ar rafi / nixos_config · GitLab
thanks for reading this long :smiley:

security.polkit.enable doesn’t actually start a polkit agent, so if you’re using a minimalist environment and not a DE then that might be the issue. Does it work after starting "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"? (I have it in a systemd user service.)

i also added “polkit_gnome” on my nix config and rebuild . didnt happen anything new…

An error occurred while accessing 'Basic data partition', the system responded: Cannot request authentication for this action. The PolicyKit authentication system appears to be not available.: Not authorized to perform operation

An error occurred while accessing 'storage', the system responded: Cannot request authentication for this action. The PolicyKit authentication system appears to be not available.: Not authorized to perform operation

Not just having the package installed, but having it running. It looks like you fixed it in Update configuration.nix (7472c90d) · Commits · kazi ar rafi / nixos_config · GitLab. If you ever start using home-manager, something like wayland.windowManager.sway.config.startup = [{ command = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; }] also works, or a similar systemd user service.

1 Like

systemd = {
user.services.polkit-gnome-authentication-agent-1 = {
description = “polkit-gnome-authentication-agent-1”;
wantedBy = [ “graphical-session.target” ];
wants = [ “graphical-session.target” ];
after = [ “graphical-session.target” ];
serviceConfig = {
Type = “simple”;
ExecStart = “${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1”;
Restart = “on-failure”;
RestartSec = 1;
TimeoutStopSec = 10;
};
};
};
When I rebuild and reboot it didn’t work but when I reinstall whole nixos ( this time I used gnome using kde iso only calamaris installer can handle install on encrypted partition I mean existing encrypted partition) now everything working fine,

I don’t know why nisos shouldn’t conflict package