This commit is contained in:
Sakooooo 2023-07-08 19:53:43 +03:00
parent d71a339a18
commit 63ed764946
Signed by: sako
GPG key ID: 3FD715D87D7725E0
3 changed files with 31 additions and 20 deletions

View file

@ -11,14 +11,6 @@
# required for hostname specific configurations # required for hostname specific configurations
networking.hostName = "sakotop"; # Define your hostname. networking.hostName = "sakotop"; # Define your hostname.
# Enable the X11 windowing system.
#services.xserver = {
# enable = true;
# # bspwm
# windowManager.bspwm.enable = true;
# layout = "us";
#};
modules = { modules = {
desktop = { desktop = {
kitty.enable = true; kitty.enable = true;
@ -26,6 +18,7 @@
}; };
hardware = { hardware = {
nvidia.enable = true; nvidia.enable = true;
pipewire.enable = true;
}; };
shell = { shell = {
nix = { nix = {
@ -52,18 +45,6 @@
# Enable CUPS to print documents. # Enable CUPS to print documents.
# services.printing.enable = true; # services.printing.enable = true;
# for some reason this needs to be disabled
sound.enable = false;
# dont like pulseaudio
#hardware.pulseaudio.enable = true;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager).
services.xserver.libinput.enable = true; services.xserver.libinput.enable = true;

View file

@ -1,5 +1,6 @@
{ {
imports = [ imports = [
./nvidia ./nvidia
./pipewire
]; ];
} }

View file

@ -0,0 +1,29 @@
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.hardware.pipewire;
in
{
options.modules.hardware.pipewire = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
# resolve racial conflict between
# pulseaudio and pipewire
sound.enable = false;
# what is this for will source games
# still work what
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
};
}