diff --git a/hosts/storage-2/configuration.nix b/hosts/storage-2/configuration.nix index 9cc111e..bfa5e41 100644 --- a/hosts/storage-2/configuration.nix +++ b/hosts/storage-2/configuration.nix @@ -4,6 +4,7 @@ imports = [ ./hardware-configuration.nix + ./em.nix ./firmware.nix ./mixcloud.nix ./syncthing.nix diff --git a/hosts/storage-2/em.nix b/hosts/storage-2/em.nix new file mode 100644 index 0000000..d08affa --- /dev/null +++ b/hosts/storage-2/em.nix @@ -0,0 +1,17 @@ +{ config, lib, pkgs, ... }: + +with lib; + +{ + users.users.data-em = { + group = "data-em"; + home = "/data/em"; + useDefaultShell = true; + isSystemUser = true; + }; + users.groups.data-em = {}; + + systemd.tmpfiles.rules = [ + "d /data/em - data-em data-em - -" + ]; +}