NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.11k stars 14.15k forks source link

kdenetwork-filesharing still does't work in dolphin #352138

Open Ilya-JBR opened 2 weeks ago

Ilya-JBR commented 2 weeks ago

Well I've been trying to troubleshoot this for 4 hour now. The issue is when going to properties of a folder and trying to share it in dolphin results in dolphin asking you to setup samba password and keeps doing so even after doing it. there is no obvious errors neither when running dolphin in debug mode or in samba's journalctl.

  1. launch dolphin and right click a folder
  2. choose "properties"
  3. click on the "share" tab
  4. it asks you to create a new password
  5. click on create samba password
  6. type your password
  7. click apply
  8. nothing happens

config:

nix-channel: unstable;

services = {
    samba = {
      enable = true;
      openFirewall = true;
      nsswins = true;
      package = pkgs.samba4Full;
      settings = {
        global = {
          "server string" = "%s (Samba, NixOS)";
          security = "user";
          "server role" = "standalone server";
          "passwd program" = "/run/wrappers/bin/passwd %u";
          "map to guest" = "bad user";
          "encrypt passwords" = "true";
          "usershare max shares" = "100";
          "usershare allow guests" = "yes";
          "invalid users" = [ ];
        };
        Shared = {
          path = "/var/lib/samba/usershares";
          writable = "true";
          browseable = "yes";
          comment = "hello world!";
          "guest ok" = "yes";
          "force user" = "allen";
        };
      };
    };

    avahi = {
      enable = true;
      openFirewall = true;
      nssmdns4 = true;
      publish = {
        enable = true;
        addresses = true;
        domain = true;
        hinfo = true;
        userServices = true;
        workstation = true;
      };
      extraServiceFiles = {
        smb = ''
          <?xml version="1.0" standalone='no'?><!--*-nxml-*-->
          <!DOCTYPE service-group SYSTEM "avahi-service.dtd">
          <service-group>
          <name replace-wildcards="yes">%h</name>
          <service>
          <type>_smb._tcp</type>
          <port>445</port>
          </service>
          </service-group>
          '';
      };
    };
};
users.users.allen = {
  extraGroups = [
    "sambashare"
  ]; 
  packages = with pkgs; [
     ...
     kdePackages.kdenetwork-filesharing
     kdePackages.dolphin-plugins
     samba4Full
    ...
  ];
}

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.58, NixOS, 24.11 (Vicuna), 24.11pre696981.18536bf04cd7`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.9`
 - channels(root): `"nixos, stable-24.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
sudo nix-channel --list
nixos https://channels.nixos.org/nixos-unstable
stable https://nixos.org/channels/nixos-24.05

Add a :+1: reaction to issues you find important.

Ilya-JBR commented 2 weeks ago

well I can't get the formatting fixed

Ilya-JBR commented 2 weeks ago

Screencast_20241029_200146.webm