BROKEN: Expanding desktop option
This commit is contained in:
parent
ebf027263f
commit
73dd477f9e
44 changed files with 272 additions and 296 deletions
|
|
@ -1,8 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./greetd.nix
|
||||
./kanata.nix
|
||||
./pipewire.nix
|
||||
./power.nix
|
||||
./ssh.nix
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,25 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
config = lib.mkIf config.niksos.desktop {
|
||||
# greetd display manager
|
||||
services.greetd = let
|
||||
session = {
|
||||
command = "${lib.getExe config.programs.uwsm.package} start hyprland-uwsm.desktop";
|
||||
user = "jsw";
|
||||
};
|
||||
in {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
terminal.vt = 1;
|
||||
default_session = session;
|
||||
initial_session = session;
|
||||
};
|
||||
};
|
||||
|
||||
programs.uwsm.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
config = lib.mkIf config.niksos.desktop {
|
||||
security.rtkit.enable = true;
|
||||
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
jack.enable = true;
|
||||
pulse.enable = true;
|
||||
|
||||
extraConfig.pipewire = {
|
||||
"10-combined-sink" = {
|
||||
"context.modules" = [
|
||||
{
|
||||
name = "libpipewire-module-combine-stream";
|
||||
args = {
|
||||
"combine.mode" = "sink";
|
||||
"node.name" = "combined_sink";
|
||||
"node.description" = "All audio outputs combined.";
|
||||
"combine.latency-compensate" = false;
|
||||
"combine.props" = {
|
||||
"audio.position" = ["FL" "FR"];
|
||||
};
|
||||
"stream.props" = {};
|
||||
"stream.rules" = [
|
||||
{
|
||||
matches = [
|
||||
{
|
||||
"media.class" = "Audio/Sink";
|
||||
}
|
||||
];
|
||||
actions = {
|
||||
create-stream = {};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = [pkgs.pulsemixer];
|
||||
services.pulseaudio.enable = lib.mkForce false; # gnome enables it
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue