manatee: Add storage group that owns /mnt/media/public

This commit is contained in:
Alexander Heldt
2025-05-03 08:06:13 +00:00
parent 99ebd8988d
commit 0ff38f405f
2 changed files with 23 additions and 1 deletions

View File

@@ -16,7 +16,10 @@
users.users.alex = {
isNormalUser = true;
description = "alex";
extraGroups = [ "wheel" ];
extraGroups = [
"wheel"
"storage"
];
};
environment.systemPackages = with pkgs; [

View File

@@ -3,6 +3,25 @@
imports = [ inputs.disko.nixosModules.disko ];
config = {
users.groups.storage = { };
users.users.storage = {
isSystemUser = true;
description = "storage";
group = "storage";
};
systemd.tmpfiles.settings = {
"10-media-public" = {
"/mnt/media/public" = {
d = {
user = "storage";
group = "storage";
mode = "0775";
};
};
};
};
networking.hostId = "0a9474e7"; # Required by ZFS
disko.devices = {
disk = {