more cleanup

This commit is contained in:
twoneis 2024-06-06 00:08:01 +02:00
parent e0346fadb4
commit 70d50a1d0e
4 changed files with 2 additions and 13 deletions

View file

@ -1,12 +1,9 @@
{ lib, config, ... }: lib.mkIf(config.withAudio) { { lib, config, ... }: lib.mkIf(config.withAudio) {
# Enable sound with pipewire.
sound.enable = false;
hardware.pulseaudio.enable = false;
services.pipewire = { services.pipewire = {
enable = true; enable = true;
alsa.enable = true; alsa.enable = true;
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
#jack.enable = true; jack.enable = true;
}; };
} }

View file

@ -1,7 +1,3 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ inputs, pkgs, ... }: { { inputs, pkgs, ... }: {
imports = [ imports = [
./audio ./audio
@ -90,6 +86,4 @@
programs.fish.enable = true; programs.fish.enable = true;
users.defaultUserShell = pkgs.fish; users.defaultUserShell = pkgs.fish;
security.pam.services.swaylock = {};
} }

View file

@ -1,7 +1,6 @@
{ pkgs, lib, config, ... }: lib.mkIf (config.withGnome) { { pkgs, lib, config, ... }: lib.mkIf (config.withGnome) {
# Enable the GNOME Desktop Environment.
services.xserver.desktopManager.gnome.enable = true; services.xserver.desktopManager.gnome.enable = true;
# Don't install unnecessary packages
services.gnome.core-utilities.enable = false; services.gnome.core-utilities.enable = false;
environment.gnome.excludePackages = [ pkgs.gnome-tour ]; environment.gnome.excludePackages = [ pkgs.gnome-tour ];

View file

@ -1,5 +1,4 @@
{ lib, config, ... }: lib.mkIf (config.withNvidia) { { lib, config, ... }: lib.mkIf (config.withNvidia) {
# Load nvidia driver
services.xserver.videoDrivers = ["nvidia"]; services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = { hardware.nvidia = {