mirror of
https://github.com/alyssadev/nixos.git
synced 2025-10-14 04:59:39 +10:00
28 lines
850 B
Nix
28 lines
850 B
Nix
({ config, pkgs, ... }: {
|
|
networking.hostName = "aly-laptop";
|
|
services.openvpn.servers = {
|
|
laptop = { config = '' config /home/aly/.secrets/laptop.ovpn ''; };
|
|
};
|
|
fileSystems."/mnt/storage" = {
|
|
device = "aly@lan.aly.pet:/mnt/storage";
|
|
fsType = "sshfs";
|
|
options = ["nodev,noatime,allow_other,IdentityFile=/home/aly/.ssh/id_ed25519"];
|
|
};
|
|
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;
|
|
})
|