nixos/system/aly-laptop.nix
2025-09-25 14:13:05 +10:00

28 lines
931 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";
};
services.flatpak.enable = true;
services.flatpak.packages = [
"com.moonlight_stream.Moonlight"
];
services.pulseaudio.enable = false;
services.pipewire = {
enable = true;
pulse.enable = true;
};
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
})