diff options
Diffstat (limited to 'nix/modules/configuration.nix')
| -rw-r--r-- | nix/modules/configuration.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/nix/modules/configuration.nix b/nix/modules/configuration.nix index caeb1f7..7234333 100644 --- a/nix/modules/configuration.nix +++ b/nix/modules/configuration.nix @@ -53,6 +53,10 @@ boot = { + + extraModprobeConfig = '' + options snd-usb-audio vid=0x1235 pid=0x8200 device_setup=1 +''; extraModulePackages = [ ]; initrd = { @@ -89,6 +93,7 @@ ]; kernelParams = [ + "usbcore.autosuspend=-1" "debugfs=off" "page_alloc.shuffle=1" "slab_nomerge" @@ -278,13 +283,13 @@ }; xdg.portal = { - enable = true; + enable = (! config.monorepo.profiles.ttyonly.enable); wlr.enable = true; - extraPortals = with pkgs; [ + extraPortals = with pkgs; if (! config.monorepo.profiles.ttyonly.enable) then [ xdg-desktop-portal-gtk xdg-desktop-portal xdg-desktop-portal-hyprland - ]; + ] else []; config.common.default = "*"; }; |
