separate services to file

This commit is contained in:
Benjamin Palko 2024-07-12 09:22:32 -04:00
parent 8b162bf941
commit c4779b2a79
2 changed files with 15 additions and 0 deletions

View file

@ -8,6 +8,7 @@
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
/etc/nixos/hardware-configuration.nix /etc/nixos/hardware-configuration.nix
./nix/services.nix
]; ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.

14
nix/services.nix Normal file
View file

@ -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"];
}