feat: Fix crackling audio inside containers

It turns out that enabling hyprland inside the container causes this to
happen. I've also disabled greetd for good measure.
This commit is contained in:
Donovan Glover 2024-04-06 19:35:51 -04:00
parent 534476e97b
commit 006a3592e6
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 5 additions and 3 deletions

View File

@ -17,6 +17,7 @@
];
modules = {
desktop.container = true;
system.noRoot = true;
};

View File

@ -3,7 +3,7 @@
let
inherit (lib) mkEnableOption mkIf mkMerge;
inherit (config.modules.system) username;
inherit (cfg) bloat gnome plasma;
inherit (cfg) bloat gnome plasma container;
inherit (builtins) attrValues;
inherit (nix-config.packages.${pkgs.system}) aleo-fonts;
@ -23,13 +23,14 @@ in
bloat = mkEnableOption "GUI applications like Logseq";
gnome = mkEnableOption "GNOME specialization";
plasma = mkEnableOption "Plasma specialization";
container = mkEnableOption "disable some options for container performance";
};
config = {
hardware.opengl.driSupport32Bit = true;
programs = {
hyprland.enable = true;
hyprland.enable = mkIf (!container) true;
cdemu.enable = true;
thunar = {
@ -108,7 +109,7 @@ in
})
];
services.greetd = {
services.greetd = mkIf (!container) {
enable = true;
restart = false;