summaryrefslogtreecommitdiff
path: root/nix/modules/configuration.nix
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2025-09-08 03:00:59 -0700
committerPreston Pan <ret2pop@gmail.com>2025-09-08 03:00:59 -0700
commite9e01cbb26efca6e392df2f720729c672b711f2f (patch)
treed5a5d990786dd0fddb90397029412f2e8ad28d45 /nix/modules/configuration.nix
parent5b8d09f2d7ebb7a1670c695af5761353d5b76d7e (diff)
Fix sops-nix; fix hyprland windowrules; fix security things
Diffstat (limited to 'nix/modules/configuration.nix')
-rw-r--r--nix/modules/configuration.nix11
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 = "*";
};