manatee: Add storage group that owns /mnt/media/public
This commit is contained in:
@@ -16,7 +16,10 @@
|
|||||||
users.users.alex = {
|
users.users.alex = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "alex";
|
description = "alex";
|
||||||
extraGroups = [ "wheel" ];
|
extraGroups = [
|
||||||
|
"wheel"
|
||||||
|
"storage"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|||||||
@@ -3,6 +3,25 @@
|
|||||||
imports = [ inputs.disko.nixosModules.disko ];
|
imports = [ inputs.disko.nixosModules.disko ];
|
||||||
|
|
||||||
config = {
|
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
|
networking.hostId = "0a9474e7"; # Required by ZFS
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk = {
|
disk = {
|
||||||
|
|||||||
Reference in New Issue
Block a user