Skip to content

nixos/snapraid: no snapshot feature option available #597071

Backlog

Description

@vacy

Nixpkgs version

  • 26.05 - snapraid v15 pulled from unstable

Describe the bug

snapraid v15 supports syncing from read-only snapshots.
BTRFS needs CAP_SYS_ADMIN to delete subvolumes.

Therefore one can not put "snapshot" config right into .extraConfig option.
mount option on the related volumes "user_subvol_rm_allowed" does not help as snapraid only creates read-only snapshots.

Source: https://www.snapraid.it/manual#sec7-7

Steps to reproduce

use btrfs and add snapshot to .extraConfig option

Expected behaviour

.snapshot option available on the nixos module.
that option should then allow CAP_SYS_ADMIN on snapraid-sync

Additional context

I would like to propose a PR, but I am aware that granting further CAP_ permissions is not done lightly.
Therefore I would like to confirm if that PR would be granted or not.

System metadata

  • system: "x86_64-linux"
  • host os: Linux 7.3.7, NixOS, 26.05 (Yarara), 26.05.20261201.8c5f4a7
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.34.9
  • nixpkgs: /nix/store/dak5dcj59xryf5m6009fmhyq0abl0ri1-source

Notify maintainers

@makefu

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Activity

  1. added
    0.kind: bug
    6.topic: nixos
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bug6.topic: nixos

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions