moved more out of common config

This commit is contained in:
Leyla Becker 2024-11-24 13:07:15 -06:00
parent aa7c2a2a15
commit fa3cb19c0b
7 changed files with 60 additions and 174 deletions

38
modules/desktop.nix Normal file
View file

@ -0,0 +1,38 @@
{pkgs, ...}: {
services = {
# Enable CUPS to print documents.
printing.enable = true;
xserver = {
# Enable the X11 windowing system.
enable = true;
# Enable the GNOME Desktop Environment.
displayManager.gdm.enable = true;
desktopManager = {
gnome.enable = true;
};
# Get rid of xTerm
desktopManager.xterm.enable = false;
excludePackages = [pkgs.xterm];
};
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
};
};
# Enable sound with pipewire.
hardware.pulseaudio.enable = false;
}

View file

@ -0,0 +1,14 @@
{
inputs,
pkgs,
...
}: {
nix = {
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
};
environment.systemPackages = with pkgs; [
# nix langauge server
nixd
];
}