From c4779b2a7940d41c79dd28e237ff54b4d6f10b78 Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Fri, 12 Jul 2024 09:22:32 -0400 Subject: [PATCH] separate services to file --- configuration.nix | 1 + nix/services.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 nix/services.nix diff --git a/configuration.nix b/configuration.nix index a1762e1..dd12ea9 100644 --- a/configuration.nix +++ b/configuration.nix @@ -8,6 +8,7 @@ imports = [ # Include the results of the hardware scan. /etc/nixos/hardware-configuration.nix + ./nix/services.nix ]; nixpkgs.config.allowUnfree = true; # Use the systemd-boot EFI boot loader. diff --git a/nix/services.nix b/nix/services.nix new file mode 100644 index 0000000..0a42e9e --- /dev/null +++ b/nix/services.nix @@ -0,0 +1,14 @@ +{ config, lib, pkgs, ... }: +{ + # Audio + services.pipewire = { + enable = true; + pulse.enable = true; + }; + # Hyrland Idle + services.hypridle.enable = true; + # SSH + services.openssh.enable = true; + # VideoDrivers + services.xserver.videoDrivers = ["nvidia"]; +}