This commit is contained in:
alydev 2025-09-24 22:07:15 +10:00
parent 5fb21f3813
commit 34c69b9bba
5 changed files with 183 additions and 3 deletions

View file

@ -1,5 +1,13 @@
({ config, pkgs, ... }: {
networking.hostName = "aly-laptop";
services.openvpn.servers = {
laptop = { config = '' config /home/aly/.secrets/laptop.ovpn ''; };
};
fileSystems."/mnt/media" = {
device = "//10.8.0.4/media";
fsType = "cifs";
options = ["x-systemd.requires=openvpn-laptop.service,x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s"];
};
services.logind = {
lidSwitch = "suspend";
lidSwitchDocked = "ignore";