mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-16 17:50:52 +01:00
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:
parent
534476e97b
commit
006a3592e6
@ -17,6 +17,7 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
modules = {
|
modules = {
|
||||||
|
desktop.container = true;
|
||||||
system.noRoot = true;
|
system.noRoot = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkEnableOption mkIf mkMerge;
|
inherit (lib) mkEnableOption mkIf mkMerge;
|
||||||
inherit (config.modules.system) username;
|
inherit (config.modules.system) username;
|
||||||
inherit (cfg) bloat gnome plasma;
|
inherit (cfg) bloat gnome plasma container;
|
||||||
inherit (builtins) attrValues;
|
inherit (builtins) attrValues;
|
||||||
inherit (nix-config.packages.${pkgs.system}) aleo-fonts;
|
inherit (nix-config.packages.${pkgs.system}) aleo-fonts;
|
||||||
|
|
||||||
@ -23,13 +23,14 @@ in
|
|||||||
bloat = mkEnableOption "GUI applications like Logseq";
|
bloat = mkEnableOption "GUI applications like Logseq";
|
||||||
gnome = mkEnableOption "GNOME specialization";
|
gnome = mkEnableOption "GNOME specialization";
|
||||||
plasma = mkEnableOption "Plasma specialization";
|
plasma = mkEnableOption "Plasma specialization";
|
||||||
|
container = mkEnableOption "disable some options for container performance";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
hardware.opengl.driSupport32Bit = true;
|
hardware.opengl.driSupport32Bit = true;
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
hyprland.enable = true;
|
hyprland.enable = mkIf (!container) true;
|
||||||
cdemu.enable = true;
|
cdemu.enable = true;
|
||||||
|
|
||||||
thunar = {
|
thunar = {
|
||||||
@ -108,7 +109,7 @@ in
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
services.greetd = {
|
services.greetd = mkIf (!container) {
|
||||||
enable = true;
|
enable = true;
|
||||||
restart = false;
|
restart = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user