BROKEN: Expanding desktop option

This commit is contained in:
Jurn Wubben 2025-05-24 00:03:47 +02:00
parent ebf027263f
commit 73dd477f9e
44 changed files with 272 additions and 296 deletions

View file

@ -1,8 +1,6 @@
{
imports = [
./greetd.nix
./kanata.nix
./pipewire.nix
./power.nix
./ssh.nix
];

View file

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

View file

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