diff --git a/nixos/machines/chungus/configuration.nix b/nixos/machines/chungus/configuration.nix index fa604ea..7f35f6c 100644 --- a/nixos/machines/chungus/configuration.nix +++ b/nixos/machines/chungus/configuration.nix @@ -88,5 +88,10 @@ #home-manager.users.mailUser.home.stateVersion = "22.11"; + system.custom.mainUser = { + enable = true; + userName = "palo"; + }; + users.users.mainUser.extraGroups = [ "media" ]; } diff --git a/nixos/machines/chungus/media-share.nix b/nixos/machines/chungus/media-share.nix index 4364a57..6b67ce8 100644 --- a/nixos/machines/chungus/media-share.nix +++ b/nixos/machines/chungus/media-share.nix @@ -24,5 +24,13 @@ services.permown."/media" = { owner = "media"; group = "media"; + directory-mode = "770"; + file-mode = "770"; + }; + services.permown."/robi" = { + owner = "media"; + group = "media"; + directory-mode = "770"; + file-mode = "770"; }; } diff --git a/nixos/machines/chungus/packages.nix b/nixos/machines/chungus/packages.nix index 8160cc1..eea8b01 100644 --- a/nixos/machines/chungus/packages.nix +++ b/nixos/machines/chungus/packages.nix @@ -4,5 +4,7 @@ environment.systemPackages = [ pkgs.mediainfo pkgs.youtube-dl + pkgs.mnamer + pkgs.mc ]; } diff --git a/nixos/machines/chungus/rbackup.nix b/nixos/machines/chungus/rbackup.nix index 113aa95..9d3595c 100644 --- a/nixos/machines/chungus/rbackup.nix +++ b/nixos/machines/chungus/rbackup.nix @@ -23,11 +23,11 @@ src = "root@robi:/var/lib/bitwarden_rs/"; dst = "/services/bitwarden_rs"; }; - media = { - sshKeyPath = config.sops.secrets.rsync_private_key.path; - src = "root@robi:/media/syncthing/media/"; - dst = "/robi/media"; - }; + #media = { + # sshKeyPath = config.sops.secrets.rsync_private_key.path; + # src = "root@robi:/media/syncthing/media/"; + # dst = "/robi/media"; + #}; torrent = { sshKeyPath = config.sops.secrets.rsync_private_key.path; src = "root@robi:/media/torrent/downloads/";