mirror of
https://github.com/alyssadev/nixos.git
synced 2025-10-14 04:59:39 +10:00
16 lines
570 B
Nix
16 lines
570 B
Nix
({ config, pkgs, ... }: {
|
|
networking.hostName = "aly-laptop";
|
|
services.openvpn.servers = {
|
|
laptop = { config = '' config /home/aly/.secrets/laptop.ovpn ''; };
|
|
};
|
|
fileSystems."/home/aly/Music" = {
|
|
device = "//10.8.0.4/media/music";
|
|
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";
|
|
lidSwitchExternalPower = "ignore";
|
|
};
|
|
})
|