feat: add NFS server and Transmission service to sleeper-service

- Created modules/services/nfs.nix for network file sharing
- Updated sleeper-service configuration with NFS and Transmission
- Fixed SSH key management to use direct key configuration
- Updated hardware-configuration to use sleeper-service hostname
- Added firewall ports for Transmission RPC (9091)
This commit is contained in:
Geir Okkenhaug Jerstad 2025-06-05 16:31:09 +02:00
parent 77e6b9a501
commit 6fe8cdb790
7 changed files with 47 additions and 38 deletions

View file

@ -47,7 +47,7 @@
fsType = "zfs";
};
fileSystems."/mnt/storage/media" =
{ device = "files:/mnt/storage";
{ device = "sleeper-service:/mnt/storage";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" "x-systemd.idle-timeout=600" ];
};

View file

@ -6,6 +6,10 @@
# Security modules
../../modules/security/ssh-keys.nix
# Services
../../modules/services/nfs.nix
../../modules/system/transmission.nix
# User modules
../../modules/users/geir.nix
../../modules/users/sma.nix
@ -47,20 +51,10 @@
tree
];
# Users
users.users.geir = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
shell = pkgs.zsh;
openssh.authorizedKeys.keys = [
# Add SSH public keys here
];
};
programs.zsh.enable = true;
# Firewall configuration
networking.firewall.allowedTCPPorts = [ 22 ];
networking.firewall.allowedTCPPorts = [ 22 9091 ]; # SSH and Transmission RPC
system.stateVersion = "25.05";
}