Refactor: Simplify module structure and reorganize services

- Removed system/ directory, merged applications into users/geir.nix
- Simplified fonts.nix to bare minimum (users can add more)
- Moved transmission.nix to sleeper-service/services/ (machine-specific)
- Organized grey-area services into services/ directory
- Updated import paths and tested all configurations
- Added research documentation for deploy-rs and GNU Stow
This commit is contained in:
Geir Okkenhaug Jerstad 2025-06-07 12:11:20 +02:00
parent e976b14d19
commit 9837d82199
24 changed files with 832 additions and 959 deletions

View file

@ -12,10 +12,6 @@
# Security modules
../../modules/security/ssh-keys.nix
# System modules
../../modules/system/fonts.nix
../../modules/system/applications.nix
# Hardware modules
../../modules/hardware/amd-workstation.nix

View file

@ -3,6 +3,14 @@
#+DATE: [2025-06-04 Wed]
* Machine Overview
also known as vps1
Ip information:
enX0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether fa:16:3e:d5:da:20 brd ff:ff:ff:ff:ff:ff
altname enxfa163ed5da20
tailscale0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1280 qdisc fq_codel state UNKNOWN group default qlen 500
link/none
inet 100.96.189.104/32 scope global tailscale0
** Role
- **Primary Function**: Reverse proxy and SSL/TLS termination

View file

@ -7,7 +7,7 @@
./network-sleeper-service.nix
# Services
./nfs.nix
../../modules/system/transmission.nix
./services/transmission.nix
# User modules - server only needs sma user
../../modules/users/sma.nix

View file

@ -0,0 +1,24 @@
{ config, pkgs, ... }:
{
# Transmission temporarily disabled due to build issues
# Will re-enable once package is stable
services.transmission = {
enable = false;
user = "sma"; # Using admin user for server processes
group = "users";
settings.rpc-port = 9091;
settings.rpc-bind-address = "0.0.0.0";
downloadDirPermissions = "770";
settings = {
download-dir = "/mnt/storage/downloads";
rpc-whitelist = "127.0.0.1,10.0.0.*,100.*.*.*";
rpc-host-whitelist = "sleeper-service,localhost";
};
};
# Ensure downloads directory exists even without Transmission
systemd.tmpfiles.rules = [
"d /mnt/storage/downloads 0755 sma users -"
];
}